LLM-as-a-Verifier: A General-Purpose Verification Framework

AK's Picks LLM Other LLM Agent Agent Eval Benchmarks ML RL
2026年07月06日
扩大预训练、后训练以及测试时的计算资源投入,已成为提升大语言模型(LLM)能力的核心范式。在本研究中,我们将“验证能力”——即判断一个解法是否正确的能力——确立为一个新的可扩展维度。为充分释放这一维度的潜力并验证其有效性,我们提出了“LLM-as-a-Verifier”(以大语言模型作为验证器)这一通用验证框架;该框架无需额外训练,即可为智能体任务提供细粒度反馈。与传统的语言模型裁判(LM judge)不同——后者仅通过提示词引导大语言模型对候选解法输出离散评分——LLM-as-a-Verifier 通过对评分相关词元(scoring token)的 logits 分布取期望值,生成连续型评分。这种概率化建模方式,使验证能力得以在多个维度上实现规模化提升:(1)评分粒度、(2)重复评估次数、以及(3)评估标准的分解。尤其值得注意的是,我们发现提升评分粒度可显著增强正向解法与负向解法之间的区分度,从而实现更校准、更可靠的比较。此外,增加重复评估次数与细化评估标准分解,亦能持续提升验证准确率,其增益分别源于方差降低与问题复杂度缓解。我们还进一步设计了一种成本高效的排序算法,利用验证器输出的连续型评分,在多个候选解法中精准选出最优解。LLM-as-a-Verifier 在多项基准测试中达到当前最优水平:Terminal-Bench V2(86.5%)、SWE-Bench Verified(78.2%)、RoboRewardBench(87.4%)以及 MedAgentBench(73.3%)。除验证功能外,LLM-as-a-Verifier 所提供的细粒度信号还可作为任务进展的代理指标。我们基于此构建了面向 Claude Code 的扩展工具,帮助开发者实时监控并优化其自主智能体系统。最后,我们证明 LLM-as-a-Verifier 还可为强化学习(RL)提供稠密反馈信号,显著提升 SAC 和 GRPO 算法在机器人控制与数学推理等基准任务上的样本效率。
Scaling pre-training, post-training, and test-time compute have become the central paradigms for improving the capabilities of LLMs. In this work, we identify verification, the ability to determine the correctness of a solution, as a new scaling axis. To unlock this and demonstrate its effectiveness, we introduce LLM-as-a-Verifier, a general-purpose verification framework that provides fine-grained feedback for agentic tasks without requiring additional training. Unlike standard LM judges that prompt LLMs to produce discrete scores for candidate solutions, LLM-as-a-Verifier computes the expectation over the distribution of scoring token logits to generate continuous scores. This probabilistic formulation enables verification to scale along multiple dimensions: (1) score granularity, (2) repeated evaluation, and (3) criteria decomposition. In particular, we show that scaling the scoring granularity leads to better separation between positive and negative solutions, resulting in more calibrated comparisons. Moreover, scaling repeated evaluation and criteria decomposition consistently lead to additional gains in verification accuracy through variance and complexity reduction. We further introduce a cost-efficient ranking algorithm for selecting the best solution among candidates using the verifier's continuous scores. LLM-as-a-Verifier achieves state-of-the-art performance on Terminal-Bench V2 (86.5%), SWE-Bench Verified (78.2%), RoboRewardBench (87.4%), and MedAgentBench (73.3%). Beyond verification, the fine-grained signals from LLM-as-a-Verifier can also serve as a proxy for estimating task progress. We build an extension for Claude Code, enabling developers to monitor and improve their own agentic systems. Finally, we show that LLM-as-a-Verifier can provide dense feedback for RL, improving the sample efficiency of SAC and GRPO on robotics and mathematical reasoning benchmarks.
许愿