Enhancing Conversational Agents with Theory of Mind: Aligning Beliefs, Desires, and Intentions for Human-Like Interaction
Mehdi Jafari, Devin Yuncheng Hua, Hao Xue, Flora Salim
TL;DR
The paper investigates whether Theory of Mind (ToM) information is encoded in the internal activations of open-source LLMs and whether explicit ToM manipulation can improve alignment in dialogue. It introduces reading ToM via linear probing and LatentQA, and a ToM-controlled generation mechanism based on a $BDI$-style Belief–Desire–Intention framework to steer outputs. Empirical results across CaSiNo, CraigslistBargain, FanToM, and NegotiationToM show that ToM-informed alignment can enhance response quality, achieving win rates around $67.15\%$ for 3B and $63.25\%$ for 8B models in controllability tasks. The work highlights both the viability and limitations of ToM-based alignment, and points to future integration into real-world, multi-model agents with careful attention to evaluation and ethics.
Abstract
Natural language interaction with agentic Artificial Intelligence (AI), driven by Large Language Models (LLMs), is expected to remain a dominant paradigm in the near future. While humans instinctively align their communication with mental states -- an ability known as Theory of Mind (ToM), current LLM powered systems exhibit significant limitations in this regard. This study examines the extent to which open source language models (LLaMA) can capture and preserve ToM related information and how effectively it contributes to consistent ToM reasoning in generated responses. We further investigate whether explicit manipulation of ToM related components, such as beliefs, desires, and intentions, can enhance response alignment. Experiments on two LLaMA 3 variants demonstrate that incorporating ToM informed alignment improves response quality, achieving win rates of 67 and 63 percent for the 3B and 8B models, respectively. These findings highlight the potential of ToM driven strategies to improve alignment in LLM based conversational agents.
