arXiv:2610.29934cs.AIOct 2026

Manuscript Offprint

arXiv:2610.29934

ToM2Vec: Continuous Theory-of-Mind Tokens for Multi-Agent Coordination

Nithin Sivakumaran, Ali Payani, Hyunji Lee, Mohit Bansal, Elias Stengel-Eskin

Abstract

Forming an accurate theory-of-mind (ToM) is key to successful multi-agent collaboration and requires reasoning under uncertainty to capture multiple possible partner states. This is hard to do in the text representation space native to large language model (LLM) agents, which more easily describe a single partner state. To address this challenge, we introduce ToM2VEC, which learns to form abstract ToMs in a rich latent space via a fixed budget of continuous reasoning tokens. During training, supervision for these tokens comes from the partner's actual thoughts, which the ToM tokens are trained to abstract and match. At test-time, ToM tokens are generated by each agent and act as conditioners for that agent's thoughts and actions. Across several environments covering collaborative, competitive, and mixed-motive settings (Overcooked-AI, multi-party negotiation, Decrypto, Hanabi, and Collab Escape/Capture), we evaluate ToM2VEC's ability to support multi-agent interactions and collaboration, finding consistent improvements over the base model and a variety of competitive trained and prompted baselines. We show that latent reasoning is critical, with performance dropping when reasoning is expressed in text. Moreover, we show that ToM2VEC training generalizes to partner model families not seen at train-time, including a proprietary model (GPT-5.4). In our analysis, we provide evidence that the latent tokens encode a ToM, rather than task-specific information: ToM2VEC's tokens improve the agent's ability to directly answer questions about partner beliefs, desires, and next actions. 1^{1}

1 Introduction

Humans have the ability to coordinate with each other remarkably well, often with little or no explicit communication. For instance, chefs can prepare a meal together, teammates can execute a play, and negotiators can converge on a deal, each anticipating what the other will do and acting accordingly. This capacity for joint action rests on each agent's Theory of Mind (ToM): the ability to model another agent's unobserved mental state based on observed behaviors (Premack and Woodruff, 1978). Large language models (LLMs) are increasingly deployed as agents that must act alongside partner agents (human or AI) in both collaborative and competitive tasks (Duan et al., 2024; Chen et al., 2024; Stengel-Eskin et al., 2024; Kosinski, 2024; Xu et al., 2024; Zhou et al., 2025; Xiao et al., 2026). To succeed in these settings, an agent needs strong working ToM (Bakhtin et al., 2022; Li et al., 2023; Chen et al., 2025a). This ToM allows the agent to infer a partner's goals, beliefs, and likely next actions, enabling it to coordinate with less explicit communication and adapt to a counterpart's strategy on the fly (Baker et al., 2009; Wu et al., 2020).

Making these kinds of inferences can be seen as a form of world modeling directed at another agent (Raileanu et al., 2018; Xie et al., 2021; Yu et al., 2022; Chernyavskiy et al., 2025; Zhang et al., 2025). As in world modeling, it is often important to form an abstract model that can superimpose multiple possibilities, in this case of the partner's intent (Xie et al., 2021; Chernyavskiy et al., 2025). A general sketch of the partner's beliefs and intentions is often sufficient, and excessive fidelity can be inefficient and in fact harmful to the task (Mu et al., 2026); for example, when two chefs have to coordinate in a crowded kitchen, one does not need to predict what the other wants for breakfast tomorrow (which might even be a distraction), but does need to predict if the other needs shared resources.

Given this goal of abstraction, a key challenge for ToM agents lies in building an abstract representation that retains enough information about the partner’s potential future paths to support prediction and planning, while lifting unnecessary details. We argue that natural language is a poor medium

1^{1}Code: https://github.com/nsivaku/tom2vec

Figure

Figure 1: Left: Vanilla LLM agents (using Qwen3-8B) each reason only about their own plan. Both independently conclude they should fetch a dish from the dispenser, producing redundant and conflicting behavior. Middle: Language ToM Agents are able to more frequently consider their partner's next actions, but they often commit to a single line of reasoning without considering other potential paths. Right: Our method TOM2VEC is used to train an agent (blue hat) with stronger ToM capabilities; that agent considers what the untrained partner agent (green hat) is doing before making its own decision.

for this kind of abstraction, as expressing another agent's intent or state linguistically tends to commit the agent to a single estimate of the partner, even when many distinct hypotheses are possible. Instead, we argue that modeling another agent may be more akin to forming a latent world model (LeCun, 2022), where abstractions are formed in the model's latent space rather than its output space (see Figure 1). Latent reasoning paradigms offer precisely this kind of latent-space abstraction as a natural alternative to verbalized reasoning, where latent thought tokens can superimpose several candidate chains-of-thought rather than fixing to one (Hao et al., 2025; Li et al., 2025; Chen et al., 2025b; Shi et al., 2026). Similarly, we argue that a representation of a partner should be able to superimpose multiple hypotheses about the partner's goals and intentions, and that a ToM agent should be able to predict these representations and consider alternatives before committing to a decision.

To this end, we introduce TOM2VEC to directly learn these latent representations of the partner agent. TOM2VEC trains the agent to predict, from its own point-of-view, a fixed number of continuous latent embeddings that abstract over its partner's thoughts; in other words, it teaches the main agent to perform a mind-reading task about its partner. During training, we obtain supervision for these latent embeddings by abstracting a training partner's actual next thoughts into continuous latent tokens to serve as a representation of its reasoning. We train the agent's generated latent embeddings to match the partner's hidden states under a cosine similarity objective (see Figure 2); during training, we use the same model for both agent and partner, as their representation spaces must be shared. At test-time (where partner reasoning is not available) an agent trained with TOM2VEC then generates its own latent thought tokens, intended to capture a ToM about the partner. Interestingly, we show that at test-time, our training generalizes to other partner models, including a closed-source proprietary model that is stronger than the training partner.

We evaluate TOM2VEC across cooperative and competitive tasks, including (1) Overcooked (Carroll et al., 2019), a cooperative cooking environment, (2) multi-party LLM negotiation (Abdelnabi et al., 2024), (3) Decrypto (Lupu et al., 2025), a ToM task where two agents attempt to pass secret messages without being decoded by an interceptor agent, (4) Hanabi (Agashe et al., 2025), a cooperative card game with hidden information, and (5) Collab Escape/Capture (Agashe et al., 2025), two collaborative coordination tasks. Across these domains, TOM2VEC delivers consistent improvements over competitive baselines. Relative to the untrained model (Qwen3-8B), training with TOM2VEC improves the average Overcooked score by 12.0 points and raises negotiation deal success from 62.0% to 71.0%. It also outperforms approaches that prompt agents to consider their partners' intentions or train them to explicitly verbalize their partners’ reasoning, supporting the value of learning latent partner representations. In Overcooked, these benefits extend to unseen partners from different model families: TOM2VEC improves over the base agent by 17.3 points on average with a GPT-5.4 partner and matches or exceeds the base agent with a Gemma-4 partner, despite training only with a Qwen3-8B partner.

Our analysis further examines to what extent ToM2VEC learns representations that capture a partner's evolving beliefs. We directly test whether these representations better support inferences about a partner's beliefs, desires, and next actions (i.e., Baker et al. (2011)'s Bayesian ToM modeling) within a given environment state. We also test whether the latent tokens encode partner-specific reasoning by deliberately corrupting the context used to derive them. Latents derived from the partner's actual context assign lower perplexity to its true reasoning than those derived from an altered layout or an adversarial intent, supporting the interpretation that they capture context-sensitive information about the partner rather than only generic signals useful for coordination. We complement this analysis with additional results in the appendix, showing that ToM2VEC helps in Sally-Anne-style false-belief tests, and that the representations learned by ToM2VEC support belief revision given new evidence.