Mid-Harness:在模型与终端代理框架之间扩展操作

·

研究论文 · 2026/10/01

终端智能体通过随机模型生成来执行动作,但生成有用动作的能力并不能保证其可靠执行。一个糟糕的命令(例如错误的包安装)可能改变环境,从而阻碍后续进展,即使模型能够生成更好的替代方案。我们研究在模型-框架边界分配测试时计算能否提高动作可靠性和轨迹成功率,以及这种分配为何有效。为此,我们引入 Mid-Harness,它在转发一个动作执行之前对候选动作进行采样和验证,同时保持生成器和框架不变。使用 TMAX-9B 生成器时,在弱验证下增加动作采样收效甚微,而一个能力强的验证器可以利用同一生成器产生的有用替代方案。在 TerminalBench-Lite 上,GPT-5.6 Sol 验证器将 Pass@1 从基础智能体的 50.00% 提升至使用 8 个采样动作时的 68.03%。当同一 TMAX-9B 模型作为验证器时,成对验证在所评估的验证机制中表现最佳。将更强验证器的响应蒸馏到 TMAX-9B 中进一步提高了 Pass@1,同时保持动作生成器不变。在 TerminalBench-Lite 上使用 TMAX-9B 时,结合动作和轨迹扩展比单独生成更多轨迹以更低的估计 token 成本达到更高的成功率。Mid-Harness 还在其他模型、基准和框架上提升了性能。这些发现表明动作扩展是终端智能体中测试时计算扩展的一个有前景的目标。

该研究为终端智能体的测试时计算扩展提供了新方向:通过动作采样与验证提升可靠性,并在多个模型、基准和框架上验证有效,对提升智能体实际任务成功率有直接参考价值。

Terminal agents act through stochastic model generations, yet the ability to generate a useful action does not ensure its reliable execution. A poor command (e.g., wrong package install) can change the environment in ways that hinder subsequent progress, even when the model could generate a better alternative. We investigate whether allocating test-time compute at the model-harness boundary can improve action reliability and trajectory success, and what makes this allocation effective. To study these questions, we introduce Mid-Harness, which samples and verifies candidate actions before forwarding one for execution, while keeping the generator and harness unchanged. With a TMAX-9B generator, more action sampling yields little benefit under weak verification, whereas a capable verifier can exploit useful alternatives from the same generator. On TerminalBench-Lite, a GPT-5.6 Sol verifier raises Pass@1 from 50.00% for the base agent to 68.03% with 8 sampled actions. When the same TMAX-9B model serves as the verifier, pairwise verification performs best among the evaluated verification mechanisms. Distilling responses from the stronger verifier into TMAX-9B further improves Pass@1, while leaving the action generator unchanged. With TMAX-9B on TerminalBench-Lite, combining action and trajectory scaling reaches higher success at lower estimated token cost than generating more trajectories alone. Mid-Harness also improves performance across additional models, benchmarks, and harnesses. These findings identify action scaling as a promising target for test-time compute scaling in terminal agents.

阅读原文

参与讨论