Language models track character beliefs with a lookback mechanismLanguage Models use Lookbacks to Track Beliefs
The authors use interchange interventions to analyze belief tracking on CausalToM across three models and say it relies on lookback.
- Behavioral evaluations cannot reveal how a model represents role beliefs that diverge from reality. The authors want to test whether this tracking is a localizable internal computation or a superficial statistical association.
- They build CausalToM, with no-visibility and explicit-visibility conditions. They hypothesize that the model uses Ordering IDs and lookback to bind character-object-state, then use interchange interventions to align high-level variables to the residual stream.
- The main analysis is on 80 correctly answered samples from Llama-3-70B-Instruct. The answer pointer aligns to layers 34–52, and the payload is after layer 56 (Fig 4). In Table 1, this model's no-visibility accuracy is 0.952±0.020.
- Appendix M calls the BigToM evidence preliminary and leaves cross-distribution subspace differences for future work. Appendix K says the semantics of the visibility payload are undetermined. None of the three models can stably solve the visibility condition of the triplets.
- Evaluated models
- Llama-3-70B-InstructLlama-3.1-405B-InstructQwen2.5-14B-InstructLlama-2-7b-hfQwen2.5-7BQwen2.5-7B-InstructLlama-3.1-8BLlama-3.1-8B-InstructMeta-Llama-3-8BMeta-Llama-3-8B-InstructLlama-2-13b-hfOLMo-2-1124-13B-InstructQwen2.5-14BGemma-3-27b-itOLMo-2-0325-32B-Instruct
- Benchmarks
- CausalToMBigToM
- Metrics
- accuracyIIA
The paper analyzes how language models represent characters' beliefs in stories, and proposes and validates a lookback mechanism. The study constructs the CausalToM dataset, consisting of simple stories in which two characters each independently change the state of two objects, and combines causal mediation with abstraction analysis. The results show that the model binds each character-object-state triple with Ordering IDs in a low-rank subspace of the residual stream at state tokens; when asked about a character's belief, it first uses binding lookback to retrieve the correct state OI, then uses answer lookback to retrieve the corresponding state token. When the text indicates whether a character is seen by another character, the model first generates a visibility ID encoding the relationship between the two, and in visibility lookback updates the observer's belief accordingly.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Goodfire Researchcites the paper's id or linkGoodfire 提出神经几何:神经网络内部世界呈弯曲流形结构
et al. 2025, Bushnaq et al. 2025, Mueller et al. 2025, Prakash et al. 2025, Gur Arieh et al. 2025, Rodriguez et al. 2025, Boguraev et al. 2025, Huang et al. 2025, Minder et al. 2025, Grant et al.
Paper analysis
What problem does this paper attempt to solve?
The authors want to understand how models internally track character beliefs that may not match reality.
How language models internally represent and track character beliefs, especially when beliefs are inconsistent with reality due to missing information; whether this tracking is a localizable algorithm or a superficial statistical association.
- Scenario: The authors view belief tracking as central to Theory of Mind, using the Sally-Anne test as an example: one party holds a belief inconsistent with reality because they did not see a later change, while the other party updates their belief based on new observations. The introduction states that existing work shows models can complete some ToM tasks, and other work points out shortcomings, but these are mainly behavioral evaluations.
- Existing gaps: The authors argue that behavioral evaluations cannot show how models encode and manipulate representations of mental states. Sec 3.1 states that existing ToM datasets are oriented toward behavioral testing and lack the counterfactual pairs needed for causal analysis.
- Core observation: The authors call the recurring computation lookback: the same reference is copied to an address at an earlier token (with the payload placed alongside) and a pointer at a later token; when needed, attention is used to dereference, rather than passing the answer directly to the end in advance.
- This paper's approach: Construct a story dataset CausalToM, and use causal mediation and causal abstraction to analyze Qwen2.5-14B-Instruct, Llama-3-70B-Instruct, and Llama-3.1-405B-Instruct. Without visibility, decompose into binding lookback and answer lookback; with explicit visibility, additionally add visibility lookback.
What related research exists?
Related work covers ToM evaluation, entity binding, and belief probes; the authors aim to reverse-engineer the mechanism rather than improve capability.
ToM behavioral evaluation and improvements
- Benchmarks: Sec 7 classifies Le et al. (2019), Shapira et al. (2023), Wu et al. (2023), Kim et al. (2023), Xu et al. (2024), Jin et al. (2024), Chan et al. (2024), and Strachan et al. (2024b) as ToM benchmarks. The authors say these benchmarks lack the counterfactuals needed for binding operations, so they built CausalToM.
- Improvement methods: Sclar et al. (2023), Moghaddam and Honey (2023), Zhou et al. (2023), Wilf et al. (2024), and Hou et al. (2024) aim to improve ToM performance. The authors say this paper does not improve capability but reverse-engineers existing belief tracking.
- Behavioral conclusions: the introduction cites Street et al. (2024), Strachan et al. (2024a), and Kosinski (2024) on models solving some ToM tasks, and Ullman (2023), Sclar et al. (2025), and Shapira et al. (2024) on shortcomings. The authors say these works do not explain internal computation.
Entity tracking and variable binding
- State representations: Li et al. (2021) report that models form internal representations of entities' dynamic states that can be identified and manipulated with linear probes.
- Binding representations: Davies et al. (2023), Prakash et al. (2024), and Yang et al. (2025) report that a small number of attention heads use positional information to retrieve attributes; Feng and Steinhardt (2023) report Binding IDs; Dai et al. (2024) report Ordering IDs in low-rank subspaces. This paper follows OI.
- Training process: Wu et al. (2025) train Transformers on symbolic programs and say variable binding develops through three stages from shallow heuristics to a systematic mechanism.
Mechanistic interpretability of ToM
- Probe interventions: Zhu et al. (2024) linearly decode belief states of different agents with probes and intervene on these representations.
- Stability and criteria: Herrmann and Levinstein (2024) examine the effects of prompt changes and fine-tuning on belief representations; Bortoletto et al. (2024) propose accuracy, coherence, uniformity, and use as criteria for whether internal representations behave like beliefs. The authors say these works show how beliefs are encoded but not how models complete ToM tasks.
Data and comparison concepts
- Data in this paper: mechanistic experiments use the self-built CausalToM; generalization analysis uses BigToM (Gandhi et al., 2024). Appendix B says BigToM is solvable and has counterfactuals, but still is not sufficient to change only one factor while keeping the story coherent.
- induction heads: a footnote says lookback differs from the induction heads of Elhage et al. (2021) and Olsson et al. (2022): the latter only pass information to the next token and do not copy the same information to both a storage site and a retrieval site.
The authors place this paper after the binding literature: it gives an end-to-end mechanism for belief tracking rather than a new ToM training method.
How does the paper address this problem?
The authors hypothesize that Ordering IDs and three kinds of lookback complete belief tracking, then use interchange interventions to align the residual stream.
The authors describe belief tracking with a high-level causal model, whose core computation is lookback: copying reference information into an address and a pointer, and dereferencing the payload when needed. They then use interchange interventions to test whether these variables lie at specified positions in the residual stream.
Task and CausalToM
- Two settings: In No Visibility, the two characters are unaware of each other; Explicit Visibility states in text whether one party can observe the other's actions. Objects in the story are opaque containers.
- Question answering: Each character changes the state of one object. The question asks what a character believes is inside a certain object. The instructions in Appendix A require: beliefs form only when acting oneself or observing an action; output unknown if there is no belief; do not output containers or characters.
- Scale: 4 templates (1 without a visibility sentence, 3 with an explicit visibility sentence), 4 question types per template; the name list has 103 characters, 21 objects, and 23 states. Subsequent interventions use the 80 samples the model answered correctly.
Structure of lookback
- Three copies: the source reference is copied via attention to the address of the recalled token and to the pointer of a later lookback token; the payload is placed next to the address (Fig 1).
- Circuit: the pointer goes through the query matrix and the address through the key matrix, then their dot product is high, forming a QK-circuit; the OV-circuit moves the payload to the lookback token. The authors say the two need not be exact copies of the source.
- Why stored this way: the authors believe the model does not know at training time what will be asked later, so it places potentially useful information together with the address, and constructs the pointer when the question arrives. Appendix C gives background on the residual stream, QK/OV, and OI.
Causal model without visibility
- Ordering ID: characters, objects, and states are labeled first or second, separate from the literal token value, encoded in a low-rank subspace. In Fig 3, the character appearing first is 1 and the one appearing later is 2.
- Binding lookback: the address of the character OI and object OI is bound to the state OI on the state token. When asked, the OIs of the queried character and object are copied as pointers, and dereferencing yields the state OI.
- Answer lookback: the address of the state OI and the state token value are placed on the state token; the state OI obtained in the previous step serves as the pointer, and dereferencing yields the final output. Appendix G gives pseudocode.
Alignment tests
- Interchange intervention: run the model on the original input o and the counterfactual c, replacing specified activations of o with activations from c. IIA is the proportion of outputs of the intervened model that match the intervened causal model.
- Same token: for example, replace the representation of the current ":" with that of a colon ":" from another context. If the output becomes the state predicted by the causal model, which is neither o nor c, the authors take this as evidence that the position carries an OI. Each experiment has n=80, measured layer by layer.
- Subspace: Desiderata-based Component Masking learns a sparse mask on singular vectors to maximize the logit of the causal model's output token. 500 samples are cached for SVD; the mask is trained on 80 examples and validated on 80, with ADAM, learning rate 0.01, batch 4, 1 epoch, and λ controlling rank. The main text reports both the full residual stream and the subspace.
- Model precision: Qwen2.5-14B-Instruct is FP32, Llama-3-70B-Instruct is FP16, and Llama-3.1-405B-Instruct is INT8, via NNsight. Main-text figures come from Llama-3-70B-Instruct.
Explicit visibility
- Visibility ID: the authors hypothesize that the visibility sentence generates a Visibility ID; the address remains in that sentence, the pointer propagates to later tokens, and the payload is retrieved via QK (Fig 7).
- payload: the authors say the two-character setting cannot determine the exact semantics of the payload; observation is consistent with "encoding the OI of the observed character." Appendix K continues observation with attention knockout and states that this interpretation is speculative.
What experiments did the paper conduct?
On the 80 samples answered correctly, interchange interventions aligned the lookback variable to the residual stream at the specified layer.
Experimental setup
- Mechanistic models: Llama-3-70B-Instruct (main text, FP16), Qwen2.5-14B-Instruct (FP32), Llama-3.1-405B-Instruct (INT8). The Meta-Llama-3-70B-Instruct and Meta-Llama-3.1-405B-Instruct in Table 1 are the same models as these two Llama models in the main text.
- Behavioral evaluation: Table 1 also includes Llama-2-7b-hf, Qwen2.5-7B, Qwen2.5-7B-Instruct, Llama-3.1-8B, Llama-3.1-8B-Instruct, Meta-Llama-3-8B, Meta-Llama-3-8B-Instruct, Llama-2-13b-hf, OLMo-2-1124-13B-Instruct, Qwen2.5-14B, Gemma-3-27b-it, OLMo-2-0325-32B-Instruct. Each condition is run 10 times with 100 samples each, reporting mean±std.
- Data: the main interventions use 80 original/counterfactual pairs that the model answered correctly on CausalToM. Appendix M uses BigToM; Appendix O extends the story to three character-object-state triples.
- Metrics: the behavioral metric is accuracy; the mechanistic metric is IIA. The paper does not use a separate judge model; success means the output is the expected state token or unknown. Each main-text intervention is layer-by-layer with n=80.
- Selection: the authors chose the above three models for mechanistic analysis based on behavioral performance on the two conditions. Appendix N does only the full residual stream, not the subspace, due to computational limits.
Main results
The table below lists only the layer ranges stated in the main text; the model is Llama-3-70B-Instruct, the data is CausalToM, n=80.
Swipe horizontally to read the table
Variable Position Aligned layers Source Answer payload final token ":" after layer 56 Fig 4 Answer pointer final token ":" 34–52 Fig 4 Binding address and payload state token 33–38 Fig 5 Binding source character and object tokens 20–34 Fig 6 Visibility source all tokens of the visibility sentence 10–23 Fig 8 Visibility payload question and answer tokens after layer 31 Fig 8 Visibility address and pointer visibility sentence plus later tokens 24–31; maintained after layer 10 Fig 8 - Answer retrieval: the counterfactual in Fig 4 swaps the order of the character and object and introduces a new state token. The authors say that after injecting the answer payload, the output changes from the original state (e.g., coffee) to the counterfactual state (e.g., tea), and this happens for every one of the n=80 samples; injecting the pointer instead yields another state from the original story (e.g., beer). The authors say these changes appear in both the full residual stream and the identified subspace.
- Binding: Fig 5 only swaps the order of the two story sentences, with token values unchanged. The authors say that after swapping the address and state OI on the state token, the model instead retrieves another state from the original input. If earlier layers touched the token value rather than the OI, the authors say that output should not be obtained. In Fig 6, with the state token frozen, the source intervention makes the pointer point to another state.
- Visibility: the counterfactual in Fig 8 flips "cannot observe" to "can observe," and the expected output changes from unknown to the observed content. The authors say that at layers 24 to 31, injecting only the recalled token or only the lookback token leaves the address and pointer misaligned, so there is no effect; injecting both together forms a QK-circuit.
Behavioral screening and coarse-grained information flow
- Above 80%: the authors say the models exceeding 80% on both conditions are Qwen2.5-14B-Instruct (no visibility 0.962±0.021, visibility 0.912±0.022), Meta-Llama-3-70B-Instruct (0.952±0.020, 0.923±0.014), and Meta-Llama-3.1-405B-Instruct (0.883±0.041, 0.97±0.013), all according to Table 1.
- Lowest in the table: Llama-2-7b-hf is 0.011±0.007 and 0.006±0.008. Qwen2.5-7B-Instruct is 0.948±0.022 for no visibility and 0.719±0.031 for visibility, and is not among the models the authors mark as exceeding 80% on both conditions.
- Fig 2: the authors say information about the correct state token flows directly from its own residual stream to the final token at later layers; information about the queried character and object first propagates from earlier positions to the final token and is then replaced by the state token. The main text does not give numbers for the IIA in each cell of the heatmap.
BigToM, triples, and the other two models
- BigToM: in Appendix M, on Llama-3-70B-Instruct, the queried character OI has high IIA at layers 9–28; the answer pointer aligns at layers 33–51; the payload aligns after layer 59. Intervening on the visibility sentence aligns by layer 17, intervening only on the question aligns after layer 26, and intervening on both aligns at all layers. The authors say the mechanism is similar, but this is preliminary evidence, and subspaces for the same semantics are not shared across the two datasets.
- Triples: Appendix O says the three models succeed without visibility but cannot reliably solve the visibility condition, so interchange interventions are done only for Qwen2.5-14B-Instruct without visibility, and the authors say binding and answer lookback are still used. The main text does not give layer numbers for these figures.
- Appendix N: the other two models each use 80 samples and only the full residual stream. The authors say they use the same mechanism as Llama-3-70B-Instruct. The main text does not report layer numbers.
Other ablations and analyses
- Appendix I, Fig 13: without freezing the state token, the source intervention does not show high IIA; the authors say the address and pointer change together.
- Appendix I/J localizes the character OI, object OI, and the character OI and object OI in the question separately; the example subspace dimensions are 29.0, 58.0, 5, 7 (Fig 14–17).
- The subspace dimensions in the Fig 5 and Fig 6 legends are 14 and 167. The Fig 4 legend has dimensions 20 and 33, and the main text does not state which corresponds to which curve.
- Appendix L: the answer pointer subspace aligns with the query projection at later layers; the payload subspace aligns with the value projection at later layers. The main text does not give head numbers.
- Appendix K: restricts the second visibility sentence to attend to earlier sentences. The authors believe the IIA drop before layer 15 is related to failing to retrieve the character OI; it remains low after layer 15, especially when both the second story sentence and the first visibility sentence are involved, and they speculate from this that the payload contains the OI of the observed character.
What are some points that can be further explored?
The authors leave whether BigToM and CausalToM subspaces share semantics to future work.
Limitations and future directions noted by the authors
- Cross-dataset subspaces: Appendix M states that information with the same semantics in CausalToM and BigToM lies in different subspaces, and leaves "shared semantics but different subspaces across distributions" to future work.
- Causal analysis of BigToM: Appendix M says BigToM and other benchmarks lack the coherent structure needed for the full causal analysis, so the full set of CausalToM experiments could not be reproduced, and that appendix provides only preliminary evidence.
- visibility payload: Appendix K says the payload of the Visibility lookback is still undetermined, and the explanation in the text is speculative. Sec 6 also says the two-character setting cannot distinguish its exact semantics.
- Dedicated section: the paper has no separate Limitations section. The conclusion does not list specific future experiments.
Experimental coverage
- Behavioral evaluation covers the 15 models in Table 1, with 10 runs each of 100 samples for no visibility and explicit visibility.
- Main-text mechanistic experiments use Llama-3-70B-Instruct, CausalToM, and the 80 samples the model answered correctly, with layer-by-layer full-residual-stream and DCM subspace interchange interventions.
- Appendix N repeats the main-text interventions on Qwen2.5-14B-Instruct and Llama-3.1-405B-Instruct with 80 samples each, using only the full residual stream.
- Appendix M performs partial interventions on BigToM with Llama-3-70B-Instruct; the authors state that the full CausalToM experiments could not be reproduced.
- Appendix O runs behavioral evaluation on three character-object-state triples under no visibility and visibility; interchange interventions are done only for Qwen2.5-14B-Instruct without visibility. The paper does not report statistical significance tests or human agreement.
Summarize the main content of the paper
Three instruction-tuned models use lookback to track beliefs in simple stories, and use visibility IDs under visibility conditions.
The authors analyze how language models track character beliefs in simple stories and test whether this is a localizable internal computation or surface co-occurrence.
- Problem: Two characters each change the state of an opaque object, and one may not see the other. The question asks what a character believes is in the object; when unknown, the answer should be unknown.
- Data and tools: They build CausalToM, with no-visibility and explicit-visibility conditions. The main analysis is on Llama-3-70B-Instruct; they also analyze Qwen2.5-14B-Instruct and Llama-3.1-405B-Instruct. The method is a high-level causal model with interchange interventions, and the metric is IIA.
- Mechanism: The model assigns Ordering IDs to characters, objects, and states. A binding lookback binds the character-object OI to the state OI; an answer lookback then uses the state OI to retrieve the state token. A visibility sentence additionally generates a Visibility ID, which later tokens use to retrieve information about the observed character. The authors say the exact semantics of the visibility payload are not yet determined.
- Layer alignment: On the 80 correctly answered samples, the authors report the answer pointer at layers 34–52 of the final token and the payload after layer 56 (Fig 4); the binding address and payload at layers 33–38 of the state token (Fig 5); and the source at layers 20–34 (Fig 6). The visibility source is at layers 10–23 and the payload after layer 31 (Fig 8). When a pointer is patched in, the output can become a state that is neither the original answer nor the counterfactual answer.
- Behavioral numbers: In Table 1, Meta-Llama-3-70B-Instruct achieves 0.952±0.020 accuracy without visibility and 0.923±0.014 with visibility. The authors say the three selected models all exceed 80% under both conditions.
- Authors' conclusion: The authors argue these interventions support systematic belief tracking and view lookback as a recurring computation in context reasoning. Appendix M reports similar but preliminary evidence on BigToM, and the subspace is not shared with CausalToM.