Trajectory2Gym: Decision-Grounded Compositional Interaction Synthesis for Tool-Use Agents

Yihao Hu, Zhihao Wen, Yitong Lin, Siyuan Lu, Pan Wang +3 more
10/24/2026
cs.CL

No official code found. Best implementation: yihaohu0118/Trajectory2Gym (67 stars).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Trajectory2Gym: Decision-Grounded Compositional Interaction Synthesis for Tool-Use Agents. Official code, training tools, and examples.

672

Similar Papers

Cite this paper

@article{hu2026trajectorygym,
  title  = {Trajectory2Gym: Decision-Grounded Compositional Interaction Synthesis for Tool-Use Agents},
  author = {Yihao Hu and Zhihao Wen and Yitong Lin and Siyuan Lu and Pan Wang and Wei Wu and Jiang-Ming Yang and Tao Lin},
  year   = {2026},
  eprint = {2610.33568},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.33568v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.33568.svg)](https://codeofpaper.com/paper/2610.33568)

Discussion