cs.CLOct 24, 2026

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

Authors: Yihao Hu, Zhihao Wen, Yitong Lin, Siyuan Lu, Pan Wang, Wei Wu, Jiang-Ming Yang, Tao Lin

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

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. TopoCurate:Modeling Interaction Topology for Tool-Use Agent Training

    Mar 2, 2026Jinluan Yang, Yuxin Liu, Zhengyu Chen +7LLM Agent TrainingRL for Tool Use

  2. CoVe: Training Interactive Tool-Use Agents via Constraint-Guided Verification

    Mar 2, 2026Jinpeng Chen, Cheng Gong, Hanbo Li +9Tool-Using AgentsLLM Agent Training

  3. Agents' Last Doubt: Knowing When to Act and When to Step Back in Tool-Using Agents

    Oct 16, 2026Qisai Liu, Qingyue Jiao, Bangwei Guo +7Tool-Using AgentsLLM Decision-Making