Terminal-RSI:通过递归自我重写与策略优化实现递归自我改进的终端智能体
研究论文 · 2026/10/16
将验证器结果转化为有用的策略更新,并将部分进展转化为完整任务解决,对终端智能体至关重要。我们提出Terminal-RSI,它交替进行已验证轨迹的递归自改写(RSR)与继承评论家的递归策略精炼(RPR)。我们制定Turn-Boundary Skip-Observation GAE(TB-GAE),以保留令牌特定的基线,同时在交互轮次间应用衰减。Family Dense Reward(FDR)校准跨任务家族的语义进展;Success-Prioritized Reward(SPR)将严格成功与有界部分信用分开。预热评论家模型、递归评论家交接和阶段特定学习率协调两个精炼阶段。从Qwen3.8-27B基础模型经过RSR-1、RPR-1、RSR-2和RPR-2的五阶段序列产生Terminal-RSI-27B:在Terminal-Bench 4.0上为19.84%,在Terminal-Bench 2.1上为86.52%,在Terminal-Bench 3.0上为16.95%,在Terminal-Bench Hard上为79.00%。在LHTB上,过程奖励从0.21上升到0.37,严格完成从0/46上升到5/46;SWR100成功率从3.00%翻倍到6.00%。通过递归耦合已验证轨迹改写与继承评论家的策略精炼,每个保留阶段巩固发现的行为,并逐步推动智能体从部分局部修复走向严格的终端验证。
该工作通过递归耦合轨迹改写与策略精炼,显著提升了终端智能体在多个基准上的性能,并提供了具体的奖励设计和训练阶段协调方法,对终端智能体研究有直接参考价值。
Converting verifier outcomes into useful policy updates and partial progress into complete task resolution is crucial for terminal agents. We present Terminal-RSI, which alternates Recursive Self-Rewrite (RSR) of verified trajectories with critic-inheriting Recursive Policy-Refine (RPR). We formulate Turn-Boundary Skip-Observation GAE (TB-GAE) to retain token-specific baselines while applying decay across interaction turns. Family Dense Reward (FDR) calibrates semantic progress across task families; Success-Prioritized Reward (SPR) separates strict success from bounded partial credit. A Warm-up Critic Model, recursive critic handoff, and stage-specific learning rates coordinate the two refinement phases. The five-stage sequence from Qwen3.8-27B base model through RSR-1, RPR-1, RSR-2, and RPR-2 yields Terminal-RSI-27B: 19.84% on Terminal-Bench 4.0, 86.52% on Terminal-Bench 2.1, 16.95% on Terminal-Bench 3.0, and 79.00% on Terminal-Bench Hard. On LHTB, process reward rises from 0.21 to 0.37 and strict completion from 0/46 to 5/46; SWR100 success doubles from 3.00% to 6.00%. By recursively coupling verified trajectory rewriting with critic-inheriting policy refinement, each retained stage consolidates discovered behaviors and progressively advances the agent from partial local repairs to strict terminal verification.