Recursive Self-Rewrite: AI Learns from Its Own Successes for Terminal Tasks

Paper / preprint Hugging Face Daily Papers · Reported findings, not independently verified by us.

A new method called Recursive Self-Rewrite (RSR) aims to turn successful solutions to difficult terminal tasks into training trajectories a model can use without specialized support systems. The work examines how experience from different execution environments might be reused to train more general-purpose agents.

RSR uses a base model, Qwen-3.8-27B. A planner condenses successful procedures into runbooks; a critic checks them for leaked solutions or verifier information and guides revisions. An executor then runs qualified runbooks in fresh sandboxes. From 2,001 successful source trajectories, the framework produced 11,094 rewritten trajectories for supervised fine-tuning.

Across approximately 3,000 self-curated terminal tasks, three harnesses jointly solved 759 tasks—34.3% more than the strongest individual harness in the recorded comparison. Against the base model, pass@3 rose from 57.0% to 74.2% on Terminal-Bench 2 and from 1.5% to 9.1% on Terminal-Bench 4. Scores also increased on two other named benchmarks, while the process reward on Long-Horizon Terminal-Bench rose from 0.21 to 0.29. The paper reports that training on RSR trajectories outperformed both the base model and direct trajectory SFT.

These are reported benchmark results and do not, by themselves, establish performance in real-world deployments. The original source provides further details on the method and comparisons: Original paper

🇬🇧 https://huggingface.co/papers/2610.02826

Leave a Comment

The weekly brief: selected developments, projects and videos