A support agent can finish an order change successfully while providing a poor demonstration for its successor. It may use an order identifier that the collector knew privately, or carry out an unnecessary change that the API accepts. A terminal success flag tells us how an episode ended; it does not establish that every intermediate action was learnable from the information available at that moment.
Trajectory2Gym makes that distinction the organizing principle of a tool-use training pipeline. It constructs interactions with missing cross-step dependencies, filters imitation targets against the learner-visible history, and controls how much training weight each complete interaction receives. The reported gains come from supervised fine-tuning, without reinforcement learning. The strongest lesson is about designing experience, rather than merely accumulating successful traces. Source: §1–4, pp. 1–5.
The missing unit is a dependency
Consider a request to change a lamp and a bottle, followed by confirmation to change only the lamp. Both API requests might execute, even though replacing the bottle violates the revised scope. In another workflow, an address must be updated before an item edit changes the order status. Learning the individual calls does not teach either dependency.
The paper separates compositional coverage—the range of observation-to-action and state-to-action dependencies represented in the data—from decision grounding—whether a particular target is supported by the preceding visible interaction. Its shared pool contains 34,772 certified interactions across 2,515 training-side tasks, yet 40.9% have at most two supervised assistant decisions and only 10.0% contain a grounded decision after an authentic error. A large dataset can still offer little practice in recovery. Source: §1–3 and Appendix B, pp. 1–3, 16–18.
Construct, execute, then certify

Open original PNG for zoom
The generator targets a capability path expressed through semantic operations, observations, recovery, branching, handoff, termination, and horizon. It creates a compatible request and initial state, then a teacher executes the task in the native environment. A proposed recovery scenario counts as recovery experience only if a real rejection and subsequent continuation actually occur.
Canonical paths preserve the ordered descriptors of eligible decisions and their observations. They abstract away exact API names, literal argument values, task identities, and benchmark labels. An order lookup and a flight lookup can therefore share an information-dependent structure while retaining different underlying histories. The representation also records access types, object classes, argument roles, observation shapes, and whether error feedback preceded a decision. This path summarizes experience; it does not replace the evidence used to validate it. Source: §4.1 and Appendix B, pp. 3–4, 16–18.
Keep the error as context, remove it as a target
The student acts from the request, currently visible tool schemas, and the visible projection of the interaction history. Teacher-only hints and private collection events remain outside that context. For a tool action, execution validity requires accepted non-error execution or native action-only validation; grounding requires available tools and preceding visible support for identifier-like arguments. A dynamically discovered tool must first appear in a visible retrieval result.
The paper's supervision mask can be written as:
Here R_τ is terminal task success, q_τ is the ordered list of required operations, A_τ is the realized sequence of relevant user operations and locally eligible assistant actions, e_t is execution validity, and v_t is decision-time grounding. The subsequence check allows information gathering between required operations while preserving their order. If the native checker already fully specifies the task, q_τ can be empty.
A failed lookup receives no imitation loss, but its authentic error remains in the visible history. A later request for a name and ZIP code can then be a valid recovery target. This avoids teaching the failure while preserving why the recovery was necessary. Repeating a read after a state change can likewise be useful; identical call text is insufficient to declare a step redundant. Source: §3–4.2, Eqs. 1, 5–6; Appendix C, pp. 3–5, 18–19.
These checks certify specific provenance and workflow conditions. They do not prove that every admitted action is uniquely determined by its history, or verify every possible reason for choosing it. Appendix E's entropy decomposition explains the extra uncertainty when actions still depend on collector-private information; it is not a downstream generalization guarantee. Source: Appendix C.1 and E.1, pp. 18, 22.
Balance structures and normalize complete interactions
Selection first retains a certified core, supplies a completing example for each training task, closes capability and path coverage gaps, and then allocates repeated support to under-represented paths. The target depth is 1, 2, 3, 4, or 8 for Qwen3 1.7B, 4B, 8B, 14B, and 30B-A3B respectively. Per-task limits and candidate availability can leave deficits unresolved; depth is not a command to overfill every path.
For path p, its remaining deficit is . Adding an interaction contributes support while its path remains below the target. Under an idealized pure cardinality budget, this deficit stage exactly maximizes capped support. The actual multi-stage selector has additional constraints, so the theoretical result should not be extended to global optimality of the complete procedure.
There is a second, less visible bias. One conversation may render into three training rows while another renders into one. Averaging rows assigns the conversations total weights of 3/4 and 1/4. Parent normalization instead averages certified target-token loss within each semantic interaction and then gives each interaction equal aggregate weight: 1/2 and 1/2 in this example. It makes the intended objective invariant to regrouping the same targets with unchanged histories, although finite training updates can still depend on batching and order. Source: §4.3, Eq. 8; Appendices D–E, pp. 5, 19–24.
What the experiments actually compare
Five public Qwen3 initializations receive one epoch of full-parameter, non-thinking SFT. The selected views contain 11,583–19,937 interactions and approximately 13.0M–23.9M supervised target tokens; the 30B-A3B view also expands task coverage to 3,602 tasks. Training uses AdamW, a global batch of eight rendered examples, bfloat16, cosine learning-rate decay and ten warmup steps. There is no preference-learning or reinforcement-learning objective.
The primary evidence pairs each trained model with its own initialization under the same native interface, task population, decoding, user simulator, and scorer. Tau1 contains 115 Retail and 50 Airline evaluation tasks; Tau2 has 40 Retail, 20 Airline, and 40 Telecom tasks. Scores macro-average domains. BFCL has 1,718 examples, and its Overall equally averages the Non-live mean, Live mean, and Multi-turn Base. Each task is run once. Source: §5.1 and Appendix A, pp. 5–6, 16.
| Qwen3 scale | Tau2 initialization → trained | BFCL Overall initialization → trained |
|---|---|---|
| 1.7B | 23.33 → 37.50 | 55.88 → 66.48 |
| 4B | 19.17 → 69.17 | 62.92 → 74.85 |
| 8B | 25.00 → 74.17 | 67.30 → 78.62 |
| 14B | 25.00 → 80.83 | 72.01 → 79.68 |
| 30B-A3B | 28.33 → 84.17 | 77.58 → 80.93 |
Values are percentages from Tables 1–2, pp. 6–7. Across Tau1, Tau2, and BFCL, the equal-weight mean improves by 16.9–29.8 percentage points. The 4B trained model exceeds the 30B-A3B initialization on Tau2, but that compares different training histories and is not a universal size-efficiency law. Single-turn behavior is also mixed: Live Simple falls by roughly 6–13 points at four of five scales. The authors hypothesize a shift toward information gathering; that explanation is not established causally.
Which choices help, and which remain uncertain
Four stage-matched 8B ablations favor the proposed choices: targeted expansion adds 3.55 points to the three-benchmark mean, grounding 2.75, structural selection 2.32, and parent normalization 8.04. These gains are not additive. Expansion changes candidate supply without fixing target-token volume, whereas the parent-normalization comparison holds semantic trajectories, renderings, masks, and sample order fixed. Each arm is a single run, and one Tau2 Airline task moves the combined mean by 0.56 points, so small differences are directional evidence. Source: Table 3 and Appendix F.3, pp. 7–8, 25.

Open original PNG for zoom
More repetition is not automatically better. In the separate depth-sensitivity runs, depths 2, 3, and 4 produce means of 72.28, 70.55, and 69.44 as interactions and target-token volume grow. Those are control-specific runs, not replacements for the headline 8B checkpoint. Because depth also changes volume, the experiment does not isolate repeated support alone. Source: §5.5, Table 4, Appendix F.5, pp. 8, 25.
Read the cases as behavior, not a causal experiment
The order-edit example shows why prerequisites matter: changing items first can make a later address edit invalid. The recovery trace retains a failed email lookup, then uses user-provided identity information, order states, catalog identifiers, and confirmation to complete dependent operations. Additional cases cover revised user intent, phone-side actions that must be delegated to the user, airport-code recovery before booking, and reuse of a booking identifier for later services.
The paper also retains a negative case: a baseline completes payment, line resumption, and device repair, while Trajectory2Gym hands off after sending a payment request and leaves the task unfinished. Independently evolving dialogues make these examples illustrations of behavior, not identical-context tests or estimates of failure frequency. Source: §5.6, Figure 4, Appendix G and Figures 5–11, pp. 8–9, 25–30.
Implications for an agent developer
The practical proposal is to audit three different objects: the dependencies available in the corpus, the decisions eligible for imitation, and the total optimization weight assigned to each interaction. This is useful when building a native tool-use training environment with observable identifiers, authentic errors, and checkable task state. It is harder to apply when execution logs are incomplete or a reliable task checker is unavailable.
Several limits bound the result. Tau1 Airline uses the public 50-task identity set on the training side and fresh dialogues for evaluation, so it is a seen-task transductive setting, not task-disjoint generalization. External agent checkpoints and reported closed models differ in training data, model families and context budgets, so their rankings do not isolate this pipeline's components or establish equal-compute superiority. Larger scales also receive different training views. The study does not demonstrate transfer to arbitrary web, terminal, or software agents; extending certification to those environments and on-policy rollouts is future work.
Our assessment is that parent-level weighting and visible-evidence eligibility are especially actionable design ideas because they expose avoidable artifacts of data preparation. The results support testing those ideas under one's own controlled split and failure distribution. They do not justify replacing permission checks or operational safeguards with a learned success score. Source: §6, Appendices A, C, E–G, pp. 9, 16, 18–30.
Original paper: Yihao Hu et al., Trajectory2Gym: Decision-Grounded Compositional Interaction Synthesis for Tool-Use Agents, arXiv:2610.33568v1, 24 October 2026. Abstract and paper.