Chapter 2 – Types of guarantees

Deterministic and statistical guarantees, deterministic and probabilistic systems, and how the two axes combine.

“The model is safe with probability 0.9” can mean four different things. It can be a proof about every input in a region. It can be a proof about the probability of the responses to one prompt. It can be an estimate from samples that is right 95\% of the time. Or it can be an estimate of a rate over a distribution of prompts. Each meaning is legitimate. A different argument supports each one, and each one can fail in a different way. A reader who cannot tell them apart misreads certificates. A practitioner who does not know which kind a method gives does not know what the method needs or what it costs.

Two questions separate the kinds. The first asks what kind of system the statement describes. The second asks what kind of argument establishes it. The answers are independent, so they form four cells. This chapter defines the two axes and sketches one short example in each cell. Later chapters treat each cell at full scale: Chapter 4 for the first two, Chapters 5–6 for the fourth, and Chapter 7 for the third.

The two axes

Systems: deterministic and probabilistic

Definition 1 (Deterministic and probabilistic systems) A deterministic system is a function f:\mathcal{X}\to\mathcal{Y}. A probabilistic system maps each input x to a distribution M(x)\in\Delta(\mathcal{Y}) over outputs.

An image classifier that returns its \arg\max label is deterministic. A language model with sampling is probabilistic. For a prompt \mathbf{p}, the outputs are complete responses \mathcal{C}, and M(\mathbf{p}) is the response distribution \mu_{\mathbf{p}} of Chapter 3. Greedy decoding makes a model deterministic only if the serving stack is deterministic too. Batching and numerics can break that assumption. We therefore treat the decoding configuration as part of the system and fix it during verification.

An oracle defines the property of interest. For this chapter it is a decidable check \Phi(x,y)\in\{\top,\bot\} of an input and an output. In the chapters on LLM verification, it reads the response alone; there we write y\models\Phi. For a deterministic system, the property asks a yes/no question for each input: does \Phi(x,f(x)) hold? For a probabilistic system, the natural quantity is a probability.

Definition 2 (Probability of satisfaction) For a probabilistic system M and an oracle \Phi, the probability of satisfaction on input x is P(x) \;=\; \Pr_{y\sim M(x)}\bigl[\Phi(x,y)\bigr]. For a language model, P(\mathbf{p})=\sum_{s\in\mathcal{C}}\mu_{\mathbf{p}}(s)\,\mathbb{1}[s\models\Phi].

Two layers of “for how many” matter. Over inputs, a statement can cover one input, a set of inputs, or a distribution \mathcal{D} of inputs. Over outputs, a deterministic system has nothing to quantify. A probabilistic system has a number P(x)\in[0,1] that we must bound.

Guarantees: deterministic and statistical

Definition 3 (Deterministic guarantee, soundness, completeness) A deterministic guarantee is a statement S that a procedure (a verifier) establishes. The verifier is sound if it reports S only when S is true. It is complete if it reports S whenever S is true.

In symbols, with answers \text{verified} and \text{unknown}: \text{sound:}\quad \mathrm{verify}(S)=\text{verified}\;\Rightarrow\; S, \qquad \text{complete:}\quad S\;\Rightarrow\;\mathrm{verify}(S)=\text{verified}. Soundness is non-negotiable. A verifier that sometimes claims a false property provides no guarantee. Completeness is desirable but expensive. Sound verifiers are usually incomplete: they answer “unknown” for some true properties because they over-approximate the system. Verifying ReLU networks is NP-complete (Katz et al. 2017; Singh et al. 2025). A verifier may also return a counterexample when a property is false.

Definition 4 (Statistical guarantee, confidence, coverage) Let \theta be a quantity of the system. From n independent observations in a sample S, a procedure returns an interval I(S)=[\theta_{\mathrm{lo}}(S),\theta_{\mathrm{hi}}(S)]. It has confidence 1-\delta if, for every true \theta, \Pr_{S}\bigl[\theta\in I(S)\bigr]\;\ge\;1-\delta . The left side, as a function of \theta, is the coverage of the procedure. Confidence 1-\delta means coverage is at least 1-\delta everywhere.

The probability is over the sample, hence over the randomness of the certifier. The system and \theta are fixed. The statement “\theta\in[0.43,0.72] at 95\% confidence” describes a procedure: on repeated fresh samples, at least 95\% of its intervals contain \theta. For the interval in front of us, \theta is inside or outside. We only bound how often the procedure is wrong.

A statistical guarantee needs only sampling. It therefore applies to black-box models behind an API. Its price is that it estimates rates over distributions. It cannot rule out events rarer than the number of samples can resolve.

TipTwo different probabilities

The probability p describes system behavior, such as the chance that a response is safe. The confidence parameter \delta describes our uncertainty about the estimate of p. A certificate says “p\ge0.9 with confidence 1-\delta=0.95”. It says neither “p\ge0.9” outright nor “the model is safe with probability 0.95”.

The four cells

Deterministic guarantee (proof, certainty) Statistical guarantee (samples, confidence 1-\delta)
Deterministic system f(x) (a) \Phi(x,f(x)) for all x in a set. Interval arithmetic, abstract interpretation, MILP/SMT (Chapter 4). (b) The fraction of a distribution of inputs satisfying \Phi, from Monte Carlo samples; randomized smoothing (Chapter 4).
Probabilistic system M(x) (c) Sound bounds P_{LB}\le P(x)\le P_{UB} for one prompt (Chapter 7). (d) High-confidence bounds on \mathbb{E}_{x\sim\mathcal{D}}P(x) from sampled inputs and outputs (Chapters 5–6).

Cell (a): a deterministic system, a proof

Neural-network verification developed here (Katz et al. 2017; Gehr et al. 2018; Singh et al. 2019). The question is whether any input in a region makes the network wrong. A positive answer covers infinitely many inputs at once. Figure 1 shows the small ReLU network used in the monograph (Singh et al. 2025).

A network with two inputs, two affine neurons x3 and x4, two ReLU neurons x5 and x6, and two outputs o0 and o1.
Figure 1: The 2-2-2 network of the monograph. Two inputs feed an affine layer, a ReLU layer, and two output neurons. Figure from (Singh et al. 2025).

The specification says that class 0 wins for every input in the box x_1\in[0,0.3], x_2\in[0.1,0.4]. Interval arithmetic propagates an interval through each layer, over-approximating every operation. It yields o_0\in[0.6,1.4] and o_1\in[-1,0.4]. Since the lower bound of o_0 exceeds the upper bound of o_1, the property is proved for the whole box. Soundness is a local argument: each transformer contains the image of every concrete point, and composition carries that guarantee through the layers.

The verifier is incomplete. On the larger box x_1\in[0,0.6], x_2\in[0.1,0.7] used by the monograph, the propagated intervals overlap, so the answer is “unknown” although the property holds. Intervals lose the dependency between neurons that share the same inputs. Richer abstract domains recover some of that precision at higher cost. The proof also needs white-box access to the weights. Chapter 4 develops this family of methods.

Cell (b): a deterministic system, a statistical guarantee

Now the network stays deterministic but the question changes. We ask what fraction of inputs from a distribution \mathcal{D} satisfy the oracle: p=\Pr_{x\sim\mathcal{D}}[\Phi(x,f(x))]. The randomness comes from the input distribution and from estimation. We need only sample from \mathcal{D}, which need not be a describable region.

With n independent inputs and k successes, k\sim\mathrm{Bin}(n,p). The Clopper–Pearson method (Clopper and Pearson 1934) inverts the binomial tails to return an interval with coverage at least 1-\delta for every p. For example, 29 successes in 50 trials give [0.432,0.718] at 95\% confidence. With no successes, the one-sided upper bound is p\lesssim \ln(1/\delta)/n, the rule of three of Chapter 1. Reaching a half-width \varepsilon takes O(1/\varepsilon^2) samples; the requirement peaks near p=1/2, as Figure 2 shows.

Required sample size against the actual binomial proportion for three target errors; each curve is an arch with its maximum at 0.5.
Figure 2: Required samples for a target error at fixed confidence, as a function of the true proportion. The curve peaks at p=1/2. Figure from (Ugare et al. 2024).

Clopper–Pearson is conservative because the binomial is discrete: actual coverage usually exceeds 1-\delta. The familiar Wald interval looks similar but can undercover badly near p=0 or 1. Randomized smoothing (Cohen et al. 2019) is another statistical guarantee for a deterministic classifier: it samples noise around an input to certify a radius for the smoothed prediction, not the base classifier. Chapter 4 returns to these methods.

The certificate speaks only about \mathcal{D}. It does not cover all inputs, and it cannot exclude a small region of failures. Cell (a) can exclude such a region, but only for a set that we can describe.

Cell (c): a probabilistic system, a proof

A language model’s response probability is a well-defined number determined by its next-token distributions. With white-box access, we can bound it without sampling. Our one toy example uses the vocabulary \{\mathrm{a},\mathrm{b},\mathrm{c},\langle\mathrm{eos}\rangle\}. The initial distribution is [\mathrm{a}:0.5,\ \mathrm{b}:0.2,\ \mathrm{c}:0.2,\ \langle\mathrm{eos}\rangle:0.1]; the oracle accepts responses that never contain \mathrm{b}.

Responses are paths in a tree of token prefixes. We expand the most probable unfinished prefix. The root expansion immediately resolves two children: \langle\mathrm{eos}\rangle (0.1) is a satisfying complete response, and \mathrm{b} (0.2) violates the oracle. The other 0.7 is still open, so P_{LB}=0.1 and P_{UB}=1-0.2=0.8. Expanding prefix \mathrm{a} adds 0.15 of satisfying mass and 0.15 of violating mass, giving [0.25,0.65]. The exact probability is 0.5419, and the interval contains it.

The two bounds are sound after every expansion and tighten monotonically. Every response not yet found lies below an unresolved prefix, so the unresolved mass is the gap between the bounds. The verifier may stop at any budget. Each expansion costs one forward pass of the model. Figure 3 shows the select–expand–update workflow; Chapter 7 gives the algorithm, its data structures, and its optimality claim. BEAVER (Suresh et al. 2026) and Otter (Wadhwa et al. 2026) build on this idea.

A prompt, an LLM, and an oracle feed a loop of select, expand and update over a token trie, which outputs sound bounds P_LB and P_UB.
Figure 3: The BEAVER workflow: a prompt, a model, and an oracle feed a loop over a token trie that returns sound bounds P_{LB} and P_{UB}. Figure from (Suresh et al. 2026).

This cell covers the whole response distribution, including its tail, for one prompt. It says nothing about a prompt that was not verified, and within a budget some mass may remain open.

Cell (d): a probabilistic system, a statistical guarantee

When the model is a black box, or the prompt space is too large for per-prompt proofs, we sample both sides. One trial draws a prompt \mathbf{p}\sim\mathcal{D} and a response y\sim M(\mathbf{p}), then evaluates \Phi. The success probability is \mathbb{E}_{\mathbf{p}\sim\mathcal{D}}P(\mathbf{p}). Trials are independent Bernoulli draws, so the Clopper–Pearson construction of cell (b) bounds the rate.

The LLMCert family uses this setting for counterfactual bias (Chaudhary et al. 2025), knowledge comprehension (Chaudhary, V. V. Jain, et al. 2026), tool use (Yeon et al. 2026), and multi-turn risk (Wang et al. 2026), with specifications built as in (Chaudhary, V. Jain, et al. 2026). Figure 4 shows a representative pipeline: sample prefixes, form prompts, query the model, apply an oracle, and compute the interval.

A pipeline from a prefix distribution to prompts, responses, a bias detector and a certifier producing an interval.
Figure 4: The LLMCert-B pipeline: sampled prefixes become prompts, the model responds, an oracle labels the responses, and a certifier returns an interval. Figure from (Chaudhary et al. 2025).

This certificate needs no white-box access and its cost does not scale with model size. It covers a distribution of prompts, but it treats each response as one coin flip. Events below roughly 1/n are invisible, and it makes no claim about any individual prompt. Chapters 5–6 develop the construction.

Per-prompt and distributional guarantees

The two probabilistic cells complement each other. A per-prompt verifier accounts for the full response distribution but cannot run on every prompt of a large space. A statistical certifier handles large prompt distributions but cannot see the tail of any one response distribution. The two can be composed (Suresh et al. 2026).

Fix a risk threshold \tau. A prompt is risky if P(\mathbf{p})<\tau. Sound bounds categorize it: risky when P_{UB}<\tau, safe when P_{LB}\ge\tau, and open otherwise. The distributional risk is the fraction of prompts from \mathcal{D} that the verifier categorizes risky: \rho(\mathcal{D})=\Pr_{\mathbf{p}\sim\mathcal{D}}\bigl[P_{UB}(\mathbf{p})<\tau\bigr]. We sample prompts, verify each one up to a fixed budget, count the risky ones, and apply Clopper–Pearson to that count. Because the verifier is deterministic, categorization is a function of the prompt. Open prompts count as not risky, so \rho(\mathcal{D}) lower-bounds the true risky fraction. The result is exact on the response side and statistical over prompts. Chapter 9 takes this further.

Comparison

(a) Proof, deterministic system (b) Statistical, deterministic system (c) Proof, probabilistic system (d) Statistical, probabilistic system
Statement \forall x\in S:\Phi(x,f(x)) \Pr_{\mathcal{D}}[\Phi]\in[p_{lo},p_{hi}] P(\mathbf{p})\in[P_{LB},P_{UB}] \mathbb{E}_{\mathcal{D}}P(\mathbf{p})\in[p_{lo},p_{hi}]
Access weights samples of f next-token probabilities samples of M
Cost scales with network and set size number of samples forward passes number of samples
Can fail how? answers “unknown” wrong with probability \delta bounds loose within budget wrong with probability \delta
Rare events covered if in the set invisible below \approx1/n covered by the bounds invisible below \approx1/n
Covers every input in a set a distribution of inputs all responses to one prompt a distribution of prompts

No cell dominates. The distributional-risk construction shows how proofs and intervals can be combined rather than chosen between.

What a guarantee does not say

  1. Confidence 95\% does not mean “safe with probability 95\%”. The rate p describes the system; 1-\delta describes the certifier’s procedure. The two probabilities answer different questions.
  2. A fixed interval has no coverage probability. It contains the true value or it does not. The coverage claim is about repeating the procedure.
  3. A statistical certificate does not cover all prompts. It covers prompts from \mathcal{D}, relative to \Phi. Change the prompt distribution or the oracle and the statement changes.
  4. A bound on P(\mathbf{p}) is not a verdict on one response. A “safe” categorization means that violating responses have total probability at most 1-\tau; such responses may still exist. “Unknown” means the bounds did not separate from \tau within the budget, not that the prompt is unsafe.
  5. No failures found is not a proof of no failures. With k=0, sampling gives only the one-sided bound p\lesssim\ln(1/\delta)/n. Only a sound verifier excludes failures in its region.
  6. A guarantee is about the specified system. Model, decoding configuration, oracle, and a mathematical model of the computation all belong to the statement. A proof at one temperature says nothing about another.

Summary

  • A deterministic guarantee is a proof from a sound verifier; the verifier may be incomplete and answer “unknown”. A statistical guarantee is an interval whose coverage over the certifier’s samples is at least 1-\delta.
  • A deterministic system has a yes/no answer per input. A probabilistic system has a probability P(x) per input. The two axes yield four cells.
  • Cell (a) proves a property for a whole input set from the weights. Cell (b) estimates a rate over an input distribution from samples. Cell (c) bounds all responses to one prompt from next-token probabilities. Cell (d) estimates a rate over prompts and responses from samples.
  • The probability p describes the system; the confidence parameter \delta describes the certifier.
  • Per-prompt deterministic bounds compose with sampling over prompts to bound distributional risk.
  • Every guarantee is relative to a system, an oracle, and a distribution. None of the cells sees everything.

Notes and further reading

The definitions of soundness and completeness and the interval-arithmetic example follow Section 3.1 of the monograph (Singh et al. 2025) (Figures 3.2–3.4 and the Box domain). Verification of ReLU networks is surveyed by (Katz et al. 2017), (Gehr et al. 2018), and (Singh et al. 2019). The Clopper–Pearson interval is from (Clopper and Pearson 1934); the sample-size figure comes from (Ugare et al. 2024). Randomized smoothing is from (Cohen et al. 2019); see also (Berrada et al. 2021) for deterministic bounds on probabilistic specifications of Bayesian networks. The sound-bounds example of cell (c) follows the problem statement of (Suresh et al. 2026) and Section 2.3 of (Wadhwa et al. 2026), and the distributional-risk definition is Definition 7.1 of (Suresh et al. 2026). The statistical certification pipeline of cell (d) appears in (Chaudhary et al. 2025), (Chaudhary, V. V. Jain, et al. 2026), (Yeon et al. 2026), (Wang et al. 2026), and (Chaudhary, V. Jain, et al. 2026). Treating decoding as part of the system follows the decoding appendix of (Suresh et al. 2026).

References

Berrada, L., S. Dathathri, K. Dvijotham, et al. 2021. “Make Sure You’re Unsure: A Framework for Verifying Probabilistic Specifications.” NeurIPS.
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.
Chaudhary, I., V. Jain, P. Parhar, et al. 2026. “Lumos: Let there be Language Model System Certification.” arXiv Preprint. https://arxiv.org/abs/2512.02966.
Clopper, C. J., and E. S. Pearson. 1934. “The Use of Confidence or Fiducial Limits Illustrated in the Case of the Binomial.” Biometrika 26 (4).
Cohen, J., E. Rosenfeld, and J. Z. Kolter. 2019. “Certified Adversarial Robustness via Randomized Smoothing.” ICML. https://arxiv.org/abs/1902.02918.
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.
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.
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.
Ugare, S., T. Suresh, D. Banerjee, G. Singh, and S. Misailovic. 2024. “Incremental Randomized Smoothing Certification.” ICLR. https://openreview.net/forum?id=SdeAPV1irk.
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.
Yeon, J., I. Chaudhary, and G. Singh. 2026. “Quantitative Certification of Agentic Tool Selection.” arXiv Preprint. https://arxiv.org/abs/2510.03992.