NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Language Models Represent Beliefs of Self and Others

Wentao Zhu, Zhining Zhang, Yizhou Wang

Large Language Models (LLMs) frequently pass Theory of Mind (ToM) benchmarks—tests designed to measure the ability to attribute mental states, such as beliefs and intentions, to oneself and others. However, a persistent debate remains: are these models merely "Stochastic Parrots" mimicking surface-level patterns, or do they maintain a genuine internal model of an agent's mind? This research investigates the internal mechanics of models like Mistral-7B to determine if they possess explicit, linearly decodable representations of social contexts.

The Challenge of Social Intelligence

Theory of Mind is a cornerstone of human social interaction, particularly the ability to navigate "False Belief" scenarios. In these scenarios, a character (the Protagonist) holds a belief that contradicts the actual state of the world (the Oracle view). To succeed, an observer must track both the truth and the character's ignorance.

The authors of this study sought to identify whether LLMs distinguish between these two perspectives internally. Specifically, they asked: Is there a localized representation of what the model "knows" to be true versus what it "believes" a character thinks?

Methodology: Probing the Latent Space

To uncover these internal states, the researchers employed a multi-step interpretability and intervention framework:

  1. Linear and Multinomial Probing: The team trained logistic regression classifiers (probes) on the activations of self-attention heads. These probes were designed to predict the belief status of both the Oracle and the Protagonist. Multinomial probing allowed them to identify heads representing the joint status of both perspectives (e.g., "The Oracle knows X, but the Protagonist believes Y").
  2. Inference-Time Intervention (ITI): After identifying the most informative attention heads, the researchers used ITI to steer the model's activations along discovered "belief directions" during text generation. This allowed them to test if manipulating these internal representations could directly improve performance.
  3. Gradient Analysis: Using backpropagation, the authors created token gradient heatmaps to localize which parts of a narrative (such as percepts or desires) the model’s internal representations were attending to.

Key Insights: The "Oracle" Bias and Linear Minds

The study yielded several critical insights into how LLMs process social information:

  • Linear Separability: Mental states are not nebulous properties of the entire network; they are represented linearly in the model's latent space. These "belief directions" are found primarily in the middle layers of the model.
  • The Oracle Bias: One of the most significant findings was the discovery of an "Oracle Bias." Models naturally maintain much stronger representations of the truth than of a character's perspective. This explains why LLMs often fail False Belief tests; their internal knowledge of the truth effectively overpowers their representation of the character's ignorance.
  • Causal Grounding: These internal representations are tightly coupled with causal variables in the text, such as what a character "sees" or "wants," suggesting the model is tracking the narrative's logic rather than just word frequencies.

Results and Generalization

The interventions produced substantial improvements in model performance. By steering Mistral-7B along the identified belief directions, the researchers improved its accuracy on False Belief tasks within the BigToM benchmark from 33% to 66%.

Importantly, these findings were not limited to a single dataset. The "belief directions" identified using BigToM templates successfully generalized to the ToMi benchmark, improving performance from 63.8% to 71.0%. Furthermore, these interventions were found to be modular; they improved social reasoning without degrading the model's general capabilities on benchmarks like MMLU or CoLA.

Conclusion

This research provides compelling evidence that LLMs develop structured internal representations of mental states. By demonstrating that these states can be decoded, localized, and steered, the study moves the conversation beyond the "Stochastic Parrot" metaphor. While current models exhibit a natural bias toward the truth, the ability to identify and amplify the "Protagonist" perspective offers a promising path toward more sophisticated and socially aware artificial intelligence.

Summary updated

BibTeX
@inproceedings{zhu2024language,
  author = {Wentao Zhu and Zhining Zhang and Yizhou Wang},
  title = {{Language Models Represent Beliefs of Self and Others}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=asJTE8EBjg},
}
Figure