Ant Group's SWE-Trail: history-guided trajectory collection yields better coding agents

antgroup · hf · 2026-11-03

Ant Group and University of Connecticut introduce SWE-Trail (arXiv, Nov 1), a trajectory collector for coding agent post-training. Independent per-issue rollouts get increasingly redundant, and exposing past trajectories as advice to the agent creates a train-test mismatch. SWE-Trail instead uses earlier rollouts only to decide where to spend collection effort — identifying states worth extra exploration, then briefly executing candidate next actions from the same checkpoint — while the agent generates its own steps in a normal context. Student models trained on SWE-Trail data outperform baselines.

Original post →

More from coding & agent

coding & agent channel →