Language Models Represent Beliefs of Self and Others

Wentao Zhu, Zhining Zhang, Yizhou Wang
2/12/2026

No official code found. Best implementation: Walter0807/RepBelief (37 stars, MIT, last commit 2024-09-26).

Abstract

Understanding and attributing mental states, known as Theory of Mind (ToM), emerges as a fundamental capability for human social reasoning. While Large Language Models (LLMs) appear to possess certain ToM abilities, the mechanisms underlying these capabilities remain elusive. In this study, we discover that it is possible to linearly decode the belief status from the perspectives of various agents through neural activations of language models, indicating the existence of internal representations of self and others' beliefs. By manipulating these representations, we observe dramatic changes in the models' ToM performance, underscoring their pivotal role in the social reasoning process. Additionally, our findings extend to diverse social reasoning tasks that involve different causal inference patterns, suggesting the potential generalizability of these representations.

View on arXivView PDF

Code Implementations(1)

MIT

[ICML 2024] Language Models Represent Beliefs of Self and Others

373Shell, PythonFeb 28, 20242 years agoMIT
icml-2024language-modelsocial-reasoningtheory-of-mind

Similar Papers

Cite this paper

@article{zhu2026language,
  title  = {Language Models Represent Beliefs of Self and Others},
  author = {Wentao Zhu and Zhining Zhang and Yizhou Wang},
  year   = {2026},
  eprint = {2402.18496},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.18496},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.18496.svg)](https://codeofpaper.com/paper/2402.18496)

Discussion