SWE-Trail: History-Guided Trajectory Collection for Coding Agent Training
What it is
SWE-Trail is a method for collecting training trajectories for coding agents that uses historical data to guide where new collection effort is spent, rather than exposing that history to the agent as advice. It identifies useful states from previous runs and briefly executes candidate actions from those checkpoints to select the most promising routes, ensuring the agent relies only on its own context during training.
The problem it solves
Independent sampling of coding agent trajectories leads to redundancy, and exposing historical advice to the agent during training creates a mismatch with test-time conditions where such advice is unavailable.
What you could use it for
- Generating high-quality post-training data for large language models specialized in software engineering tasks
- Improving the resolution rates of coding agents on benchmarks like SWE-bench Multilingual and SWE-bench Pro
- Optimizing the efficiency of trajectory sampling by avoiding redundant exploration paths
Why it matters
Improves the performance of coding agents by producing more effective training data that avoids train-test mismatch, leading to higher issue resolution rates on complex software engineering benchmarks.
Read the source ↗Back to the library →
Summary written by an AI model from the source; check the source before you rely on it.