mlsanityData to 14 Oct 2026

Characterizing Mechanisms for Factual Recall in Language Models

arXiv 2310.15910 ↗First posted 24 Oct 2023cs.CL cs.AIcited by 48

Not on the map. Why?

Abstract (arXiv)

Language Models (LMs) often must integrate facts they memorized in pretraining with new information that appears in a given context. These two sources can disagree, causing competition within the model, and it is unclear how an LM will resolve the conflict. On a dataset that queries for knowledge of world capitals, we investigate both distributional and mechanistic determinants of LM behavior in such situations. Specifically, we measure the proportion of the time an LM will use a counterfactual prefix (e.g., "The capital of Poland is London") to overwrite what it learned in pretraining ("Warsaw"). On Pythia and GPT2, the training frequency of both the query country ("Poland") and the in-context city ("London") highly affect the models' likelihood of using the counterfactual. We then use head attribution to identify individual attention heads that either promote the memorized answer or the in-context answer in the logits. By scaling up or down the value vector of these heads, we can control the likelihood of using the in-context answer on new data. This method can increase the rate of generating the in-context answer to 88% of the time simply by scaling a single head at runtime. Our work contributes to a body of evidence showing that we can often localize model behaviors to specific components and provides a proof of concept for how future methods might control model behavior dynamically at runtime.

Key facts. Cited by 48 papers in the map (data through 14 Oct 2026). Builds on 15 of its 30 references that are in the map. First posted on arXiv 24 Oct 2023.

Builds on

15 of 30 references.

References · 15

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  4. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  5. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  6. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  7. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  8. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  9. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
  10. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
  11. 2023Larger language models do in-context learning differentlycited by 394
  12. 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
3 more
  1. 2019Counterfactual Story Reasoning and Generationcited by 88
  2. 2022Understanding Transformer Memorization Recall Through Idiomscited by 62
  3. 2023Counterfactual reasoning: Testing language models' understanding of hypothetical scenarioscited by 27

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 17; 2025: 21; 2026: 9.

48 papers.

Sort:

By area:

  1. 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 435
  2. 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
  3. 2024ReDeEP: Detecting Hallucination in Retrieval-Augmented Generation via Mechanistic Interpretabilitycited by 101
  4. 2024LoFiT: Localized Fine-tuning on LLM Representationscited by 57
  5. 2025When Truth Is Overridden: Uncovering the Internal Origins of Sycophancy in Large Language Modelscited by 50
  6. 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 47
  7. 2024Answer, Assemble, Ace: Understanding How LMs Answer Multiple Choice Questionscited by 35
  8. 2024Mechanistic Unlearning: Robust Knowledge Unlearning and Editing via Mechanistic Localizationcited by 35
  9. 2025Detection and Mitigation of Hallucination in Large Reasoning Models: A Mechanistic Perspectivecited by 34
  10. 2024Interpreting Key Mechanisms of Factual Recall in Transformer-Based Language Modelscited by 31
  11. 2024UniBias: Unveiling and Mitigating LLM Bias through Internal Attention and FFN Manipulationcited by 31
  12. 2025Taming Knowledge Conflicts in Language Modelscited by 30
36 more
  1. 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
  2. 2024The Same But Different: Structural Similarities and Differences in Multilingual Language Modelingcited by 28
  3. 2024Missed Causes and Ambiguous Effects: Counterfactuals Pose Challenges for Interpreting Neural Networkscited by 23
  4. 2024Controllable Context Sensitivity and the Knob Behind Itcited by 23
  5. 2025How Do Vision-Language Models Process Conflicting Information Across Modalities?cited by 23
  6. 2024Position: An Inner Interpretability Framework for AI Inspired by Lessons from Cognitive Neurosciencecited by 11
  7. 2025ParamMute: Suppressing Knowledge-Critical FFNs for Faithful Retrieval-Augmented Generationcited by 11
  8. 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentationcited by 11
  9. 2025When Seeing Overrides Knowing: Disentangling Knowledge Conflicts in Vision-Language Modelscited by 11
  10. 2025Reasoning or Retrieval? A Study of Answer Attribution on Large Reasoning Modelscited by 10
  11. 2024ChroKnowledge: Unveiling Chronological Knowledge of Language Models in Multiple Domainscited by 8
  12. 2025Whither symbols in the era of advanced neural networks?cited by 7
  13. 2025Analyzing limits for in-context learningcited by 6
  14. 2026Seeing through the Conflict: Transparent Knowledge Conflict Handling in Retrieval-Augmented Generationcited by 6
  15. 2025Position: We Need An Algorithmic Understanding of Generative AIcited by 5
  16. 2025Dynamic Weight Grafting: Localizing Finetuned Factual Knowledge in Transformerscited by 3
  17. 2026Indications of Belief-Guided Agency and Meta-Cognitive Monitoring in Large Language Modelscited by 3
  18. 2025The Generalization Ridge: Information Flow in Natural Language Generationcited by 2
  19. 2025Steering Prepositional Phrases in Language Models: A Case of with-headed Adjectival and Adverbial Complements in Gemma-2cited by 2
  20. 2023Observable Propagation: Uncovering Feature Vectors in Transformerscited by 1
  21. 2024ACCORD: Closing the Commonsense Measurability Gapcited by 1
  22. 2024PEAR: Position-Embedding-Agnostic Attention Re-weighting Enhances Retrieval-Augmented Generation with Zero Inference Overheadcited by 1
  23. 2024Unveiling and Consulting Core Experts in Retrieval-Augmented MoE-based LLMscited by 1
  24. 2025Pretrained LLMs Learn Multiple Types of Uncertaintycited by 1
  25. 2025Resolving Knowledge Conflicts in Domain-specific Data Selection: A Case Study on Medical Instruction-tuningcited by 1
  26. 2025BiasGym: A Simple and Generalizable Framework for Analyzing and Removing Biases through Injectioncited by 1
  27. 2025Layer of Truth: Probing Belief Shifts under Continual Pre-Training Poisoningcited by 1
  28. 2025Tracing Facts or just Copies? A critical investigation of the Competitions of Mechanisms in Large Language Modelscited by 0
  29. 2025Evaluation Framework for Highlight Explanations of Context Utilisation in Language Modelscited by 0
  30. 2026Listen to the Layers: Mitigating Hallucinations with Inter-Layer Disagreementcited by 0
  31. 2026Locating and Editing Figure-Ground Organization in Vision Transformerscited by 0
  32. 2026Filling the Gaps: Selective Knowledge Augmentation for LLM Recommenderscited by 0
  33. 2026Inside-Out: Measuring Generalization in Vision Transformers Through Inner Workingscited by 0
  34. 2026Seeing or Knowing? Visual Context Sensitivity in Multimodal Large Language Modelscited by 0
  35. 2026Attention-Path Fragility as an Uncertainty Signal in Large Language Modelscited by 0
  36. 2026Stale-Document Poisoning: When Outdated Retrieval Overrides Correct Model Answerscited by 0