arXiv:2610.12872cs.AIOct 2026

Manuscript Offprint

arXiv:2610.12872

Collaborative Theory of Mind: Learning to Self-Revise by Anticipating User Responses

Fanzhi Zeng, Anubrata Das, Maytal Saar-Tsechansky, Liu Leqi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Fanzhi Zeng 1^{1} Anubrata Das 2^{2} Maytal Saar-Tsechansky 1^{1} Liu Leqi 1,†^{1,\dagger}

1^{1}The University of Texas at Austin, 2^{2}Autodesk

†^{\dagger}Corresponding author

Large language models (LLMs) demonstrate strong individual task performance, yet still struggle to collaborate with users over extended, multi-turn interactions, for example by attempting solutions before understanding the user's needs or by failing to revise mistaken assumptions after receiving feedback. We propose Collaborative Theory of Mind (CToM), a framework that addresses these challenges by explicitly training LLMs to anticipate user responses and to use those predictions to improve their own behavior. CToM drafts a response, predicts how the user will respond, and uses this prediction to guide internal revision before presenting a response. During training, the user's reply to each draft serves as the target for predicting the next turn, and we train the assistant to minimize the negative log-likelihood of that reply. We combine this prediction objective with group-relative policy optimization (GRPO) to optimize both task performance and interaction efficiency. Across mathematical reasoning, coding, and writing tasks, CToM achieves higher collaborative task performance than all baselines; for example, on a collaborative mathematical reasoning task, it improves final accuracy from 74.1% to 79.6% compared with naive GRPO. Ablations show that predicting user responses also makes collaboration more efficient: under the same reward, adding prediction supervision reduces the number of user replies by 8% on coding and 17% on writing while improving task performance. Behavioral analyses of interaction trajectories show that user-response predictions become more accurate after training, and that more accurate predictions are associated with larger improvements in collaborative task performance through self-revision.

Correspondence: Fanzhi Zeng at fanzhi.zeng@utexas.edu, Liu Leqi at leqiliu@utexas.edu

Code: https://github.com/thuzfz1/CToM

1 Introduction

Today’s large language models (LLMs) demonstrate strong capabilities in mathematical reasoning, code generation, and writing, motivating their use as assistants for increasingly complex tasks. In practice, many of these tasks require multiple exchanges in which users and assistants clarify requirements, develop solutions, and respond to feedback. For example, a user drafting a project proposal may refine its scope, intended audience, and priorities while reviewing successive drafts. Strong performance on individual tasks, however, does not reliably translate into effective collaboration. LLMs can attempt solutions before understanding the user’s needs, make assumptions that require repeated correction, and struggle to recover when their initial approach proves unsuccessful (Figure 1a) [9, 22].

Figure

Figure 1 A real example of an LLM without theory of mind and CToM on the same request. (a) Without a model of the user, the LLM answers at once with a long draft that misses the user's need, and the user must correct it twice. (b) CToM first asks about the tone, then drafts internally: its predicted reply to the first draft flags the weak Ultron section, so it revises before showing anything, and the user accepts the first visible draft. The user of (a) reads three long drafts and writes two corrections, while CToM anticipates the problem and saves effort from the user.

Effective collaboration requires reasoning about the person one is interacting with. In human collaboration, people rely on theory of mind—understanding what others know, want, and intend—to anticipate how they will act and react [13]. This ability makes a measurable difference: groups whose members score higher on a theory-of-mind test perform better on a broad category of tasks, even when they communicate only through text [3]. A collaborator preparing a draft, for instance, can consider what the recipient may find unclear with their goals and address those issues before sharing it. This perspective motivates a concrete training principle for AI assistants: learning to anticipate how a user would respond can help an assistant identify and address shortcomings in its own response before sharing it with the user.

Inspired by this, we propose Collaborative Theory of Mind (CToM), which trains an assistant to predict the user's next reply to its own response and to act on that prediction (Figure 1b). As shown in Figure 2, the assistant drafts a response, predicts the user's feedback on it, and revises the draft in an internal loop until it expects the user to be satisfied or reaches its revision budget; only then does it show the response. During training, the user's real reply to each draft supervises the prediction for that draft. We train the prediction with a supervised loss and the task behavior with group-relative policy optimization (GRPO) [19]. CToM differs from prior work in two ways. First, prior work on theory of mind in LLMs primarily evaluates this ability through explicit reasoning about users' beliefs and profiles [8, 16]; we train assistants to develop this ability by anticipating user responses, with the goal of improving collaboration. Second, prior methods use simulated future conversations to reward collaborative outcomes [22] or revise drafts using the model's own critiques [12]. In CToM, we explicitly train the assistant to predict how the user would respond and revise from that perspective, encouraging the assistant to better understand the user while learning to accomplish the task.

We evaluate CToM on collaborative mathematical reasoning, coding, and writing tasks, training a Qwen3-8B assistant [23] with a Qwen3-32B user simulator. CToM improves the task score over the strongest baseline by 7.5%, 4.4%, and 6.5% on math, coding, and writing, respectively. The analyses yield three further findings. First, predicting user responses improves both task performance and efficiency. Ablating prediction supervision and the effort penalty separately, we find that prediction supervision raises the task score in every comparison, and that CTOM, which uses both, requires the fewest user input effort among these variants. Second, predictions of user replies become more accurate after training, and these improved predictions help the assistant revise responses more effectively, both within the internal revision loop and across conversation turns. Third, forcing models to ask more clarification questions does not automatically improve performance; encouraging the assistant to ask more questions lowers its task score in every domain. Our contributions are as follows:

  • We propose CTOM, a training framework that makes predicting the user's next reply an explicit learning objective and uses these predictions in an internal revision loop, so that the assistant corrects its responses before the user sees them.

  • We evaluate CTOM on mathematical reasoning, coding, and writing, where it outperforms all baselines in task performance. Through ablations, we show that predicting user responses also reduces the effort users spend, measured by the number and length of their replies.

  • We show that our training objective teaches the assistant to anticipate user replies and use these predictions to revise responses more effectively. The objective also yields interesting interaction strategies. For example, the learned policy outperforms one explicitly encouraged to ask more clarifying questions, despite having no direct training signal for that.