协作式心智理论:通过预判用户回应学习自我修正
摘要
该论文提出了协作心智理论(CToM),这是一个训练大语言模型预测用户回应,并利用这些预测在呈现答案前进行自我修订的框架,从而提升推理、编码和写作任务中的协作表现与交互效率。
arXiv:2610.12872v1 Announce Type: new
Abstract: 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.
查看缓存全文
缓存时间: 2026/10/12 06:33
# Collaborative Theory of Mind: Learning to Self-Revise by Anticipating User Responses
Source: [https://arxiv.org/html/2610.12872](https://arxiv.org/html/2610.12872)
1\]The University of Texas at Austin 2\]Autodesk\\contribution\[†\]Corresponding author\\correspondenceFanzhi Zeng at , Liu Leqi at\\codeurlhttps://github\.com/thuzfz1/CToM\\reportdateOctober 2026
###### Abstract
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\.CToMdrafts 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,CToMachieves 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\.
## 1Introduction
Figure 1:A real example of an LLM without theory of mind andCToMon 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\)CToMfirst 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, whileCToManticipates the problem and saves effort from the user\.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[1](https://arxiv.org/html/2610.12872#S1.F1)a\)\[[9](https://arxiv.org/html/2610.12872#bib.bib9),[22](https://arxiv.org/html/2610.12872#bib.bib22)\]\.
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](https://arxiv.org/html/2610.12872#bib.bib13)\]\. 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](https://arxiv.org/html/2610.12872#bib.bib3)\]\. 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 proposeCollaborative 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[1](https://arxiv.org/html/2610.12872#S1.F1)b\)\. As shown in Figure[2](https://arxiv.org/html/2610.12872#S4.F2), 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](https://arxiv.org/html/2610.12872#bib.bib19)\]\.CToMdiffers 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](https://arxiv.org/html/2610.12872#bib.bib8),[16](https://arxiv.org/html/2610.12872#bib.bib16)\]; 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](https://arxiv.org/html/2610.12872#bib.bib22)\]or revise drafts using the model’s own critiques\[[12](https://arxiv.org/html/2610.12872#bib.bib12)\]\. InCToM, 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 evaluateCToMon collaborative mathematical reasoning, coding, and writing tasks, training a Qwen3\-8B assistant\[[23](https://arxiv.org/html/2610.12872#bib.bib23)\]with a Qwen3\-32B user simulator\.CToMimproves 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 thatCToM, 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 proposeCToM, 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 evaluateCToMon 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\.
## 2Related Work
##### Interactive Evaluation
Human interaction is seldom one\-shot\. Underspecification is a natural aspect of human conversation\[[6](https://arxiv.org/html/2610.12872#bib.bib6)\]\. Naturally, over the course of human\-LLM interaction, user intent, goal, and task completion are revealed\. Pre\-LLM literature on dialogue systems argues that considering both task outcomes and the interaction is instrumental\[[21](https://arxiv.org/html/2610.12872#bib.bib21)\]\. Moreover, task success does not necessarily translate to improved human\-LLM interaction\[[11](https://arxiv.org/html/2610.12872#bib.bib11)\]\. Recent work in multi\-turn evaluation has highlighted that LLM performance degrades when user intents get clearer over multiple turns\[[9](https://arxiv.org/html/2610.12872#bib.bib9)\]\. Their analysis shows that LLMs tend to make premature assumptions\. Overreliance on these early assumptions is a key failure mode as the model fails to incorporate information from late interaction in a conversation episode\. These works motivate that human\-LLM interaction needs to be evaluated both in terms of interaction quality and final task performance\[[7](https://arxiv.org/html/2610.12872#bib.bib7)\]\.
##### Collaborative LLMs
A growing body of research on collaborative language models investigates how effective LLMs are as collaborators and how they can be trained to be better collaborators\. CoAuthor analyzes detailed traces of human\-AI writing sessions and highlights that notions of good collaboration are grounded in a combination of ownership and productivity\[[10](https://arxiv.org/html/2610.12872#bib.bib10)\]\.[Davidson et al\. \[2\]](https://arxiv.org/html/2610.12872#bib.bib2)identify that models with strong individual performance can perform substantially worse when coordinating between multiple agents\.[Shao \[18\]](https://arxiv.org/html/2610.12872#bib.bib18)proposes a collaboration layer where AI can serve as a proactive collaborator\. Complementing the system design aspect, CollabLLM focuses on training models to be proactive collaborators\. It uses simulated interactions and multiturn\-aware rewards to train models to uncover user intent and make suggestions that improve subsequent outcomes\[[22](https://arxiv.org/html/2610.12872#bib.bib22)\]\. Similarly[Sun et al\. \[20\]](https://arxiv.org/html/2610.12872#bib.bib20)trains a model to be proactive and personalized beyond task support\. In contrast to specific rewards for different aspects of collaboration, we propose a general purpose methodology that infers user intent and revises its output proactively\.
##### Theory of Mind
LLMs have been shown to exhibitTheory of Mind, i\.e\., the models are able to infer users’ mental states without explicit verbalization\. Specialized networks or agents can learn to infer agents’ characteristics and mental states from behavioral observations\[[14](https://arxiv.org/html/2610.12872#bib.bib14),[15](https://arxiv.org/html/2610.12872#bib.bib15)\]\. On the other hand, Symmetric Machine Theory of Mind studies such modeling in environments where agents can both communicate and act\[[17](https://arxiv.org/html/2610.12872#bib.bib17)\]\. FANToM extends evaluation to conversational contexts with unequal access to information, revealing difficulties in consistently tracking participants’ beliefs\[[8](https://arxiv.org/html/2610.12872#bib.bib8)\]\. ToM\-SWE maintains a model of user goals, constraints, and preferences to guide agents\[[24](https://arxiv.org/html/2610.12872#bib.bib24)\]\.[Ruan et al\. \[16\]](https://arxiv.org/html/2610.12872#bib.bib16)evaluate and train agents to detect and resolve discrepancies between users’ beliefs and the task environment\. Furthermore,[Gong et al\. \[4\]](https://arxiv.org/html/2610.12872#bib.bib4)show that ToM can show improved performance in static benchmarks, however, such improvement may not translate to dynamic environments\. RL training on models in collaborative tasks may help with implicit theory of mind capabilities\[[17](https://arxiv.org/html/2610.12872#bib.bib17)\], which provides a formative ground for our method on collaborative theory of mind\.
## 3Problem Setting
##### Collaborative interaction\.
We study an LLM assistant that completes a user’s task through a multi\-turn conversation\. A task instance consists of an initial requestu0u\_\{0\}and task informationzz, such as the user’s requirements and goals unspecified to the assistant, available to the user but not directly to the assistant\.
Before assistant turntt, the user\-visible dialogue isht=\(u0,a0,u1,…,at−1,ut\)h\_\{t\}=\(u\_\{0\},a\_\{0\},u\_\{1\},\\ldots,a\_\{t\-1\},u\_\{t\}\), withh0=\(u0\)h\_\{0\}=\(u\_\{0\}\), whereaia\_\{i\}anduiu\_\{i\}denote assistant and user messages\. The assistant policyπθ\\pi\_\{\\theta\}produces a responseat∼πθ\(⋅∣ht\)a\_\{t\}\\sim\\pi\_\{\\theta\}\(\\cdot\\mid h\_\{t\}\), and if the interaction continues, the user repliesut\+1∼U\(⋅∣ht,at,z\)u\_\{t\+1\}\\sim U\(\\cdot\\mid h\_\{t\},a\_\{t\},z\), whereUUdenotes the user’s response distribution\. The conversation ends according to the task’s stopping rule or when its interaction budget is exhausted\.
##### Collaboration objective\.
Let𝒟\\mathcal\{D\}denote the distribution of task instances andτ\\taua complete rollout of the assistant–user interaction\. We seek a policy that maximizes expected conversation return:
maxθJ\(θ\)=𝔼\(u0,z\)∼𝒟,τ∼\(πθ,U\)\|\(u0,z\)\[R\(τ,z\)\]\.\\max\_\{\\theta\}\\;J\(\\theta\)=\\mathbb\{E\}\_\{\(u\_\{0\},z\)\\sim\\mathcal\{D\},\\,\\tau\\sim\(\\pi\_\{\\theta\},U\)\\mid\(u\_\{0\},z\)\}\\bigl\[R\(\\tau,z\)\\bigr\]\.The returnRRis a task\-specific measure of collaboration quality\. In general, it may combine task success with any cost that matters to the user, such as effort, time, or personal experience\. In this paper, we instantiateRRas a combined reward of task performance and with a penalty on interaction effort, measured by the number of turns and the length of user\-visible messages \(Section[4](https://arxiv.org/html/2610.12872#S4)\)\.
## 4Method: Collaborative Theory of Mind \(CToM\)
In a collaboration, much of the cost of a flawed response falls on the user, who must read it, notice the problem, and spend a turn explaining it\. Many such corrections are predictable from the conversation so far: a misread constraint, an overlooked requirement, a format the user already asked for\. An assistant that anticipates the user’s reply to a candidate response can fix these problems before the user sees them, saving both a correction turn and the effort of reading a flawed answer\. When the assistant lacks information only the user has, however, predicting the reply means guessing what it does not know, and revising on that guess would make it overconfident rather than correct; the right move is to ask\.
CToMbuilds both behaviors into a single policy \(Figure[2](https://arxiv.org/html/2610.12872#S4.F2)\) that chooses among three actions each round \(Section[4\.1](https://arxiv.org/html/2610.12872#S4.SS1)\)\.Asksends a clarifying question\.Draftruns a hidden loop that drafts, predicts the user’s reply, and revises until the prediction signals satisfaction, then shows the final draft\.Commitsubmits the last shown draft\. During training, each prediction is supervised by the simulated user’s reply to that draft: the actual reply for the shown draft and a counterfactual reply for each discarded one \(Section[4\.2](https://arxiv.org/html/2610.12872#S4.SS2)\)\. The policy is optimized with GRPO on a combined reward of task success and a penalty on user effort \(Sections[4\.3](https://arxiv.org/html/2610.12872#S4.SS3)–[4\.5](https://arxiv.org/html/2610.12872#S4.SS5)\)\.
Figure 2:Overview of theCToMtraining pipeline\.*Rollout:*given the user’s requestu0u\_\{0\}①, the LLM chooses an action ②; when it drafts, it predicts the user’s replyu^t\+1\(k\)\\hat\{u\}\_\{t\+1\}^\{\(k\)\}to each draftdt\(k\)d\_\{t\}^\{\(k\)\}and revises until its prediction is classified as satisfied, then sendsat=dt\(k\)a\_\{t\}=d\_\{t\}^\{\(k\)\}to the user ③\. The user replies, and this repeats until the conversationτ\\tauends\.*Training:*each discarded draft is sent to the simulated user in a counterfactual query ④; its reply, or the user’s actual reply for the shown draft, is the targetu~t\+1\(k\)\\tilde\{u\}\_\{t\+1\}^\{\(k\)\}that supervises the predictionu^t\+1\(k\)\\hat\{u\}\_\{t\+1\}^\{\(k\)\}throughℒpred\\mathcal\{L\}\_\{\\mathrm\{pred\}\}⑤\. The conversationτ\\taudefinesℒGRPO\\mathcal\{L\}\_\{\\mathrm\{GRPO\}\}, and the sum of the two losses updates the LLM ⑥\.### 4\.1Prediction\-Guided Interaction
Each round, the assistant first writes a short plan and then decides how to proceed \(system prompts in Prompts[C\.1](https://arxiv.org/html/2610.12872#A3.SS1)–[C\.1](https://arxiv.org/html/2610.12872#A3.SS1)\)\. We describe this process at two levels, following Figure[2](https://arxiv.org/html/2610.12872#S4.F2)\.
##### Level 1: choosing an action\.
After planning, the policy samples an action \(step 2 in Figure[2](https://arxiv.org/html/2610.12872#S4.F2)\)\. OnAsk, the clarifying question is shown directly asata\_\{t\}, and the user’s actual reply follows without any internal prediction\. OnCommit, the most recently shown draft becomes the final answer and the conversation ends; no new message is generated, andCommitis unavailable before a draft has been shown\. OnDraft, the assistant runs the loop below\.
##### Level 2: draft, predict, and optionally revise\.
On aDraftroundtt, the assistant works from the dialogue historyhth\_\{t\}\. The indexkkcounts internal revisions, starting from zero\. At each step, the assistant writes a draftdt\(k\)d\_\{t\}^\{\(k\)\}and predicts the user’s replyu^t\+1\(k\)\\hat\{u\}\_\{t\+1\}^\{\(k\)\}to it \(step 3\):
dt\(k\)\\displaystyle d\_\{t\}^\{\(k\)\}∼πθ\(⋅∣ht,dt\(0\),u^t\+1\(0\),…,dt\(k−1\),u^t\+1\(k−1\)\),\\displaystyle\\sim\\pi\_\{\\theta\}\\big\(\\cdot\\mid h\_\{t\},\\,d\_\{t\}^\{\(0\)\},\\hat\{u\}\_\{t\+1\}^\{\(0\)\},\\ldots,d\_\{t\}^\{\(k\-1\)\},\\hat\{u\}\_\{t\+1\}^\{\(k\-1\)\}\\big\),\(1\)u^t\+1\(k\)\\displaystyle\\hat\{u\}\_\{t\+1\}^\{\(k\)\}∼πθ\(⋅∣ht,dt\(0\),u^t\+1\(0\),…,dt\(k−1\),u^t\+1\(k−1\),dt\(k\)\),\\displaystyle\\sim\\pi\_\{\\theta\}\\big\(\\cdot\\mid h\_\{t\},\\,d\_\{t\}^\{\(0\)\},\\hat\{u\}\_\{t\+1\}^\{\(0\)\},\\ldots,d\_\{t\}^\{\(k\-1\)\},\\hat\{u\}\_\{t\+1\}^\{\(k\-1\)\},\\,d\_\{t\}^\{\(k\)\}\\big\),so each new draft sees all earlier drafts and predictions of the round\. A fixed, task\-specific classifier labels each predicted reply asSatisfiedorUnsatisfied\. Ifu^t\+1\(k\)\\hat\{u\}\_\{t\+1\}^\{\(k\)\}isUnsatisfiedandk<Kmaxk<K\_\{\\max\}, the assistant writes a revised draftdt\(k\+1\)d\_\{t\}^\{\(k\+1\)\}; otherwise it showsat=dt\(k\)a\_\{t\}=d\_\{t\}^\{\(k\)\}\. HereKmaxK\_\{\\max\}is the revision cap, and internal drafts and predictions are invisible to the user\.
### 4\.2Learning to Predict User Feedback
Each predictionu^t\+1\(k\)\\hat\{u\}\_\{t\+1\}^\{\(k\)\}in Eq\. \([1](https://arxiv.org/html/2610.12872#S4.E1)\) is a behavioral model of the user: it anticipates a correction, a request for clarification, or acceptance of a particular draftdt\(k\)d\_\{t\}^\{\(k\)\}\. To train these predictions, we need to know how the user would actually reply to each draft\. The user, however, replies only to the draft that is shown\. For the shown draftata\_\{t\}, the target is therefore the user’s actual replyut\+1u\_\{t\+1\}\. For each earlier draft discarded during the loop, which the user never sees, we ask the simulated user after the rollout ends how it would have replied:
u~t\+1\(k\)∼U\(⋅∣ht,dt\(0\),u^t\+1\(0\),…,dt\(k−1\),u^t\+1\(k−1\),dt\(k\),z\)\.\\tilde\{u\}\_\{t\+1\}^\{\(k\)\}\\sim U\\big\(\\cdot\\mid h\_\{t\},\\,d\_\{t\}^\{\(0\)\},\\hat\{u\}\_\{t\+1\}^\{\(0\)\},\\ldots,d\_\{t\}^\{\(k\-1\)\},\\hat\{u\}\_\{t\+1\}^\{\(k\-1\)\},\\,d\_\{t\}^\{\(k\)\},\\,z\\big\)\.We callu~t\+1\(k\)\\tilde\{u\}\_\{t\+1\}^\{\(k\)\}the counterfactual reply\. The query conditions the simulated user on everything the assistant produced in the round up todt\(k\)d\_\{t\}^\{\(k\)\}, the same context as the prediction it supervises\. The assistant never sees these replies, which serve only as training targets \(step 4 in Figure[2](https://arxiv.org/html/2610.12872#S4.F2)\)\.AskandCommitrounds make no predictions and receive no prediction targets\.
For notational simplicity, we setu~t\+1\(k\)=ut\+1\\tilde\{u\}\_\{t\+1\}^\{\(k\)\}=u\_\{t\+1\}for the shown draft, so that every draft has a target of the same form\. We train the assistant to predict these targets by minimizing their negative log\-likelihood under the same context as the prediction itself,
ℒpred\(θ\)=−1\|𝒮\|∑\(t,k\)∈𝒮1\|u~t\+1\(k\)\|logπθ\(u~t\+1\(k\)∣ht,dt\(0\),u^t\+1\(0\),…,dt\(k\)\),\\mathcal\{L\}\_\{\\mathrm\{pred\}\}\(\\theta\)=\-\\frac\{1\}\{\|\\mathcal\{S\}\|\}\\sum\_\{\(t,k\)\\in\\mathcal\{S\}\}\\frac\{1\}\{\|\\tilde\{u\}\_\{t\+1\}^\{\(k\)\}\|\}\\log\\pi\_\{\\theta\}\\big\(\\tilde\{u\}\_\{t\+1\}^\{\(k\)\}\\mid h\_\{t\},\\,d\_\{t\}^\{\(0\)\},\\hat\{u\}\_\{t\+1\}^\{\(0\)\},\\ldots,d\_\{t\}^\{\(k\)\}\\big\),\(2\)where𝒮\\mathcal\{S\}is the set of drafts in the training batch with targets and\|u~t\+1\(k\)\|\|\\tilde\{u\}\_\{t\+1\}^\{\(k\)\}\|is the number of tokens in the target\. The context keeps the assistant’s own earlier predictions, matching what the assistant saw when it made the prediction\.
### 4\.3Interaction Cost
We measure the interaction a conversation costs the user by the number of user turnsnnand the total tokensℓu\\ell\_\{u\}andℓa\\ell\_\{a\}of the visible user and assistant messages over the conversation; internal drafts and predictions are not counted\. We normalize the turn count by the maximum number of turnsNN, and the token totals by the per\-turn token budgetsBuB\_\{u\}andBaB\_\{a\}, clipping each token ratio at11so that all three terms lie in\[0,1\]\[0,1\]and are comparable\. We combine them as
Ceffort\(τ\)=αnN\+\(1−α−β\)min\(1,ℓuBu\)\+βmin\(1,ℓaBa\),C\_\{\\text\{effort\}\}\(\\tau\)=\\alpha\\frac\{n\}\{N\}\+\(1\-\\alpha\-\\beta\)\\min\\\!\\Big\(1,\\frac\{\\ell\_\{u\}\}\{B\_\{u\}\}\\Big\)\+\\beta\\min\\\!\\Big\(1,\\frac\{\\ell\_\{a\}\}\{B\_\{a\}\}\\Big\),\(3\)whereα,β≥0\\alpha,\\beta\\geq 0withα\+β≤1\\alpha\+\\beta\\leq 1\. Appendix[A\.2](https://arxiv.org/html/2610.12872#A1.SS2)listsα\\alpha,β\\beta, and the task\-specific maxima\.
### 4\.4Combined Reward
We combine the task evaluator’s conversation\-level scoreRtask\(τ,z\)∈\[0,1\]R\_\{\\mathrm\{task\}\}\(\\tau,z\)\\in\[0,1\]\(defined for each domain in Appendix[A\.2](https://arxiv.org/html/2610.12872#A1.SS2)\) with the interaction costCeffort\(τ\)C\_\{\\mathrm\{effort\}\}\(\\tau\)from Eq\. \([3](https://arxiv.org/html/2610.12872#S4.E3)\) into the conversation\-level reward
R\(τ,z\)=wtaskRtask\(τ,z\)−weffortCeffort\(τ\),R\(\\tau,z\)=w\_\{\\mathrm\{task\}\}R\_\{\\mathrm\{task\}\}\(\\tau,z\)\-w\_\{\\mathrm\{effort\}\}C\_\{\\mathrm\{effort\}\}\(\\tau\),\(4\)withwtask=1w\_\{\\mathrm\{task\}\}=1andweffort=0\.01w\_\{\\mathrm\{effort\}\}=0\.01\. Both terms are computed once for the complete conversation\. Prediction quality and improvements between internal drafts receive no separate reward\.
### 4\.5Joint Training and Inference
##### From reward to policy optimization\.
For each task instance\(u0,z\)∼𝒟\(u\_\{0\},z\)\\sim\\mathcal\{D\}, we sample a group ofGGconversationsτ1,…,τG\\tau\_\{1\},\\dots,\\tau\_\{G\}with the current policy and the simulated user, and then collect the counterfactual replies to their discarded drafts\. GRPO\[[19](https://arxiv.org/html/2610.12872#bib.bib19)\]scores each conversation relative to its group:
A^i=R\(τi,z\)−R¯σR\+ϵ,\\widehat\{A\}\_\{i\}=\\frac\{R\(\\tau\_\{i\},z\)\-\\bar\{R\}\}\{\\sigma\_\{R\}\+\\epsilon\},\(5\)whereR¯\\bar\{R\}andσR\\sigma\_\{R\}are the mean and standard deviation of the rewards in the group, andϵ\>0\\epsilon\>0avoids division by zero\. The advantages are held fixed during the policy update, and we use them in the standard clipped GRPO objectiveℒGRPO\(θ\)\\mathcal\{L\}\_\{\\mathrm\{GRPO\}\}\(\\theta\)\(Appendix[A\.1](https://arxiv.org/html/2610.12872#A1.SS1)\)\.
##### Joint objective and gradient cap\.
At each update, we minimize
ℒ\(θ\)=ℒGRPO\(θ\)\+ηλpredℒpred\(θ\),\\mathcal\{L\}\(\\theta\)=\\mathcal\{L\}\_\{\\mathrm\{GRPO\}\}\(\\theta\)\+\\eta\\,\\lambda\_\{\\mathrm\{pred\}\}\\mathcal\{L\}\_\{\\mathrm\{pred\}\}\(\\theta\),\(6\)where the GRPO term optimizes task performance and interaction cost and includes a KL penalty \(Appendix[A\.1](https://arxiv.org/html/2610.12872#A1.SS1)\); the prediction term learns from the targets in Eq\. \([2](https://arxiv.org/html/2610.12872#S4.E2)\), andη∈\[0,1\]\\eta\\in\[0,1\]scales the prediction contribution\. The prediction loss is a dense, token\-level signal, whereas GRPO provides a single scalar per conversation, so without a limit the prediction gradient could dominate the policy update\. To keep policy optimization the primary objective, we chooseη\\etaat each update as the largest value for which the prediction gradient is at most half the gradient of the GRPO term:
η=min\(1,‖∇θℒGRPO‖22λpred‖∇θℒpred‖2\),\\eta=\\min\\\!\\left\(1,\\;\\frac\{\\big\\\|\\nabla\_\{\\theta\}\\mathcal\{L\}\_\{\\mathrm\{GRPO\}\}\\big\\\|\_\{2\}\}\{2\\,\\lambda\_\{\\mathrm\{pred\}\}\\,\\big\\\|\\nabla\_\{\\theta\}\\mathcal\{L\}\_\{\\mathrm\{pred\}\}\\big\\\|\_\{2\}\}\\right\),\(7\)withη=1\\eta=1for a zero prediction gradient andη\\etaheld constant when differentiating Eq\. \([6](https://arxiv.org/html/2610.12872#S4.E6)\)\. Settingλpred=0\\lambda\_\{\\mathrm\{pred\}\}=0removes prediction supervision while keeping the same prompt and revision loop\.
##### Inference\.
At test time, the assistant runs the same draft–predict–revise loop without any training signal: it decides whether to revise using its own predictions and sees the user’s reply only after showingata\_\{t\}\. Counterfactual queries and the prediction loss are used only during training\. Hidden drafts and predictions do not count toward interaction cost because the user never reads them\.
## 5Experiments
We evaluateCToMon mathematical problem solving, code generation, and document writing\. All assistant policies are initialized from Qwen3\-8B\[[23](https://arxiv.org/html/2610.12872#bib.bib23)\]and interact with a Qwen3\-32B\-FP8 user simulator, which uses task\-specific reference information to answer questions and provide feedback \(Table[8](https://arxiv.org/html/2610.12872#A3.T8); Prompts[C\.3](https://arxiv.org/html/2610.12872#A3.SS3)–[C\.3](https://arxiv.org/html/2610.12872#A3.SS3)\)\. We list the training and generation settings in Appendix[B](https://arxiv.org/html/2610.12872#A2)\.
### 5\.1Experimental Setup
#### 5\.1\.1Datasets
##### Mathematical problem solving\.
We use Level\-5 competition problems from MATH\[[5](https://arxiv.org/html/2610.12872#bib.bib5)\], covering algebra, geometry, counting and probability, and number theory\. We reportavg@8, the mean solve rate over eight sampled conversations per problem, averaged across problems\. A conversation is successful if a visible assistant response contains a boxed answer equivalent to the reference answer\. The simulated user never reveals the reference answer \(Prompt[C\.3](https://arxiv.org/html/2610.12872#A3.SS3)\)\.
##### Code generation\.
We use tasks from BigCodeBench\[[25](https://arxiv.org/html/2610.12872#bib.bib25)\], which require implementing Python functions that combine library calls to meet specified requirements\. We report the fraction of unit tests passed by the submitted program, averaged over eight sampled conversations per task and then across tasks\.
##### Document writing\.
We use CollabLLM’s MediumDocEdit dataset\[[22](https://arxiv.org/html/2610.12872#bib.bib22)\], whose reference documents are drawn from the Medium corpus\[[1](https://arxiv.org/html/2610.12872#bib.bib1)\]\. The task is to write and refine a document that matches the user’s intended content and style\. We report ROUGE\-L F1 between the submitted document and its reference, which measures lexical overlap through their longest common subsequence of words, averaged across tasks with one conversation per task\.
Following CollabLLM\[[22](https://arxiv.org/html/2610.12872#bib.bib22)\], the initial user prompts for coding and writing leave some requirements unspecified, so the assistant must obtain them through questions and feedback; Table[8](https://arxiv.org/html/2610.12872#A3.T8)lists what the simulated user knows and may reveal\. Dataset construction is detailed in Appendix[B](https://arxiv.org/html/2610.12872#A2)\.
#### 5\.1\.2Baselines and Ablations
We compareCToMwith two baselines; all prompts are provided in Appendix[C](https://arxiv.org/html/2610.12872#A3)\.*Prompting Base*evaluates the untrained Qwen3\-8B with a minimal interactive prompt \(Prompts[C\.2](https://arxiv.org/html/2610.12872#A3.SS2)–[C\.2](https://arxiv.org/html/2610.12872#A3.SS2)\): the assistant responds each round directly, with no planning, action selection, prediction, or revision\.*Naive GRPO*fine\-tunes the same model with GRPO using this minimal prompt and the reward in Eq\. \([4](https://arxiv.org/html/2610.12872#S4.E4)\)\. Because it generates a single response per round, we raise its per\-response cap so that its total generation budget per round equalsCToM’s combined caps for drafts, predictions, and revisions\.
We also ablate the two training signals ofCToM\. The ablations keepCToM’s prompt \(Prompts[C\.1](https://arxiv.org/html/2610.12872#A3.SS1)–[C\.1](https://arxiv.org/html/2610.12872#A3.SS1)\), which instructs the assistant to plan, choose an action, and draft, predict, and revise, as well as its revision cap and all other settings\.*CToMw/o effort*setsweffort=0w\_\{\\mathrm\{effort\}\}=0in Eq\. \([4](https://arxiv.org/html/2610.12872#S4.E4)\),*CToMw/o prediction*setsλpred=0\\lambda\_\{\\mathrm\{pred\}\}=0in Eq\. \([6](https://arxiv.org/html/2610.12872#S4.E6)\), and*CToMtask\-only*removes both, training on the task reward alone\.
### 5\.2Main Results
Table[1](https://arxiv.org/html/2610.12872#S5.T1)shows each domain’s task score together with the mean number of visible assistant turns and tokens per conversation; internal drafts, predictions, and revisions are not counted\.
Table 1:Main results forCToM, baselines, and ablations\. Scores are multiplied by 100 in all domains; turns and tokens are per\-conversation totals of visible assistant output and describe how much each method interacts \(user effort is compared in Table[2](https://arxiv.org/html/2610.12872#S5.T2)\)\. Subscripts give±1\\pm 1standard error of the mean\.*CToMw/o effort*is trained withweffort=0w\_\{\\mathrm\{effort\}\}=0in Eq\. \([4](https://arxiv.org/html/2610.12872#S4.E4)\)\.*CToMw/o prediction*is trained withλpred=0\\lambda\_\{\\mathrm\{pred\}\}=0in Eq\. \([6](https://arxiv.org/html/2610.12872#S4.E6)\)\.*CToMtask\-only*removes both terms\.##### CToMoutperforms all baselines\.
CToMachieves a higher task score than every baseline in all three domains, with relative gains over the strongest baseline of 7\.5% on math, 4\.4% on coding, and 6\.5% on writing\.
##### Prediction supervision drives the gains\.
Across theCToMablations, adding prediction supervision raises the task score in all six comparisons, both without the effort penalty \(CToMtask\-only toCToMw/o effort\) and with it \(CToMw/o prediction toCToM\)\. The effort penalty alone leaves the score within one standard error ofCToMtask\-only in every domain\. Removing the penalty fromCToMraises the score further but lengthens the interaction:CToMw/o effort shows 15–61% more visible tokens, and on writing every conversation runs to the six\-turn limit\.
##### Prompting Base and Naive GRPO interact little\.
Both baselines average at most 2\.2 visible turns, and on coding and writing their conversations end after the first program or draft, without using the user’s feedback \(Section[5\.4](https://arxiv.org/html/2610.12872#S5.SS4)\)\. Their low turn and token counts reflect this collapsed interaction rather than efficient collaboration, so we compare user effort only amongCToMand its ablations, which share the draft–predict–revise loop\.
### 5\.3User Effort
Visible assistant output does not show how much the user must contribute\. Table[2](https://arxiv.org/html/2610.12872#S5.T2)therefore counts the user’s replies after the opening request and their total length in tokens\. A conversation that ends at the first turn requires no input from the user, so we only count conversations that need at least one round of user feedback\. We use these conversations to measure the user’s input effort\.
Table 2:User effort forCToMand its ablations\. Replies are the user’s messages after the opening request, and tokens are their total length; both are measured over conversations with at least one reply \(Appendix[B\.2](https://arxiv.org/html/2610.12872#A2.SS2)\)\. Subscripts give±1\\pm 1standard error of the mean\. Bold marks the lowest value in each column\.##### CToMrequires the least user input on coding and writing\.
Compared withCToMtask\-only, it needs 22% fewer replies on coding and 19% fewer on writing, and 17% fewer user tokens in both, the lowest of the four variants\. On math, the three variants that use at least one signal are close \(2\.23–2\.28 replies, 85\.7–92\.8 tokens\), and all need less input thanCToMtask\-only\.
##### Predicting user responses improves efficiency\.
Under the same reward, adding prediction supervision \(CToMw/o prediction toCToM\) reduces user replies by 8% on coding and 17% on writing and user tokens by 7% and 18%, while also raising the task score\. This shows that accurate user prediction can reduce the user’s input effort by finding and fixing potential problems before the user raises them \(Figure[3](https://arxiv.org/html/2610.12872#S5.F3)b and c\)\.
### 5\.4Behavioral Analysis
\(a\)
\(b\)
\(c\)
Figure 3:Behavioral analysis ofCToM\. \(a\) Lexical F1 between predicted and observed user replies at five ordered checkpoints forCToM\(solid\) andCToMw/o prediction \(dashed\); the first is the untrained model, and every trainedCToMcheckpoint outperforms it\. \(b\) Mean math self\-revision gain \(×100\\times 100\) forCToMandCToMw/o prediction, at revision caps of one and three\. \(c\) Coding score after a failing first program, with conversations aligned at the turn that first contains a program; a finished conversation keeps its final score\.##### DoesCToMlearn to predict user responses?
We measure how closely each prediction matches the user’s actual reply, using word\-level F1 between the predicted and observed replies, for theCToMandCToMw/o prediction models in Table[1](https://arxiv.org/html/2610.12872#S5.T1)\. Every trainedCToMcheckpoint exceeds the untrained model in all three domains \(Figure[3](https://arxiv.org/html/2610.12872#S5.F3)a\)\.CToMw/o prediction, trained with the same reward but without prediction supervision, improves much less or not at all: its final F1 is 14\.0, 12\.8, and 15\.8 on math, coding, and writing, compared with 19\.7, 43\.8, and 35\.8 forCToM\. Learning to predict the user thus comes from the prediction objective rather than from reinforcement learning alone\. F1 levels differ across domains and are not directly comparable, since the replies differ in form\. Math feedback typically addresses errors in a specific multi\-step solution, which is likely harder to anticipate than feedback on coding and writing drafts\. Appendix[B\.5](https://arxiv.org/html/2610.12872#A2.SS5)gives the metric details and reports semantic agreement scored by an LLM judge\.
##### Do user predictions help internal revision?
We measure*self\-revision gain*as the mean score change from the first to the shown draft in revised rounds, with no user feedback in between\. Figure[3](https://arxiv.org/html/2610.12872#S5.F3)b compares math runs trained byCToMvs\.CToMw/o prediction, at revision caps of one and three\. With the prediction loss, the gain is larger at both caps, and both variants gain more with the higher cap\. Revision thus improves answers before the user sees them, and the improvement is larger when the assistant is trained to predict feedback\.
##### How doesCToMcollaborate on coding?
We examine how each method recovers from a first program that fails at least one unit test\. Since a question produces no code, we align conversations at the first turn that contains a program rather than at turn 1 \(Figure[3](https://arxiv.org/html/2610.12872#S5.F3)c\)\. Prompting Base and Naive GRPO never revise: their conversations end after the first program, so their scores stay at 20\.9 and 30\.0\.CToMand the two ablations in Figure[3](https://arxiv.org/html/2610.12872#S5.F3)c keep working after the failure, andCToMrecovers faster and further: after one more turn it reaches 38\.4, compared with 33\.8 forCToMw/o prediction, and it ends at 46\.2 compared with 40\.5\. The methods that use the draft–predict–revise prompt thus repair a failing program with the user’s feedback, whereas the two baselines never change it\. The larger recovery ofCToMthanCToMw/o prediction suggests that learning to predict the user helps not only its internal revisions \(Figure[3](https://arxiv.org/html/2610.12872#S5.F3)b\) but also its revisions across turns\.
Figure 4:CToMwithout and with action\-entropy regularization\. \(a\) ObservedAsk,Draft, andCommitproportions; the regularizer raises theAskrate\. \(b\) Task score, multiplied by 100\. Off and On denote whether the regularizer is applied\.
##### How doesCToMuse actions?
Figure[4](https://arxiv.org/html/2610.12872#S5.F4)\(a\) shows how oftenCToMchooses each action\. Without regularization,Askalmost disappears after training on math \(0\.0%\) and coding \(2\.9%\) but remains common on writing \(32\.7%\)\. The tasks explain the difference\. A math problem is fully stated, and a coding request fixes the function signature, leaving only a few behaviors to infer\. A writing request, by contrast, leaves most of the target document unspecified, and feedback on a long draft reveals the missing requirements more slowly than a direct question\.
To test whether the policy has simply stopped exploring, we add an entropy bonus on the action\-selection token, the single character that encodesAsk,Draft, orCommit\(Prompt[C\.1](https://arxiv.org/html/2610.12872#A3.SS1)\)\. This keepsAskfrequent in all three domains, but the regularized runs reach a lower task score at their selected checkpoints \(Figure[4](https://arxiv.org/html/2610.12872#S5.F4)\(b\)\)\. A higherAskrate thus does not by itself improve collaboration; the unregularized policy’s action choices already suit each domain\.
## 6Conclusion and Discussion
We introducedCToM, which trains assistants to anticipate user replies and revise their drafts before sharing them, combining supervised prediction with GRPO on a combined reward of task success and user effort\. Across math, coding, and writing tasks, our findings support a central principle: learning to anticipate user feedback helps assistants revise more effectively, reduces the input users must provide, and leads to useful interaction strategies\.
The most important next step is a study with human users\. Our experiments use a simulated user, so it remains to be tested whether an assistant can accurately predict how real users will respond, whetherCToMkeeps its task performance with them, and whether people prefer working with it in real\-world settings\.
More broadly, theory of mind can take many forms, and predicting the user’s next reply is only one of them\.CToMmainly serves task completion: it helps the assistant catch problems in a draft before the user does\. Other forms of user modeling, for example, modeling users’ personalities and preferences, could improve human\-AI collaboration by making the assistant feel more friendly, personalized and attentive to the user\.
Given a model of the user, how the assistant should draw on it also needs research\.CToMexplicitly revises a draft whenever its predicted user reply signals dissatisfaction, but this may not be the best way to use the prediction for every task\.CToMalso applies its user model only to theDraftaction, while decisions such as whether to ask, what to ask, and when to commit could benefit from it as well\. How to incorporate theory of mind into every decision the assistant makes remains an open question for future work\.
## Acknowledgement
This research is supported in part by funding from Coefficient Giving\. Computational resources are provided by the Texas Advanced Computing Center \(TACC\)\.
## References
- \[1\]Fabio Chiusano\.Medium articles\.Hugging Face dataset, 2022\.[https://huggingface\.co/datasets/fabiochiu/medium\-articles](https://huggingface.co/datasets/fabiochiu/medium-articles)\.
- \[2\]Tim R\. Davidson, Adam Fourney, Saleema Amershi, Robert West, Eric Horvitz, and Ece Kamar\.The collaboration gap: Exploration and benchmarking of open\-world agentic cooperation\.*arXiv preprint arXiv:2511\.02687*, 2026\.[https://arxiv\.org/abs/2511\.02687v2](https://arxiv.org/abs/2511.02687v2)\.Version 2; first posted in 2025\. Accepted to COLM 2026\.
- \[3\]David Engel, Anita Williams Woolley, Lisa X Jing, Christopher F Chabris, and Thomas W Malone\.Reading the mind in the eyes or reading between the lines? theory of mind predicts collective intelligence equally well online and face\-to\-face\.*PloS one*, 9\(12\):e115212, 2014\.
- \[4\]Nanxu Gong, Zixin Chen, Haotian Li, Zishu Zhao, Jianxun Lian, Huamin Qu, Yanjie Fu, and Xing Xie\.Does theory of mind improvement really benefit human\-ai interactions? empirical findings from interactive evaluations\.In*Findings of the Association for Computational Linguistics: ACL 2026*, pages 42831–42860, 2026\.
- \[5\]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt\.Measuring mathematical problem solving with the MATH dataset\.In*Advances in Neural Information Processing Systems, Datasets and Benchmarks Track*, 2021\.[https://arxiv\.org/abs/2103\.03874](https://arxiv.org/abs/2103.03874)\.
- \[6\]Christine Herlihy, Jennifer Neville, Tobias Schnabel, and Adith Swaminathan\.On overcoming miscalibrated conversational priors in llm\-based chatbots\.*arXiv preprint arXiv:2406\.01633*, 2024\.
- \[7\]Saki Imai, Mert İnan, and Malihe Alikhani\.From task success to productive success: Evaluating human\-ai collaboration by quality and cost\.*arXiv preprint arXiv:2609\.21117*, 2026\.
- \[8\]Hyunwoo Kim, Melanie Sclar, Xuhui Zhou, Ronan Le Bras, Gunhee Kim, Yejin Choi, and Maarten Sap\.FANToM: A benchmark for stress\-testing machine theory of mind in interactions\.In*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing*, pages 14397–14413\. Association for Computational Linguistics, 2023\.[10\.18653/v1/2023\.emnlp\-main\.890](https://doi.org/10.18653/v1/2023.emnlp-main.890)\.[https://aclanthology\.org/2023\.emnlp\-main\.890/](https://aclanthology.org/2023.emnlp-main.890/)\.
- \[9\]Philippe Laban, Hiroaki Hayashi, Yingbo Zhou, and Jennifer Neville\.LLMs get lost in multi\-turn conversation\.*arXiv preprint arXiv:2505\.06120*, 2025\.[https://arxiv\.org/abs/2505\.06120](https://arxiv.org/abs/2505.06120)\.
- \[10\]Mina Lee, Percy Liang, and Qian Yang\.CoAuthor: Designing a human–ai collaborative writing dataset for exploring language model capabilities\.In*Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems*\. Association for Computing Machinery, 2022\.[10\.1145/3491102\.3502030](https://doi.org/10.1145/3491102.3502030)\.[https://arxiv\.org/abs/2201\.06796](https://arxiv.org/abs/2201.06796)\.
- \[11\]Mina Lee, Megha Srivastava, Amelia Hardy, John Thickstun, Esin Durmus, Ashwin Paranjape, Ines Gerard\-Ursin, Xiang Lisa Li, Faisal Ladhak, Frieda Rong, Rose E Wang, Minae Kwon, Joon Sung Park, Hancheng Cao, Tony Lee, Rishi Bommasani, Michael S\. Bernstein, and Percy Liang\.Evaluating human\-language model interaction\.*Transactions on Machine Learning Research*, 2023\.ISSN 2835\-8856\.[https://openreview\.net/forum?id=hjDYJUn9l1](https://openreview.net/forum?id=hjDYJUn9l1)\.
- \[12\]Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark\.Self\-Refine: Iterative refinement with self\-feedback\.In*Advances in Neural Information Processing Systems*, volume 36, 2023\.[https://papers\.nips\.cc/paper/2023/hash/91edff07232fb1b55a505a9e9f6c0ff3\-Abstract\-Conference\.html](https://papers.nips.cc/paper/2023/hash/91edff07232fb1b55a505a9e9f6c0ff3-Abstract-Conference.html)\.
- \[13\]David Premack and Guy Woodruff\.Does the chimpanzee have a theory of mind?*Behavioral and brain sciences*, 1\(4\):515–526, 1978\.
- \[14\]Neil C\. Rabinowitz, Frank Perbet, H\. Francis Song, Chiyuan Zhang, S\. M\. Ali Eslami, and Matthew Botvinick\.Machine theory of mind\.In*Proceedings of the 35th International Conference on Machine Learning*, volume 80 of*Proceedings of Machine Learning Research*, pages 4218–4227\. PMLR, 2018\.[https://proceedings\.mlr\.press/v80/rabinowitz18a\.html](https://proceedings.mlr.press/v80/rabinowitz18a.html)\.
- \[15\]Michael Rescorla\.The computational theory of mind\.2015\.
- \[16\]Minyuan Ruan, Ziyue Wang, Kaiming Liu, Yunghwei Lai, Peng Li, and Yang Liu\.Beyond words: Evaluating and bridging epistemic divergence in user\-agent interaction via theory of mind\.*arXiv preprint arXiv:2602\.13832*, 2026\.[https://arxiv\.org/abs/2602\.13832](https://arxiv.org/abs/2602.13832)\.
- \[17\]Melanie Sclar, Graham Neubig, and Yonatan Bisk\.Symmetric machine theory of mind\.In*Proceedings of the 39th International Conference on Machine Learning*, volume 162 of*Proceedings of Machine Learning Research*, pages 19450–19466\. PMLR, 2022\.[https://proceedings\.mlr\.press/v162/sclar22a\.html](https://proceedings.mlr.press/v162/sclar22a.html)\.
- \[18\]Yijia Shao\.Collaboration layer for democratizing artificial intelligence, July 2026\.[https://collaborative\-agents\.github\.io/](https://collaborative-agents.github.io/)\.\[Online; accessed 2026\-09\-24\]\.
- \[19\]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y\. K\. Li, Y\. Wu, and Daya Guo\.DeepSeekMath: Pushing the limits of mathematical reasoning in open language models\.*arXiv preprint arXiv:2402\.03300*, 2024\.[https://arxiv\.org/abs/2402\.03300](https://arxiv.org/abs/2402.03300)\.
- \[20\]Weiwei Sun, Xuhui Zhou, Weihua Du, Xingyao Wang, Sean Welleck, Graham Neubig, Maarten Sap, and Yiming Yang\.Training proactive and personalized llm agents\.*arXiv preprint arXiv:2511\.02208*, 2025\.
- \[21\]Marilyn A\. Walker, Diane J\. Litman, Candace A\. Kamm, and Alicia Abella\.PARADISE: A framework for evaluating spoken dialogue agents\.In*Proceedings of the 35th Annual Meeting of the Association for Computational Linguistics and 8th Conference of the European Chapter of the Association for Computational Linguistics*, pages 271–280\. Association for Computational Linguistics, 1997\.[10\.3115/976909\.979652](https://doi.org/10.3115/976909.979652)\.[https://aclanthology\.org/P97\-1035/](https://aclanthology.org/P97-1035/)\.
- \[22\]Shirley Wu, Michel Galley, Baolin Peng, Hao Cheng, Gavin Li, Yao Dou, Weixin Cai, James Zou, Jure Leskovec, and Jianfeng Gao\.CollabLLM: From passive responders to active collaborators\.In*Proceedings of the 42nd International Conference on Machine Learning*, volume 267 of*Proceedings of Machine Learning Research*, pages 67260–67283\. PMLR, 2025\.[https://proceedings\.mlr\.press/v267/wu25i\.html](https://proceedings.mlr.press/v267/wu25i.html)\.
- \[23\]An Yang, Anfeng Li, Baosong Yang, et al\.Qwen3 technical report\.*arXiv preprint arXiv:2505\.09388*, 2025\.[https://arxiv\.org/abs/2505\.09388](https://arxiv.org/abs/2505.09388)\.
- \[24\]Xuhui Zhou, Valerie Chen, Zora Zhiruo Wang, Graham Neubig, Maarten Sap, and Xingyao Wang\.ToM\-SWE: User mental modeling for software engineering agents\.*arXiv preprint arXiv:2510\.21903*, 2025\.[https://arxiv\.org/abs/2510\.21903](https://arxiv.org/abs/2510.21903)\.
- \[25\]Terry Yue Zhuo, Minh Chien Vu, Jenny Chim, Han Hu, Wenhao Yu, Ratnadira Widyasari, et al\.BigCodeBench: Benchmarking code generation with diverse function calls and complex instructions\.In*International Conference on Learning Representations*, 2025\.[https://arxiv\.org/abs/2406\.15877](https://arxiv.org/abs/2406.15877)\.
## Appendix AImplementation Details
### A\.1GRPO Objective
##### Advantages\.
For a group ofGGconversations, the advantage in Eq\. \([5](https://arxiv.org/html/2610.12872#S4.E5)\) uses the sample standard deviation with denominatorG−1G\-1andϵ=10−6\\epsilon=10^\{\-6\}\. Groups with equal rewards receive zero advantage, and no critic is used\.
##### Loss\.
Letoijo\_\{ij\}be tokenjjof conversationii,μij∈\{0,1\}\\mu\_\{ij\}\\in\\\{0,1\\\}a mask that selects tokens sampled from the policy \(plans, actions, drafts, questions, and predictions, but not user messages or text inserted by the interaction loop \(Appendix[C\.1](https://arxiv.org/html/2610.12872#A3.SS1)\)\), andρij=πθ\(oij∣⋅\)/πold\(oij∣⋅\)\\rho\_\{ij\}=\\pi\_\{\\theta\}\(o\_\{ij\}\\mid\\cdot\)/\\pi\_\{\\mathrm\{old\}\}\(o\_\{ij\}\\mid\\cdot\)the ratio to the rollout policy\. We use a dual\-clipped surrogate,
Sij=\{max\(Bij,cA^i\),A^i<0,Bij,A^i≥0,Bij=min\(ρijA^i,clip\(ρij,1−ϵc,1\+ϵc\)A^i\),S\_\{ij\}=\\begin\{cases\}\\max\\\!\\big\(B\_\{ij\},\\,c\\,\\widehat\{A\}\_\{i\}\\big\),&\\widehat\{A\}\_\{i\}<0,\\\\ B\_\{ij\},&\\widehat\{A\}\_\{i\}\\geq 0,\\end\{cases\}\\qquad B\_\{ij\}=\\min\\\!\\big\(\\rho\_\{ij\}\\widehat\{A\}\_\{i\},\\ \\operatorname\{clip\}\(\\rho\_\{ij\},1\-\\epsilon\_\{\\mathrm\{c\}\},1\+\\epsilon\_\{\\mathrm\{c\}\}\)\\widehat\{A\}\_\{i\}\\big\),withϵc=0\.2\\epsilon\_\{\\mathrm\{c\}\}=0\.2andc=3c=3, and a KL penalty toward the frozen reference policyπref\\pi\_\{\\mathrm\{ref\}\}computed with the k3 estimatorDij=eδij−δij−1D\_\{ij\}=e^\{\\delta\_\{ij\}\}\-\\delta\_\{ij\}\-1, whereδij=logπref\(oij∣⋅\)−logπθ\(oij∣⋅\)\\delta\_\{ij\}=\\log\\pi\_\{\\mathrm\{ref\}\}\(o\_\{ij\}\\mid\\cdot\)\-\\log\\pi\_\{\\theta\}\(o\_\{ij\}\\mid\\cdot\)\. The GRPO loss in Eq\. \([6](https://arxiv.org/html/2610.12872#S4.E6)\) is
ℒGRPO\(θ\)=1∑i,jμij∑i,jμij\(−Sij\+λKLDij\),\\mathcal\{L\}\_\{\\mathrm\{GRPO\}\}\(\\theta\)=\\frac\{1\}\{\\sum\_\{i,j\}\\mu\_\{ij\}\}\\sum\_\{i,j\}\\mu\_\{ij\}\\big\(\-S\_\{ij\}\+\\lambda\_\{\\mathrm\{KL\}\}D\_\{ij\}\\big\),averaged over selected tokens in the minibatch, withλKL=0\.01\\lambda\_\{\\mathrm\{KL\}\}=0\.01\. Log\-ratios and the KL estimate are clamped for numerical stability\.
##### Gradient cap\.
The gradients ofℒGRPO\\mathcal\{L\}\_\{\\mathrm\{GRPO\}\}andλpredℒpred\\lambda\_\{\\mathrm\{pred\}\}\\mathcal\{L\}\_\{\\mathrm\{pred\}\}are computed separately, the prediction gradient is rescaled byη\\etafrom Eq\. \([7](https://arxiv.org/html/2610.12872#S4.E7)\), and the two are added before the optimizer’s usual gradient clipping\. This is equivalent to differentiating Eq\. \([6](https://arxiv.org/html/2610.12872#S4.E6)\) withη\\etaheld fixed\.
### A\.2Task Scores and Numerical Settings
##### Task scores\.
For math,Rtask=1R\_\{\\mathrm\{task\}\}=1if a visible assistant message contains a boxed answer equivalent to the reference and00otherwise, and the conversation ends after a correct answer is shown \(the answer\-gated rule in Prompt[C\.3](https://arxiv.org/html/2610.12872#A3.SS3)\)\. For coding,RtaskR\_\{\\mathrm\{task\}\}is the fraction of unit tests passed by the submitted program\. For writing, it is the ROUGE\-L F1 between the submitted document and the reference article\. Discarded drafts are never scored\.
##### Numerical settings\.
All lengths are measured in tokenizer tokens\. We useα=0\.5\\alpha=0\.5andβ=0\.4\\beta=0\.4in every domain \(Table[3](https://arxiv.org/html/2610.12872#A2.T3)\), with the task\-specific maximaNN,BuB\_\{u\}, andBaB\_\{a\}in Table[4](https://arxiv.org/html/2610.12872#A2.T4)\.
### A\.3Satisfaction Classifier
After each internal draftd\(k\)d^\{\(k\)\}, the assistant predicts the user’s replyu^\(k\)\\hat\{u\}^\{\(k\)\}\(Section[4](https://arxiv.org/html/2610.12872#S4)\)\. A fixed classifierggreads only this predicted reply and labels itSatisfiedorUnsatisfied\. Ifg\(u^\(k\)\)=Unsatisfiedg\(\\hat\{u\}^\{\(k\)\}\)=\\textsc\{Unsatisfied\}andk<Kmax=3k<K\_\{\\max\}=3, the assistant revises the draft internally; otherwise the current draft is shown to the user\. The same classifier is used in training and evaluation, and forCToMand its three ablations\.
##### Rules\.
ggis not learned\. It is a fixed set of lexical rules built from phrases mined from simulator replies: 35,159 math replies, each labeled by whether the answer it responded to was correct, and 23,407 simulator reactions to writing drafts\. A reply is labeledUnsatisfiedif it shows any sign of pushback: a question mark, or phrases such as “wrong”, “still”, “double\-check”, “could you”, “add”, or “instead”\. It is labeledSatisfiedif it is empty, contains the end\-of\-conversation signal, or reads as clear acceptance\.
##### Accuracy\.
On the mined math replies, the rules label 95\.6% of replies to incorrect answers and 19\.6% of replies to correct answers asUnsatisfied, a difference of 0\.76\. This separation comes from the wording of the reply alone:ggnever checks the answer, so when revision is triggered it depends on what the assistant predicts the user will say\.
## Appendix BExperiment Details and Additional Results
### B\.1Task construction
Coding requests come from CollabLLM’s BigCodeBench releases\[[22](https://arxiv.org/html/2610.12872#bib.bib22)\], with the required imports and function signature included in the public request; behavioral requirements remain available to the simulator\. For MediumDocEdit, rows from CollabLLM’s medium and medium\-large releases are grouped by article\. The first user message supplies the public writing request, while the full specification and reference article are stored separately for the simulator and scorer\. We generate training conversations and counterfactual replies online; subsequent turns in the source conversations are not used as assistant demonstrations\.
Table 3:Shared training hyperparameters\.Table 4:Task\-specific training and evaluation settings\. All lengths and caps are in tokenizer tokens\.SettingMathCodingWritingTraining tasks3,263480500Epochs / final update2 / 18016 / 20816 / 208Maximum visible assistant roundsNN466Internal revision cap333Assistant evaluation temperature111Simulator evaluation temperature0\.70\.70\.7Draft / prediction / revision caps2048 / 384 / 20481024 / 384 / 10241536 / 256 / 1536Output token limit, Prompting Base & Naive GRPO972856327168Per\-turn maximum user tokensBuB\_\{u\}33220002000Per\-turn maximum assistant visible tokensBaB\_\{a\}1024600900
### B\.2Interaction\-Cost Counting
For the cost in Eq\. \([3](https://arxiv.org/html/2610.12872#S4.E3)\),nncounts user messages,ℓu\\ell\_\{u\}counts the tokens of all visible user messages, including the opening request, andℓa\\ell\_\{a\}counts the tokens of all visible assistant messages\. Lengths are measured in tokenizer tokens in every domain and normalized by the maxima in Table[4](https://arxiv.org/html/2610.12872#A2.T4)\.
The user\-effort measures in Table[2](https://arxiv.org/html/2610.12872#S5.T2)use only conversations that continue past the first assistant turn, that is, those with at least one user reply after the opening request\. For each such conversation,*replies*counts the user’s messages after the opening request, and*tokens*sums their lengths in Qwen3\-8B tokens; when the simulator wraps its reply in a JSON envelope, only the reply text is counted\. Both are then averaged over these conversations\. A conversation has between one andN−1N\-1replies, so at most three on math \(Table[4](https://arxiv.org/html/2610.12872#A2.T4)\)\. For example,CToM’s 2\.24 replies and 89\.9 tokens on math correspond to about 3\.24 assistant turns and two short replies per conversation\. Standard errors are clustered by task \(Eq\. \([10](https://arxiv.org/html/2610.12872#A2.E10)\)\)\.
### B\.3Decision\-Entropy Ablations
We add−λHHdecision\-\\lambda\_\{H\}H\_\{\\mathrm\{decision\}\}to the joint lossℒ\\mathcal\{L\}\(Eq\. \([6](https://arxiv.org/html/2610.12872#S4.E6)\)\)\. The entropy term is added to the GRPO gradient before the prediction\-gradient cap \(Eq\. \([7](https://arxiv.org/html/2610.12872#S4.E7)\)\) is computed, so the cap’s numerator becomes∥∇θ\(ℒGRPO−λHHdecision\)∥2\\lVert\\nabla\_\{\\theta\}\(\\mathcal\{L\}\_\{\\mathrm\{GRPO\}\}\-\\lambda\_\{H\}H\_\{\\mathrm\{decision\}\}\)\\rVert\_\{2\}\. ForCToM, the regularizer can therefore also changeη\\eta, and with it the effective weight of the prediction loss\.CToMtask\-only hasλpred=0\\lambda\_\{\\mathrm\{pred\}\}=0and is unaffected, so its runs isolate the effect of the regularizer on actions alone\.
Table 5:Effect of the action\-entropy regularizer\. Each difference is the value atλH=10−3\\lambda\_\{H\}=10^\{\-3\}minus the value atλH=0\\lambda\_\{H\}=0, using the runs in Table[6](https://arxiv.org/html/2610.12872#A2.T6)\(revision cap three in every domain\)\.Δ\\DeltaASK is in percentage points of all action decisions;Δ\\DeltaScore is the change in task score, multiplied by 100\.Table 6:Observed actions and task score of each arm\. ASK, DRAFT, and COMMIT are percentages of all recorded action decisions; scores are multiplied by 100, as in Table[1](https://arxiv.org/html/2610.12872#S5.T1), with±1\\pm 1standard error of the mean\.λH\\lambda\_\{H\}is the action\-entropy coefficient\.Action shares divide each action’s count by the total number of recorded ASK, DRAFT, and COMMIT decisions\. They pool decisions across evaluation conversations, rather than averaging conversation\-level proportions, and do not measure the conditional policy entropy\. Table[6](https://arxiv.org/html/2610.12872#A2.T6)shows the comparison ofCToMandCToMtask\-only before and after adding entropy regularizers\. The matched entropy comparisons increase ASK in all six pairs\. All six have lower task scores\.
### B\.4Within\-Round Self\-Revision Gains on Math
##### Metric and aggregation\.
For conversationiiand draft roundtt, letdit\(0\)d\_\{it\}^\{\(0\)\}be the initial internal draft anddit\(Kit\)d\_\{it\}^\{\(K\_\{it\}\)\}the final draft shown to the user\. Lets\(d,zi\)s\(d,z\_\{i\}\)denote strict boxed\-answer correctness against the math reference\. Over the setℛ=\{\(i,t\):Kit\>0\}\\mathcal\{R\}=\\\{\(i,t\):K\_\{it\}\>0\\\}of revised rounds, we report
Δrev=100\|ℛ\|∑\(i,t\)∈ℛ\[s\(dit\(Kit\),zi\)−s\(dit\(0\),zi\)\]\.\\Delta\_\{\\mathrm\{rev\}\}=\\frac\{100\}\{\|\\mathcal\{R\}\|\}\\sum\_\{\(i,t\)\\in\\mathcal\{R\}\}\\left\[s\(d\_\{it\}^\{\(K\_\{it\}\)\},z\_\{i\}\)\-s\(d\_\{it\}^\{\(0\)\},z\_\{i\}\)\\right\]\.\(8\)This is a mean over revised rounds, not tasks or conversations\. No new user message arrives between the two drafts\. We use recorded drafts from completed evaluation rollouts; ASK\-only rounds and rounds without a usable draft are outside the denominator\.
Error bars show±1\\pm 1standard error of the mean \(SEM\), computed assΔ/\|ℛ\|s\_\{\\Delta\}/\\sqrt\{\|\\mathcal\{R\}\|\}, wheresΔs\_\{\\Delta\}is the sample standard deviation of round\-level score changes multiplied by 100, using denominator\|ℛ\|−1\|\\mathcal\{R\}\|\-1\. This estimate treats revised rounds as independent and does not adjust for task or conversation clustering\. Evaluation covers 365 math tasks with eight conversations each and one evaluation seed per run\.
### B\.5Prediction Learning Across Checkpoints
##### Runs and checkpoints\.
We evaluate the three mainCToMruns of Table[1](https://arxiv.org/html/2610.12872#S5.T1), one per domain \(revision cap three,λH=0\\lambda\_\{H\}=0\) at updates 0, 50, 100, 150, and the final update: 180 for math and 208 for coding and writing\. Update 0 is the untrained Qwen3\-8B assistant with the same prompt and interaction loop\. We also evaluate the threeCToMw/o prediction runs at the same updates; on coding, its last lexical\-F1 update is 200, which Figure[3](https://arxiv.org/html/2610.12872#S5.F3)plots as its final point\. Figure[3](https://arxiv.org/html/2610.12872#S5.F3)plots these five checkpoints at equal spacing in training order, and Figure[5](https://arxiv.org/html/2610.12872#A2.F5)plots the judge scores the same way with update 200 as the final point for coding and writing; Table[7](https://arxiv.org/html/2610.12872#A2.T7)also lists update 200\. Evaluation settings are fixed within each run\.
##### Prediction–reply pairs\.
At visible roundttthe assistant shows draftdtd\_\{t\}together with its predictionu^t\\hat\{u\}\_\{t\}of the user’s reply, i\.e\. the last prediction made in that round’s internal loop, and the simulator then repliesutu\_\{t\}\. For coding and writing, the pairs of a conversation are all roundsttthat have a prediction slot and an observed reply\. Rounds without a prediction slot \(AskandCommit\) and a final prediction that receives no reply are excluded, and a conversation with no such pair is excluded entirely\. An empty prediction in an existing slot scores zero\. For math, the pairs are the firstm=min\(\|𝐮^\|,\|𝐮\|−1\)m=\\min\(\|\\hat\{\\mathbf\{u\}\}\|,\\,\|\\mathbf\{u\}\|\-1\)recorded predictions and user replies after the opening request, matched in order; empty or missing predictions or replies score zero, and a conversation withm=0m=0is kept with score zero\.
##### Lexical F1\.
LetW\(x\)W\(x\)be the set of distinct words inxxafter lowercasing, removing punctuation, and splitting on whitespace\. For a pair\(u^,u\)\(\\hat\{u\},u\)withW\(u^\)W\(\\hat\{u\}\)andW\(u\)W\(u\)both non\-empty,
F1\(u^,u\)=2\|W\(u^\)∩W\(u\)\|\|W\(u^\)\|\+\|W\(u\)\|,\\mathrm\{F1\}\(\\hat\{u\},u\)=\\frac\{2\\,\|W\(\\hat\{u\}\)\\cap W\(u\)\|\}\{\|W\(\\hat\{u\}\)\|\+\|W\(u\)\|\},\(9\)which equals the harmonic mean of word\-set precision\|W\(u^\)∩W\(u\)\|/\|W\(u^\)\|\|W\(\\hat\{u\}\)\\cap W\(u\)\|/\|W\(\\hat\{u\}\)\|and recall\|W\(u^\)∩W\(u\)\|/\|W\(u\)\|\|W\(\\hat\{u\}\)\\cap W\(u\)\|/\|W\(u\)\|;F1=0\\mathrm\{F1\}=0if either set is empty\. BecauseWWis a set, repeated words count once\. A conversation’s score is the mean F1 over its pairs, and the reported value is the mean over eligible conversations \(Eq\. \([10](https://arxiv.org/html/2610.12872#A2.E10)\)\), multiplied by 100\.
Table[7](https://arxiv.org/html/2610.12872#A2.T7)lists the values plotted in Figure[3](https://arxiv.org/html/2610.12872#S5.F3)\. The two pairing conventions produce different denominators, so levels are comparable within a run but not across domains\. The math convention also lowers the untrained value: at update 0, 1,540 of 5,495 math pairs \(28%\) score zero because a prediction or reply is empty or missing, compared with 114–138 pairs \(about 2%\) at later checkpoints, so part of the math gain reflects the trained model reliably emitting a prediction\.
Table 7:Lexical prediction F1 \(Eq\. \([9](https://arxiv.org/html/2610.12872#A2.E9)\),×100\\times 100\) ofCToMandCToMw/o prediction at each evaluated checkpoint, with task\-clustered SEM\. “Final” is the checkpoint in Table[1](https://arxiv.org/html/2610.12872#S5.T1)\(update 180 for math, 208 for coding and writing\); a dash marks an update that was not evaluated\.
##### LLM\-judge agreement\.
Lexical F1 rewards shared wording rather than shared content, so we also score each pair with an LLM judge\. GPT\-4o\-mini at temperature 0 reads the task context, the shown draft, the predicted replyu^\\hat\{u\}, and the observed replyuu, and rates on a 0–1 scale how wellu^\\hat\{u\}anticipates the substance ofuu; the prompt is Prompt[C\.4](https://arxiv.org/html/2610.12872#A3.SS4)\. The judge is used only for evaluation and plays no role in training\. The judge scores exactly the pairs used for Table[7](https://arxiv.org/html/2610.12872#A2.T7); to confirm the pairing, we recompute lexical F1 on the same pairs and recover the recorded values\. Judge scores are aggregated and their SEMs computed exactly as for lexical F1\. Figure[5](https://arxiv.org/html/2610.12872#A2.F5)shows the result\. In all three domains, every trainedCToMcheckpoint scores above the untrained model under the judge as well, so the improvement in Figure[3](https://arxiv.org/html/2610.12872#S5.F3)is not only a matter of copying the user’s wording\.CToMw/o prediction improves far less under the judge: its last checkpoint scores 29\.9, 30\.4, and 33\.0 on math, coding, and writing, compared with 46\.6, 47\.1, and 41\.7 forCToM\.
Figure 5:LLM\-judge agreement between predicted and observed user replies \(×100\\times 100\) forCToM\(solid\) andCToMw/o prediction \(dashed\), with task\-clustered SEM, at updates 0, 50, 100, 150, and a final update \(180 for math, 200 for coding and writing\)\. The first point is the untrained model\.
##### Standard error\.
Let taskcccontributencn\_\{c\}eligible conversations whose conversation\-level scores sum toScS\_\{c\}\. ForCCtasks, the mean and its task\-clustered SEM are
M=∑cSc∑cnc,SEM\(M\)=CC−1∑c\(Sc−Mnc\)2∑cnc\.M=\\frac\{\\sum\_\{c\}S\_\{c\}\}\{\\sum\_\{c\}n\_\{c\}\},\\qquad\\operatorname\{SEM\}\(M\)=\\frac\{\\sqrt\{\\frac\{C\}\{C\-1\}\\sum\_\{c\}\(S\_\{c\}\-Mn\_\{c\}\)^\{2\}\}\}\{\\sum\_\{c\}n\_\{c\}\}\.\(10\)This treats tasks as independent while allowing dependence among conversations from the same task\. With equalncn\_\{c\}, it reduces to the sample standard deviation of task means divided byC\\sqrt\{C\}\. We use 365, 114, and 117 task clusters for math, coding, and writing; for writing,nc=1n\_\{c\}=1and the SEM is the ordinary standard error over tasks\. The whiskers are marginal SEMs, not paired tests of checkpoint differences or estimates of training\-seed variability\.
## Appendix CPrompts
This appendix reproduces the prompts used by the runs in Table[1](https://arxiv.org/html/2610.12872#S5.T1)\. System prompts are copied from the saved evaluation records of those runs; interaction\-loop text, simulator templates, the verdict parser, and the judge rubric are copied from the code that produced them\. All assistant prompts begin with/no\_think, which disables Qwen3’s thinking mode\. Long lines are wrapped for display; text in braces, such as\{problem\}, is a placeholder filled per task\. Text between<\|im\_start\|\>and<\|im\_end\|\>follows the Qwen3 chat template\.
### C\.1Assistant Prompts forCToMand Its Ablations
CToMand its three ablations in Table[1](https://arxiv.org/html/2610.12872#S5.T1)use the same system prompt within each domain \(Section[4\.1](https://arxiv.org/html/2610.12872#S4.SS1)\)\. Each turn opens with a plan and an action decision\. AfterDraft, the interaction loop opens a user\-role slot marked\[ANTICIPATED\], in which the policy writes its predicted reply\. In every domain, all four append the addendum in Prompt[C\.1](https://arxiv.org/html/2610.12872#A3.SS1)to the system prompt at render time\. It supersedes the base prompt’s action andAskinstructions: the decision is a single character, andAskandCommitare not followed by an anticipated reply, so onlyDraftis\. The interaction loop, the fixed rollout code that calls the policy for each phase, writes all tags and chat\-template headers; the prompts themselves call it “the controller” or “the system”\. These tokens are excluded by the loss mask \(Appendix[A\.1](https://arxiv.org/html/2610.12872#A1.SS1)\)\. It adds no natural\-language revision instruction: a revision is conditioned only on the earlier draft and the policy’s own predicted reply, which remain in context\. During rollouts, the user simulator never sees plans, internal drafts, or predicted replies; it receives only the shown draft, the question afterAsk, or, afterCommit, the last shown draft \(preceded byI WANT TO ANSWER:on coding and writing\)\.
Prompt 1: Math Assistant System Prompt \(CToMand Ablations\)System Prompt/no\_thinkYou are a helpful assistant solving a math problem together with a human over several turns\.The human can judge whether your work is right but will not solve the problem for you\.Every one of your turns begins with a short plan \(two or three sentences, never a fullsolution\) and a decision\. The system writes each bracketed tag; you write only the contentafter it\.\[PLAN\_START\]<two or three sentences \(no more\): what is still uncertain, whether the human could settleit, and what to do now\>\[PLAN\_END\]\[DECISION\] <exactly one word: DRAFT, ASK, or COMMIT\>After DRAFT the system asks for\[DRAFT\_START\]<your complete solution: the reasoning, then the final answer inside \\boxed\{\.\.\.\}\>\[DRAFT\_END\]and then opens a user turn whose first line is \[ANTICIPATED\]\. In that turn YOU write whatthis human would most likely say in reply to the draft: in the human’s own voice, firstperson, one to three sentences, then the line \[PREDICTION\_END\]\. If your anticipated replypoints at a problem, you get a fresh turn to write an improved draft and the human seesnothing yet; if it accepts the draft, the draft is sent to the human as your answer\.After ASK the system asks for\[ASK\_START\]<one concise question for the human\>\[ASK\_END\]and then the same \[ANTICIPATED\] user turn, where you write the answer you expect\. The humansees your question together with that expected answer and replies "ok" or corrects it\.COMMIT ends the conversation with the last draft the human saw\. Use it only after a drafthas been shown\.Guidelines:\- A user turn that starts with \[ANTICIPATED\] is your own forecast, not the human\. Thehuman’s real messages never carry that line\.\- Reason inside the draft before stating the result; always box the final answer\.\- Be concise\. Never re\-ask what was answered\. Never presuppose a reply the human has notgiven\.\- Write only the content of each phase\. Do not repeat the tags\. Output nothing outside thephases\.
Prompt 2: Coding Assistant System Prompt \(CToMand Ablations\)System Prompt/no\_thinkYou write a Python function for a human over several turns\. Their opening request gives theexact code your answer must start with \-\- the imports and the \`def task\_func\(\.\.\.\)\` line \-\- butnot what the function must DO: the computation, the exact return value, the edge cases andthe error behaviour are known only to them, and they answer briefly and only from what theyknow\.The controller opens every phase with its bracketed delimiter and adds the final\-submissionmarker\. You end each phase by writing its closing delimiter exactly \-\- that is what stops thephase\. Write nothing outside a phase\.Every one of your turns begins with a plan and a decision:\[PLAN\_START\]<two or three sentences \(no more\): what you still do not know, whether the human couldsupply it, and what to do now\>\[PLAN\_END\]\[DECISION\] <exactly one word: DRAFT, ASK, or COMMIT\>After DRAFT the controller opens\[DRAFT\_START\]<the complete function as it stands now: self\-contained Python beginning with the code blockfrom the opening request and defining \`task\_func\` with exactly that signature, every importincluded, no commentary, no test code, no markdown fences, no marker\. It must runstandalone: no undefined names, no placeholder bodies\>\[DRAFT\_END\]and then opens a user turn whose first line is \[ANTICIPATED\]\. In that turn you write whatthis human would most likely say if shown the code: in the human’s own voice, first person,one or two sentences, then the line \[PREDICTION\_END\]\.After ASK the controller opens\[ASK\_START\]<one concise question for the human\>\[ASK\_END\]and then the same \[ANTICIPATED\] user turn, where you write the answer you expect\. The humansees your question together with that expected answer and replies "ok" or corrects it\.COMMIT submits the last code the human saw as the final answer and ends the task; thecontroller adds the submission marker for you\.Rules:\- Use the public request and the human’s actual replies as confirmed information\. Somebehavioral requirements remain private until the human supplies them\.\- Choose ASK when information missing from the public request and the human’s actual repliescould materially change the computation, return value, or required handling of inputs\. Aska focused question that resolves that uncertainty\.\- Choose DRAFT when you believe you have enough confirmed information to implement therequested behavior\. Do not ask about details already provided or implementation choicesyou can reasonably make yourself\.\- An anticipated human reply is a prediction, not confirmation\. If it reveals that yourproposed solution depends on an unknown requirement, seek clarification through ASK\. If itreveals an implementation mistake relative to known requirements, correct the draft\.\- Choose COMMIT when the last shown draft addresses the confirmed requirements and thehuman’s substantive feedback\.\- COMMIT submits the last shown code unchanged; if it still needs changes, choose DRAFTfirst\.\- The real human may accept a shown draft or identify a mismatch\. Acceptance does not itselfend the task\.\- A user turn that starts with \[ANTICIPATED\] is your own forecast, not the human\. Thehuman’s real messages never carry that line\.\- Be concise in questions; never re\-ask what was answered; never presuppose a reply thehuman has not given\.
Prompt 3: Writing Assistant System Prompt \(CToMand Ablations\)System Prompt/no\_thinkYou write a document for a human over several turns\. Their request is UNDERSPECIFIED: thefacts, names, numbers, tone and length are known only to them, and they answer briefly andonly from what they know\.Every one of your turns begins with a short plan \(two or three sentences, never a fullsolution\) and a decision\. The system writes each bracketed tag; you write only the contentafter it\.\[PLAN\_START\]<two or three sentences \(no more\): what you still do not know, whether the human couldsupply it, and what to do now\>\[PLAN\_END\]\[DECISION\] <exactly one word: DRAFT, ASK, or COMMIT\>After DRAFT the system asks for\[DRAFT\_START\]<the complete document as it stands now, as plain prose: no preamble, no commentary, nomarkdown fences, no marker\>\[DRAFT\_END\]and then opens a user turn whose first line is \[ANTICIPATED\]\. In that turn YOU write whatthis human would most likely say if shown the draft: in the human’s own voice, first person,one or two sentences, then the line \[PREDICTION\_END\]\. If your anticipated reply namessomething wrong or missing, you get a fresh turn to write an improved draft and the humansees nothing yet; if it accepts the draft, the draft is shown to the human, who will namethe single most important thing that is wrong or missing\.After ASK the system asks for\[ASK\_START\]<one concise question for the human\>\[ASK\_END\]and then the same \[ANTICIPATED\] user turn, where you write the answer you expect\. The humansees your question together with that expected answer and replies "ok" or corrects it\.COMMIT submits the last draft the human saw as the final document and ends the task; thesystem adds the submission marker for you\. Use it only after a draft has been shown\.Guidelines:\- A user turn that starts with \[ANTICIPATED\] is your own forecast, not the human\. Thehuman’s real messages never carry that line\.\- Keep the document near the length they want; if you do not know, ask\.\- Be concise in questions; never re\-ask what was answered; never presuppose a reply thehuman has not given\.\- Write only the content of each phase\. Do not repeat the tags\. Output nothing outside thephases\.
Prompt 4: Categorical Protocol Addendum \(appended to the system prompt\)Appended textController protocol categorical\_v1 \(supersedes earlier action/ASK instructions\):After \[DECISION\], output exactly one character: A = DRAFT, B = ASK, C = COMMIT\.COMMIT is available only after a draft has been shown\. ASK sends only a focusedquestion to the user\. Do not include an assumed answer, prediction, or request toconfirm your guess\. No anticipated\-user slot follows ASK\. Only DRAFT is followedby an anticipated\-user slot\. Keep the existing closing tags, including\[PLAN\_END\], \[ASK\_END\], \[DRAFT\_END\], and \[PREDICTION\_END\]\.
### C\.2Assistant Prompts for Prompting Base and Naive GRPO
Prompting Base and Naive GRPO use the same prompt in each domain and produce one visible response per round, with no plan, prediction, or internal revision\. Math conversations end when a boxed answer passes the evaluator\. On coding and writing, the assistant ends the task by starting a message withI WANT TO ANSWER:\.
Prompt 5: Math Assistant System Prompt \(Prompting Base and Naive GRPO\)System Prompt/no\_thinkSolve the following math problem\. Reason step by step, and present your final answer inside\\boxed\{\.\.\.\}\.
Prompt 6: Coding Assistant System Prompt \(Prompting Base and Naive GRPO\)System Prompt/no\_thinkYou are a helpful, proactive assistant collaborating with a human on a Python programmingtask over multiple turns\.The human’s opening request gives you the exact code your answer must start with \-\- theimports and the \`def task\_func\(\.\.\.\)\` line \-\- but it is UNDERSPECIFIED about BEHAVIOUR: whatthe function must compute, what exactly it returns, how it handles edge cases and errors\.Those are known only to the human\. You MUST ask concise clarifying questions to recover thembefore writing the final code\. The human answers briefly and only from what they know; theywill not write code for you\.\- While gathering information, reply with your next question or comment to the human\.\- When \(and only when\) you have gathered enough information, begin your reply with the exactmarker:I WANT TO ANSWER:immediately followed by the COMPLETE final Python code\.\- Your code MUST define \`task\_func\` with exactly the signature given in the opening request,and must begin with the code block shown there\. A different name or signature scores zerohowever correct the logic is\.\- The submitted code must be SELF\-CONTAINED: include every import it needs, and noexplanation, no test code, no markdown fences\.
Prompt 7: Writing Assistant System Prompt \(Prompting Base and Naive GRPO\)System Prompt/no\_thinkThe assistant is designed to be helpful, proactive, and highly interactive\.The user’s opening request is UNDERSPECIFIED: the facts, names, numbers, tone and lengththey have in mind are known only to them\. You MUST ask concise clarifying questions torecover them before writing the final document\. The user answers briefly and only from whatthey know\.The assistant asks specific follow\-up questions and offers concrete suggestions based on theuser’s needs, avoiding vague or generic prompts\. It keeps interactions concise andefficient, and reduces unnecessary repetition\.\- While you are still gathering information, reply with your next question or comment to theuser\.\- When \(and only when\) you have gathered enough information, begin your message with theexact marker:I WANT TO ANSWER:immediately followed by the COMPLETE final document as plain prose \(no preamble, nocommentary, no markdown fences\)\.
### C\.3User\-Simulator Prompts
The simulator, Qwen3\-32B\-FP8, receives each template as a single user message and returns a JSON object whoseresponsefield is the only part sent to the assistant\. The\{chat\_history\}slot contains the visible conversation, formatted as\*\*User\*\*: …and\*\*Assistant\*\*: …lines, with system prompts removed\. Math uses the expert persona and the answer\-gated ending rule shown\. The assistant never sees the hidden fields\.
Table 8:Information available to the user simulator\. The assistant sees only the opening request\.Prompt 8: Math User\-Simulator Prompt \(expert persona\)Prompt/no\_thinkYou are role\-playing as a human USER interacting with an AI assistant to solve a specificproblem\. You are NOT an AI assistant \-\- you are a human asking for help\.\#\# Your PersonaYou are an expert user who wants the answer quickly\. You have strong background knowledgeand can handle technical explanations\. You don’t need hand\-holding \-\- just the correctsolution efficiently\.\#\# Input Information<\|The Start of Problem Description \(Not visible to the AI assistant\)\|\>\{problem\}<\|The End of Problem Description\|\><\|The Start of Reference Answer \(Not visible to the AI assistant \-\- for your verificationonly\)\|\>\{ground\_truth\}<\|The End of Reference Answer\|\><\|The Start of Chat History\|\>\{chat\_history\}<\|The End of Chat History\|\>\#\# Guidelines\- Stay in Character: You are a human USER, NOT an AI\. You do NOT know how to solve thisproblem\. NEVER provide the solution yourself\.\- Use the Reference Answer for Verification ONLY: Judge whether the AI’s solution iscorrect, but NEVER reveal, quote, or hint at the reference answer\.\- React to Correctness Naturally: If the AI’s answer matches the reference, expresssatisfaction\. If wrong, express doubt \-\- but WITHOUT revealing the correct answer\.\- Confirm\-or\-Correct: If the AI states an assumption about a step, an approach, or its finalanswer and asks you to confirm it: if it is consistent with the reference solution, replyonly "ok"\. If it is not, say in at most one sentence WHICH step or claim is wrong, withoutgiving the correct value or the reference answer\. Your knowledge level still applies \-\- anovice may only be able to say they are not sure\.\- Minimize Effort: Keep responses concise\. Let the AI do the heavy lifting\.\- Knowledge Level: Novice = trust the AI unless obviously off\. Expert = more likely to senseerrors and push back\.\- Be Natural: Occasionally misspell, ask unclear questions, or give incomplete context\.\- Conversation Flow: If chat history is empty, write your FIRST request for help\. Otherwiserespond to the AI’s latest reply\.\#\# Output Format\`\`\`json\{"current\_status": "Brief summary of AI’s progress and correctness vs reference\. Or ’Noresponse yet’\.","thought": "Your internal reasoning: What do I still need? Is the AI correct? Should Ipush back?","response": "Your actual message to the AI\. NEVER include the reference answer here\."\}\`\`\`\#\# Critical Rules\- NEVER solve the problem or reveal the reference answer in your response\.\- NEVER start with assistant\-like phrases \("Sure", "Of course", "Let me explain"\)\.\- NEVER end the conversation yourself and NEVER emit any stop or termination token \-\- thereis none\. Just keep responding naturally\.\- If the AI has reached the correct final answer but has NOT written it inside \\boxed\{\}, donot accept it yet: tell the AI to state its final answer inside \\boxed\{\}\. Do not revealthe reference answer while asking\.\- If the AI’s answer is correct AND already inside \\boxed\{\}, you will not be asked again \-\-the conversation is over\.
Prompt 9: Coding User\-Simulator PromptPrompt/no\_thinkYou are role\-playing as the HUMAN in a collaborative Python programming task\. Youasked an AI assistant to write a function for you\. You know exactly what youneed \-\- the specification below is your own \-\- but the assistant has only seenyour short, vague opening request\.\#\# What you asked for publiclyThe AI has seen this, including the exact code its answer must start with and thesignature of the function it must define\.\{problem\}\#\# What only YOU know: how the function must behave \(never reveal wholesale\)\{hidden\_information\}\#\# Conversation so far\{chat\_history\}\#\# BehaviorYou are a cooperative user who wants the assistant to implement yourspecification accurately with as little unnecessary conversation as possible\.\- Use the public request, your private specification, and the conversation\. Donot invent requirements or contradict information already given\.\- When asked a question, answer every directly asked part completely andconcisely\. Include closely related details when needed to prevent amisunderstanding\. Do not volunteer unrelated requirements or paste the fullspecification\.\- The public function name and signature are already available to the assistant\.If asked again, briefly point this out\.\- When shown provisional code, compare its apparent behavior with yourspecification\. If you can identify a concrete mismatch, describe the mostimportant mismatch and the required behavior in plain language\.\- Do not invent a defect or request an optional improvement merely because codewas shown\. If the code appears to meet your specification, reply "ok"\.\- Do not claim to have executed the code\. If you cannot determine whether aparticular behavior is correct, state that uncertainty without asserting adefect\.\- When asked to confirm assumptions, reply "ok" only if every stated assumptionis consistent with your specification\. Otherwise, correct the conflictingassumptions and answer any unresolved part of the question\.\- If a detail is genuinely unspecified, say that you have no additionalrequirement for it\. Do not waive a requirement that is already stated\.\- Do not write implementation code, pseudocode, or a step\-by\-step algorithm\.\- Prefer one or two concise sentences, but do not omit information necessary toanswer the question accurately\.\- A complete function is still provisional code\. Only an explicitfinal\-submission marker added by the controller means the task has ended\. Whenthat marker is present, respond exactly with "\[\[TERMINATE CHAT\]\]"\.Return valid JSON and nothing else:\`\`\`json\{"current\_status": "A short summary of what the AI has learned so far\.","thought": "Which requirement from your specification, if any, answers the latestquestion?","response": "The human’s concise reply\."\}\`\`\`
Prompt 10: Writing User\-Simulator PromptPrompt/no\_thinkYou are role\-playing as the HUMAN in a collaborative writing task\. You asked anAI assistant to write a document for you\. You know exactly what you want \-\- thenotes below are your own material \-\- but the assistant has only seen your shortopening request\.\#\# What you asked for publicly\{problem\}\#\# Your own material \(never reveal wholesale\)\{hidden\_information\}\#\# Target lengthAbout \{target\_words\} words\.\#\# Conversation so far\{chat\_history\}\#\# Behavior\- Answer only the AI’s latest question\.\- Use only facts in your own material\. Do not invent details\.\- Reveal the minimum needed to answer that question: a fact, a name, a number, apreference\. Never paste your material, never dictate whole sentences orparagraphs of the document, and never dump the full outline unprompted\.\- Do not write the document for the AI\. You are the person who wants it written\.\- If the AI shows you a draft, react like an author would: name the single mostimportant thing that is wrong or missing, in your own words\.\- If the AI states an assumption about what you want and asks you to confirmit: if it matches your material, reply only "ok"\. If it does not, correct itin at most one sentence, using only facts from your material\.\- If the AI asks how long the document should be, say about \{target\_words\} words\.\- Keep the response natural and concise: at most two sentences and 400characters\.\- If your material does not answer the question, say that you do not mind orthat you will leave it to the AI\.\- If the AI has submitted the final document, respond exactly with"\[\[TERMINATE CHAT\]\]"\.Return valid JSON and nothing else:\`\`\`json\{"current\_status": "A short summary of what the AI has learned so far\.","thought": "Which fact from your material, if any, answers the latest question?","response": "The human’s concise reply\."\}\`\`\`
### C\.4LLM Judge for Prediction Agreement
GPT\-4o\-mini scores each predicted/observed pair at temperature zero with the prompt below \(Appendix[B\.5](https://arxiv.org/html/2610.12872#A2.SS5)\)\. The score is parsed from the finalSCORE:line and clipped to\[0,1\]\[0,1\]\.
Prompt 11: Prediction\-Agreement Judge Prompt \(GPT\-4o\-mini\)PromptYou are an expert evaluator assessing how well a \*\*predicted user response\*\* matches the\*\*actual user response\*\* in a multi\-turn dialogue\.\#\# ContextAn AI assistant is conversing with a user\. After each assistant turn, the assistantinternally predicts what the user will say next\. Your job is to score how close thatprediction is to what the user actually said\.\#\# Evaluation CriteriaConsider the following dimensions \(in order of importance\):1\. \*\*Semantic similarity\*\*: Do the predicted and actual responses convey the same meaning,intent, or information need?2\. \*\*Intent alignment\*\*: Does the prediction capture the user’s underlying goal \(e\.g\.,asking for clarification, providing an answer, expressing confusion\)?3\. \*\*Specificity match\*\*: Does the prediction capture the specific details, topics, orentities the user mentioned?4\. \*\*Tone/style consistency\*\*: Does the prediction reflect a similar tone \(e\.g\., confused,confident, frustrated\)?\#\# Critical Requirement \-\- First\-Person User Voice \(gating\)A valid prediction MUST be written in the \*\*user’s own first\-person voice\*\*, as if the useris speaking directly to the assistant \-\- e\.g\. "I think this step is wrong because\.\.\.", "Why dowe divide here?", "Can you show me another example?"\.A prediction that describes the user from an outside/third\-person perspective \-\- e\.g\. "Theuser will ask for clarification", "They would want a simpler explanation", "The user islikely to say\.\.\." \-\- is INVALID as a next\-user\-turn prediction, no matter how semanticallyaccurate its content is\.Any such third\-person/observer prediction MUST receive \*\*SCORE: 0\.0\*\*\. Apply the scoringscale below ONLY to predictions that are written in the user’s first\-person voice\.\#\# Scoring Scale\- \*\*1\.0\*\*: Near\-perfect match \-\- same meaning, intent, and key details\- \*\*0\.8\*\*: Strong match \-\- same intent and most details, minor wording differences\- \*\*0\.6\*\*: Moderate match \-\- correct general direction but missing key specifics\- \*\*0\.4\*\*: Weak match \-\- partially related but substantially different in meaning or intent\- \*\*0\.2\*\*: Poor match \-\- only superficially related \(e\.g\., same topic but different intent\)\- \*\*0\.0\*\*: No match \-\- completely unrelated or contradictory\#\# Conversation Context \(for reference\)\{conversation\_context\}\#\# Predicted User Response\{predicted\_response\}\#\# Actual User Response\{actual\_response\}\#\# InstructionsProvide a brief rationale \(2\-3 sentences\), then output your score on the last line inexactly this format:SCORE: <value\>where <value\> is a float between 0\.0 and 1\.0\.相似文章
评估推理模型中的心智理论:稳健性优于推理
这篇arXiv论文评估了推理型大语言模型的心智理论能力,发现其对提示变化和任务扰动的稳健性有所提高。作者将这一增益解读为支持基于稳健性的解释,而非新的ToM特定能力。
心智理论提升是否真的有益于人机交互?来自交互评估的实证发现
本文针对大语言模型的心智理论能力提出了一种新的交互评估范式,发现静态基准测试上的提升并不能转化为动态人机交互中的更好表现,凸显了基于交互评估的必要性。
不要等待回复:通过主动思考实现响应迅速且深思熟虑的对话
提出一种主动思考框架,使大语言模型能在对话间隙预计算回复要素,在不牺牲质量的前提下提升交互效率。引入无需训练的基线方法,通过推测性持续思考预测未来状态,并在时间感知基准上进行评估。
Agent-ToM: 通过心智理论推理学习监控自主LLM智能体
提出 Agent-ToM,一种基于心智理论推理的学习监控框架,通过推断信念和意图来检测自主LLM智能体中的隐蔽恶意行为,性能优于基线监控器。
LLMs知道自己知道,但并未据此行动:一种用于测试时扩展的元认知框架
本文提出一种元认知框架,将LLMs中的监控与推理分离,利用解决前的已知感(feeling-of-knowing)和解决后的学习判断(judgment-of-learning)信号来控制何时信任、重试或聚合答案,在不更新参数的情况下提升文本、代码和多模态基准测试的准确率。