Memory vs. Context? Influential Factors of Factual Recall in Language Models

Guilhem Fouilhé, Nicholas Asher, Philippe Muller
9/21/2026
cs.CLcs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fouilh2026memory,
  title  = {Memory vs. Context? Influential Factors of Factual Recall in Language Models},
  author = {Guilhem Fouilhé and Nicholas Asher and Philippe Muller},
  year   = {2026},
  eprint = {2609.24238},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.24238v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.24238.svg)](https://codeofpaper.com/paper/2609.24238)

Discussion