ModHarness-RL:将Harness重构为智能体强化学习中可学习且可演化的程序
ModHarness-RL: Recasting Harnesses as Learnable and Evolving Programs for Agentic RL
AI总结:
ModHarness-RL将智能体RL的Harness重构为可学习演化的程序,通过压缩和引导机制,在CodeSearch等任务上较固定Harness基线提升了泛化性能。
摘要:
智能体强化学习(RL)越来越依赖于Harness,它是围绕模型的支架,用于决定模型能看到自身交互的哪些部分以及接收哪些指导。然而,有效的Harness取决于领域、数据和模型,且会随着模型训练而不断变化。我们提出ModHarness-RL,它将Harness重构为从数据中学习并随模型RL训练而演化的程序。ModHarness-RL将交互记录为结构化状态,即一组类型化块,Harness的两个核心组件是基于这些块的程序:压缩程序将累积的历史组装到模型的上下文,引导程序在行为偏离时提供指导。在RL训练期间,从近期轨迹中提出候选程序,通过执行验证,并在过去轨迹上重放,从而使Harness跟踪模型行为的变化。我们深入研究CodeSearch,进一步分析ALFWorld和BIRD SQL,模型规模从15亿到80亿参数。所提出的压缩和引导机制在大多数设置下,相较于固定Harness基线,提升了泛化性能。这些结果表明,智能体RL的Harness可从任务数据中学习并随模型演化。
英文摘要:
Agentic reinforcement learning (RL) increasingly relies on a harness, the scaffold around the model that decides what it sees of its own interaction and what guidance it receives. Most existing approaches train under a hand-written harness that stays fixed throughout. However, an effective harness depends on the domain, the data and the model, and keeps changing as the model trains. We introduce ModHarness-RL, which recasts the harness as programs that are learned from data and evolve as the model trains with RL. ModHarness-RL records the interaction as structured State, a set of typed blocks, and two core components of the harness are programs over these blocks, a Compression program that assembles the accumulated history into the model's context and a Steering program that supplies guidance when behavior deviates. During RL training, candidate programs are proposed from recent trajectories, verified by execution, and replayed over past trajectories, so the harness tracks how the model's behavior shifts. We study CodeSearch in depth and further analyze ALFWorld and BIRD SQL, with models from 1.5B to 8B. The proposed Compression and Steering mechanisms improve held-out performance over the fixed-harness baseline in most settings. These results suggest that a harness for agentic RL can be learned from the task's data and evolved with the model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。