Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

SWE-Trail: history-guided trajectory collection for training coding agents

SWE-Trail is a trajectory collector for coding-agent training data that uses earlier trajectories to decide where to spend more collection effort, while keeping that history out of the agent's context to avoid a train-test mismatch. At chosen states the agent…

Published Read the original
SWE-Trail: history-guided trajectory collection for training coding agents

Why it matters

Teams generating post-training data for coding agents get a way to reduce redundant trajectories.

What happened

1 min read

SWE-Trail is a trajectory collector for coding-agent training data that uses earlier trajectories to decide where to spend more collection effort, while keeping that history out of the agent's context to avoid a train-test mismatch. At chosen states the agent proposes candidate actions and SWE-Trail briefly runs them from the same checkpoint to pick a route. A 124B student trained on its data beat independent sampling by 2.33 and 1.60 points on SWE-bench Multilingual and SWE-bench Pro.

inscraper analysis

Our analysis

The gains are modest, author-reported, and tested on a single base model (Ling-3.0-flash-base). The useful idea is separating collection guidance from the agent's context, which avoids training the model to depend on advice it will not have at test time. The abstract does not say what branching from checkpoints costs in compute. Mostly relevant to labs training coding models.

More in Research