Probing the Robustness of Theory of Mind in Large Language Models

Christian Nickel, Laura Schrewe, Lucie Flek

TL;DR

This paper introduces a new benchmark dataset to rigorously test the "Theory of Mind" (ToM) capabilities of large language models (LLMs) by systematically varying task complexity. The findings reveal that current state-of-the-art LLMs exhibit only limited ToM abilities, struggling particularly with tasks involving automatic state changes and prepositional reasoning, suggesting they may rely more on linguistic patterns than genuine understanding.

What Problem Does This Paper Address?

Recent advancements in LLMs like ChatGPT have led to claims of emergent social reasoning abilities, specifically Theory of Mind (ToM) – the capacity to understand others' mental states (beliefs, intentions, desires). While some studies (like Kosinski, 2023) show promising results on standard ToM tasks, others (like Ullman, 2023) demonstrate that these capabilities quickly disappear when tasks are slightly modified. This raises a crucial question: do LLMs truly possess ToM, or are they merely good at pattern matching on specific datasets? The authors aim to address this by creating a more robust evaluation framework that probes LLM performance across a spectrum of task complexities, identifying specific weaknesses and offering insights into how to improve these capabilities.

Methods

The core of this research lies in the creation of a novel dataset designed to systematically evaluate ToM in LLMs. The authors manually crafted 68 tasks, each representing a "scenery" with multiple "scenes" (sub-tasks). These tasks are categorized into 10 complexity classes, building upon existing work and introducing new ones. For each task, they not only provide the scenario and questions but also the expected "final belief" of the agent in JSON format. This structured output format is designed for machine evaluation. They then evaluated four state-of-the-art open-source LLMs (Llama-2-70b-chat-hf, Vicuna-33b-v1.3, Mixtral-8x7B-Instruct-v0.1, and Yi-34B-Chat) on their new dataset and a previously established one (Kosinski, 2023). Evaluation metrics include "turn accuracy" (correctness of individual answers) and "goal accuracy" (correctness across all scenes within a single scenery).

Datasets

  • Newly Introduced Dataset: A novel benchmark dataset comprising 68 tasks (scenarios) with 16 scenes each, totaling 1088 scenes. These tasks are manually crafted and assigned to 10 complexity classes. The dataset includes "unexpected content" and "unexpected transfer" tasks.
  • Existing Dataset: The dataset introduced by Kosinski (2023) was also used for comparative evaluation.

Key Insights and Ideas

  • LLMs struggle with robust ToM: Despite impressive performance on simple tasks, current LLMs demonstrate a limited and fragile understanding of Theory of Mind.
  • Complexity matters: The introduction of specific complications significantly degrades LLM performance, highlighting their brittleness.
  • "Automatic change knowledge" is a major hurdle: Tasks requiring the realization of automatic, protagonist-independent state changes in the environment are particularly challenging for all tested models.
  • Linguistic patterns vs. true understanding: The low goal accuracy across complex tasks suggests that LLMs might be exploiting linguistic cues rather than developing a genuine mental model of agents.
  • Model size isn't everything: While larger models generally perform better, the difference in performance between models of similar size (e.g., Llama-2-70B and Yi-34B-Chat) suggests that architecture and training data play a crucial role beyond just parameter count.

Key Results

  • Overall Low Goal Accuracy: Across all four evaluated LLMs, goal accuracy (requiring all scenes in a scenery to be answered correctly) was consistently very low, often near zero, indicating a lack of robust ToM.
  • Turn Accuracy Varies: Turn accuracy (individual answer correctness) was significantly higher, with Llama-2-70B achieving the best overall performance at 73.71%.
  • Specific Weaknesses:
    • The "automatic change knowledge" complexity class showed the lowest turn accuracy across all models (e.g., 53.75% for Llama-2-70B).
  • "Preposition replacement" tasks also led to a performance drop, especially for the Mixtral-8x7B model.
  • Comparison to Baseline: All models performed better than a coin-toss baseline for turn accuracy. For goal accuracy, Llama-2-70B and Yi-34B-Chat showed some success (4.41%), while Vicuna-33b had 0% and Mixtral-8x7B had 1.47%.

Limitations and Future Work

  • Model Selection: The authors acknowledge that their selection of models, while state-of-the-art, might not be as large as those evaluated in previous studies (e.g., GPT-3.5/4), which could explain why they didn't observe higher goal accuracy. Future work should involve evaluating even larger models.
  • Dataset Contamination: The risk of LLMs being trained on internet data that might have inadvertently included similar task structures or answers is a concern. The authors' manually crafted dataset aims to mitigate this for future evaluations.
  • Prompting Strategies: The paper suggests that Chain-of-Thought (CoT) prompting could be a promising avenue to improve performance, particularly for challenging classes like "automatic change knowledge." Further experimentation with various prompting techniques is recommended.
  • Fine-grained Analysis: With the current low goal accuracy, it's difficult to draw definitive conclusions about the relative difficulty of different complexity classes. Achieving higher goal accuracy would enable a more nuanced understanding.

Summary updated

Abstract

With the success of ChatGPT and other similarly sized SotA LLMs, claims of emergent human like social reasoning capabilities, especially Theory of Mind (ToM), in these models have appeared in the scientific literature. On the one hand those ToM-capabilities have been successfully tested using tasks styled similar to those used in psychology (Kosinski, 2023). On the other hand, follow up studies showed that those capabilities vanished when the tasks were slightly altered (Ullman, 2023). In this work we introduce a novel dataset of 68 tasks for probing ToM in LLMs, including potentially challenging variations which are assigned to 10 complexity classes. This way it is providing novel insights into the challenges LLMs face with those task variations. We evaluate the ToM performance of four SotA open source LLMs on our dataset and the dataset introduced by (Kosinski, 2023). The overall low goal accuracy across all evaluated models indicates only a limited degree of ToM capabilities. The LLMs' performance on simple complexity class tasks from both datasets are similar. Whereas we find a consistent tendency in all tested LLMs to perform poorly on tasks that require the realization that an agent has knowledge of automatic state changes in its environment, even when those are spelled out to the model. For task complications that change the relationship between objects by replacing prepositions, we notice a performance drop in all models, with the strongest impact on the mixture-of-experts model. With our dataset of tasks grouped by complexity we offer directions for further research on how to stabilize and advance ToM capabilities in LLM.
BibTeX
@inproceedings{nickel2024probing,
  author = {Christian Nickel and Laura Schrewe and Lucie Flek},
  title = {{Probing the Robustness of Theory of Mind in Large Language Models}},
  booktitle = {WiNLP @ EMNLP},
  year = {2024},
  url = {https://openreview.net/forum?id=X8Mdv9qLOS},
}
Figure