arXiv:2607.14159cs.AIcs.CL2026-07被引 4

让智能体控制层学会从执行中自我优化,提升任务适应性。

MemoHarness: Agent Harnesses That Learn from Experience

论文配图:MemoHarness: Agent Harnesses That Learn from Experience
图 1 · 摘自论文原文
  • 将控制层分解为六个可调维度,通过经验库学习并动态调整配置。
  • 在多个基准上超越固定控制层,且能迁移到未见过的任务和模型。
  • 无需额外标注或搜索,缓存经验后计算开销可控,适合实际部署。

智能体控制层是将基础大模型转化为可执行智能体的外部调控模块,负责管理上下文、工具调用、编排、记忆、解码与输出处理。尽管控制层设计显著影响智能体行为,现有自动优化方法通常只针对提示、流水线或工作流等局部组件,而部署中的智能体常使用单一全局控制层应对所有场景。本文提出MemoHarness,一种基于自身执行经验进行自适应优化的控制层框架。该框架将控制层分解为六个可编辑维度,构建双层经验库,分别存储每项任务的诊断结果与全局提炼模式,并在测试时根据检索到的经验动态调整控制策略,无需测试时标签、反馈或额外搜索。在壳命令、代码生成与分析推理等多个基准上的评估表明,MemoHarness优于对比的固定控制层,展现出对未见任务套件和基础模型的可选择性迁移能力。当大部分经验可缓存时,其额外上下文开销仍保持成本竞争力。结果表明,执行经验是构建比静态配置更灵活的智能体控制层的可行基础,但关于统计鲁棒性和组件贡献度的广泛结论留待未来研究。

原文摘要 · Abstract (English)

An agent harness is the external control layer that turns a base LLM into an executable agent by managing context, tools, orchestration, memory, decoding, and output handling. While harness design strongly affects agent behavior, most automatic improvement methods optimize narrower artifacts such as prompts, pipelines, or workflows, and deployed agents usually reuse a single global harness for all cases. We introduce MemoHarness, an adaptive harness optimization framework that learns from its own executions. MemoHarness decomposes the harness into six editable control dimensions, stores per-case diagnoses and distilled global patterns in a dual-layer experience bank, and adapts the learned harness to each test case using retrieved experience without test-time labels, feedback, or additional search. In our evaluation across shell-agent, code-generation, and analytical-reasoning benchmarks, MemoHarness improves over the fixed harnesses we compare against and shows selective transfer to unseen suites and base models. Its additional context can also remain cost-competitive when much of the retrieved experience is cacheable. These results provide evidence that execution experience is a practical substrate for building agent harnesses that are more adaptive than a single static configuration, while leaving broader claims about statistical robustness and component attribution to future work.

智能体控制自适应优化经验学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。