TL;DR
This paper introduces ToMAgent (TOMA), a look-ahead training framework that equips LLM agents with explicit Theory of Mind (ToM) capabilities. By generating multiple mental state hypotheses and simulating future dialogue trajectories, TOMA learns to balance goal achievement with relationship preservation, outperforming standard baselines in complex social scenarios.
What Problem Does This Paper Address?
While Large Language Models (LLMs) excel at general reasoning tasks, they often struggle in interactive social environments where success requires understanding a partner's hidden beliefs, desires, and intentions. Current approaches either evaluate ToM capabilities using static question-answering benchmarks (treating the LLM as a passive observer) or train conversational agents to optimize utterances directly, which frequently leads to repetitive arguments or a breakdown in interpersonal relationships.
To bridge this gap, the authors address a core question: How can we equip LLM agents with explicit Theory of Mind reasoning that actively improves their goal-oriented social performance while maintaining positive relationships?
Methods
The authors propose TOMA, a training framework that pairs explicit mental state modeling with short-horizon dialogue look-ahead to generate high-quality fine-tuning data.
The pipeline operates in four main stages:
- Context Sampling: Social scenarios, private agent goals, and partial conversation histories are sampled to seed the interaction.
- Hypothesis Generation: Conditioned on the history, the target agent generates $K$ distinct mental state hypotheses covering at least three ToM dimensions (beliefs, desires, intentions, emotions, knowledge). For each hypothesis, it samples $J$ candidate utterances.
- Look-Ahead Simulation & Scoring: The agent simulates the remaining dialogue up to four turns into the future against a partner model. An LLM judge scores the complete trajectory based on goal achievement for both agents.
- Joint Fine-Tuning: Trajectories scoring above a high threshold are collected. The target LLM is then fine-tuned using Low-Rank Adaptation (LoRA) on two distinct tasks: predicting the optimal latent mental state given the context, and predicting the next utterance given both the context and the mental state.
Datasets
The framework utilizes the Sotopia ecosystem:
- Sotopia-Pi: Used to sample diverse social scenarios, agent profiles, and goals to seed the look-ahead simulations during the training data collection phase.
- Sotopia-Eval: Used for evaluation, consisting of the all split (90 scenarios, 450 testing instances) and the hard split (14 highly challenging scenarios, 70 testing instances) featuring complex social interactions like negotiation, persuasion, and conflict resolution.
Key Insights and Ideas
- Long-Horizon Adaptation: Standard base LLMs tend to repeat the same arguments over long conversations, causing their performance to degrade over time. TOMA exhibits true adaptivity; its goal completion scores consistently improve as the turn limit increases, demonstrating effective long-horizon planning.
- Intentions Over Emotions: When analyzing the generated mental states, TOMA naturally prioritizes predicting the intentions of the partner agent over merely tracking their emotions. This shift shifts the agent's behavior away from passive rapport-building and toward strategic, solution-oriented compromises.
- First-Order Beliefs Matter: TOMA consistently generates more first-order mental states (e.g., "What Agent A thinks Agent B believes") than baseline models, indicating a deeper, more active inference of the partner's internal state.
Key Results
TOMA demonstrated substantial performance gains across multiple backbone models (Qwen2.5-3B, Qwen2.5-7B, and LLaMA3.1-8B) when evaluated by an LLM-as-a-judge (GPT-5-mini):
- Overall Performance Lift: TOMA achieved average score improvements of up to 18.9% for Qwen2.5-3B and 6.9% for Qwen2.5-7B compared to the best base model variant utilizing mental state prompting (Base+MS).
- Competitive with Larger Models: TOMA agents built on smaller architectures performed competitively against a strong GPT-5-nano baseline on the hard split, significantly outperforming it on the relationship preservation metric.
- Win-Win Dynamics: When paired with various partner model sizes, TOMA target agents improved not only their own goal scores but also those of their partners, proving that explicit ToM modeling fosters mutually agreeable outcomes.
Limitations and Future Work
The authors highlight a few key limitations and areas for future exploration:
- Subjectivity of Mental States: Human mental states are inherently subjective, meaning there is no single "ground truth" internal state to recover. TOMA defines "useful" states purely by their downstream utility in achieving goals.
- LLM Judge Biases: The evaluation relies heavily on LLM-as-a-judge protocols. While the authors mitigated this by correlating results across four different LLM judges (GPT-5, Gemini, DeepSeek, Qwen) and human validation, subtle multi-turn social nuances may still be missed.
- Ethical Risks: Advanced social intelligence and ToM capabilities could potentially be exploited for malicious manipulation, deception, or targeted scams if deployed irresponsibly. The authors advocate for clear AI identification to mitigate these risks.
Summary updated