面向智能体环境的可扩展弱到强验证器加固
研究论文 · 2026/10/17
Agent环境对LLM开发至关重要,其使用程序化验证器将复杂结果转化为奖励。验证器可能被攻击,使作弊代理无需完成任务即可获得满分,导致评估不准确和训练错位。随着代理环境在数量和难度上扩展,修复可利用验证器的需求也随之增加。为此,我们探究当今模型在扩展计算下能否自动加固代理环境,以防止未来更强模型进行奖励黑客攻击。我们提出了一种可扩展、全自动的弱到强验证器加固方法。该方法首先建立一个代理无法直接修改的隔离验证器沙箱,然后使用黑客-修复循环来发现并修复剩余的验证器漏洞。我们将此循环应用于Terminal Bench、KernelBench和SETA,大幅降低了这些代理环境中的攻击成功率。迭代设计随加固预算扩展,随着循环迭代次数增加产生逐步更强的防御,并优于静态非迭代基线。我们黑客-修复循环的早期版本已被官方Terminal Bench仓库采用,用于审计其环境中的漏洞利用。项目页面:https://verifier-hardening.github.io/。
该研究解决了代理环境中验证器易受攻击的关键问题,提出了可扩展的自动加固方法,并在多个基准上验证了有效性,且已被实际采用,对LLM训练和评估的可靠性具有重要意义。
Agent environments are essential for large language model (LLM) development. They use programmatic verifiers to turn complex outcomes into rewards. Verifiers can be attacked into awarding full credit to cheating agents without completing the intended task, causing inaccurate evaluation and misalignment in training. As agent environments scale in numbers and difficulty, so must the repairing of exploitable verifiers. To this end, we ask whether today's model with scaled compute can automatically harden agent environments to prevent potentially stronger future models from reward hacking. We introduce a scalable, fully automatic approach to weak-to-strong verifier hardening. It first sets up an isolated verifier sandbox that agents cannot directly modify, then uses a hacker-fixer loop to find and repair remaining verifier vulnerabilities. We apply this loop to Terminal Bench, KernelBench, and SETA, substantially reducing attack success across these agent environments. The iterative design scales with the hardening budget, producing progressively stronger defenses as the number of loop iterations increases and outperforming the static, non-iterative baseline. An earlier version of our hacker-fixer loop has been adopted by the official Terminal Bench repository as a way to audit exploits in its environments. Project page: https://verifier-hardening.github.io/.