BEAVER:一个高效的确定性 LLM 验证器
BEAVER: An Efficient Deterministic LLM Verifier
AI 导读
研究者提出 BEAVER,首个为 LLM 回答满足某属性的概率计算确定、可靠边界的实用框架。它通过 token trie 与 frontier 系统探索模型输出分布,并证明其 Max-$\mu$ 选择策略在任意容差下最优。在 5 个主流 LLM 的 3 项安全任务上,BEAVER 以更少的 forward passes 认证多达 7.6 倍的 risky prompts。
正文 · 原文
Abstract:As large language models (LLMs) transition from research prototypes to production systems, practitioners need reliable ways to verify model outputs before they are deployed. While sampling-based estimates provide an ad-hoc intuition of model behavior, they offer no sound guarantees. We present BEAVER, the first practical framework for computing deterministic, sound bounds on the probability that an LLM's response to a prompt satisfies a property. Given a prompt and an oracle, BEAVER systematically explores the model's output distribution using a *token trie* and a *frontier*, maintaining provably sound bounds at every iteration. We formalize the LLM verification problem, prove that BEAVER's bounds are sound and that its selection strategy Max-$\mu$ is optimal for verification upto any tolerance. On 3 important safety tasks across 5 popular LLMs, BEAVER certifies up to $7.6\times$ more prompts as risky than a sampling-based verifier while using fewer forward passes, and its per-prompt bounds extend to statistical certificates over distributions of prompts.
| Subjects: | Artificial Intelligence (cs.AI); Formal Languages and Automata Theory (cs.FL) |
| Cite as: | arXiv:2512.05439 [cs.AI] |
| (or arXiv:2512.05439v3 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2512.05439 arXiv-issued DOI via DataCite |
Submission history
From: Nalin Wadhwa [view email]
[v1]
Fri, 5 Dec 2025 05:34:06 UTC (521 KB)
[v2]
Thu, 7 May 2026 21:46:58 UTC (1,413 KB)
[v3]
Tue, 24 Nov 2026 01:53:25 UTC (1,730 KB)
来源:arXiv cs.AI · arxiv.org