Characterizing Mechanisms for Factual Recall in Language Models
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 46 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation 引用了 Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
- Reasoning or Retrieval? A Study of Answer Attribution on Large Reasoning Models 引用了 Locating and Editing Factual Associations in GPT
- Progress measures for grokking via mechanistic interpretability 引用了 Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
- UniBias: Unveiling and Mitigating LLM Bias through Internal Attention and FFN Manipulation 引用了 Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
- Mechanistic Detection and Mitigation of Hallucination in Large Reasoning Models 引用了 UniBias: Unveiling and Mitigating LLM Bias through Internal Attention and FFN Manipulation
- When Truth Is Overridden: Uncovering the Internal Origins of Sycophancy in Large Language Models 引用了 Locating and Editing Factual Associations in GPT
- When Truth Is Overridden: Uncovering the Internal Origins of Sycophancy in Large Language Models 引用了 Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
- Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small 引用了 Locating and Editing Factual Associations in GPT
引用它的顶会 Paper46
- UniBias: Unveiling and Mitigating LLM Bias through Internal Attention and FFN ManipulationHanzhang Zhou, Zijian Feng, Zixiao Zhu, Junlang Qian 等NeurIPS 2024 · 43 次引用
- Mechanistic Detection and Mitigation of Hallucination in Large Reasoning ModelsZhongxiang Sun, Qipeng Wang, Haoyu Wang, Xiao Zhang 等ICLR 2026 · 30 次引用
- When Truth Is Overridden: Uncovering the Internal Origins of Sycophancy in Large Language ModelsKeyu Wang, Jin Li, Shu Yang, Zhuoran Zhang 等AAAI 2026 · 25 次引用
- The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval AugmentationPatrick Kahardipraja, Reduan Achtibat, Thomas Wiegand, Wojciech Samek 等NeurIPS 2025 · 13 次引用
- Reasoning or Retrieval? A Study of Answer Attribution on Large Reasoning ModelsYuhui Wang, Changjiang Li, Guangke Chen, Jiacheng Liang 等ICLR 2026 · 13 次引用
它引用的 Paper8
- Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 次引用
- An Explanation of In-context Learning as Implicit Bayesian InferenceSang Michael Xie, Aditi Raghunathan, Percy Liang, Tengyu MaICLR 2022 · 1,030 次引用
- Large Language Models Struggle to Learn Long-Tail KnowledgeNikhil Kandpal, Haikang Deng, Adam Roberts, Eric Wallace 等ICML 2023 · 623 次引用
- Progress measures for grokking via mechanistic interpretabilityNeel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith 等ICLR 2023 · 54 次引用
- Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 SmallKevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris 等ICLR 2023 · 50 次引用
相关 Paper
- When Seeing Overrides Knowing: Disentangling Knowledge Conflicts in Vision-Language ModelsFrancesco Ortu, Zhijing Jin, Diego Doimo, Alberto CazzanigaACL 2026 · 7 次引用
- Large Language Models with Controllable Working MemoryDaliang Li, Ankit Singh Rawat, Manzil Zaheer, Xin Wang 等ACL Findings 2023 · 46 次引用
- The Effect of Scaling, Retrieval Augmentation and Form on the Factual Consistency of Language ModelsLovisa Hagström, Denitsa Saynova, Tobias Norlund, Moa Johansson 等EMNLP 2023 · 6 次引用
- Mechanistic Understanding and Mitigation of Language Model Non-Factual HallucinationsLei Yu, Meng Cao, Jackie C. K. Cheung, Yue DongEMNLP Findings 2024 · 11 次引用
- How Training Data Shapes the Use of Parametric and In-Context Knowledge in Language ModelsMinsung Kim, Dong-Kyum Kim, Jea Kwon, Nakyeong Yang 等ACL 2026 · 2 次引用
