← All entries
Paper2026#1300

Scaling Trajectories for Complex Tasks through Recursive Self-Rewrite

Summary

RSR: use one base model (Qwen-3.8-27B) to discover successes under diverse harnesses, then reconstruct them as training trajectories under a general harness - planner extracts runbooks, critic screens for verifier/solution leakage and guides recursive revision, executor follows qualified runbooks in fresh sandboxes.

Source
x
Added
Oct 8, 2026
Verified
Oct 8, 2026

Research notes

  • Discovery: @Yucheng__Shi (Yucheng Shi, Research Scientist @ Tencent Hunyuan LLM Seattle) X thread 2026-10-08 ~1:35 AM ET (~11.3K views), announcing two Tencent Hunyuan papers together: "The same Qwen-3.8-27B model extracts a plan from a messy successful run, critiques it for leaked answers, and uses the screened guidance to tackle the task again in a clean environment - verified executions become training data." (Thread's headline: direct training on successful source trajectories lowered Terminal-Bench 2 pass@3 57.0%->53.4%, while RSR training raised it to 74.2% - final model running under a general harness without the private guidance.) Method: Recursive Self-Rewrite - one base model (Qwen-3.8-27B) discovers successful solutions under diverse harnesses, then reconstructs 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; an executor follows qualified runbooks in fresh sandboxes. Scale: ~3K self-curated terminal tasks; three harnesses jointly solve 759 tasks (34.3% more than the strongest individual harness). RSR expands 2,001 successful source trajectories into 11,094 rewritten trajectories for SFT. Results vs base (pass@3): Terminal-Bench 2 57.0->74.2; Terminal-Bench 4 1.5->9.1; Terminal-Bench Hard 39.0->63.0; Software Terminal-Bench 3.0->6.0. Process reward on Long-Horizon Terminal-Bench 0.21->0.29. Direct SFT on source trajectories is mixed/negative: TB2 pass@3 57.0->53.4 (per thread), mean per-run pass rate 51.7%->43.8%; RSR beats Direct SFT by 20.8/4.1/4.6/7.0/3.0 pts pass@3 on TB2/TB3/TB4/TBH/SWR100. Mechanism: source trajectories carry harness-specific interventions (reminders, recovery loops, sustained-execution support) unavailable under a general harness; rewriting standardizes them. Directly relevant to the user's RL post-training and unnamed AI agent app: trajectory filtering/reuse for agent training - messy harness-assisted successes can hurt if used raw; rewrite them under the deployment harness. Caveats: arXiv CC BY 4.0; no code/data repo linked on arXiv at catalog time.

Similar entries