ModularRSI:模块化且可泛化的递归框架自我改进
研究论文 · 2026/09/16
近期工作将递归自我改进(RSI)扩展到智能体执行框架(harness),用于长周期编码和终端任务,使智能体能够从经验中改进执行机制。然而,可泛化的执行框架RSI仍面临挑战:在评估基准或其子集上进化执行框架难以区分可复用改进与基准特定适应;单轨迹更新可能将系统性执行框架缺陷与实例特定推理和解决方案细节混为一谈,导致修改难以迁移到未见任务;在单体执行框架中定位反复出现的行为缺陷困难,而整体执行框架优化可能纠缠无关机制并复杂化归因与验证。我们提出ModularRSI,一个基准不相交、对比式、模块化的可泛化执行框架进化框架。ModularRSI对比同一任务的成功与失败轨迹,并跨任务聚合证据以识别反复出现的行为缺陷。它将可进化的执行框架分解为五个功能模块:智能体循环、工具使用、观察管理、上下文管理和任务完成检测。每个模块在受限修改范围内独立进化,随后通过集成阶段将进化后的模块组合为统一执行框架并解决潜在冲突。为支持基准不相交进化,我们从外部来源整理了2000个可执行进化任务,与下游评估基准不相交。在TB2.0和SWE-Bench Verified上的实验表明,在未见过的域内和跨域任务上持续改进,且进化后的执行框架还能跨不同基础模型迁移。
该工作针对智能体执行框架递归自我改进中的泛化难题,提出了模块化、对比式且与评估基准不相交的进化框架,在多个基准上验证了其持续改进和跨模型迁移能力,对构建可泛化的自我改进智能体系统具有重要参考价值。
Recent work extends recursive self-improvement (RSI) to agent harnesses for long-horizon coding and terminal tasks, enabling agents to improve execution mechanisms from experience. However, generalizable harness RSI remains challenging. First, evolving harnesses on evaluation benchmarks or their subsets makes it difficult to distinguish reusable improvements from benchmark-specific adaptation. Second, single-trajectory updates can conflate systematic harness deficiencies with instance-specific reasoning and solution details, producing modifications that transfer poorly to unseen tasks. Third, localizing recurring behavioral deficiencies within monolithic harnesses is difficult, while whole-harness optimization can entangle unrelated mechanisms and complicate attribution and validation. We propose ModularRSI, a benchmark-disjoint, contrastive, and modular framework for generalizable harness evolution. ModularRSI contrasts successful and failed trajectories for the same task and aggregates evidence across tasks to identify recurring behavioral deficiencies. It decomposes the evolvable harness into five functional modules: Agent Loop, Tool Use, Observation Management, Context Management, and Task Completion Detection. Each module evolves independently within a restricted modification scope, followed by an integration stage that combines the evolved modules into a unified harness and resolves potential conflicts. To support benchmark-disjoint evolution, we curate 2,000 executable evolution tasks from external sources that are disjoint from downstream evaluation benchmarks. Experiments on TB2.0 and SWE-Bench Verified show consistent improvements on unseen in-domain and cross-domain tasks, with the evolved harness also transferring across different foundation models.