Trajectory2Gym: Decision-Grounded Compositional Interaction Synthesis for Tool-Use Agents
Organizations: Westlake University (westlake.edu) · Ant International (ant-intl.com)
Abstract
Successful tool-use trajectories are not necessarily useful supervision. Even successful interactions may underrepresent multi-step dependencies or contain actions that are unjustified by the information visible to the agent at decision time. We identify two coupled requirements for effective trajectory supervision: compositional coverage, so that important observation-action dependencies are represented, and decision grounding, so that each supervised action is supported by the learner-visible interaction history. We introduce Trajectory2Gym, which constructs executable interactions around under-supported compositional structures and derives supervision only from grounded decisions in their realized executions. Structural-support selection allocates the resulting experience, while parent-normalized supervised fine-tuning preserves the semantic interaction as the unit of training weight. This reframes trajectory generation as the deliberate construction of learnable interaction experience, rather than the collection of successful trajectories. Across five Qwen3 scales, Trajectory2Gym improves Tau1, Tau2, and BFCL at every tested scale, increasing the equal-weight three-benchmark mean by 16.9-29.8 percentage points. The gains are strongest in stateful and multi-turn interaction, where later decisions depend on earlier observations and feedback. Our results suggest that scaling tool-use agents depends not only on collecting more successful trajectories, but on constructing interactions whose dependencies are represented and whose decisions are learnable from the agent's visible history.
Figures & tables
| Model | Tau1 | Tau2 | Mean | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Retail | Airline | Avg. | Retail | Airline | Telecom | Avg. | |||
| Closed-source references | |||||||||
| GPT-5.2 (high) | 75.44 | 63.00 | 69.22 | 81.58 | 83.00 | 89.69 | 84.76 | 76.99 | |
| Claude-4.5-Opus (high) | 79.39 | 67.50 | 73.45 | 79.61 | 84.00 | 92.32 | 85.31 | 79.38 | |
| Re-evaluated agent-training checkpoints | |||||||||
| Simia Tau-SFT (Qwen3-8B) | 45.22 | 28.00 | 36.61 | 62.50 | 50.00 | 15.00 | 42.50 | 39.55 | |
| Model | Non-live | Live | Multi-turn | Overall | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Simple | Par. | Mult. | Irrel. | Simple | Mult. | Irrel. | Base | |||
| Closed-source references | ||||||||||
| GPT-5.5 | 91.50 | 90.50 | 88.50 | 88.75 | 73.64 | 73.79 | 83.82 | 60.00 | 75.63 | |
| Gemini-3.0-Pro | 94.50 | 91.00 | 94.00 | 82.50 | 87.60 | 80.44 | 73.19 | 69.00 | 79.97 | |
| Agent-training references | ||||||||||
| ToolACE-2-8B | 88.00 | 92.50 | 92.50 | 95.41 | 70.93 | 79.01 | 84.80 | 49.00 | 73.12 | |
| Setting | Tau1 | Tau2 | BFCL | Mean | Gain |
|---|---|---|---|---|---|
| Compositional interaction synthesis | |||||
| Existing candidate pool | 51.00 | 75.83 | 80.39 | 69.08 | – |
| + Targeted expansion | 58.61 | 81.67 | 77.61 | 72.63 | +3.55 |
| Decision-grounded supervision | |||||
| Loose success-derived targets | 48.13 | 71.67 | 75.86 | 65.22 | – |
| + Decision grounding | 51.13 | 74.17 | 78.62 | 67.97 | +2.75 |
| Depth | Trajectories | Target tokens | Tau1 | Tau2 | BFCL | Mean |
|---|---|---|---|---|---|---|
| 2 | 13,986 | 18.02M | 55.61 | 82.50 | 78.74 | 72.28 |
| 3 | 14,819 | 19.42M | 57.00 | 75.83 | 78.81 | 70.55 |
| 4 | 15,805 | 20.61M | 54.00 | 75.00 | 79.31 | 69.44 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Tau1 | Tau2 | BFCL | Mean |
|---|---|---|---|---|
| MUA-RL | ||||
| 8B | 34.65 | 25.83 | 58.17 | 39.55 |
| 14B | 47.57 | 45.00 | 64.05 | 52.21 |
| 32B | 54.04 | 45.00 | 72.48 | 57.17 |
| Simia (Qwen3-8B) | ||||
| Tau-SFT | 36.61 | 42.50 | 43.08 | 40.73 |
| Decision | Assistant decision | Preceding visible evidence | Supervision |
|---|---|---|---|
| 0 | Ask for identity | User requests cancellations and updates | Supervised |
| 1 | Lookup by email | User-supplied email; tool returns user not found | Context only |
| 2–4 | Recover identity | Error, then user-supplied name and ZIP 80281 | Supervised |
| 5–7 | Read two orders; confirm cancellations | User gives both order IDs; reads show pending status | Supervised |
| 8–9 | Cancel both orders | User explicitly confirms both cancellations | Supervised |
| 10–14 | Report results; confirm and change address | Third order is pending; user supplies and confirms the address | Supervised |
Tool-Using Agents
Tool-using agents plan and act through external tools, APIs, software interfaces, and environments to complete tasks beyond language generation.
See all 289 papers