Collaborative Theory of Mind: Learning to Self-Revise by Anticipating User Responses
Organizations: The University of Texas at Austin · Autodesk
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.
Figures & tables
| Math | Coding | Writing | |||||||
| Method | Score | Turns | Tokens | Score | Turns | Tokens | Score | Turns | Tokens |
| Prompting Base | 69.14 1.97 | 1.23 0.03 | 1104 37 0 | 34.00 3.19 | 1.65 0.04 | 235 8 0 | 13.69 0.36 | 1.00 0.00 | 259 12 |
| Naive GRPO | 74.08 1.67 | 2.16 0.06 | 2255 192 | 48.91 3.24 | 2.01 0.00 | 253 8 0 | 17.92 0.29 | 1.00 0.00 | 353 6 0 |
| CToM | 79.62 1.65 | 1.78 0.05 | 541 32 0 | 51.05 3.08 | 3.57 0.08 | 460 26 | 19.08 0.51 | 4.89 0.09 | 960 39 |
| CToM w/o effort | 82.16 1.62 | 1.71 0.05 | 871 45 0 | 54.42 3.19 | 3.98 0.07 | 527 27 | 19.18 0.40 | 6.00 0.00 | 1396 48 |
| CToM w/o prediction | 77.81 1.77 | 1.66 0.05 | 290 28 0 | 46.98 3.13 | 3.78 0.08 | 571 32 | 18.03 0.44 | 5.69 0.06 | 1198 61 |
| Math | Coding | Writing | ||||||
|---|---|---|---|---|---|---|---|---|
| Method | Replies | Tokens | Replies | Tokens | Replies | Tokens | ||
| CToM | ✓ | ✓ | 2.24 0.05 | 89.9 2.5 | 2.57 0.08 | 68.6 4.2 | 3.89 0.09 | 86.9 2.9 |
| CToM w/o effort | ✓ | 2.23 0.05 | 92.8 3.1 | 2.98 0.07 | 77.5 3.8 | 5.00 0.00 | 113.3 2.0 | |
| CToM w/o prediction | ✓ | 2.28 0.04 | 85.7 2.4 | 2.78 0.08 | 73.4 4.1 | 4.69 0.06 | 105.8 2.9 | |
| CToM task-only | 2.42 0.04 | 105.8 2.8 | 3.29 0.07 | 82.4 4.0 | 4.79 0.05 | 104.5 2.7 | ||
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| LoRA rank | 32 |
| GRPO Rollouts per prompt | 4 |
| Prompt batch size | 36 |
| PPO minibatch size (prompts) | 12 |
| Actor learning rate | |
| Learning-rate schedule | Cosine |
| Setting | Math | Coding | Writing |
| Training tasks | 3,263 | 480 | 500 |
| Epochs / final update | 2 / 180 | 16 / 208 | 16 / 208 |
| Maximum visible assistant rounds | 4 | 6 | 6 |
| Internal revision cap | 3 | 3 | 3 |
| Assistant evaluation temperature | 1 | 1 | 1 |
| Simulator evaluation temperature | 0.7 | 0.7 | 0.7 |
| Task | Method | ASK | Score |
|---|---|---|---|
| Math | CToM | ||
| CToM task-only | |||
| Coding | CToM | ||
| CToM task-only | |||
| Writing | CToM | ||
| CToM task-only |
| Task | Method | Inner | ASK | DRAFT | COMMIT | Score | |
|---|---|---|---|---|---|---|---|
| Math | CToM | 3 | 0 | 0.00 | 97.59 | 2.41 | 79.62 1.65 |
| CToM | 3 | 22.14 | 68.29 | 9.58 | 72.57 1.85 | ||
| CToM task-only | 3 | 0 | 0.00 | 97.36 | 2.64 | 77.19 1.75 | |
| CToM task-only | 3 | 36.77 | 55.44 | 7.79 | 72.95 1.85 | ||
| Coding | CToM | 3 | 0 | 2.89 | 70.19 | 26.92 | 51.05 3.08 |
| CToM | 3 | 20.64 | 54.39 | 24.97 | 48.93 3.07 |
| Domain | Method | 0 | 50 | 100 | 150 | 200 | Final |
|---|---|---|---|---|---|---|---|
| Math | CToM | – | |||||
| w/o prediction | – | ||||||
| Coding | CToM | ||||||
| w/o prediction | – | ||||||
| Writing | CToM | ||||||
| w/o prediction |
| Domain | Hidden information | Disclosure rule |
|---|---|---|
| Math | Reference answer | Judges correctness; never reveals, quotes, or hints at the answer. May name a wrong step. |
| Coding | Full behavioral specification | Answers the question asked; never pastes the specification or writes code. |
| Writing | Author’s notes and target length | Gives the minimum fact needed; never pastes material or dictates text. |