arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.05458cs.LGcs.AI
收藏

利用离线强化学习学习控制大语言模型智能体的执行框架

HarnessMDP: Learning to Control LLM Agent Harnesses with Offline Reinforcement Learning

University of Toronto(多伦多大学);Emory University(埃默里大学)

Haiwen Yi, Xinyuan Song

AI总结:

研究提出将大语言模型智能体的执行框架视为可学习控制层,通过有限 horizon 的框架马尔可夫决策过程,利用离线强化学习训练轻量级控制器,在多领域实验中改进验证行为、提高任务质量,证明框架控制可学习且离线支持有局限。

摘要:

大语言模型(LLM)智能体通常通过改变提示、模型或手写工作流程来改进,而模型周围的执行框架被视为固定基础设施。我们认为这个框架本身是一个可学习的控制层。我们将框架操作形式化为有限 horizon 的框架马尔可夫决策过程(Harness MDP),其中轻量级控制器选择结构执行动作,而 LLM 执行器保持冻结。控制器使用仅终端任务评分奖励的优势加权回归从离线展开中进行训练。我们还将最终任务质量与事后框架成熟度得分分开,该得分衡量框架是否遵循可靠的执行模式,而不仅仅是最终答案是否正确。这种分离给出了框架学习的有限缓冲区视图:最终质量的提高需要离线缓冲区中的高回报支持,而过程行为只要与优势加权动作一致就可以改变。在六个受控域和两个公共基准适配器上,学习到的控制器持续改进验证行为并选择性地提高最终任务质量,在适应的 tau-bench 零售、适应的 AgentBench DB-Bench 和使用校准结构验证器进行编码方面收获最大。与行为克隆和强制检查的对比表明,这些收获不能用模仿或简单添加检查来解释。这些结果将框架控制识别为冻结 LLM 智能体的可学习层,同时表明当更好的过程控制带来更好的最终答案时,离线支持存在限制。

英文摘要:

The execution harness is a critical component of LLM agents, shaping how the agent interacts with its environment and organizes multi-step execution. Prior work has shown that improving tools, workflows, and other harness components can substantially improve agent performance. This suggests that the harness can be treated as a learnable control layer that adapts execution decisions from experience, rather than as a predetermined execution configuration. In this work, we introduce HarnessMDP, a learning-based framework that makes harness control itself learnable. HarnessMDP formulates agent execution as a finite-horizon Markov decision process, where the harness learns to select structural execution actions from the evolving agent state. The harness policy is learned offline from collected trajectories using task performance and deployed online to adaptively control new executions. Extensive experiments on coding tasks, $τ$-bench, AgentBench, and other agent evaluation settings show that HarnessMDP consistently improves execution behavior and final task performance over baseline harnesses. These results demonstrate the effectiveness of HarnessMDP and establish learnable harness control as a practical mechanism for improving LLM agents through better execution. Our code is available at https://github.com/Hik289/Agentic-RL-harness.git.

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

↑