Language Models Use Lookbacks to Track Beliefs
Nikhil Prakash, Natalie Shapira, Arnab Sen Sharma, Christoph Riedl, Yonatan Belinkov, Tamar Rott Shaham, David Bau, Atticus Geiger
Abstract
How do language models (LMs) represent characters’ beliefs, especially when those beliefs may differ from reality? This question lies at the heart of understanding the Theory of Mind (ToM) capabilities of LMs. We analyze LMs' ability to reason about characters’ beliefs using causal mediation and abstraction. We construct a dataset, CausalToM, consisting of simple stories where two characters independently change the state of two objects, potentially unaware of each other's actions. Our investigation uncovered a pervasive algorithmic pattern that we call a lookback mechanism, which enables the LM to recall important information when it becomes necessary. The LM binds each character-object-state triple together by co-locating their reference information, represented as Ordering IDs (OIs), in low-rank subspaces of the state token's residual stream. When asked about a character's beliefs regarding the state of an object, the binding lookback retrieves the correct state OI and then the answer lookback retrieves the corresponding state token. When we introduce text specifying that one character is (not) visible to the other, we find that the LM first generates a visibility ID encoding the relation between the observing and the observed character OIs. In a visibility lookback, this ID is used to retrieve information about the observed character and update the observing character's beliefs. Our work provides insights into belief tracking mechanisms, taking a step toward reverse-engineering ToM reasoning in LMs.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Decomposing Query-Key Feature Interactions Using Contrastive Covariances cites LLMs Process Lists With General Filter Heads
- Decomposing Query-Key Feature Interactions Using Contrastive Covariances cites Mixing Mechanisms: How Language Models Retrieve Bound Entities In-Context
- Locating and Editing Factual Associations in GPT cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- LLMs Process Lists With General Filter Heads cites Locating and Editing Factual Associations in GPT
- Mixing Mechanisms: How Language Models Retrieve Bound Entities In-Context cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Mixing Mechanisms: How Language Models Retrieve Bound Entities In-Context cites Causal Abstractions of Neural Networks
- Mixing Mechanisms: How Language Models Retrieve Bound Entities In-Context cites Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Tracking
- Inducing Causal Structure for Interpretable Neural Networks cites Locating and Editing Factual Associations in GPT
- Inducing Causal Structure for Interpretable Neural Networks cites Causal Abstractions of Neural Networks
- In-Context Algebra cites Locating and Editing Factual Associations in GPT
- In-Context Algebra cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- In-Context Algebra cites Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Tracking
- Mechanisms of Prompt-Induced Hallucination in Vision-Language Models cites Locating and Editing Factual Associations in GPT
- Mechanisms of Prompt-Induced Hallucination in Vision-Language Models cites Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Tracking
- Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Tracking cites Locating and Editing Factual Associations in GPT
- Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Tracking cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
Cited by top-tier papers8
- Mixing Mechanisms: How Language Models Retrieve Bound Entities In-ContextYoav Gur-Arieh, Mor Geva, Atticus GeigerICLR 2026 · 26 citations
- LLMs Process Lists With General Filter HeadsArnab Sen Sharma, Giordano Rogers, Natalie Shapira, David BauICLR 2026 · 7 citations
- Mechanisms of Prompt-Induced Hallucination in Vision-Language ModelsWilliam Rudman, Michal Golovanevsky, Dana Arad, Yonatan Belinkov et al.ACL 2026 · 4 citations
- In-Context AlgebraEric Todd, Jannik Brinkmann, Rohit Gandikota, David BauICLR 2026 · 3 citations
- Decomposing Query-Key Feature Interactions Using Contrastive CovariancesAndrew Lee, Yonatan Belinkov, Fernanda Viégas, Martin WattenbergICML 2026 · 1 citation
Builds on23
- Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 citations
- Investigating Gender Bias in Language Models Using Causal Mediation AnalysisJesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian et al.NeurIPS 2020 · 851 citations
- Causal Abstractions of Neural NetworksAtticus Geiger, Hanson Lu, Thomas Icard, Christopher PottsNeurIPS 2021 · 516 citations
- Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity TrackingNikhil Prakash, Tamar Rott Shaham, Tal Haklay, Yonatan Belinkov et al.ICLR 2024 · 113 citations
- Inducing Causal Structure for Interpretable Neural NetworksAtticus Geiger, Zhengxuan Wu, Hanson Lu, Josh Rozner et al.ICML 2022 · 104 citations
Related papers
- Language Models Represent Beliefs of Self and OthersWentao Zhu, Zhining Zhang, Yizhou WangICML 2024 · 24 citations
- Views Are My Own, but Also Yours: Benchmarking Theory of Mind Using Common GroundAdil Soubki, John Murzaku, Arash Yousefi Jordehi, Peter Zeng et al.ACL Findings 2024 · 1 citation
- Representational Analysis of Binding in Language ModelsQin Dai, Benjamin Heinzerling, Kentaro InuiEMNLP 2024 · 1 citation
- Linear Mechanisms for Spatiotemporal Reasoning in Vision Language ModelsRaphaela Kang, Hongqiao Chen, Georgia Gkioxari, Pietro PeronaICLR 2026 · 11 citations
- Minding Language Models' (Lack of) Theory of Mind: A Plug-and-Play Multi-Character Belief TrackerMelanie Sclar, Sachin Kumar, Peter West, Alane Suhr et al.ACL 2023 · 21 citations
