Trajectory2Gym data lifts a 4B Qwen3 agent past the stock 30B model on Tau2

50 minutes ago

Trajectory2Gym builds fine-tuning data for tool-use agents from conversations it constructs and checks one decision at a time. One epoch of plain SFT on it improves five Qwen3 models from 1.7B to 30B-A3B on Tau1, Tau2 and BFCL, and the 4B model passes the stock 30B-A3B model on Tau2. Hu et al., Westlake University and Ant International, arXiv 2610.33568v1, submitted 24 October 2026. Paper: https://arxiv.org/abs/2610.33568 Code: https://github.com/yihaohu0118/Trajectory2Gym Data: https://huggingface.co/datasets/mis2/Trajectory2gym Checkpoints: https://huggingface.co/mis2/Trajectory2Gym-8B

Ask about this presentation

Chapters

  1. 0:00Trajectory2Gym
  2. 0:20A call that runs can still be wrong
  3. 0:34Most logged runs teach too little
  4. 0:47Build, ground, weight
  5. 1:02Every size improved
  6. 1:17One retail task, three agents
  7. 1:358B against agent checkpoints
  8. 1:52Equal weight per conversation
  9. 2:06Limits
  10. 2:25Code, data and models
Show transcript
  1. Trajectory2Gym builds training data for AI agents that call tools. One pass of fine-tuning on it lifts a 4B Qwen3 model past the stock 30B one on Tau2, a set of multi-step customer-service tasks. It comes from Westlake University and Ant International.

    Slide text
    AI Papers

    Trajectory2Gym data lifts a 4B Qwen3 agent past the stock 30B model on Tau2

    Yihao Hu, Zhihao Wen and colleagues · Westlake University, Ant International

    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · 24 Oct 2026
  2. A shopper asks for a bigger bottle and a dimmer lamp, then says, just the lamp. Both exchanges still go through, so keeping every successful call teaches the bottle swap too. Trajectory2Gym drops it.

    Slide text
    01 02 03 04 The problem

    A tool call that runs can still be the wrong thing to learn

    Figure 1: a user asks for a bigger bottle and a dimmer lamp, then confirms only the lamp. Filtering by execution keeps both exchanges; Trajectory2Gym rejects the bottle exchange.
    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · Figure 1, schematic
  3. In a pool of about 35,000 successful agent runs, two in five hold at most two decisions worth learning from. Only one in ten shows the agent recovering after a real error.

    Slide text
    01 02 03 04 The problem

    Most successful runs are too short to teach recovery

    40.9% of 34,772 certified runs hold two or fewer decisions to learn from
    10.0% hold a grounded decision after a real error
    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · Section 1, Appendix B.1
  4. It writes new tasks around rare patterns, like a retry after a failed lookup, and runs them for real. It trains only on actions the agent could justify from what it saw. And every conversation gets equal weight.

    Slide text
    01 02 03 04 The method

    Build the missing conversations, then train only on justified moves

    Synthesize new tasks around rare patterns, like a retry after a failed lookup, run in the real benchmark environment
    Ground an action is a training target only if what the agent could see supports it
    Weight each conversation counts once in the loss
    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · Section 4
  5. Five Qwen3 models, from 1.7B to 30B, got one epoch of fine-tuning and no reinforcement learning. Every one finishes far more Tau tasks than the stock model it started from.

    Slide text
    01 02 03 04 The results

    Every Qwen3 size finished more Tau tasks after training

    stock Qwen3 + Trajectory2Gym
    1.7B
    15.93
    35.97
    4B
    21.70
    56.70
    8B
    26.44
    62.65
    14B
    28.52
    69.44
    30B-A3B
    36.36
    75.47

    Mean of Tau1 and Tau2 task success, %

    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · Table 1
  6. Take one retail order that has to ship to New York and swap two items. One baseline ignores the address it found. Another edits the items first, which locks the address. Trajectory2Gym changes the address first, then the items.

    Slide text
    01 02 03 04 The results

    One retail order, three 8B agents, and only Trajectory2Gym finished it

    Figure 4: Simia Tau-SFT misses the New York address and transfers to a human; MUA-RL-8B edits items first and the address update fails; Trajectory2Gym updates the address, then the items, and passes.
    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · Figure 4, Tau1 Retail task 112
  7. The Trajectory2Gym 8B model finishes about three in four Tau2 tasks. The best of six public agent checkpoints, a 32B reinforcement-learning model, finishes under half. Their training data and compute differ.

    Slide text
    01 02 03 04 The results

    The 8B model beats every public agent checkpoint tested on Tau2

    Trajectory2Gym 8B
    74.17
    MUA-RL-32B
    45.00
    Simia Tau-SFT 8B
    42.50
    MidTool-RL-8B
    29.17
    EnvFactory-8B
    26.67
    MUA-RL-8B
    25.83
    LoopTool-8B
    24.17

    Tau2 task success, %. Training data and compute differ across rows.

    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · Table 1, Tau2 average
  8. A long conversation gets cut into several training rows, so ordinary averaging lets it dominate. Weighting each conversation equally, on the same data, raised the 8B model's average by about 8 points.

    Slide text
    01 02 03 04 The method

    Counting each conversation once was worth 8 points

    Per training row
    long chat · 3/4 1/4
    a long chat split into three rows outweighs a short one
    Per conversation
    long chat · 1/2 1/2
    same data, equal weight: +8.04 points on the 8B three-benchmark mean
    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · Section 4.3, Table 3
  9. On the Berkeley function-calling leaderboard, simple queries that expect one immediate call got worse at four of five sizes. Every task ran once, so small gains only show a direction. Tau1 Airline tasks also seeded training. And more repetition per pattern scored lower.

    Slide text
    01 02 03 04 The limits

    Single-call accuracy slipped, and each task ran once

    BFCL Live Simple fell 6 to 13 points at four of five sizes
    One run per task at 8B, one Tau2 Airline task moves the mean 0.56 points
    Tau1 Airline tasks were seen they also seeded training data
    More repetition scored lower support depth 2 beat 3 and 4 at 8B
    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · Tables 2 and 4, Section 5.4, Appendix A.2
  10. The code, the pool of about 35,000 runs and all five models are on GitHub and Hugging Face. The code alone does not reproduce the scores. If I were fine-tuning a small tool-use agent, I would try per-conversation weighting first, because it changes only the loss.

    Slide text

    The code, the data and all five models are public

    Code github.com/yihaohu0118/Trajectory2Gym
    Data huggingface.co/datasets/mis2/Trajectory2gym
    Models huggingface.co/mis2, 1.7B to 30B-A3B

    The code alone does not reproduce the paper’s scores.

    Hu et al. · Trajectory2Gym · arXiv 2610.33568v1 · README

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built in New York with ❤️