HarnessPro:基于帕累托优化的递归Harness自我改进,实现性能与成本权衡

·

研究论文 · 2026/10/20

HarnessPro 是一种无需标签的 harness 演化方法,通过递归自我改进在提升任务表现的同时降低执行成本。候选 harness 由 LLM 生成的测试评估,无需真实答案或官方测试;专用智能体诊断执行轨迹、按不同性能-成本优先级规划更新并实现为候选 harness。方法不返回单一 harness,而是用归一化加权平方距离选择提供面向成本(lite)、均衡(medium)和面向性能(heavy)三种 harness 以适配不同部署预算,选中的 harness 进入下一轮迭代并由执行反馈指导更新。在 Terminal-Bench 2、SWE-Bench Pro 和 ProgramBench 上,使用 GPT-5.5 配合 Codex 时,heavy 模式相对 RHO 平均通过率提升 2.0 个百分点、平均每任务成本降低 26.1%;使用 GLM-5.2 配合 Claude Code 时该优势同样成立。

该工作直面 harness 自我改进中性能提升伴随成本上升的关键矛盾,提出可同时优化性能与成本、并给出多档预算可选方案的无标签方法,且在多个基准和模型配置下验证有效,对构建实用 AI agent 具有直接参考价值。

Harness development plays a crucial role in building capable AI agents. Recent approaches improve harnesses through recursive self-improvement (RSI), but their performance gains often come with higher execution costs. We introduce HarnessPro, a label-free method for evolving harnesses to improve task performance while reducing execution cost. In this setting, candidate harnesses are evaluated using LLM-generated tests without access to ground-truth solutions or official tests. Specialized agents diagnose execution trajectories, plan updates with different performance-cost priorities, and implement them as candidate harnesses. Rather than returning a single harness, HarnessPro uses normalized weighted squared-distance selection to provide cost-focused (lite), balanced (medium), and performance-focused (heavy) harnesses for different deployment budgets. Selected harnesses enter the next iteration, where execution feedback guides further updates. Our experiments cover Terminal-Bench 2, SWE-Bench Pro, and ProgramBench, using GPT-5.5 with Codex and GLM-5.2 with Claude Code. Across these benchmarks using GPT-5.5 with Codex, the heavy mode of HarnessPro achieves an average pass-rate gain of 2.0 percentage points and an average per-task cost reduction of 26.1% relative to RHO. This advantage also holds when using GLM-5.2 with Claude Code. Code is available at https://github.com/pzs19/HarnessPro

阅读原文

参与讨论