arXiv:2605.30712 · 中英对照阅读
ExpHarness:通过可训练运行框架实现模型无关的经验学习
ExpHarness: Model-Agnostic Experience Learning through a Trainable Harness
中文速览
让大模型智能体从过去的任务经验中学会“该借鉴什么”,同时又不必改动或重新训练大模型,是这项研究要解决的问题。作者把成功做法和失败教训整理成彼此关联的经验图,再训练一个轻量“检索助手”,按任务决定搜索范围,并综合经验与当前任务的相似度、过往实际效果来挑选内容。测试显示,这套方法在静态任务和需要多步操作的任务上都超过了最强基线,尤其在多步任务中提升明显,还能减少交互次数;学到的经验系统也能迁移到不同规模和能力的大模型上。它的意义在于让经验积累发生在模型外部的“工作台”上,使旧经验能反复利用,也更容易随模型升级而延续。
摘要
大语言模型(LLM)智能体日益在运行框架内运行,而运行框架是决定哪些内容进入执行器上下文的支架;然而,它们在不同任务中积累的经验却很少回流至该运行框架。现有方法包括执行器微调和外部记忆检索,但如何将任务自适应检索与跨冻结执行器的经验复用相结合,仍颇具挑战。为此,我们提出 ExpHarness,这是一种可学习的经验运行框架,无需修改冻结且可替换的大语言模型执行器的参数,即可提升其表现。具体而言,ExpHarness 将执行轨迹蒸馏为可复用技能和失败教训,并纳入一个自我演化的经验图;同时训练一个轻量级检索副驾驶,由其针对每项任务决定以多大范围探索该图,以及在多大程度上优先选择历史上有用的经验,而非仅仅相似的经验。该副驾驶通过强化学习进行优化,其奖励为效用导向奖励,综合了有无经验时的得分差异与绝对性能项;训练期间,同一奖励也用于更新经验图。在涵盖 10 个静态基准和 2 个智能体环境的 ExpSuite 上开展的大量实验表明,使用较小和较大的执行器时,ExpHarness 在静态任务上的表现分别比最强基线高出 $12.1\%$ 和 $4.5\%$,在智能体任务上的表现则分别高出 $21.4\%$ 和 $12.7\%$,同时最多可减少 $21.6\%$ 的交互步数。迁移实验进一步考察了将学习得到的运行框架复用于不同规模和推理能力的执行器的效果;在所评估的迁移变体中,经验图与检索副驾驶联合迁移的表现最接近针对目标执行器进行专门训练的效果。
Large language model (LLM) agents increasingly operate within a harness, the scaffolding that determines what enters the executor’s context, yet the experience they accumulate across tasks rarely flows back into this harness. Existing approaches include executor fine-tuning and external memory retrieval, but combining task-adaptive retrieval with experience reuse across frozen executors remains challenging. To this end, we introduce ExpHarness, a learnable experience harness that improves frozen and replaceable LLM executors without modifying their parameters. Specifically, ExpHarness distills trajectories into reusable skills and failure lessons within a self-evolving experience graph, and trains a lightweight retrieval copilot that decides, per task, how broadly to explore the graph and how strongly to favor historically useful experiences over merely similar ones. The copilot is optimized with reinforcement learning from a utility-grounded reward combining the with/without-experience score difference and an absolute-performance term; the same reward updates the graph during training. Extensive experiments on ExpSuite, spanning 10 static benchmarks and 2 agentic environments, show that ExpHarness improves over the strongest baseline by $12.1\%$ and $4.5\%$ on static tasks and by $21.4\%$ and $12.7\%$ on agentic tasks with the smaller and larger executors, respectively, while reducing interaction steps by up to $21.6\%$ . Transfer experiments further examine reuse of the learned harness across executors of different scales and reasoning capabilities, with joint graph and copilot transfer performing closest to target-specific training among the evaluated transfer variants.
术语表
- Large language model (LLM) agent
- 大语言模型(LLM)智能体
- harness
- 运行框架
- executor
- 执行器
- ExpHarness
- ExpHarness
- ExpSuite
- ExpSuite
- experience harness
- 经验运行框架
- experience graph
- 经验图
- retrieval copilot
- 检索副驾驶
- experience distillation
- 经验蒸馏
- trajectory
- 执行轨迹
- reusable skill
- 可复用技能
- failure lesson
- 失败教训
- task-adaptive retrieval
- 任务自适应检索
- utility-grounded feedback
- 效用导向反馈
- utility-grounded reward
- 效用导向奖励
- reinforcement learning
- 强化学习
- external memory retrieval
- 外部记忆检索
- semantic relevance
- 语义相关性
- historical utility
- 历史效用
- graph diffusion
- 图扩散
- model-agnostic LLM agent
- 模型无关的大语言模型智能体
- frozen executor
- 冻结执行器
- executor fine-tuning
- 执行器微调
- transfer experiment
- 迁移实验
- static benchmark
- 静态基准
- agentic environment
- 智能体环境
- ALFWorld
- ALFWorld
- AppWorld
- AppWorld