Abstract
Recent studies have increasingly demonstrated that large language models (LLMs) possess significant theory of mind (ToM) capabilities, showing the potential for simulating the tracking of mental states in generative agents. In this study, we propose a novel paradigm called ToM-agent, designed to empower LLMs-based generative agents to simulate ToM in open-domain conversational interactions. ToM-agent disentangles the confidence from mental states, facilitating the emulation of an agent's perception of its counterpart's mental states, such as beliefs, desires, and intentions (BDIs). Using past conversation history and verbal reflections, ToM-Agent can dynamically adjust counterparts' inferred BDIs, along with related confidence levels. We further put forth a counterfactual intervention method that reflects on the gap between the predicted responses of counterparts and their real utterances, thereby enhancing the efficiency of reflection. Leveraging empathetic and persuasion dialogue datasets, we assess the advantages of implementing the ToM-agent with downstream tasks, as well as its performance in both the first-order and the second-order ToM. Our findings indicate that the ToM-agent can grasp the underlying reasons for their counterpart's behaviors beyond mere semantic-emotional supporting or decision-making based on common sense, providing new insights for studying large-scale LLMs-based simulation of human social behaviors.
Introduction
While Large Language Models (LLMs) excel at generating fluent text, they often struggle to maintain long-term, coherent social interactions in generative agent roles. A primary reason is the lack of a robust Theory of Mind (ToM)—the human ability to attribute mental states, such as beliefs or goals, to others. Standard LLM agents frequently treat conversation as simple information exchange, failing to grasp the underlying motivations that drive behavior in high-stakes social interactions like persuasion or emotional support.
To bridge this gap, researchers have introduced ToM-agent, a framework that enables agents to track the mental states of their partners using the Belief-Desire-Intention (BDI) model. By implementing a "counterfactual reflection" loop, these agents can achieve more efficient and empathetic interactions by asking, "What if my assumption about my partner was wrong?"
The ToM-agent Paradigm
The ToM-agent framework consists of three core components designed to simulate human-like social intuition:
- BDI Framework: The agent tracks three distinct mental states: Beliefs (what is thought to be true), Desires (what is wanted), and Intentions (what is planned).
- Disentangled Confidence: Unlike binary models, ToM-agent separates the content of a belief from its confidence level, allowing agents to model social uncertainty and update their views incrementally.
- Counterfactual Reflection (CR): This is the system's "secret sauce." In each turn, the agent predicts how its counterpart will respond based on current BDI inferences. When the counterpart actually speaks, the agent measures the gap between prediction and reality. If a significant gap exists, the agent performs a counterfactual "What if?" analysis to update its BDI model and confidence scores.
Experimental Evaluation
The researchers evaluated ToM-agent using two distinct dialogue datasets: Empathetic Dialogue (emotional support scenarios) and Persuasion Dialogue (charity donation interactions). The study compared ToM-agent against "Vanilla" BDI tracking and baseline LLMs (GPT-3.5 and GPT-4) without ToM.
Key Results
- Improved Efficiency: ToM-agents reached conversation conclusions faster. On the Empathetic dataset using GPT-4, the ToM-agent reduced the average turns from 6.53 (baseline) to 5.80.
- Higher Success Rates: ToM-agents were more likely to satisfy emotional needs or persuasive goals. In the Persuasion task, GPT-4 with ToM + CR achieved a success rate of 0.55 compared to 0.45 for the baseline.
- Inference Accuracy: As shown in the performance data, the addition of Counterfactual Reflection (CR) significantly improved the precision and recall of BDI tracking, particularly for GPT-4 models.
Discussion and Future Work
The ToM-agent demonstrates that modeling confidence as a dynamic variable and utilizing predictive foresight allows LLMs to move beyond generic "common sense" responses toward personalized social reasoning. However, challenges remain regarding the high computational cost and latency of GPT-4-based reflection. Future work may explore extending this framework to multi-agent group dynamics and integrating multimodal data, such as facial expressions and vocal tone, to further refine mental state estimation.
Summary updated