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

Damien Sileo, Antoine Lernould

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.

Introduction

Theory of Mind (ToM)—the cognitive ability to attribute mental states like beliefs and intentions to others—is a hallmark of human intelligence. While Large Language Models (LLMs) often appear to possess this trait, evaluating it rigorously is challenging. Traditional benchmarks, such as the "Sally-Anne" task, are often too simple or may have been memorized during training. Furthermore, existing assessments frequently fail to capture higher-order beliefs: reasoning about what one person knows about another person's knowledge.

To address these gaps, we introduce MindGames, a benchmark designed to test complex, multi-layered social reasoning using formal logic. By moving beyond simplistic scenarios, MindGames aims to determine if LLMs truly reason about mental states or merely rely on surface-level patterns.

Methodology

We utilize Dynamic Epistemic Logic (DEL) to procedurally generate logic puzzles. DEL provides a formal framework for modeling how information changes as agents receive public announcements. Our approach involves:

  1. Formal Modeling: Defining agents and predicates (e.g., "Alice has mud on her head") and establishing "observabilities" (who can see what).
  2. Public Announcements: Introducing sequences of statements that allow agents to narrow down possibilities through deduction.
  3. Natural Language Verbalization: Transforming abstract logic into readable English stories using templates.

The resulting MindGames dataset includes 400 test cases per setup, balanced between True and False labels. The setups include:

  • Forehead-mud: Based on the classic "Muddy Children" puzzle.
  • Thirst setup: Reasoning about internal states.
  • Explicit setup: Scenarios where visibility is explicitly defined (e.g., card-drawing).
  • Forehead-mud-mirror: A variation where a mirror alters the observability matrix.

Performance was benchmarked against a human baseline, where researchers achieved an average accuracy of 94%.

Key Results

Our evaluation reveals that scaling model size is not a guaranteed path to improved Theory of Mind. Across the Pythia (70M to 6.9B) and GPT-3 (350M to 174B) families, most models performed near random chance (50%) in zero-shot scenarios.

Performance of Pythia models across different MindGames setups compared to human performance.

As shown in Figure 4, Pythia models show only marginal improvements with few-shot prompting (5-shot), while zero-shot performance remains flat near the 0.5 baseline. Similarly, GPT-3 models (Figure 5) do not exhibit a clear scaling trend, even with few-shot examples.

Performance of GPT-3 models across different MindGames setups compared to human performance.

While GPT-4 showed a qualitative leap, reaching approximately 70% accuracy on a sampled subset, it still struggled with the most difficult higher-order reasoning tasks. Models often fell into the "Know Whether" vs. "Know That" trap, failing to distinguish between knowing if a fact is true versus knowing that it is true.

Discussion and Conclusion

The MindGames benchmark suggests that "emergent" Theory of Mind in LLMs may be brittle. When faced with novel templates and formal logic, the reasoning capabilities of even the largest models often vanish.

Current limitations include a reliance on specific English templates and a complexity ceiling (limited to three agents and second-order beliefs). Future work will explore more diverse linguistic structures and higher-order logic. Ultimately, while LLMs are becoming more proficient at simulating social intelligence, reliably navigating the "I know that you know" complexities of human interaction remains a significant challenge for AI.

Summary updated

BibTeX
@inproceedings{sileo2023mindgames,
  author = {Damien Sileo and Antoine Lernould},
  title = {{MindGames: Targeting Theory of Mind in Large Language Models with Dynamic Epistemic Modal Logic}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=jcqBLHFcYA},
}
Figure