ToM2Vec: continuous theory-of-mind tokens for multi-agent collaborationToM2Vec: Continuous Theory-of-Mind Tokens for Multi-Agent Coordination
The authors propose T O M2V EC, using continuous latent tokens to let a Qwen3-8B agent model a partner's mind; the authors state that it outperforms baselines on five multi-agent tasks including Overcooked.
- Multi-agent collaboration requires theory of mind (ToM), but the authors argue that natural-language reasoning tends to lock the partner state onto a single estimate and struggles to retain multiple possibilities simultaneously.
- T O M2V EC has the agent generate K=10 continuous latent tokens during self-play, aligned via cosine similarity to the hidden states of the partner's true reasoning; at test time these tokens condition subsequent reasoning and actions.
- On five tasks—Overcooked, negotiation, Decrypto, Hanabi, and Collab Escape/Capture—the authors report that T O M2V EC outperforms the untrained model and various prompting/training baselines, and transfers to unseen GPT-5.4 and Gemma-4 partners.
- The authors note that training requires access to partners' CoT, requires both parties to share a representation space, and requires a training phase; the experiments use only English tasks, and the main model tested is only Qwen3-8B.
- Evaluated models
- Qwen3-8B
- Benchmarks
- Overcooked-AImulti-party multi-issue negotiationDecryptoHanabiCollab Escape/Capture
- Metrics
- mean episode scoredeal-success ratedecoder/interceptor win rateHanabi scorecapture/escape success rateBayesian ToM probe accuracyperplexity
Researchers propose ToM2Vec, which uses a fixed budget of continuous reasoning tokens to let LLM agents learn abstract representations of partners' mental states in order to improve multi-agent collaboration. During training, the supervision signal for these tokens comes from the partners' true thoughts, and the goal is for the ToM tokens to abstract and match these thoughts; at test time, each agent generates ToM tokens as conditioning for its thinking and actions. The authors evaluate in collaborative, competitive and mixed-motive environments including Overcooked-AI, multi-party negotiation, Decrypto, Hanabi and Collab Escape/Capture, and report consistent improvements over base models and multiple training and prompting baselines, and find that performance decreases when reasoning is expressed in text space. The authors report that training generalizes to partner model families not seen during training, including the closed-source model GPT-5.4; analysis shows these tokens improve agents' ability to directly answer questions about partners' beliefs, desires and next actions.
Paper analysis
What problem does this paper attempt to solve?
The authors argue that textual reasoning struggles to express the multiple possibilities of a partner's mind, and propose learning an abstract ToM of the partner using continuous latent tokens.
Core question: how to enable LLM agents, in multi-agent collaboration and competition, to form a theory of mind (ToM) that simultaneously retains multiple hypotheses about partner states.
- Problem setting: The authors note that LLM agents increasingly interact with human or AI partners in collaborative and competitive tasks, and need to infer partners' goals, beliefs, and next actions in order to reduce explicit communication and adapt to partners' strategies on the fly.
- Shortcomings of existing methods: The authors argue that natural language is a poor medium for this abstraction—expressing partner intent in language locks the agent onto a single estimate even when multiple distinct hypotheses exist; in Figure 1 the authors show that a Vanilla LLM agent (Qwen3-8B) rarely considers the partner's next step and produces redundant conflicting actions, while a Language ToM agent easily gets stuck on a single partner trajectory.
- Core observation: The authors argue that modeling others is more akin to forming a latent world model in the model's latent space (rather than output space); the latent reasoning paradigm allows latent thought tokens to stack multiple candidate chains of thought rather than fixing on one.
- What the paper proposes: The authors propose T O M2V EC, which trains an agent to predict a fixed number of continuous latent embeddings from its own perspective to abstract the partner's thoughts; training supervision comes from the hidden states of the partner's true next-step thoughts, and at test time these latent tokens condition the agent's reasoning and actions. The authors evaluate on five environments—Overcooked-AI, multi-party negotiation, Decrypto, Hanabi, and Collab Escape/Capture—and analyze whether the latent tokens encode the partner's beliefs, desires, and next actions.
What related research exists?
Related work falls into two categories: ToM for LLM agents (prompting, symbolic structure, training) and latent reasoning tokens; the authors state this is the first work to use latent reasoning to model others.
Theory of mind in LLM agents
- Inference-time prompting and decomposition: perspective-taking prompts of Moghaddam and Honey (2023) and Wilf et al. (2024), and methods that decompose inference into subproblems by Jung et al. (2024), Hou et al. (2024), and Sarangi et al. (2025).
- Explicit symbolic belief tracking: Sclar et al. (2023), Xu et al. (2025a), and Tang and Belle (2024) add explicit symbolic belief-tracking structures to models.
- Trained ToM: Sclar et al. (2025) and Hwang et al. (2025) improve LLM ToM through training. The authors state that, unlike these works, T O M2V EC directly supervises the learning of latent partner representations in self-play.
Latent reasoning tokens
- Coconut and follow-ups: Coconut of Hao et al. (2025) uses the last-layer hidden state as the next-step input embedding, so that a single step can support multiple candidate continuations; Shen et al. (2025), Wu et al. (2025), and Su et al. (2025) adjust how latent thoughts are trained.
- Soft tokens and continuous CoT: Xu et al. (2025b,c) freeze the model to generate soft tokens projected into representation space, and Zhang et al. (2026) use probability-weighted embeddings; Gozeten et al. (2025) state that continuous CoT is more conducive to parallel exploration than discrete CoT. The authors state that this paper builds on these latent reasoning training works, and state that T O M2V EC is, to their knowledge, the first work to apply this paradigm to modeling other agents, which brings new challenges such as partial observability.
Baselines and benchmarks
- Comparison baselines: Untrained Base Model, Prompted ToM, Language ToM Training, Self-Consistency (Wang et al., 2023), SimToM (Wilf et al., 2024), Adaptive ToM (Mu et al., 2026), and an Oracle Partner upper bound with access to the partner's true private thoughts.
- Evaluation benchmarks: Overcooked-AI (Carroll et al., 2019), multi-party multi-issue negotiation (Abdelnabi et al., 2024), Decrypto (Lupu et al., 2025), Hanabi and Collab Escape/Capture (both from the LLM Coordination benchmark of Agashe et al., 2025).
The authors position this paper as: unlike inference-time prompting or textualized ToM training, T O M2V EC learns partner representations in latent space, which the authors state better preserves multiple partner hypotheses.
How does the paper address this problem?
T O M2V EC uses self-play to let agents generate K=10 continuous latent tokens, aligns them with the hidden states of partners' real reasoning via cosine similarity, and uses them as reasoning conditions at test time.
Overall idea: train an agent to perform a "mind-reading" task from its own perspective—predicting a set of continuous latent embeddings to abstract the partner's thoughts, with the training signal coming from the hidden states of the partner's true reasoning, and at test time these latent tokens condition the agent's subsequent reasoning and actions. The method is named T O M2V EC.
Problem formulation
- Dec-POMDP: The task is formalized as a decentralized partially observable Markov decision process, with an agent set, states, actions, observations, shared reward, and horizon H; the shared-reward assumption applies only to collaborative tasks, not competitive ones.
- Main agent and partner: The main agent M models the partner P; both are initialized from the same base language model B, and the trainable main model is denoted Bθ; each agent sees only its own action history and the observations permitted by its role.
Generation of latent ToM tokens
- K-step latent reasoning: Bθ predicts a fixed budget of K continuous latent vectors from its own context cM: ẑt = LatentK(Bθ; cM); following Hao et al. (2025) and Shen et al. (2025), each step feeds the last-layer hidden state as the next input embedding rather than decoding to the vocabulary.
- Purpose: These latent ToM tokens are intended to summarize the partner's possible reasoning based on the information observable to the main agent.
Self-play supervision and training objective
- Target construction: The partner generates a full reasoning sequence from its context, split by sentence delimiters with each token's hidden state saved; after keeping the first and last positions, the sentences are divided evenly into K−2 blocks, and the hidden state of the center token of each block plus the hidden states of the first and last tokens give K target latent tokens.
- Training objective: ℒToM = 1 − 1/K∑k=1K cos(ẑt,k, zt,k), i.e., a position-wise cosine alignment loss between the K latent tokens predicted by the main agent and the partner's target tokens. The authors state this is the only training signal of T O M2V EC and that task reward is not directly optimized; in practice K = 10.
- Shared representation space: During training the main agent and partner use the same model, because their representation spaces must be shared.
Inference
- Test-time procedure: Partner information is unavailable; the agent first outputs K latent ToM tokens from its own context alone, then incorporates them into the context to condition subsequent reasoning and actions: (rtM, atM) ∼ Bθ(· ∣ ctM; ẑt).
- Training details (Appendix A): Qwen3-8B uses HuggingFace default generation configuration (temperature 1.0, top_p 0.95, top_k 20, presence_penalty 1.5), AdamW optimizer, learning rate 10⁻⁶, batch size 4, single-step gradient accumulation; vLLM inference, GPU memory utilization 0.90.
Training data construction (Appendix B)
- Overcooked: 4000 input game states collected via self-play with random agents.
- Negotiation: 500 new negotiation settings generated with GPT-5.4 using the generation prompts of Abdelnabi et al. (2024), taking all rounds except the last of each game as samples, with an 80/20 train/validation split.
- Decrypto: 1000 random keyword sets for training (using both decoder and interceptor roles), and another 1000 sets for evaluation; Hanabi trained on 4000 random game states; Collab Escape/Capture each trained on 4000 input states.
What experiments did the paper conduct?
On five tasks T O M2V EC outperforms untrained Qwen3-8B and various baselines; the authors report that most Overcooked comparisons are statistically significant, while none of the negotiation comparisons reach significance.
Experimental setup
- Models tested: The main agent is Qwen3-8B (trained via self-play throughout); for test partner generalization, unseen Gemma-4-E4B and GPT-5.4 are used as partners (GPT-5.4 set to reasoning effort high and verbosity medium).
- Benchmarks and scale: Overcooked-AI three layouts (Cramped Room, Asymmetric Advantages, Coordination Ring) with 30 seeds each; negotiation 100 games; Decrypto 1000 samples; Hanabi 100 seeds; Collab Capture 6 seeds, Collab Escape 12 seeds.
- Baselines: Untrained, Prompted ToM, Language ToM Training, Self-Consistency (sample 3 reasoning chains and take the majority), SimToM, Adaptive ToM, Oracle Partner (upper bound, with access to the partner's true private thoughts).
- Metrics: Overcooked average episode score; negotiation deal rate (at least 5/6 parties agree), own score and collective score; Decrypto decoder/interceptor win rate; Hanabi score (maximum 25); Collab capture/escape success rate and average number of turns.
- Statistical tests: Overcooked uses paired t-tests over 30 matched seeds; negotiation and Decrypto use two-sided McNemar tests; Hanabi uses paired t-tests over 100 seeds; threshold p < 0.05.
Main results
According to Table 1 (Overcooked, Qwen3-8B, 30 seeds, average episode score):
Swipe horizontally to read the table
Method CrR AA CoR Average Untrained 90.0±1.86 91.3±3.28 102.7±1.26 94.7 Prompted ToM 86.7±1.75 96.0±3.64 106.7±1.75 96.4 Language ToM 92.0±2.81 98.7±0.93 102.0±1.11 97.6 Self-Consistency 91.3±3.28 97.3±1.26 107.3±1.79 98.7 SimToM 90.7±1.85 94.0±1.70 105.3±1.64 96.7 Adaptive ToM 92.7±1.79 102.7±0.93 101.3±2.34 98.9 Oracle Partner† 110±2.29 118±1.38 125±1.99 117.7 T O M2V EC 98.0±2.22 107.7±2.08 114.3±2.66 106.7 Other tasks (Tables 2–5):
Swipe horizontally to read the table
Task Metric Untrained Strongest baseline T O M2V EC Negotiation (Table 2) Deal rate / own score 62.0 / 59.2 68.0 / 62.1 (Prompted ToM / SimToM) 71.0 / 65.6 Decrypto (Table 3) Decoder win rate / interceptor win rate 10.4% / 87.4% 13.6% / 93.0% (Language ToM) 14.8% / 93.5% Hanabi (Table 4) Score (maximum 25) 8.9 10.6 (Language ToM) 11.3 Collab Capture (Table 5) Capture rate / average turns 0.67 / 5.00 1.00 / 4.76 (Prompted ToM) 1.00 / 4.32 Collab Escape (Table 5) Escape rate / average turns 0.75 / 8.00 0.92 / 7.80 (SimToM) 0.92 / 8.00 - The authors state that T O M2V EC scores 12.0 points higher than the untrained model on the Overcooked average and is statistically significant against almost all baselines (Appendix C: 16 of 18 comparisons p < 0.05, the exceptions being against Self-Consistency and Adaptive ToM on Cramped Room).
- The authors state that Oracle Partner scores 23.0 points above the base model, indicating the value of partner information is large, but prompting methods improve by only 1.7 points on average and actually decrease on Cramped Room, highlighting the benefit of training.
- The authors state that Language ToM training recovers only a small part of the benefit, scoring 0.7 points below the base model on Coordination Ring and dropping 10 percentage points on Collab Escape, whereas T O M2V EC improves by 11.6 points and 16 percentage points respectively.
Partner generalization
- What was tested: T O M2V EC is trained only via self-play with a Qwen3-8B partner, and at test time is switched to unseen partners (Table 6, 20 seeds).
- Results: With a GPT-5.4 partner, T O M2V EC scores 152/214/188 across the three layouts versus 135/193/174 for the base model, which the authors state is 17.3 points higher on average; with a Gemma-4 partner it scores 68/105/94 versus 65/90/87 for the base model, which the authors state is a smaller but still present improvement.
- Authors' interpretation: The authors take this to indicate that T O M2V EC learns a general partner reasoning model rather than overfitting to the training partner, and can generalize to settings of teaming with frontier models.
ToM probes and latent token analysis
- Bayesian ToM probe (Table 7): On sampled Overcooked states, three types of questions are asked about the partner's beliefs (second-order inference), desires, and next actions, with 6 options per type and 300 samples each, ground truth obtained from the partner's continuation and actual actions. T O M2V EC achieves 52.3%/62.3%/64.0% accuracy on the three, all higher than all baselines (the authors state 5.6/2.0/2.7 points above the second-best baseline; chance is 16.7%).
- Perplexity analysis (Table 8): The perplexity of the partner's true reasoning given latent tokens from the true context is 1.412, lower than the two corrupted contexts of altered layout (1.702) and adversarial intent (1.613); in 98.6% of cases the true reasoning receives the lowest perplexity. The authors take this to indicate that the latent tokens encode partner-specific useful information.
- Appendix additions: In a Sally-Anne-style false-belief test (50 seeds, Table 9), T O M2V EC achieves 0.88 accuracy, 0.14 higher than untrained and tied for highest with Self-Consistency; state understanding differs by at most 0.08 across methods, from which the authors conclude the gains come from ToM rather than overall state understanding. In the experiment in Figure 3, when the partner moves east (toward the plate) or west (toward the onion), the perplexity of the corresponding CoT changes in the expected direction, which the authors state shows the latent tokens support revising beliefs based on evidence.
Other ablations and analyses
- Negotiation significance (Table 11): McNemar tests for all 5 baseline comparisons did not reach p < 0.05, which the authors suggest may be due to insufficient sample size.
- Decrypto significance (Table 12): 7 of 10 comparisons are statistically significant; decoding (0.180) and interception (0.500) against Language ToM, and interception (0.285) against SimToM, are not significant.
- Hanabi significance (Table 13): Not significant against Language ToM (p=0.216); all other baselines are significant.
- Computational cost (Table 14): Inference latency per query rises from 11491.8 ms to 12641.9 ms (10 latent tokens add about 1150.1 ms), inference peak GPU memory is the same at 16.3 GB, and training peak GPU memory is 84.0 GB; the authors state the overhead is a fixed constant and the training cost is one-time.
What are some points that can be further explored?
The authors list limitations including that training requires the partner's CoT, a shared representation space, a training stage, and English-only tasks; the main experimental model is only Qwen3-8B.
Limitations and future directions noted by the authors
- Requires partner CoT (Limitations): T O M2V EC requires access to the partner's chain of thought during training; the authors note that this CoT need not come from the final test partner (training partners can transfer), but it remains a requirement of the training pipeline.
- Shared representation space (Limitations): The supervision relies on the main agent and the partner sharing a representation space, which is why the two must use the same base model during training.
- Requires a training stage (Limitations): Unlike prompting methods usable at inference time, T O M2V EC requires training; the authors consider this cost offset by performance, since it outperforms prompting methods and text-based baselines matched in training amount.
- English-only tasks (Limitations): All experiments are English tasks; the authors note this is the same as much LLM ToM work, partly due to available models and datasets.
Scope of experiments
- Models tested: The main agent is only Qwen3-8B; Gemma-4-E4B and GPT-5.4 appear only as test-time partners (Table 6) and were not evaluated as trained main agents.
- Tasks and sample sizes: Overcooked three layouts with 30 seeds each, negotiation 100 games, Decrypto 1000 samples, Hanabi 100 seeds, Collab Capture 6 seeds, Collab Escape 12 seeds; the partner generalization experiment uses 20 seeds.
- Statistical significance: All 5 negotiation comparisons, 3 of 10 Decrypto comparisons, and the Hanabi comparison against Language ToM did not reach p < 0.05 (Tables 11–13).
- Probe evaluations: The Bayesian ToM probe uses 300 samples per question type, with ground truth obtained from the partner's own continuation and actual actions; the Sally-Anne test uses 50 seeds.
- Not reported by the paper: Whether the ToM probe and Sally-Anne test judgments were manually verified and their agreement; a power analysis for the negotiation deal rate when it did not reach significance.
Summarize the main content of the paper
T O M2V EC uses continuous latent tokens to learn partner ToM, outperforms baselines on five multi-agent tasks, and can transfer to unseen partner models.
A paper on a training method for multi-agent LLM collaboration. The authors address the problem that LLM agents in collaborative and competitive tasks need to model partners' mental states, but natural-language reasoning tends to lock the partner onto a single estimate and struggles to retain multiple possibilities.
- Method: T O M2V EC has the main agent generate K=10 continuous latent tokens during self-play, aligned via a cosine similarity loss to the hidden states of the partner's true reasoning (split by sentence, taking the block-center and first/last hidden states as targets); this is the only training signal, and task reward is not optimized. At test time the agent generates these tokens from its own context alone and conditions subsequent reasoning and actions on them.
- Main results: On Overcooked-AI, T O M2V EC averages 106.7 across the three layouts, above the untrained Qwen3-8B's 94.7 and all baselines (Table 1); negotiation deal rate rises from 62.0% to 71.0% (Table 2); Decrypto decoder/interceptor win rates are 14.8%/93.5%, both highest (Table 3); Hanabi score is 11.3 (maximum 25, Table 4); Collab Capture capture rate is 1.00 with the fewest average turns (Table 5).
- Generalization: Trained only with a Qwen3-8B partner, when switched to a GPT-5.4 partner it scores 152/214/188 across the three layouts (base model 135/193/174), and also improves with a Gemma-4 partner (Table 6).
- Analysis: In the ToM probe, belief/desire/action accuracy is 52.3%/62.3%/64.0%, all above baselines (Table 7); latent tokens from the true context give the lowest perplexity on the partner's true reasoning (1.412), better than corrupted contexts in 98.6% of cases (Table 8).
- Authors' conclusion: The authors consider modeling others in latent space a useful alternative to textual modeling; they also note that the negotiation comparisons did not reach statistical significance, and that the method requires access to the partner's CoT during training and a shared representation space, and the experiments are limited to English tasks.