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

HarnessMM:用于提升工具调用效率的递归自我改进

HarnessMM: Recursive Self-Improvement for Harness Token Efficiency

Tsinghua University(清华大学);Microsoft Research Asia (MSRA)(微软亚洲研究院)

Yuhua Jiang, Chang Xu, Feifei Gao, Li Zhao

AI总结:

HarnessMM通过受保护决策复用和递归自我改进,在保留或提升智能体工具调用成功率的同时,大幅降低了每任务令牌数,减少了重复推理。

摘要:

智能体工具调用(agent harness)在工具反馈后会反复调用推理,即便更早的调用已确定了下一步动作。我们提出HarnessMM(Harness Minus Minus),一种通过受保护决策复用和递归自我改进(RSI)提升工具调用效率的方法。RSI从训练反馈中迭代优化配套工具调用配置,经验证后选择配置部署。模型-工具边界处的控制器复用已解决的决策,以替换后续的推理回调,而执行器权重保持固定。可执行决策图存储精确动作、字面参数、因果依赖和公共保护条件。受保护决策复用从观测到的回执中激活这些持久决策;认证回调替换通过原生接口执行这些决策,并记录已注册慢速回调的移除。新语义决策、不支持的证据和选择器弃权(不执行)会再次调用原始执行器。该表示限制了反馈可改变的内容,而完整任务测量确定了质量和成本。在HumanEval上,HarnessMM保留Codex的90.82%成功率,同时将每任务令牌数(千)从66.72降至47.02(节省29.54%);在DeepSeek工具调用上,成功率从71.43%升至85.71%,每任务令牌数(千)从96.28降至11.62(节省87.93%)。单独的MBPP ablation实验显示,其成本比单次使用决策图低26.91%,比保留回调低19.52%。这些结果确立受保护决策复用是减少现有工具调用中重复推理的实用方法。

英文摘要:

HarnessMinusMinus (HarnessMM) is a research project on improving the efficiency of agent harnesses, the software coordinating model reasoning, tool execution, and feedback. This technical report consolidates its shared framework, implementations, and empirical studies across coding, tool-based, and visual-agent settings. Agent harnesses often invoke reasoning after each tool result, even when earlier calls have already determined subsequent actions. HarnessMM addresses this overhead through guarded decision reuse and recursive self-improvement (RSI). RSI refines author prompts, context settings, and adapter rules using training feedback, with validation selecting deployment configurations. At inference time, a controller reuses resolved decisions while keeping actor weights fixed. Executable Decision Graphs encode actions, arguments, dependencies, and guards. Guarded Decision Reuse activates eligible decisions from observed feedback, while Certified Callback Substitution executes them through native tool interfaces, replacing redundant reasoning callbacks. The original actor resumes when new reasoning is required or reuse conditions are unmet. On HumanEval, HarnessMM preserves Codex success at 90.82\% while reducing tokens per task from 66.72k to 47.02k (29.54\% saving). For DeepSeek Harness, success improves from 71.43\% to 85.71\% while tokens decrease from 96.28k to 11.62k (87.93\% saving). An MBPP ablation shows 26.91\% lower cost than single-use graphs and 19.52\% lower cost than retained callbacks. The report also summarizes the HarnessMM-V visual-agent study and documents optimization overhead and execution time where measured. Together, these studies investigate guarded decision reuse across diverse agent harness settings. Code is available at https://github.com/YuhuaJiang2002/HarnessMM.

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

↑