Scaling Trajectories for Complex Tasks through Recursive Self-Rewrite
Zongxia Li, Yucheng Shi, Zhongzhi Li, Junyao Yang, Ruhan Wang, Chengsong Huang, Fuxiao Liu, Haitao Mi and 2 others
Tencent HY LLM Frontier · University of Maryland, College Park · University of Georgia · National University of Singapore · Indiana University · Washington University in St. Louis
Published October 2, 2026 · on the feed October 5, 2026 · ▲ 103 · arXiv 2610.02826
The abstract
Successful trajectories on difficult tasks provide valuable supervision for model improvement, but specialized harnesses introduce interventions that may be unavailable during deployment. We propose Recursive Self-Rewrite (RSR), a framework that uses one base model, Qwen-3.8-27B, to discover successful solutions under diverse harnesses and reconstruct them as training trajectories under a general harness. A planner extracts procedures into runbooks, a critic screens for verifier and solution leakage and guides recursive revision, and an executor follows qualified runbooks in fresh sandboxes. Across approximately 3K self-curated terminal tasks, three harnesses jointly solve 759 tasks, 34.3% more than the strongest individual harness in the recorded pool. RSR expands 2,001 successful source trajectories into 11,094 rewritten trajectories for supervised finetuning. Training on these trajectories outperforms both the base model and direct trajectory SFT. Compared with the base model, pass@3 increases from 57.0% to 74.2% on Terminal-Bench 2, from 1.5% to 9.1% on Terminal-Bench 4, from 39.0% to 63.0% on our self-curated Terminal-Bench Hard, and from 3.0% to 6.0% on our Software Terminal-Bench. Process reward on Long-Horizon Terminal-Bench rises from 0.21 to 0.29. These results show how diverse harness-assisted experiences can be reconstructed into reusable capabilities for a model operating under a general harness.
The Brief
2:34A short podcast summary of the paper. Written and voiced by AI.
Transcript
Scaling Trajectories for Complex Tasks through Recursive Self-Rewrite. By Zongxia Li and nine others, from Tencent HY LLM Frontier, the University of Maryland, College Park, and five other institutions. Published on the second of October. No code repository is linked to it.
A successful trajectory on a difficult task is valuable supervision. The catch is where such trajectories tend to come from. Specialised harnesses help a model succeed, but they do so through interventions that may not be available once the model is deployed. The supervision, in other words, is gathered under conditions the deployed model will not share.
Recursive Self-Rewrite, or RSR, keeps the successes and rewrites the circumstances. One base model, Qwen-3.8-27B, first discovers successful solutions under a variety of harnesses. The same model then reconstructs those solutions as training trajectories under a general harness, the kind it will actually operate in.
Three roles do the reconstruction. A planner extracts the procedure behind a solution into a runbook. A critic screens each runbook for leakage, of the verifier or of the solution itself, and guides recursive revision until the runbook qualifies. An executor then follows qualified runbooks in fresh sandboxes, producing new trajectories that never relied on the original harness.
The task pool holds roughly three thousand terminal tasks, curated by the model itself. Three harnesses together solve seven hundred and fifty-nine of them, thirty-four point three percent more than the strongest single harness in the pool. RSR expands two thousand and one successful source trajectories into eleven thousand and ninety-four rewritten ones for supervised fine-tuning. Training on them beats both the base model and direct fine-tuning on the original trajectories.
Measured by pass at three against the base model, Terminal-Bench 2 rises from fifty-seven percent to seventy-four point two percent. Terminal-Bench 4 rises from one point five percent to nine point one. The authors' own Terminal-Bench Hard goes from thirty-nine percent to sixty-three, and their Software Terminal-Bench doubles, from three percent to six. Process reward on Long-Horizon Terminal-Bench climbs from zero point two one to zero point two nine.
The result reframes what a harness is for. Rather than a crutch the model has to carry into deployment, it becomes a way of finding solutions that are then rewritten into a form the model can follow unassisted. The authors frame it as turning diverse harness-assisted experience into reusable capability for a model running under a general harness, and the comparison with direct training on the original trajectories is what shows the rewriting step earning its place.
Paper Quest · 7 chapters · about 41 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Special tools help a model win, but the tools stay behind at deployment. What can the model keep?
You want your model to get better at hard terminal tasks. Specialised harnesses help it succeed, and each success is valuable training data.
The road ahead
- 1 · The problem ~7 min Successes found with a specialised harness are great training data, but they carry that harness's habits, which vanish once the model is deployed.
- 2 · What came before ~3 min
- 3 · The key idea ~9 min Find more successes with several harnesses, then have the same model rewrite each into a fresh, verified solve under the general harness, and train on those.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Discover successes under diverse harnesses, extract runbooks, screen them for leaks, re-solve in fresh sandboxes, then fine-tune on what passes.
- 6 · The experiment ~6 min You’ll guess: Starting from the base model's 57.0% pass@3 on Terminal-Bench 2, what pass@3 did training on rewritten trajectories reach?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.