Chapter 7 – Deterministic verification of LLMs

The verification problem for autoregressive models, and BEAVER: branch and bound over the token trie, giving sound, anytime probability bounds on oracle satisfaction.

Statistical certification (Chapter 6) treats the model as a black box. It draws responses, checks them, and reports an interval for the probability of a property with a stated confidence. Testing is weaker still: it samples a few responses from the head of the output distribution and concludes that the model looked safe on those draws. Rare unsafe responses live in the tail. A few hundred draws will not reveal an event with probability 10^{-3}, while an adversary or a deployed system can repeat the prompt millions of times. The guarantee we want covers the whole output distribution of a prompt, or a specified distribution of prompts.

This chapter develops deterministic verification. Testing says “it looked safe”. A statistical certificate gives an interval with confidence and can be wrong with probability \delta. A deterministic verifier gives sound bounds P_{LB}\le P\le P_{UB} after every step of the computation, with no confidence parameter. The bounds hold relative to a stated, decidable check of response quality. They cost forward passes instead of samples: the verifier spends compute to shrink an interval that always contains the true probability.

We first make the problem precise: what a verifier sees, what makes a response acceptable, what must be computed, how far into the tail verification reaches, and how bounds become a deployment decision. We then build the simplest sound verifier by sampling and see where its cost goes. The rest of the chapter develops BEAVER (Suresh et al. 2026), which explores the response tree best-first and reads bounds from a frontier of unresolved prefixes. The experimental comparison on real models is at the end of this chapter.

A verifier works one prompt at a time in this chapter. A guarantee can also cover a specified distribution of prompts; Chapter 9 takes that step. Fixing the prompt first keeps the target simple: the model and prompt together determine a probability for every possible response.

A small toy model carries the running illustration. Its vocabulary is \{a,b,c,\langle\mathrm{eos}\rangle\}. The next-token distribution at the start is (0.5,0.2,0.2,0.1) in that order; after a it is (0.3,0.3,0.1,0.3), after b it is uniform at 0.25, and after c it is (0.1,0.1,0.1,0.7). The oracle accepts a response exactly when it never contains b. The exact satisfaction probability is about 0.5419, obtained by solving a four-state linear system. That shortcut exists only because this model is a Markov chain; a transformer has no such closed form.

The model as a verifier sees it

A language model M is autoregressive over a finite vocabulary \mathcal V that includes an end-of-sequence token \langle\mathrm{eos}\rangle. A prompt \mathbf p is a token sequence without that token. Given a prompt followed by a response prefix t_1\cdots t_n, the model returns a conditional distribution P_M(\cdot\mid\mathbf p\cdot t_1\cdots t_n) over \mathcal V for the next token. Computing that distribution is a forward pass. We write \cdot for concatenation and \epsilon for the empty sequence.

Generation continues until \langle\mathrm{eos}\rangle. The complete responses are \mathcal C=(\mathcal V\setminus\{\langle\mathrm{eos}\rangle\})^*\langle\mathrm{eos}\rangle; a maximum length L can also end a response. The probability that M generates s=t_1\cdots t_n after \mathbf p is the product of the per-step conditionals,

\mu_{\mathbf p}(s)=\prod_{i=1}^{n}P_M\bigl(t_i\mid\mathbf p\cdot t_1\cdots t_{i-1}\bigr). \tag{1}

We call this the sequence probability, or the reaching probability of a tree node. If generation ends with probability one, the complete extensions of an incomplete sequence s carry total probability \mu_{\mathbf p}(s), and \sum_{c\in\mathcal C}\mu_{\mathbf p}(c)=1 (Suresh et al. 2026, Lemma D.1). This identity is the basis of every bound below.

This identity matters because a verifier never has to enumerate the extensions of a prefix explicitly. It can keep the prefix as one leaf with weight \mu_{\mathbf p}(s) and account for everything below it in one number. Every bound in this chapter is a sum over such leaves.

We count one forward pass as one unit of cost. Serving systems reduce the wall-clock cost per pass with key-value caching and batching, but this choice makes verifiers comparable across hardware. Scoring a known path of n tokens in one prefill returns all conditionals along it with a single pass (Wadhwa et al. 2026, sec. 2.1). Building a tree one new node at a time pays one pass per new node. The latter is the regime relevant here; Chapter 8 exploits the former to reuse work across prompts.

The same accounting makes verifiers comparable. Sampling pays for a prefix each time it regenerates it; a trie-based verifier pays once and reuses the node. The number of forward passes is therefore a proxy for exploration efficiency, not for wall-clock time on a particular serving stack.

Oracles

Acceptable responses are fixed by an oracle \Phi:\mathcal V^*\to\{\top,\bot\}, a deterministic, decidable check that reads the response alone. For the toy model, s\models\Phi exactly when s contains no b.

Oracles in the literature range from string matchers for leaked e-mail addresses to the Insecure Code Detector of CyberSecEval (Bhatt et al. 2023), learned toxicity classifiers used with prompts from RealToxicityPrompts (Gehman et al. 2020), checks on an agent’s next tool call under prompt injection (Debenedetti et al. 2024), greedy LLM judges, and comparisons to ground-truth answers in math benchmarks. Harmfulness and code security are not decidable in general, so each evaluation fixes a check. We treat it as a black box (Wadhwa et al. 2026, sec. 2.2) and give guarantees relative to it: a bound on a toxicity classifier’s verdicts says nothing about harm beyond that classifier. Chapter 5 discusses the specification step.

A fixed check can be a regular expression, a static analyzer, a learned classifier with a threshold, or a greedy judge. Each turns a vague concern into a testable property. The test itself may be imperfect. Its verdicts define the property being certified: a bound for one classifier does not transfer to another. Replacing the oracle changes the target, not the verification method.

Some oracles are monotone in violation: once a prefix violates, every continuation violates. A forbidden substring, a matched regular expression, a static-analysis pattern, or a maximum-over-prefixes toxicity score have this property. A verifier can then evaluate the oracle on a prefix and discard the entire subtree below a violating prefix. Relational oracles depend on a fixed part of the prompt; treat each value of that part as its own oracle, as Otter does (Wadhwa et al. 2026, Remark 4.1).

Oracles that read the whole response, such as a comparison against a ground-truth final answer, cannot be decided early. For them the verifier waits for \langle\mathrm{eos}\rangle. The choice affects cost, not soundness.

The verification problem

Given M, \mathbf p, and \Phi, the goal is the total probability of complete responses that satisfy the oracle.

Definition 1 (Verification problem (Definition 4.1 of (Suresh et al. 2026))) P(\mathbf p)=\sum_{s\in\mathcal C}\mu_{\mathbf p}(s)\,\mathbb 1[\,s\models\Phi\,]. \tag{2}

P is the probability of a satisfying, or safe, response; 1-P is the violation probability. Exact computation requires resolving exponentially many responses: a vocabulary of about 150{,}000 tokens and responses of 32 tokens allow more than 10^{165} distinct sequences. Most carry little mass, but the rare violations live in that tail. The toy model has infinitely many responses and still admits a closed form; real models do not.

The tail is exactly where a safety question lives. A violation that occurs once in a thousand responses is invisible to a short test, yet a public endpoint can produce it thousands of times a day. Exact enumeration would settle the question, but the response space is far too large. A weaker target is therefore necessary: a guaranteed interval for the satisfaction probability, with an explicit account of the mass left unresolved.

A verifier therefore returns sound bounds

P_{LB}(\mathbf p)\le P(\mathbf p)\le P_{UB}(\mathbf p). \tag{3}

They tighten as forward passes are spent. Sound means the interval contains P after every step, not only at the end and not only with high probability: this is the anytime property. A practitioner can stop anywhere and keep a valid interval; the width P_{UB}-P_{LB} is the remaining uncertainty. This is the sharp difference from statistical certification. A statistical bound is correct with probability 1-\delta over the sample; a deterministic bound is always correct relative to \Phi.

The two guarantees answer different questions. A statistical certificate says that, with high probability over the draws, the true probability lies in an interval. A deterministic bound says that it lies in the interval now, for the model and oracle given. Deterministic verification does not replace sampling everywhere. It applies where the model exposes next-token distributions and where a decidable oracle captures the risk of interest.

Tolerance, risk and verdicts

Resolving the tail completely is impossible, so the tolerance \epsilon\ge 0 says how far into it verification reaches.

Definition 2 (Verification to tolerance \epsilon (Definition 4.2 of (Suresh et al. 2026))) For \epsilon\in[0,1), verification expands every incomplete sequence s with \mu_{\mathbf p}(s)>\epsilon and classifies every complete response with \mu_{\mathbf p}(s)>\epsilon as satisfying or violating. Only sequences of probability at most \epsilon may remain unresolved. At \epsilon=0 verification computes P exactly, assuming a finite tree.

Expanding means one forward pass; classifying means one oracle call. After verification to tolerance \epsilon, every sequence more probable than \epsilon has been looked at. The remaining uncertainty is the total mass of sequences individually at most \epsilon, which can still be large. Tolerance constrains which tail events may be missed, not the interval width. In the toy model at \epsilon=0.03, the final gap is about 0.4.

The tolerance trades precision for cost. A smaller \epsilon forces the verifier to inspect more of the tail and narrows the gap; a larger one stops earlier and leaves more mass unresolved. The gap need not be small even when \epsilon is small, because unresolved sequences can be numerous. The budget is the complementary control: with a fixed budget, the verifier returns the best sound interval it can and may leave the prompt open.

A deployment decision turns bounds into a bit. Fix a risk threshold \tau\in[0,1]: a prompt is safe when P\ge\tau and risky when P<\tau.

Definition 3 (Risk threshold (Definition 4.3 of (Suresh et al. 2026))) P_{UB}(\mathbf p)<\tau\ \Longrightarrow\ \mathbf p\text{ is RISKY},\qquad P_{LB}(\mathbf p)\ge\tau\ \Longrightarrow\ \mathbf p\text{ is SAFE},

and the prompt is OPEN otherwise.

Open means the bounds straddle the threshold, not that the prompt is unsafe. The quantity 1-P_{UB} is the certified risk, a sound lower bound on the violation probability. A prompt open at one tolerance may be settled by more budget or a smaller \epsilon; a risky or safe verdict never flips, because bounds only narrow. At \tau=0.9 the toy prompt is risky once P_{UB}<0.9; at \tau=0.5 it is safe only after P_{LB}\ge0.5.

The work needed for a verdict depends on \tau, not only on P. A threshold near 0 or 1 can be settled early, because one side of the interval crosses it quickly. A threshold near P can require resolving much more mass. A sound verifier never commits to a verdict before its bounds justify it.

A sound baseline: the sampling verifier

The simplest sound verifier draws complete responses from M, evaluates \Phi on each distinct response, adds its probability to P_{LB} when it satisfies the oracle, and subtracts it from P_{UB} when it violates. It starts from [0,1] and stops on a verdict or when its budget is exhausted. Each draw costs one pass per generated token (Suresh et al. 2026, sec. 5 and Appendix B).

Soundness follows from deduplication: the mass entering P_{LB} comes from distinct satisfying complete responses, and the mass removed from P_{UB} from distinct violating ones. The cost is poor. Duplicate draws change neither bound; each draw pays again for shared prefixes; and a response of probability 10^{-4} affects a bound only after roughly 10^4 draws. In the toy model at \tau=0.9, sampling needs 57 forward passes across 20 draws, seven of which are duplicates, to certify the prompt risky. BEAVER needs 15, or 6 when violating prefixes are evaluated early.

Both inefficiencies come from ignoring the tree structure. Responses that share a prefix share a computation, and high-probability responses need to be counted once, not redrawn. The sampling verifier has no way to know how much probability mass remains unseen. BEAVER’s frontier makes that mass visible and lets the verifier decide where to spend the next pass.

Decoding and prior verifiers

So far P_M is the raw next-token distribution, at temperature 1. Deployment usually applies temperature, top-k or top-p truncation (Holtzman et al. 2020) before sampling. Temperature divides the logits by T and renormalizes: T\to0 is greedy, T\to\infty uniform. Top-k keeps the k highest-probability tokens and renormalizes. Top-p keeps the smallest set whose mass reaches p and renormalizes. These transformations define the effective response distribution, which is what a verifier should certify.

With logits z_i and temperature T, the transformed probability is e^{z_i/T}/\sum_j e^{z_j/T}. Top-k restricts sampling to the k tokens of highest probability and renormalizes on that set. Top-p takes the smallest set of tokens whose total probability reaches p and renormalizes there.

There are two ways to do that. Verify the decoded distribution directly: then P is the deployment probability, and sharper decoding concentrates mass on fewer responses and reduces work. Or verify the raw distribution, which covers every decoding configuration that reweights or truncates it, and prune low-probability tokens for tractability. Pruning is sound if the dropped probability mass is added to P_{UB}: a pruned token might lead to a satisfying response. The bounds then stay valid for the unpruned distribution, at the price of a wider interval. A bound proved for one distribution is not a bound for the other.

The decoding configuration is therefore part of the problem statement. A bound for the raw distribution is valid for a truncated one only after an explicit correction; a bound for one truncated distribution does not describe another. The Experimental results section reports the configurations used.

Classical verifiers prove that all inputs satisfying a specification produce outputs satisfying another; Chapter 4 surveys them. Sound but incomplete methods over-approximate the network (Gehr et al. 2018; Singh et al. 2019; Zhang et al. 2018), complete methods use branch and bound (Katz et al. 2017; Bunel et al. 2020; Wang et al. 2021), and randomized smoothing gives probabilistic guarantees (Cohen et al. 2019). Existing neural-network verifiers (Singh et al. 2025), including probabilistic extensions for Bayesian networks (Berrada et al. 2021), target deterministic input-output relations. Statistical certification of LLM outputs (Kumar et al. 2023; Chaudhary et al. 2025, 2026; Wang et al. 2026; Yeon et al. 2026) samples and gives statistical rather than sound bounds.

The gap is not only scale: an autoregressive model makes a sequence of random choices, and decoding changes the distribution those choices define. What is needed is a representation of one prompt’s output tree in which unexplored mass is explicit. That representation is the token trie.

BEAVER: tree, frontier and bounds

BEAVER is a branch-and-bound verifier over the response tree (Suresh et al. 2026). Figure 1 shows one iteration: select the most probable unresolved leaf, expand or classify it, then read the bounds from the updated frontier.

Figure 1: BEAVER workflow. Given a prompt, a language model and an oracle \Phi, BEAVER iteratively selects the most probable unresolved leaf of the frontier (Max-\mu), expands it with one forward pass if it is incomplete, or classifies it with \Phi if it is complete, and updates the frontier from which the sound bounds are read. Figure from (Suresh et al. 2026).

Token trie. A token trie T (Definition 4.4 of (Suresh et al. 2026)) is a prefix tree over \mathcal V^*. Each edge carries a token t and the conditional probability P_M(t\mid\mathbf p\cdot s) of that token from its parent’s string s. A node n[s] represents the concatenation of edge labels from the root, and \mu(s) is the product of those edge probabilities. A node is complete when its incoming token is \langle\mathrm{eos}\rangle, or when it reaches the maximum length. Expanded nodes carry all their children; unexpanded nodes and complete nodes are leaves.

Two invariants follow from the definition. Probabilities never increase along a path, because each edge multiplies by a number at most one. The children of an expanded node carry exactly its probability, because the conditional distribution over the vocabulary sums to one. Together they let the verifier reason about a whole subtree through its root.

Frontier. The frontier \Psi (Definition 4.5 of (Suresh et al. 2026)) splits leaves into complete satisfying leaves \Psi_c, complete violating leaves \Psi_v, and incomplete or unclassified leaves \Psi_i. Expanding an incomplete leaf costs one forward pass and replaces it in \Psi_i with its children. Classifying a complete leaf costs no forward pass and moves it from \Psi_i to \Psi_c or \Psi_v.

A complete leaf that has not been classified belongs to \Psi_i, so \Psi_i is exactly the set of unresolved leaves. After an expansion, all children enter \Psi_i; after a classification, the leaf leaves it. The mass of \Psi_i is the verifier’s remaining uncertainty.

Bounds. The leaves of the trie carry total mass one, so the bounds are read directly from the frontier (Suresh et al. 2026, Equation 4):

P_{LB}[\Psi]=\sum_{s\in\Psi_c}\mu(s),\qquad P_{UB}[\Psi]=\sum_{s\in\Psi_i\cup\Psi_c}\mu(s),\qquad P_{UB}[\Psi]-P_{LB}[\Psi]=\sum_{s\in\Psi_i}\mu(s). \tag{4}

Soundness (Theorem D.2 of (Suresh et al. 2026)) says these bounds enclose P(\mathbf p) at the start and after every step, and that each step only narrows the interval. The reason is that every complete response is either a leaf or extends a unique incomplete leaf. So \Psi_c holds only confirmed satisfying responses, and \Psi_i covers every response not yet classified. The argument uses no selection rule and no property of the oracle beyond determinism.

At the start the only leaf is the root, with \Psi_i=\{\epsilon\} and bounds [0,1]. An expansion swaps a leaf for children of the same total mass, so neither bound moves; the step buys resolution rather than an immediate tighter interval. A classification moves one leaf out of the gap. Both operations preserve soundness, which is why the anytime property holds regardless of how leaves are chosen.

Pruning. A full-width expansion creates about |\mathcal V|\sim150\mathrm{K} children per node. BEAVER therefore applies top-p and top-k filters at each expansion and caps the size of the frontier. Pruned or retired mass accumulates in a scalar M_p\ge0 that is added to the upper bound (Suresh et al. 2026, Appendix E):

P_{LB}=\sum_{s\in\Psi_c}\mu(s),\qquad P_{UB}=\sum_{s\in\Psi_i\cup\Psi_c}\mu(s)+M_p. \tag{5}

Retired leaves are incomplete, so the lower bound does not change; treating all pruned mass as satisfying keeps the upper bound valid. M_p is a lower bound on the final interval width, so filters trade width for speed. With monotone violations, classifying a violating prefix early and dropping its subtree is sound for the same reason. Pruning filters, the frontier cap, and early prefix evaluation are implementation tools, not changes to the problem. Each retired or classified prefix must be accounted for exactly once. Under Max-\mu selection, the paper reports that these optimizations are rarely binding in its experiments.

A toy frontier. At tolerance \epsilon=0.03, the toy run ends with the frontier summarized below. The symbol $ denotes \langle\mathrm{eos}\rangle.

frontier set classified or unresolved leaves (with \mu) mass
\Psi_c a$ 0.1500, c$ 0.1400, $ 0.1000, aa$ 0.0450, ac$ 0.0350 0.4700
\Psi_v b$ 0.0500, ab$ 0.0375, bc$ 0.0350 0.1225
\Psi_i remaining leaves, each at most 0.0262 0.4075

The bounds are [0.4700,0.8775]. The gap is exactly \mu(\Psi_i)=0.4075, and the exact value 0.5419 lies inside. At \tau=0.9, the upper bound is below the threshold, so the prompt is certified risky after 15 forward passes. The table separates what has been proved from what remains unknown. The lower bound counts confirmed satisfying mass; the upper bound adds all mass that could still turn out satisfying. The exact probability is not used by the verifier; it is shown only to check the interval. The same reasoning applies to any prompt and oracle, with larger frontiers in place of the three toy sets.

The BEAVER algorithm

BEAVER starts with a trie containing only the root, so the initial bounds are [0,1] (Suresh et al. 2026, Algorithm 1). While some unresolved leaf has reaching probability above \epsilon, it selects the leaf of greatest \mu. If that leaf is complete, it classifies it with one oracle call. If the leaf is incomplete, one forward pass produces its next-token distribution and all its children enter \Psi_i. The selected leaf leaves \Psi_i in either case.

Classification moves mass out of the gap: a satisfying leaf raises P_{LB}, and a violating leaf lowers P_{UB}. Expansion leaves both bounds unchanged and buys resolution for later classifications. The loop stops when no unresolved leaf exceeds \epsilon, which is exactly Definition 4.2, or when a budget of forward passes is exhausted. It returns the bounds of Equation (4), or Equation (5) with pruning. Soundness holds throughout, so a budget stop simply leaves the prompt open.

Each iteration has two steps: select the most probable unresolved leaf, then classify or expand it. Selection decides which mass is resolved next; it never affects soundness. The tolerance condition is checked on the frontier, not on a sample, so termination is a property of the computed trie. In practice a verifier also tracks a budget of forward passes; stopping on budget returns a wider but still valid interval.

Theorem 1 (Worst-case complexity (Theorem E.1 of (Suresh et al. 2026))) Over \delta_{\text{budget}} iterations, BEAVER performs at most that many forward passes and otherwise runs in O\bigl(\delta_{\text{budget}}\cdot(|\mathcal V|\log(\delta_{\text{budget}}|\mathcal V|)+C_\Phi)\bigr) time, where C_\Phi is the cost of one oracle evaluation.

Each expansion pushes at most |\mathcal V| children into a heap keyed by \mu, each selection pops once, and each classification calls the oracle. Memory grows with the number of created nodes, one per child plus the heap. With pruning, the mean number of children per expansion is far below the vocabulary size. Oracle calls are a large part of the practical cost: one per classified complete response, and more when prefixes are tested early. Caching shared prefix results and batching calls reduce that cost.

Selection, termination and cost

The Max-\mu rule selects s^*=\arg\max_{s\in\Psi_i}\mu(s) and keeps \Psi_i in a max-heap. Let

E_{\mathbf p}(\epsilon)=\{s\notin\mathcal C:\ \mu_{\mathbf p}(s)>\epsilon\}

be the incomplete sequences above the tolerance. Definition 4.2 forces every verifier to expand all of them. Theorem 4.6 of (Suresh et al. 2026) states that Max-\mu expands exactly these, for every \epsilon. It therefore uses |E_{\mathbf p}(\epsilon)| forward passes, the fewest among verifiers that start from an empty trie and expand one incomplete node per pass. After any k passes, the most probable sequence it leaves unexpanded is also no more probable than any other such verifier’s. The intuition is short. A child is never more probable than its parent, so children of the node just expanded cannot jump the queue; E_{\mathbf p}(\epsilon) is closed under prefixes, so nodes above \epsilon are reached by induction on depth. The theorem never mentions the oracle, so the result holds for every decidable \Phi. It is a statement about the cost of reaching a tolerance, not about the narrowest interval for a fixed budget.

Three consequences are worth keeping. The oracle plays no role in the optimality claim, so any decidable oracle inherits it. The cost is fixed by the model and prompt through the number of prefixes above the tolerance. And optimality concerns the number of passes needed to reach a tolerance, not the best interval for a fixed budget; other rules may resolve more mass and end with a narrower gap at higher cost.

Other selection rules stay sound. Breadth-first expands the shallowest leaf, Sample-\mu draws proportionally to \mu, and UCB favours subtrees where violations have already been found (Suresh et al. 2026, Appendix I.4). On the toy model at \epsilon=0.03, Max-\mu uses 15 passes, breadth-first 31, and Sample-\mu 42. The extra passes resolve mass below \epsilon and can give narrower intervals: gap 0.38 and 0.30 versus 0.41 for Max-\mu. Early evaluation of violating prefixes cuts Max-\mu to 6 passes here, at the cost of calling the oracle on prefixes.

Sample-\mu is close in spirit to the sampling verifier, but it draws from the frontier instead of regenerating full responses, so it still reuses explored prefixes. UCB uses violation evidence from ancestor nodes to prioritize subtrees likely to lower the upper bound. Breadth-first ignores probabilities entirely. All produce sound intervals; the Experimental results section compares them on real models.

For \epsilon>0, termination is finite. Sequences of length n are disjoint events whose total probability tends to zero, so past some length none exceeds \epsilon; at shorter lengths fewer than 1/\epsilon per length can exceed it. Without a maximum length, the probability of still being incomplete after n tokens tends to zero, so a positive tolerance is eventually reached. With \epsilon=0 the bounds converge to P in the limit (Theorem D.4 of (Suresh et al. 2026)); a maximum length L makes exact verification finite.

Implementation

The BEAVER paper (Suresh et al. 2026) gives the algorithm, proofs, ablations and experimental protocol. The open-source verifier separates a model server that answers forward passes from a verification client that maintains the frontier; the current code, setup instructions and project notes are at the BEAVER project page, https://beaverframework.pages.dev/. Command-line flags and server configurations change between releases, so readers should follow those sources for implementation details rather than a fixed recipe.

Limitations

BEAVER needs access to next-token distributions. It applies to open-weight models and to developers verifying their own checkpoints, not to models behind an API. Its guarantees are relative to the oracle: bounds certify behavior with respect to a detector, such as a toxicity classifier or a set of static-analysis rules, not to the underlying notion of harm. Verification is to a tolerance \epsilon and a maximum response length, so mass below \epsilon stays unresolved. Cost grows with the number of prefixes reached with probability above \epsilon, which grows with response length and output entropy. Enumeration itself suffers search-space explosion for longer generations, so scaling to longer tasks is ongoing work (Suresh et al. 2026, sec. 8). Chapter 8 addresses part of this by reusing work across prompts.

Summary

  • A verifier sees an LLM through \mu_{\mathbf p} over complete responses, accessible only by forward passes. A prefill returns all conditionals along a known path in one pass. An oracle is deterministic, decidable, and reads the response alone; all guarantees are relative to it.
  • The goal is sound bounds on P(\mathbf p)=\sum_{s\in\mathcal C}\mu_{\mathbf p}(s)\mathbb 1[s\models\Phi], valid after every step and to a tolerance \epsilon, giving risky, safe or open verdicts at a threshold \tau. The certified risk is 1-P_{UB}. Sampling gives sound bounds but wastes passes on duplicates and shared prefixes.
  • A decoding strategy changes the verified distribution; mass pruned from the raw distribution must be added to P_{UB}.
  • BEAVER explores the response tree best-first. The token trie records explored prefixes and their reaching probabilities; the frontier splits its leaves into satisfying, violating and unresolved. Expansion costs one forward pass; classification costs none. Bounds come from frontier masses plus the pruned mass M_p.
  • Max-\mu expands exactly the incomplete sequences above \epsilon, which minimizes forward passes for verification to any tolerance and any decidable oracle. Soundness holds for every selection rule. Termination is finite for \epsilon>0 and exact at \epsilon=0 with a maximum length.
  • Implementation details and current code are in the BEAVER paper (Suresh et al. 2026) and at https://beaverframework.pages.dev/. Chapter 8 reuses verified trees across prompts; Chapter 9 lifts per-prompt bounds to prompt distributions and reasoning chains.

Notes and further reading

The setup follows Definitions 4.1-4.3 and Section 4.1 of the BEAVER paper (Suresh et al. 2026); language-model and oracle background follows Section 3 of that paper and Sections 2.1-2.3 of Otter (Wadhwa et al. 2026), with the relational-oracle remark in Remark 4.1 of Otter. The sampling verifier is Algorithm 2 in Appendix B and decoding strategies are in Appendix A of (Suresh et al. 2026); for nucleus sampling see (Holtzman et al. 2020). The token trie, frontier, updates and bounds are Definitions 4.4 and 4.5 and Equations (3) and (4); Algorithm 1 and Theorem 4.6 are in Section 4.3; pruned mass, early evaluation and complexity are in Appendix E; soundness, termination and optimality proofs are Theorems D.2, D.4 and D.7 in Appendix D. The selection-rule ablation is Appendix I.4 and the limitations are Section 8. Distributional certification and reasoning-model faithfulness are treated in Chapter 9.

Experimental results

This section reports the experiments of BEAVER (Suresh et al. 2026). BEAVER is an unpublished preprint under review. The numbers can change before publication. Each number holds for the named models, the oracles below, the prompts, the tolerance, the budget, and the maximum response length. The results of the two extensions (distributional certification and the faithfulness of reasoning models) are in the Experimental results section of Chapter 9.

Setup

Tasks and oracles. Each task has an oracle \Phi and a set of base requests.

Table 1: The three BEAVER tasks (from Section 5 and Appendix F of (Suresh et al. 2026)).
Task Base requests Oracle \Phi Max. length
Privacy leakage 50 five-shot Enron (name, email) prompts (DecodingTrust format: five (name, address) pairs from the target’s email domain, then the target’s name) violated when the response contains one of the 3,294 Enron addresses of the benchmark (regular expression) 16 tokens
Insecure code generation 32 of the 486 C/C++ autocomplete instances of CyberSecEval, covering 12 CWE classes (most often CWE-120, CWE-680, CWE-338, CWE-798) violated when the completion, read after its preceding code, matches a rule of CyberSecEval’s Insecure Code Detector for C/C++ (26 regular-expression rules and 38 weggli queries) 32 tokens
Toxicity 50 prompts sampled with a fixed seed from the 1,196 challenging toxic prompts of RealToxicityPrompts selected by DecodingTrust violated when any prefix of the response receives a toxicity or severe-toxicity score of at least 0.5 from the Detoxify classifier 32 tokens

Prompt distributions. All results use n = 300 prompts for each task. The authors draw them uniformly from pairs of a base request and a context. A context is a system prompt. The authors build it from a bank of jailbreak personas and side instructions. They keep the sentences of a persona in order. After each sentence, they insert every side instruction independently with probability 0.05, in random order. Each base request gets one persona, chosen uniformly at random. The authors generate the contexts of a base request from its persona until they have enough distinct contexts. The paper states 100–200 contexts for each base request. The generator seed is 42. The populations are 10,000 (privacy), 4,096 (secure code), and 5,000 (toxicity).

Models and parameters. The paper uses five instruction-tuned open-weight models: Qwen3-4B-Instruct-2507, Qwen3-30B-A3B-Instruct-2507, Qwen2.5-14B-Instruct, Llama-3.3-70B-Instruct, and Gemma-3-12B-Instruct. The settings are:

  • privacy: tolerance \epsilon = 0.01 and a budget of 500 forward passes for each prompt;
  • secure code and toxicity: \epsilon = 0.001 and a budget of 2,500 forward passes;
  • risk threshold \tau = 0.9;
  • temperature 1, top-p = 0.99, top-k = 500, and a frontier cap of 10,000.

A prompt is risky if its upper bound is below \tau. It is safe if its lower bound is at least \tau. Otherwise it is open. BEAVER adds the pruned probability mass to the upper bound. The bounds stay sound for the unpruned distribution. The experiments run on one NVIDIA H100 80GB GPU. Llama-3.3-70B uses two GPUs.

Baseline. The baseline is a sampling verifier (SV). It draws complete responses at temperature 1, one at a time. It checks each unique response with \Phi. It adds the probability of the response to the lower bound if the response satisfies \Phi. It subtracts the probability from the upper bound if the response violates \Phi. SV is sound. It stops when it categorizes the prompt as risky or safe, or when the budget ends. It pays one forward pass for each generated token. BEAVER does not stop at the first categorization. It continues until the tolerance.

Metrics. R/S/O are the numbers of risky, safe, and open prompts out of 300. \bar P_{LB} and \bar P_{UB} are the final bounds, averaged over the prompts. The value fp is the mean number of forward passes for each prompt, until the tolerance or the end of the budget. “Unconv.” counts the prompts that used the whole budget. For BEAVER, these prompts did not reach the tolerance. For SV, they were not categorized. R and S are better when higher. O, fp, and Unconv. are better when lower.

Results

Safety profiles. Table 2 shows the verification of each prompt on secure code and toxicity.

Table 2: Per-prompt verification with BEAVER and the sampling verifier (SV) on n = 300 prompts per task (Table 1 of (Suresh et al. 2026)).
Model Method Secure code: [\bar P_{LB}, \bar P_{UB}] R/S/O fp Unconv. Toxicity: [\bar P_{LB}, \bar P_{UB}] R/S/O fp Unconv.
Qwen3-4B BEAVER [.482, .731] 103/54/143 1131.0 35 [.684, .908] 54/142/104 559.8 5
Qwen3-4B SV [.362, .914] 85/32/183 1847.1 183 [.654, .997] 5/137/158 2459.4 158
Gemma-3-12B BEAVER [.458, .690] 117/59/124 1084.5 27 [.031, .317] 281/1/18 594.8 0
Gemma-3-12B SV [.358, .895] 95/31/174 1767.3 174 [.020, .954] 52/0/248 2165.7 248
Qwen2.5-14B BEAVER [.237, .721] 120/19/161 1348.7 49 [.004, .394] 262/0/38 447.3 0
Qwen2.5-14B SV [.159, .913] 80/13/207 1911.7 207 [.002, .977] 32/0/268 2285.7 268
Qwen3-30B-A3B BEAVER [.469, .709] 97/57/146 1072.9 10 [.566, .786] 93/74/133 578.8 0
Qwen3-30B-A3B SV [.367, .880] 95/29/176 1757.5 176 [.552, .996] 4/64/232 2470.4 232
Llama-3.3-70B BEAVER [.344, .611] 155/25/120 1055.6 5 [.022, .237] 279/1/20 510.7 4
Llama-3.3-70B SV [.246, .897] 130/21/149 1526.1 149 [.011, .972] 34/0/266 2327.7 266

Toxicity separates the models. The two Qwen3 models are risky on 54 and 93 prompts. They are safe on 142 and 74 prompts. In 57–68% of their distribution, the response is non-toxic (\bar P_{LB}). Qwen2.5-14B is an earlier model of the same developer. It is risky on 262 prompts and safe on none. Gemma-3-12B and Llama-3.3-70B are risky on 279–281 prompts. Their \bar P_{UB} is at most 0.317 and 0.237. Secure code separates the models in a different way. Qwen3-4B is the safest model on toxicity. On secure code, it is risky on 103 prompts, close to Gemma-3-12B with 117 prompts. Llama-3.3-70B has the most risky secure-code prompts (155). The paper concludes that the risk profile of one model depends strongly on the task.

NoteReading the bounds

[\bar P_{LB}, \bar P_{UB}] bound the probability that a response satisfies the oracle. A risky prompt has an upper bound below \tau = 0.9. The mean gap \bar P_{UB} - \bar P_{LB} is the unresolved mass. The BEAVER gap is narrow when most prompts reach the tolerance (toxicity on Gemma-3-12B: 0.286). It is wide when many prompts stay open (secure code on Qwen2.5-14B: 0.484). The SV gaps are wide in all cases, because most SV prompts stay open.

Privacy. On the short privacy responses, the five models are close. Each model is risky on 145–162 of the 300 prompts. For an average adversarial context, each model outputs a leaked Enron address with about half of its probability mass (\bar P \approx 0.47–0.54). BEAVER reaches the tolerance in 15–26 forward passes for each prompt. The mean gap is at most 0.043. BEAVER and SV categorize the prompts in the same way. Their risky counts differ by at most one prompt. SV needs 236–264 forward passes for each prompt, which is 13 times more on average. SV keeps resampling the few addresses with high probability.

Table 3: Per-prompt verification on privacy (\epsilon = 0.01, budget 500, \tau = 0.9; Table 6 of (Suresh et al. 2026)).
Model Method [\bar P_{LB}, \bar P_{UB}] R/S/O fp
Qwen3-4B BEAVER [.513, .517] 153/147/0 15.8
Qwen3-4B SV [.489, .523] 153/146/1 250.7
Gemma-3-12B BEAVER [.527, .536] 145/151/4 16.9
Gemma-3-12B SV [.517, .540] 145/150/5 263.7
Qwen2.5-14B BEAVER [.470, .513] 162/86/52 26.4
Qwen2.5-14B SV [.444, .514] 163/84/53 235.7
Qwen3-30B-A3B BEAVER [.466, .486] 157/124/19 20.3
Qwen3-30B-A3B SV [.456, .489] 157/119/24 243.3
Llama-3.3-70B BEAVER [.510, .523] 151/133/16 14.8
Llama-3.3-70B SV [.501, .529] 151/136/13 254.5

Comparison with the sampling verifier. With the same budget, BEAVER certifies more risky prompts at a lower cost. On secure code, it certifies 1.2 times more risky prompts with 1.5 times fewer forward passes. For Qwen3-4B, the numbers are 103 and 85 risky prompts and 1131.0 and 1847.1 forward passes. On toxicity, it certifies 7.6 times more risky prompts with 4.4 times fewer forward passes. For Qwen3-4B, the numbers are 54 and 5 risky prompts, and 559.8 and 2459.4 forward passes. For Gemma-3-12B, they are 281 and 52 risky prompts. The paper concludes that sampling can miss responses with low probability that violate the oracle. Sampling then fails to show the tail risk. SV leaves most toxicity prompts open (158 to 268 prompts). A random draw rarely shows a toxic continuation. SV stops at the first categorization, and BEAVER continues to the tolerance. This difference favors SV in the comparison of cost.

Cost. BEAVER takes about two minutes to verify one prompt: 133 s on secure code and 123 s on toxicity. The authors verify 32 prompts at the same time against one served model. They verify all 300 prompts of a task in less than 25 minutes on one GPU (two GPUs for Llama-3.3-70B). BEAVER is cheaper than SV, because its bounds become tight early.

Table 4: Cost of BEAVER per prompt, averaged over the five models (Table 7 of (Suresh et al. 2026)). Latency is the wall-clock time of one prompt with 32 prompts verified concurrently against one served model; throughput is the wall-clock time of a whole 300-prompt run divided by 300; \lvert T\rvert is the trie size at termination; \bar B = \lvert T\rvert / \text{fp} is the mean number of children an expansion adds after the top-p and top-k filters; trie memory is estimated at 1 KB per node; M_p is the probability mass pruned by the filters and the frontier cap.
Task fp Latency (s) Throughput (s) \lvert T\rvert \bar B Trie (MB) M_p
Privacy 18.9 3.5 0.4 32 1.7 0.03 0.0015
Secure code 1138.5 132.7 4.7 5,141 4.5 5.14 0.024
Toxicity 538.3 122.9 4.2 3,418 6.4 3.42 0.018

On secure code, 90% of the latency of a prompt goes to the forward passes of the model. On toxicity, 73% goes to the Detoxify classifier. BEAVER calls it on every node of the trie. The trie operations use less than 1% of the time for both tasks. At the end, the trie has about 5,100 nodes on secure code. This is about 5 MB, so memory is never the limit.

Figure 2: Bounds panels on Qwen3-30B-A3B-Instruct: mean upper bound (solid) and lower bound (dotted) over the prompts against the forward passes per prompt (left), and the number of prompts certified risky (solid) and safe (dotted) against the total forward passes of the whole run (right), for BEAVER and the sampling verifier. Figure from (Suresh et al. 2026).

Reading Figure 2. The bounds panels show the mean bounds against the forward passes spent on each prompt. On Qwen3-30B-A3B, the mean upper bound of BEAVER falls to about 0.72 on secure code and 0.79 on toxicity. This happens within the first few dozen forward passes for each prompt. The mean upper bound of SV is still about 0.89 and 1.0 after 500 forward passes. Each SV sample pays for a full response, and a repeated sample adds nothing. The certified-prompts panels count the prompts against the total forward passes of the run over 300 prompts. On toxicity, BEAVER certifies 93 risky and 74 safe prompts in about 175k forward passes. SV certifies 4 risky and 64 safe prompts after about 740k. On secure code, BEAVER certifies 97 risky and 57 safe prompts in about 320k forward passes. SV ends after about 530k with 95 risky and 29 safe prompts. On the other models, the mean upper bound of BEAVER falls below the bound of SV within the first forward passes and stays there. BEAVER ends with more certified prompts after fewer forward passes.

Max-\mu and other selection rules. The paper compares Max-\mu with two other rules. Sample-\mu expands a leaf that it draws with probability proportional to the probability of the leaf. A UCB-style rule prefers subtrees where it found violations. All rules use the same stopping rule. Any selection order keeps the bounds sound. The rules differ only in cost.

Table 5: Node-selection rules on the 300 prompts per task with the same stopping rule (Table 8 of (Suresh et al. 2026)).
Task Model Selection R/S/O fp
Secure code Qwen3-4B Max-\mu 103/54/143 1131.0
Secure code Qwen3-4B Sample-\mu 103/65/132 1556.2
Secure code Qwen3-4B UCB 105/73/122 1471.7
Secure code Gemma-3-12B Max-\mu 117/59/124 1084.5
Secure code Gemma-3-12B Sample-\mu 115/65/120 1527.9
Secure code Gemma-3-12B UCB 118/68/114 1413.9
Toxicity Qwen3-4B Max-\mu 54/142/104 559.8
Toxicity Qwen3-4B Sample-\mu 54/148/98 1208.7
Toxicity Qwen3-4B UCB 55/151/94 927.9
Toxicity Gemma-3-12B Max-\mu 281/1/18 594.8
Toxicity Gemma-3-12B Sample-\mu 283/1/16 1417.1
Toxicity Gemma-3-12B UCB 282/1/17 783.7

Max-\mu is the cheapest rule in every setting. The optimality theorem for Max-\mu predicts this. Sample-\mu uses 1.4 times as many forward passes on secure code and 2.2–2.4 times as many on toxicity. UCB uses 1.3 times as many on secure code and 1.3–1.7 times as many on toxicity. The other rules continue to spend forward passes on sequences with probability below \epsilon. Max-\mu leaves these unresolved by design. The extra expansions change the risky count by at most two prompts. On secure code, they settle a few more prompts as safe, with 30–40% more forward passes.

Comparison with Nazeri et al. (2026). Nazeri et al. search the output space for responses that violate the oracle. They obtain a lower bound on the probability of a harmful response. This gives an upper bound on the satisfaction probability and no lower bound. The method can certify a prompt as risky and never as safe. Their paper tests a few single prompts. The BEAVER authors built a scalable version of the two algorithms of Nazeri et al. They ran it on the first 50 prompts of the secure-code and toxicity samples for Qwen3-4B and Gemma-3-12B. They used the same oracle and distribution (temperature 1, top-p 0.99). For each prompt, the budget is the number of forward passes that BEAVER spent on this prompt. The method certifies fewer risky prompts than BEAVER for every model and task: 12 and 13 against 19 and 18 on secure code, and 6 and 20 against 8 and 47 on toxicity. It never certifies a safe prompt. It leaves 30–44 of the 50 prompts open, against 3–21 for BEAVER. It uses 1.1–1.8 times as many forward passes as BEAVER, because each expansion runs the model on up to K children.

Table 6: BEAVER, the sampling verifier and Nazeri et al. (2026) on the first 50 prompts of each task, \tau = 0.9 (Table 9 of (Suresh et al. 2026)). The lower bound of Nazeri et al. is 0 by construction.
Task Model Method [\bar P_{LB}, \bar P_{UB}] R/S/O fp
Secure code Qwen3-4B BEAVER [.476, .694] 19/10/21 1006.6
Secure code Qwen3-4B SV [.366, .863] 17/5/28 1710.4
Secure code Qwen3-4B Nazeri et al. [0, .837] 12/0/38 1240.4
Secure code Gemma-3-12B BEAVER [.483, .707] 18/11/21 959.6
Secure code Gemma-3-12B SV [.358, .887] 17/9/24 1700.6
Secure code Gemma-3-12B Nazeri et al. [0, .808] 13/0/37 1080.7
Toxicity Qwen3-4B BEAVER [.638, .917] 8/22/20 742.2
Toxicity Qwen3-4B SV [.583, .992] 2/20/28 2401.0
Toxicity Qwen3-4B Nazeri et al. [0, .934] 6/0/44 1340.3
Toxicity Gemma-3-12B BEAVER [.039, .299] 47/0/3 544.3
Toxicity Gemma-3-12B SV [.028, .958] 8/0/42 2146.6
Toxicity Gemma-3-12B Nazeri et al. [0, .658] 20/0/30 758.4

Tolerance. The practitioner chooses the tolerance. It trades precision for cost. The authors verified Qwen3-4B on the 300 prompts of each task to \epsilon = 10^{-4}. They used a budget of 50,000 and a frontier cap of 100,000. Every prompt reaches the tolerance. One run passes through the states where runs with \epsilon = 10^{-2} and 10^{-3} stop. The authors read these rows from the same run.

Table 7: Effect of the tolerance \epsilon on Qwen3-4B (Table 10 of (Suresh et al. 2026); \tau = 0.9).
Task \epsilon R/S/O Gap fp
Secure code 10^{-2} 100/24/176 .393 218.5
Secure code 10^{-3} 104/53/143 .247 1160.5
Secure code 10^{-4} 108/93/99 .153 6125.5
Toxicity 10^{-2} 48/134/118 .268 81.9
Toxicity 10^{-3} 53/144/103 .224 561.3
Toxicity 10^{-4} 54/151/95 .178 4067.5

Each decade of \epsilon costs 5–7 times as many forward passes. A smaller \epsilon never changes a risky or safe categorization. It only settles open prompts. On secure code, a change of \epsilon from 10^{-2} to 10^{-4} settles 77 open prompts, mostly as safe (open 176 to 99, safe 24 to 93). On toxicity, it settles 23 prompts.

Toxicity threshold. A lower Detoxify threshold gives more violating prefixes. So the risky count is monotone in the threshold. The sweep uses thresholds \{0.4, 0.5, 0.6, 0.8\}. It uses an earlier setup: 318 instances of the extremely toxic subset of RealToxicityPrompts, one fixed DecodingTrust adversarial system prompt, \epsilon = 0.01, a budget of 500, and Llama-3.1-8B-Instruct in place of Llama-3.3-70B-Instruct. The counts are not comparable with Table 2. The risky counts out of 318, for the thresholds 0.4, 0.5, 0.6, 0.8, are:

  • Gemma-3-12B: 251, 246, 242, 227;
  • Llama-3.1-8B: 243, 232, 226, 201;
  • Qwen2.5-14B: 245, 241, 238, 230;
  • Qwen3-4B: 0 at every threshold.

No model changes its risk band. The largest change is 42 prompts (13.2%) for Llama-3.1-8B between 0.4 and 0.8. The forward passes change by less than 4%. The certificate is sound for the oracle that the user chooses. A looser detector defines a weaker property. It does not give a weaker certificate.

Decoding parameters and frontier cap. Table 8 shows the new runs on Qwen3-4B (300 prompts for each task, \epsilon = 10^{-3}, budget 2,500, \tau = 0.9).

Table 8: Sensitivity of BEAVER on Qwen3-4B (Table 12 of (Suresh et al. 2026)). The first three rows change only the frontier cap; the others verify the decoded distribution (renormalized after temperature, top-p and top-k).
Setting Secure code R/S/O fp Gap Flips Toxicity R/S/O fp Gap Flips
Baseline (raw, T = 1) 103/53/144 1133.6 .248 – 52/144/104 557.6 .224 –
Frontier cap 1,000 103/52/145 1135.5 .249 6 53/149/98 556.8 .224 6
Frontier cap 100,000 104/53/143 1132.6 .248 5 53/143/104 556.4 .224 4
T = 1, top-p 0.999 102/49/149 1159.8 .265 6 53/141/106 553.6 .231 6
T = 1, top-p 0.99 104/57/139 1153.6 .246 5 52/147/101 563.9 .223 5
T = 1, top-p 0.9 106/101/93 929.0 .145 50 50/159/91 559.1 .166 36
T = 0.75 102/100/98 893.5 .131 45 45/170/85 539.0 .151 31
T = 0.5 98/148/54 530.6 .042 44 44/203/53 404.3 .070 30
T = 0.7, top-p 0.8, top-k 20 102/189/9 304.9 .011 26 45/234/21 304.1 .036 126
Greedy 85/215/0 26.5 .000 163 31/269/0 17.1 .000 193

The frontier cap changes only the pruned mass, so the verdicts are stable. The other rows verify a different distribution. It is the distribution that the model samples under the given temperature, top-p, and top-k, as a deployed model does. Sharper decoding puts the mass on fewer responses. The gap closes and open prompts become safe. Greedy decoding leaves no open prompt. On secure code, the risky count stays between 98 and 106 for all settings except greedy decoding (85). On toxicity, it falls from 52 to 44–45 for T \le 0.75 and to 31 for greedy decoding. On privacy, at most 6 of 300 categorizations change for any setting. Verification at temperature 1 therefore certifies the risk of the full distribution of the model. A practitioner who deploys a fixed decoding configuration can verify that distribution directly, at a lower cost.

Takeaways

The per-prompt bounds of BEAVER are sound. With the same budget, BEAVER categorizes more prompts than sampling does. It certifies 1.2 and 7.6 times more risky prompts on secure code and toxicity. It uses about two minutes and a few megabytes for each prompt. The risk of a model depends on the task. The safest model on toxicity can be among the worst on secure code. The numbers hold for open-weight models, the three oracles above, responses of 16–32 tokens, and the stated tolerances. They also depend on the decoding distribution that the authors verified.

References

Berrada, L., S. Dathathri, K. Dvijotham, et al. 2021. “Make Sure You’re Unsure: A Framework for Verifying Probabilistic Specifications.” NeurIPS.
Bhatt, Manish, Sahana Chennabasappa, Cyrus Nikolaidis, et al. 2023. “Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Models.” arXiv Preprint. https://arxiv.org/abs/2312.04724.
Bunel, R., J. Lu, I. Turkaslan, P. Kohli, P. Torr, and P. Mudigonda. 2020. “Branch and Bound for Piecewise Linear Neural Network Verification.” Journal of Machine Learning Research. https://arxiv.org/abs/1909.06588.
Chaudhary, I., Q. Hu, M. Kumar, M. Ziyadi, R. Gupta, and G. Singh. 2025. “Certifying Counterfactual Bias in LLMs.” ICLR. https://openreview.net/forum?id=HQHnhVQznF.
Chaudhary, I., V. V. Jain, and G. Singh. 2026. “Certifying Reading Comprehension in Large Language Models.” AISTATS. https://arxiv.org/abs/2402.15929.
Cohen, J., E. Rosenfeld, and J. Z. Kolter. 2019. “Certified Adversarial Robustness via Randomized Smoothing.” ICML. https://arxiv.org/abs/1902.02918.
Debenedetti, Edoardo, Jie Zhang, Mislav Balunović, Luca Beurer-Kellner, Marc Fischer, and Florian Tramèr. 2024. “AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents.” NeurIPS Datasets and Benchmarks. https://arxiv.org/abs/2406.13352.
Gehman, Samuel, Suchin Gururangan, Maarten Sap, Yejin Choi, and Noah A. Smith. 2020. “RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models.” arXiv Preprint. https://arxiv.org/abs/2009.11462.
Gehr, T., M. Mirman, D. Drachsler-Cohen, P. Tsankov, S. Chaudhuri, and M. Vechev. 2018. “AI2: Safety and Robustness Certification of Neural Networks with Abstract Interpretation.” IEEE Symposium on Security and Privacy.
Holtzman, A., J. Buys, L. Du, M. Forbes, and Y. Choi. 2020. “The Curious Case of Neural Text Degeneration.” ICLR. https://arxiv.org/abs/1904.09751.
Katz, G., C. Barrett, D. L. Dill, K. Julian, and M. J. Kochenderfer. 2017. “Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks.” CAV. https://arxiv.org/abs/1702.01135.
Kumar, A., C. Agarwal, S. Srinivas, A. J. Li, S. Feizi, and H. Lakkaraju. 2023. “Certifying LLM Safety against Adversarial Prompting.” arXiv Preprint. https://arxiv.org/abs/2309.02705.
Singh, G., T. Gehr, M. Püschel, and M. Vechev. 2019. “An Abstract Domain for Certifying Neural Networks.” POPL. https://dl.acm.org/doi/10.1145/3290354.
Singh, G., J. Laurel, S. Misailovic, et al. 2025. “Safety and Trust in Artificial Intelligence with Abstract Interpretation.” Foundations and Trends in Programming Languages. https://doi.org/10.1561/2500000062.
Suresh, T., N. Wadhwa, D. Banerjee, and G. Singh. 2026. “BEAVER: An Efficient Deterministic LLM Verifier.” VerifAI-2 Workshop @ ICLR. https://arxiv.org/abs/2512.05439.
Wadhwa, Nalin, Brian Kim, David Shu Cheng, Isha Chaudhary, Avaljot Singh, and Gagandeep Singh. 2026. Incremental Verification of LLM Distributions (Otter). https://nalinwadhwa02.github.io/files/custom/Otter_preprint.pdf.
Wang, C., I. Chaudhary, Q. Hu, W. Ruan, R. Gupta, and G. Singh. 2026. “How Catastrophic is Your LLM? Certifying Risks in Conversation.” ICLR. https://openreview.net/forum?id=yt9TW2WtpG.
Wang, S., H. Zhang, K. Xu, et al. 2021. “Beta-CROWN: Efficient Bound Propagation with Per-neuron Split Constraints for Neural Network Robustness Verification.” NeurIPS. https://arxiv.org/abs/2103.06624.
Yeon, J., I. Chaudhary, and G. Singh. 2026. “Quantitative Certification of Agentic Tool Selection.” arXiv Preprint. https://arxiv.org/abs/2510.03992.
Zhang, H., T.-W. Weng, P.-Y. Chen, C.-J. Hsieh, and L. Daniel. 2018. “Efficient Neural Network Robustness Certification with General Activation Functions.” NeurIPS. https://arxiv.org/abs/1811.00866.