arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.14009cs.LGcs.AIcs.CL
收藏

编码智能体记忆后训练II:通过在线策略蒸馏挖掘预训练文件操作在长周期任务中的记忆潜力

Coding Agent Memory Post-Training II: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via On-Policy Distillation

Peking University(北京大学);Sichuan University(四川大学);Beijing Institute of Technology(北京理工大学);Renmin University of China(中国人民大学);The Hong Kong University of Science and Technology(香港科技大学)

Lirui Luo, Kelong Mao, Xinwei Yang, Rongqing Li, Luyu Chen, Kieran Wong, Yudong Guo, Xinrui Wang, Jiayin Zhu, Pu Yao, Gu Simiu, Sulong Xu, Cong Fang

AI总结:

本研究提出 CAMP-II 方法,结合 CAMG-II 环境,通过异步 OPD 训练策略,使编码智能体的文件记忆能力在 CAMG-II 及两个外部基准上均实现显著性能提升。

摘要:

语言模型智能体越来越多地处理交互历史超出模型活动上下文的长周期任务,因此它们必须决定记录什么、读取什么以及何时进行这些操作。近期研究开始使用在线策略蒸馏(OPD)将记忆控制纳入策略,依赖于模型预训练之外的记忆工具和压缩协议。然而,这在两方面削弱了蒸馏效果:教师无法对从未使用过的接口提供有用指导,而学生采样的有意义记忆动作太少,导致指导无法生效。为研究该问题,我们引入编码智能体记忆 Gym II(CAMG-II),这是一套涵盖商店、编码、自动研究、通用和视觉领域的长周期智能体强化学习环境。除每个环境的原生任务接口外,CAMG-II还提供普通 Bash 访问和持续回合的工作空间,使策略能够在上下文替换过程中创建、修改、搜索和重用文件作为记忆。我们还引入编码智能体记忆后训练 II(CAMP-II),它通过完全异步的在线策略蒸馏(OPD)在所有五个环境中联合训练单个策略,直接从具有文件操作先验的冻结教师中学习这种基于文件的记忆行为。在 CAMG-II 上,CAMP-II 获得了最强 OPD 基线 2.97 倍的增益。CAMP-II 学习到的记忆行为可泛化到两个外部基准 Terminal-Bench 2.1 和 SWE-Bench Pro V2,且成功率有所提升。

英文摘要:

Language-model agents increasingly tackle long-horizon tasks whose interaction histories exceed the model's active context. They must therefore decide what to write down and what to read back, and when to do either. Recent work has begun to use on-policy distillation (OPD) to make memory control part of the policy, relying on memory tools and compaction protocols that lie outside either model's pre-training. However, this weakens the distillation on both sides: the teacher cannot give useful guidance on an interface it has never used, and the student samples too few meaningful memory actions for that guidance to take effect. To study this problem, we introduce Coding Agent Memory Gym II (CAMG-II), a suite of long-horizon agentic-RL environments spanning Shop, Coding, AutoResearch, General, and Visual. Alongside each environment's native task interface, CAMG-II provides ordinary Bash access and an episode-persistent workspace, enabling the policy to create, revise, search, and reuse files as memory across context replacements. We also introduce Coding Agent Memory Post-Training II (CAMP-II), which trains a single policy jointly across all five environments with fully asynchronous OPD to learn this file-based memory behavior directly from a frozen teacher with a prior for file operations. On CAMG-II, CAMP-II obtains 2.97 times the gain of the strongest OPD baseline. The memory behavior CAMP-II learns generalizes to two external benchmarks, Terminal-Bench 2.1 and SWE-Bench Pro V2, with improved success rates.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑