MindGames: Targeting Theory of Mind in Large Language Models with Dynamic Epistemic Modal Logic

Damien Sileo, Antoine Lernould
5/5/2023
cs.CLcs.AI

Official code: sileod/llm-theory-of-mind (21 stars, Apache-2.0, last commit 2023-12-13).

Abstract

Theory of Mind (ToM) is a critical component of intelligence but its assessment remains the subject of heated debates. Prior research applied human ToM assessments to natural language processing models using either human-created standardized tests or rule-based templates. However, these methods primarily focus on simplistic reasoning and require further validation. Here, we leverage dynamic epistemic logic to isolate a particular component of ToM and to generate controlled problems. We also introduce new verbalization techniques to express these problems in English natural language. Our findings indicate that some language model scaling (from 70M to 6B and 350M to 174B) does not consistently yield results better than random chance. While GPT-4 demonstrates superior epistemic reasoning capabilities, there is still room for improvement. Our code and datasets are publicly available (https://huggingface.co/datasets/sileod/mindgames , https://github.com/sileod/llm-theory-of-mind )

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Testing Theory of Mind (ToM) in language models with epistemic logic

214PythonJan 25, 20232 years agoApache-2.0
chatgptdatasetenglishepistemic-logicepistemic-reasoning+15 more

Similar Papers

Cite this paper

@article{sileo2023mindgames,
  title  = {MindGames: Targeting Theory of Mind in Large Language Models with Dynamic Epistemic Modal Logic},
  author = {Damien Sileo and Antoine Lernould},
  year   = {2023},
  eprint = {2305.03353},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.03353v2}
}

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

Discussion