Unveiling Theory of Mind in Large Language Models: A Parallel to Single Neurons in the Human Brain

Mohsen Jamali, Ziv M. Williams, Jing Cai
9/4/2023
cs.CLcs.AI

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

With their recent development, large language models (LLMs) have been found to exhibit a certain level of Theory of Mind (ToM), a complex cognitive capacity that is related to our conscious mind and that allows us to infer another's beliefs and perspective. While human ToM capabilities are believed to derive from the neural activity of a broadly interconnected brain network, including that of dorsal medial prefrontal cortex (dmPFC) neurons, the precise processes underlying LLM's capacity for ToM or their similarities with that of humans remains largely unknown. In this study, we drew inspiration from the dmPFC neurons subserving human ToM and employed a similar methodology to examine whether LLMs exhibit comparable characteristics. Surprisingly, our analysis revealed a striking resemblance between the two, as hidden embeddings (artificial neurons) within LLMs started to exhibit significant responsiveness to either true- or false-belief trials, suggesting their ability to represent another's perspective. These artificial embedding responses were closely correlated with the LLMs' performance during the ToM tasks, a property that was dependent on the size of the models. Further, the other's beliefs could be accurately decoded using the entire embeddings, indicating the presence of the embeddings' ToM capability at the population level. Together, our findings revealed an emergent property of LLMs' embeddings that modified their activities in response to ToM features, offering initial evidence of a parallel between the artificial model and neurons in the human brain.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jamali2023unveiling,
  title  = {Unveiling Theory of Mind in Large Language Models: A Parallel to Single Neurons in the Human Brain},
  author = {Mohsen Jamali and Ziv M. Williams and Jing Cai},
  year   = {2023},
  eprint = {2309.01660},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.01660v1}
}

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/2309.01660.svg)](https://codeofpaper.com/paper/2309.01660)

Discussion