VerifierBench:为LLM智能体生成可执行验证器的基准测试

·

研究论文 · 2026/10/23

智能体需要可靠的方法来验证其输出,无论是在完成任务时还是在过滤合成训练数据时。我们研究了验证器生成:从任务可用的指令和环境出发,智能体编写一个可执行验证器,该验证器必须接受所有有效解并拒绝无效解。我们引入了VerifierBench,这是一个包含来自六个智能体基准的222个任务的基准,涵盖工具调用、基于状态和代码验证,包含4,993个隐藏测试用例,其中包括替代有效解和攻击;Verifier4Verifier (V4V) 是一个六项检查审计,用于筛选其源验证器和测试套件。在通用智能体框架下的19个模型中,归一化平衡准确率范围从10.6到62.1,生成的验证器在拒绝无效解方面始终比接受有效解更可靠。这种表面上的优势可能掩盖了过度严格的验证:在分析记录中,大多数错误拒绝来自不接受任务任何测试解的验证器。案例研究揭示了对解决方案格式、工具使用和代码更改的不支持假设,这些假设排除了有效解。这些错误在自测中幸存下来,因为智能体测试的解决方案与验证器共享错误的假设,或者提交验证器时没有确认任何正确解能通过。这些发现建议同时测试验证器是否接受正确解以及是否接受任务允许的其他解。项目页面和数据集已公开可用。

该研究系统性地评估了LLM智能体生成可执行验证器的能力,指出了验证器过度严格和错误假设的关键问题,对智能体自我验证和训练数据过滤具有重要指导意义。

Agents need reliable ways to validate their outputs, both when completing tasks and when filtering synthetic training data. We study verifier generation: from the instruction and environment available for solving a task, an agent writes an executable verifier that must accept every valid solution and reject invalid ones. We introduce VerifierBench, a benchmark of 222 tasks from six agent benchmarks spanning tool-call, state-based, and code verification, with 4,993 hidden test cases that include alternative valid solutions and attacks; Verifier4Verifier (V4V), a six-check audit, screens its source verifiers and test suites. Across 19 models in a common agent harness, normalized balanced accuracy ranges from 10.6 to 62.1, with generated verifiers consistently rejecting invalid solutions more reliably than they accept valid ones. This apparent strength can mask overly restrictive verification: most false rejections in the analyzed records come from verifiers that accept no tested solution to a task. Case studies reveal unsupported assumptions about solution formats, tool use, and code changes that exclude valid solutions. These errors survive self-testing because agents test solutions that share the verifier's mistaken assumptions, or submit verifiers without confirming that any correct solution passes. These findings suggest testing both whether a verifier accepts a correct solution and whether it accepts other solutions permitted by the task. The project page and dataset are publicly available.

阅读原文

参与讨论