通过递归自我重写实现复杂任务的扩展轨迹

·

研究论文 · 2026/10/05

在困难任务上成功的轨迹为模型改进提供了宝贵的监督,但专用执行框架引入的干预措施在部署时可能不可用。我们提出递归自我重写(RSR)框架,使用单一基础模型Qwen-3.8-27B,在不同执行框架下发现成功解决方案,并将其重建为通用执行框架下的训练轨迹。规划器将过程提取为运行手册,评论器筛查验证器和解决方案泄漏并指导递归修订,执行器在全新沙箱中遵循合格运行手册。在约3K个自策展终端任务中,三种执行框架共同解决了759个任务,比记录池中最强的单一执行框架多34.3%。RSR将2,001条成功源轨迹扩展为11,094条重写轨迹用于监督微调。在这些轨迹上训练优于基础模型和直接轨迹SFT。与基础模型相比,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%。Long-Horizon Terminal-Bench上的过程奖励从0.21升至0.29。这些结果展示了如何将多样化的执行框架辅助经验重建为模型在通用执行框架下运行时可复用的能力。

该研究提出了一种将不同执行框架下的成功经验转化为通用可复用能力的方法,在多个终端任务基准上取得显著性能提升,对提升模型在复杂任务上的泛化能力具有重要价值。

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.

阅读原文

参与讨论