Memory vs. Context? Influential Factors of Factual Recall in Language Models
cs.CL, cs.AI
Submitted: 2026-09-21
Updated: 2026-09-21
Comments: Accepted to the BlackboxNLP 2026 Reproducibility Challenge (Special Track), EMNLP 2026
Code: https://github.com/gfouilhe/IC-factual-public
License: http://creativecommons.org/licenses/by/4.0/
The gist: We reproduce and stress-test the work of Yu et al.
Terminology
Abstract
We reproduce and stress-test the work of Yu et al. (2023), who characterize how language models (LMs) arbitrate between memorized knowledge and contradictory in-context statements. We replicate their world-capitals experiments on 31 models spanning Pythia, GPT-2, Qwen3, and Ministral families, including base and post-trained variants, and extend evaluations to five additional knowledge relation types from the ParaConflict dataset. We empirically confirm most of their original findings: larger models and higher-frequency entities tend to favor memorized answers, with substantial family-level variance. However, several conclusions do not generalize cleanly: entity-frequency effects disappear on Qwen3-14B and 32B; post-training shifts the memory-context trade-off inconsistently across families; question phrasing alone can change a model's reliance on memorized knowledge by up to 80 percentage points; and semantically unrelated prose can mimic coherent supporting context. Our results clarify where Yu et al.'s claims hold and to what extent they generalize to other prompts.
Sources
- The Pile: An 800GB Dataset of Diverse Text for Language Modeling
- Ministral 3
- Predictable Confabulations: Factual Recall by LLMs Scales with Model Size and Topic Frequency
- Qwen3 Technical Report
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering