Research Papers 论文研究 2d ago Updated 2d ago 更新于 2天前 49

Learning to Control LLM Agent Harnesses with Offline Reinforcement Learning 使用离线强化学习控制大语言模型智能体工具链

Proposes treating the LLM agent's execution harness as a learnable control layer rather than fixed infrastructure. Formalizes harness operations as a finite-horizon Harness MDP where a lightweight controller selects structural actions while the LLM remains frozen. Trains the controller using offline reinforcement learning with advantage-weighted regression based solely on terminal task-rubric rewards. Introduces a "Harness Maturity Score" to distinguish between reliable execution patterns and fi 提出将LLM Agent的执行框架(Harness)视为可学习的控制层,而非固定基础设施,通过轻量级控制器选择结构执行动作。 采用离线强化学习(Offline RL),利用优势加权回归(Advantage-Weighted Regression)仅基于终端任务评分进行训练,保持底层LLM冻结。 引入“Harness成熟度得分”分离最终任务质量与过程可靠性,强调执行模式的可信度而不仅是答案正确性。 在六个受控领域及两个公共基准适配器中验证,该方法显著改善验证行为并选择性提升任务质量,优于行为克隆和强制检查基线。 揭示离线支持数据的局限性:只有当离线缓冲区包含高回报样本时,更好的过程控制才能转化为

65
Hot 热度
75
Quality 质量
70
Impact 影响力

Analysis 深度分析

TL;DR

  • Proposes treating the LLM agent's execution harness as a learnable control layer rather than fixed infrastructure.
  • Formalizes harness operations as a finite-horizon Harness MDP where a lightweight controller selects structural actions while the LLM remains frozen.
  • Trains the controller using offline reinforcement learning with advantage-weighted regression based solely on terminal task-rubric rewards.
  • Introduces a "Harness Maturity Score" to distinguish between reliable execution patterns and final task correctness.
  • Demonstrates consistent improvements in verification behavior and selective gains in final task quality across multiple domains and benchmarks.

Why It Matters

This research shifts the paradigm of LLM agent optimization by decoupling the reasoning engine (the LLM) from the execution logic (the harness). It offers a cost-effective alternative to fine-tuning large models, allowing practitioners to improve agent reliability and structure through lightweight, offline-trained controllers. This approach is particularly relevant for industries requiring high reliability in automated workflows where model updates are expensive or risky.

Technical Details

  • Harness MDP Formulation: The execution environment is modeled as a finite-horizon Markov Decision Process where the state includes the current agent context, and actions involve structural decisions like tool selection, verification steps, or workflow branching.
  • Offline RL Training: The controller is trained exclusively on offline rollouts using advantage-weighted regression. It relies only on terminal rewards derived from task rubrics, avoiding the need for online interaction or dense reward shaping.
  • Dual Evaluation Metrics: The study separates performance into final task quality and a post-hoc "Harness Maturity Score," which quantifies adherence to reliable execution patterns independent of the final answer's correctness.
  • Benchmarking: Evaluated across six controlled domains and two public-benchmark adapters (tau-bench retail, AgentBench DB-Bench, and coding tasks with a calibrated structural verifier).
  • Ablation Studies: Proves that performance gains stem from the learned control policy rather than simple imitation (behavior cloning) or static rule additions (Forced CHECK).

Industry Insight

  • Cost-Efficient Optimization: Organizations can significantly enhance agent reliability without incurring the computational costs of continuous model fine-tuning, focusing instead on optimizing the orchestration layer.
  • Reliability Over Raw Intelligence: Emphasizes that robust execution patterns (process maturity) are distinct from final accuracy, suggesting that monitoring harness behavior provides earlier signals of agent failure than end-to-end success rates.
  • Scalability of Control Layers: The use of lightweight controllers suggests that complex agent behaviors can be modularized, allowing different control policies to be swapped or updated independently of the underlying LLM capabilities.

TL;DR

  • 提出将LLM Agent的执行框架(Harness)视为可学习的控制层,而非固定基础设施,通过轻量级控制器选择结构执行动作。
  • 采用离线强化学习(Offline RL),利用优势加权回归(Advantage-Weighted Regression)仅基于终端任务评分进行训练,保持底层LLM冻结。
  • 引入“Harness成熟度得分”分离最终任务质量与过程可靠性,强调执行模式的可信度而不仅是答案正确性。
  • 在六个受控领域及两个公共基准适配器中验证,该方法显著改善验证行为并选择性提升任务质量,优于行为克隆和强制检查基线。
  • 揭示离线支持数据的局限性:只有当离线缓冲区包含高回报样本时,更好的过程控制才能转化为最终答案质量的提升。

为什么值得看

本文挑战了传统LLM Agent优化仅依赖提示工程或模型微调的范式,提出了“执行框架即策略”的新视角,为降低Agent开发成本提供了新思路。对于AI从业者而言,理解如何通过离线数据优化Agent的执行逻辑而非重新训练大模型,有助于构建更高效、更可控的智能体系统。

技术解析

  • Harness MDP建模:将Agent的执行框架操作形式化为有限视界马尔可夫决策过程(Finite-Horizon Harness MDP)。在此框架下,LLM作为固定的执行器(Executor),而一个轻量级控制器(Controller)负责选择结构化的执行动作(如调用工具、验证步骤等)。
  • 离线训练方法:控制器通过离线回放数据(Offline Rollouts)进行训练,使用优势加权回归算法。训练信号仅来自终端的任务评分(Task-Rubric Rewards),无需在线交互或复杂的奖励模型设计。
  • 双维度评估指标:除了传统的最终任务质量,还提出了后验的“Harness成熟度得分”(Harness Maturity Score)。该指标衡量执行过程是否遵循可靠的结构化模式,从而区分“运气好答对”与“过程稳健”。
  • 实验验证与消融:在tau-bench retail、AgentBench DB-Bench及代码生成等场景进行测试。消融实验证明,性能提升并非源于模仿学习(Behavior Cloning)或简单增加检查点(Forced CHECK),而是源于对执行结构的优化。

行业启示

  • Agent架构解耦:未来Agent开发应将“推理能力”(LLM)与“执行控制”(Harness)解耦。通过训练轻量级控制器来管理复杂工作流,可以降低对超大模型实时推理能力的依赖,提升系统稳定性。
  • 重视过程可解释性与可靠性:在评估Agent时,不应仅关注最终结果的正确率,更应关注执行过程的结构性特征。引入过程成熟度指标有助于识别那些看似成功但实际不可靠的Agent行为。
  • 离线RL在Agent优化中的潜力:利用历史交互数据进行离线策略优化,是提升Agent性能的低成本途径。然而,需警惕数据分布偏差,确保离线数据中包含足够的优质执行轨迹以支持策略改进。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Agent Agent Research 科学研究 Training 训练 Fine-tuning 微调