Memory vs. Context? Influential Factors of Factual Recall in Language Models
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.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- Accepted to the BlackboxNLP 2026 Reproducibility Challenge (Special Track), EMNLP 2026
Related papers
LimeTree: Linear-Memory Graph Neural Networks over Tree-Graphs for Resource-Efficient Language Modeling and Context Extrapolation
Shared title terminologycs.CLElisabeth Fink
NORMCRAFT: Cultural Norm Generation for Context-Aware Language Model Alignment
Shared title terminologycs.CLTangyuan Zhang, Zhuang Li, Fatemeh Shiri et al.
Beyond the Context Window: An Adaptive Entropy-Based Routing Framework for Hybrid Retrieval and Long-Context Language Models
Shared title terminologycs.CLIsaac Olufadewa, Miracle Adesina, Ezekiel Oladejo et al.
When Context Misleads: In-context Learning with Jurisdiction in Large Language Models
Shared title terminologycs.CLPei-lin Li, Qingle Liu, Junyang Feng et al.
Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference
Shared title terminologycs.CLMd Mostafizer Rahman, Md Faizul Ibne Amin, Md Shahajada Mia et al.
Disciplined Anthropomorphism: How to Extend Cognitive Language to Artificial Intelligence
Shared title terminologycs.CLMatthieu Queloz