重新思考智能体框架中的验证
研究论文 · 2026/10/28
Agent harnesses 使大型语言模型能够通过工具行动、观察结果并迭代地朝着任务目标工作。验证检查和修正代理的工作以提高输出质量。然而,关于 harness 应如何组织这项工作的指导有限。我们将验证作为测试时扩展的一个轴进行研究,考察何时干预、谁检查工作以及检查如何导致修正。我们的框架涵盖代理生命周期的四个层面:初始指令、回合中提醒、完成门和独立审查。我们在 Terminal-Bench (TB) 和 SWE-bench Verified (SWE) 上比较了 17 种设计在七个前沿编码模型上的表现,并引入了 VisualBench 用于对视觉和交互式工件进行专家评估。初始指令和执行时提醒在编码基准上产生适度的、依赖于模型的平均增益,而没有大幅增加平均输出 token 使用量。完成门可以产生更大的增益,但可能大幅增加成本。由批评者进行的独立审查提供了更有利的准确性-成本权衡,在 TB 上平均准确率提高 5.9-9.5 个百分点,在 SWE 上提高 3.9-6.6 个百分点,成本分别为基线的 1.13-1.25 倍和 1.00-1.04 倍。在 VisualBench 上,独立审查在其四种设计中比基线获得 13.2-23.8 个百分点的净偏好,超过了评估的 L0-L2 设计。额外的审查轮次或独立批评者进一步将平均 TB 准确率提高最多 3.5 个百分点。总之,这些结果为 agent harnesses 中的验证设计提供了经验指导,并支持独立审查作为测试时扩展的一个实用轴。
该研究为agent harness中的验证设计提供了实证指导,表明独立审查是一种实用的测试时扩展方法,能在可控成本下显著提升准确率,对构建高效可靠的AI代理系统具有重要参考价值。
Agent harnesses enable large language models to act through tools, observe the results, and iteratively work toward a task goal. Verification checks and revises agents' work to improve output quality. Yet there is limited guidance on how harnesses should organize this effort. We study verification as an axis of test-time scaling by examining when to intervene, who checks the work, and how checking leads to revision. Our framework spans four layers of the agent lifecycle: initial instructions, mid-turn reminders, completion gates, and independent review. We compare 17 designs across seven frontier coding models on Terminal-Bench (TB) and SWE-bench Verified (SWE), and introduce VisualBench for expert evaluation of visual and interactive artifacts. Initial instructions and execution-time reminders yield modest, model-dependent average gains on the coding benchmarks, without substantially increasing average output token use. Completion gates can yield larger gains but may substantially increase cost. Independent review by a critic offers a more favorable accuracy-cost tradeoff, improving average accuracy by 5.9-9.5 percentage points on TB and 3.9-6.6 on SWE at 1.13-1.25 and 1.00-1.04 times baseline cost, respectively. On VisualBench, independent review achieves net preferences of 13.2-23.8 points over the baseline across its four designs, exceeding the evaluated L0-L2 designs. Additional review rounds or independent critics further improve average TB accuracy by up to 3.5 percentage points. Together, these results provide empirical guidance for verification design in agent harnesses and support independent review as a practical axis of test-time scaling.