The paper introduces TrajLong, a framework that reorganizes agent trajectories into training tasks focused on three long-context capabilities: evidence grounding, cross-evidence aggregation, and temporal state maintenance. They mid-train Qwen3-14B and Qwen3-30B models using this compiled data, then apply supervised fine-tuning.
The approach shows broad performance gains on 6 long-context and 12 agent benchmarks, outperforming baselines that use raw or masked trajectories. This suggests that organizing trajectory data around shared capability demands of long-context reasoning and agent execution provides a principled basis for designing effective supervision.