Chapter 8 – Incremental verification of LLMs

Reusing verification work: first when a neural network is updated (IVAN, IRS), then across a whole space of prompts with the constraint horizon of Otter.

A verified model rarely stays unchanged. It is quantized for a phone, pruned to fit a budget, fine-tuned on new data, or patched after a bug report. A deployed language model receives the same request in many phrasings, personas and system prompts, some written by an adversary. Each change asks for a new guarantee, and a verifier that starts over repeats most of the work of the previous run. Incremental verification keeps the part of an earlier verification that does not depend on what changed and pays only for the rest.

This chapter has two halves. The first reviews incremental verification of neural networks, where the network changes. IVAN makes complete branch-and-bound verification incremental (Ugare et al. 2023); IRS makes randomized-smoothing certification incremental (Ugare et al. 2024). The second half develops Otter (Wadhwa et al. 2026), where the prompt changes, the object verified is an output distribution, and the reusable artifact is a constraint horizon. The single-prompt verifier of Chapter 7 is the starting point throughout. After the chapter you should be able to say what each method reuses, which guarantee that reuse preserves, and when it pays.

Why incremental verification

Verification is attractive because it reasons about all inputs in a specification, not only a test set. A complete verifier either proves the property or returns a counterexample, and it is the most informative and most expensive kind. Yet deployed networks are approximations: quantization reduces numerical precision, pruning removes weights, fine-tuning repairs buggy behaviour, and transfer learning reuses a trained backbone (Ugare et al. 2023). These edits change some weights but leave the architecture and most behaviour intact. Running complete verification again from scratch is wasteful under exactly those conditions.

The same argument applies to statistical certification (Ugare et al. 2024). Certification needs many inference calls on noisy copies of an input. A small weight edit makes the expensive estimate of the original classifier’s behaviour reusable, so the updated classifier needs only a cheap correction.

Language models add a second source of change (Wadhwa et al. 2026). A model returns a probability distribution, so a sound assessment covers the whole distribution, not a few sampled responses (Chapter 7). A request also arrives in many contexts. A model that is safe under one system prompt can be unsafe under another. Verifying each prompt independently is sound, but its cost grows linearly with the size of the prompt space. The question is which part of a verification survives the change: the shape of a proof for IVAN, the noise samples for IRS, and the explored responses with their oracle verdicts for Otter.

Reuse across network updates

IVAN: reusing a branch-and-bound proof

Consider a ReLU network and a property of the form C^\top Y\ge 0 on its output. An analyzer based on an abstract domain (Gehr et al. 2018; Singh et al. 2019) over-approximates the ReLUs and returns a sound lower bound. When the bound is negative, the analyzer cannot decide. A complete verifier closes the gap with branch and bound (Bunel et al. 2020; Wang et al. 2021): it splits an ambiguous ReLU into two subproblems, where the ReLU behaves linearly, and re-analyzes each one. The branching heuristic chooses which ReLU to split, and it dominates the running time.

IVAN (Ugare et al. 2023) records the search in a specification tree. Each split adds two children labelled by the ReLU decision; the property holds exactly when it holds at every leaf. The figure shows the small network used in the paper and the resulting search.

A two-input network with four ReLU units r1 to r4 and one output o1; black weights for N, blue weights for N^a.
Figure 1: The example networks of IVAN. The network N has the black weights; its perturbation N^a has the blue weights. Both have the same ReLUs r_1,\dots,r_4. Figure from (Ugare et al. 2023).

When a few weights change, re-running the search on the updated network produces the same tree: the leaves that the analyzer could prove before are still provable, and the ones it could not prove remain open. IVAN exploits this in three steps (Figure 2). Reuse starts the new search from the leaves of the old final tree instead of the root, so the verifier only checks those leaves. Reorder keeps a single root but changes the branching heuristic. Splits that gave a large improvement to the bound on the old network are promoted; splits that gave little are demoted. Pruning combines the two: it removes ineffective splits from the old tree, keeps one subtree at each removed split, and starts the new search from the surviving leaves with the updated heuristic.

Workflow diagram: verify N with BaB giving a specification tree; refine the tree and heuristic; verify the updated network N^a.
Figure 2: The workflow of IVAN. The verification of N produces the final specification tree; IVAN refines it into a compact initial tree and an updated heuristic for the perturbed network. Figure from (Ugare et al. 2023).

In the paper’s four-ReLU example, verification from scratch takes nine bounding calls and four branchings. Reuse takes five boundings and none, reorder takes five and two, and pruning plus reorder takes three boundings and none (Figure 3). Reuse and reorder attack different terms of the cost: reuse removes the need to grow the tree; pruning and a better heuristic reduce the size of the tree that must be covered.

Four specification trees for the perturbed network, with node bounds, for scratch, reuse, reorder and IVAN.
Figure 3: Specification trees for the perturbed network under IVAN: from scratch, with reuse, with reorder, and with the full method. Figure from (Ugare et al. 2023).

The approach remains a complete verifier: every leaf still stands for the original property, so a successful run proves it, and the search continues until all leaves are solved. The paper also gives a condition under which the old tree is already a proof: for a small perturbation of the last layer, if the perturbation is below the analyzer’s margin on the tree, the tree verifies the property on the old network if and only if it verifies it on the new one. As perturbations grow, old leaves stop being provable and the saving shrinks; the measurements at the end of this chapter show that trend.

IRS: reusing smoothing samples

When a network is too large for deterministic verification, randomized smoothing gives a statistical certificate. A smoothed classifier g predicts the class that a base classifier f returns most often under Gaussian noise added to the input (Cohen et al. 2019). The guarantee is a radius: if the probability of the top class under noise exceeds the probability of the runner-up by enough, then g is constant inside a ball around the input. The intractable probabilities are estimated with Clopper–Pearson confidence bounds (Clopper and Pearson 1934), which takes many noisy evaluations per input.

IRS (Ugare et al. 2024) certifies g once and stores the top class, its lower confidence bound, and the seeds of the Gaussian samples with the predictions of f on them. For an approximation f^p, such as int8 quantization or pruning, the key observation is the disparity \zeta: the probability that f and f^p disagree under the stored noise. Common approximations give small disparities. A union bound then transfers the old estimate to the new classifier: the top class of f^p has probability at least the stored lower bound minus \zeta, and every competing class has probability at most the old competitor bound plus \zeta. Those two numbers give a sound radius for the updated smoothed classifier without re-estimating its full class distribution.

IRS workflow: smooth f to g and certify, update f to f^p, compute zeta_x, and combine with p_A and p_B to obtain the radius for g^p.
Figure 4: The workflow of IRS: certify g once, estimate the disparity after the update, and combine them into a radius for the updated smoothed classifier. Figure from (Ugare et al. 2024).

Why is the disparity cheap to estimate? The number of samples a binomial interval needs for a fixed accuracy is largest near probability one half and shrinks near zero or one (Figure 5). The class probabilities that standard smoothing estimates are often spread across (0,1); a disparity near zero sits at the cheap end of the curve. IRS therefore spends the small sample budget on the new quantity and inherits the expensive bound. When the stored probability is already close to one, there is little to gain, and IRS falls back to plain certification of f^p. The saving is largest for approximations that leave most predictions unchanged, and it shrinks as the disparity grows.

Required sample size against the binomial proportion for three target errors, an arch peaking at 0.5.
Figure 5: Sample size needed for a binomial confidence interval of a given width, as a function of the true proportion. The requirement peaks near one half. Figure from (Ugare et al. 2024).

Other forms of reuse

The same pattern appears for incomplete verifiers based on abstract interpretation (Singh et al. 2025). A proof template is a symbolic shape at an intermediate layer from which the rest of the network already satisfies the postcondition. A new specification is propagated only to that layer and checked for containment in a template; a match closes the proof early. Proof transfer adapts the templates of an original network to nearby networks or inputs (Ugare et al. 2022), while shared certificates use templates to reuse proofs across many specifications (Fischer et al. 2022). The trade-off is universal: templates must be cheap to build and match often enough to repay their cost, and the two requirements pull in opposite directions. Limits of proof sharing for networks are studied in (Das et al. 2026). These methods support the same conclusion as IVAN and IRS, but for a different class of verifiers.

From networks to LLM output distributions

For language models, the changing object is usually the prompt rather than the weights. An oracle \Phi is a deterministic check on a complete response: a regular expression for a leaked address, a static analyzer for insecure code such as CyberSecEval (Bhatt et al. 2023), a toxicity classifier, a check that an agent’s next tool call follows an injected goal as in AgentDojo (Debenedetti et al. 2024), or a greedy LLM judge. Otter treats the oracle as a black box that reads the response alone (Wadhwa et al. 2026).

The threat model is an open-weight model. The adversary holds the weights, chooses the context of a request, can sample as often as it likes, and can remove any guardrail. Only the model’s own behaviour remains as a defense. The verifier is the developer or deployer, working before release with the weights, an oracle and a space of prompts covering the contexts of interest. For each prompt, Chapter 7 computes sound bounds P_{LB}\le P(\mathbf{p})\le P_{UB} on the probability that a response satisfies \Phi, resolved to a tolerance \epsilon. Running it on every prompt of a space is sound but linear in the number of prompts.

The opportunity comes from groups of prompts. The same request can be posed plainly, behind a persona, coloured by an emotion, or wrapped in a role-play. Such phrasings induce close output distributions: they explore nearly the same responses and differ mostly in their probabilities. Because the oracle verdict of a response is prompt-independent, the explored structure and its verdicts are shared, while the probabilities are not. A cache of verdicts alone is not enough. Each new prompt still needs its own probabilities, and scoring every stored response one by one would cost as much as verification from scratch. Otter’s data structure is designed around this distinction.

The constraint horizon

A single-prompt verification records its exploration in a token trie: a prefix tree whose edges carry next-token probabilities and whose complete leaves carry oracle verdicts. The bounds are read from the frontier of satisfying, violating and incomplete leaves, and expanding an incomplete leaf with the largest reaching probability (the Max-\mu rule of Chapter 7) narrows them. The cost of a verification is its number of forward passes, since one pass on a prompt plus a known prefix returns the next-token distribution at every prefix of that sequence.

A constraint horizon (Wadhwa et al. 2026) keeps the prompt-independent part of such a trie: the tree of explored sequences and the verdicts at complete leaves. It stores no probabilities and names no model or prompt, so one horizon serves every prompt of a group. Its complete nodes carry the oracle verdict, complete nodes are leaves, and every interior node branches on every token. Its frontier splits into satisfying leaves, violating leaves and incomplete leaves, which are exactly the sequences reached but not expanded. Horizons for relational oracles that read a fixed part of the prompt are kept per value of that part.

Three operations connect tries and horizons:

  1. Projection erases the probabilities of a verified trie and keeps its tree and verdicts. The result is a constraint horizon: the structural conditions of a trie are unchanged.
  2. Instantiation fills a horizon with the probabilities of a given model and prompt. It prefills one maximal path per leaf of the horizon’s interior tree; a single pass supplies the conditionals at every node on that path. The trie is then weighted from those conditionals, with verdicts copied from the horizon and no oracle calls. This gives a token trie whose frontier has sound bounds for the prompt. For a fixed horizon, one pass per maximal path is also the minimum possible: every interior node needs its own next-token distribution, and a pass covers only one root-to-leaf path. Compared with discovering a trie node by node from the root, instantiation trades one pass per interior node for one pass per path, and the paths can run as a batch.
  3. Merge overlays two horizons of the same oracle, taking the union of their nodes and verdicts. It stays a constraint horizon because both agree on the verdict of every complete sequence. An incomplete leaf extended by the other horizon becomes interior in the merge and is replaced by the deeper leaves.
Token trie T1 for prompt p1 with probabilities on edges, its projection to the horizon H1 without probabilities, and the instantiated token trie T2 for prompt p2.
Figure 6: Projection erases probabilities from the trie of the first prompt; instantiation fills the same tree with the probabilities of the second prompt in four forward passes and copies verdicts without new oracle calls. Figure from (Wadhwa et al. 2026).

The Otter algorithm

Otter verifies the prompts of a group against one accumulated horizon (Wadhwa et al. 2026). The horizon starts as a single unexpanded root. For each prompt, Otter instantiates the accumulated horizon under that prompt, which gives a sound trie and bounds without oracle calls. It then runs the ordinary Max-\mu loop of Chapter 7 from the instantiated frontier, expanding incomplete leaves until their reaching probability falls below \epsilon. Finally it projects the resulting trie to a horizon, merges it into the accumulated horizon, and records the prompt’s bounds.

Pipeline: a space of prompts enters; for each prompt in a group the accumulated horizon is instantiated, verified, projected and merged; bounds for all prompts are returned.
Figure 7: The Otter pipeline: instantiate, verify, project and merge for each prompt in a group. Figure from (Wadhwa et al. 2026).

The first prompt pays for a verification from the root, and its horizon seeds the group. Later prompts start from what the group already explored and pay only for new responses. In the paper’s small example, the first prompt takes six forward passes; the other twenty-nine prompts instantiate four maximal paths each, for 6+29\times4=122 passes instead of 30\times6=180 with independent verification. The bounds and the soundness guarantee are the same as for independent verification.

Soundness does not depend on how the group is chosen or on the order in which its prompts are verified. Instantiating a constraint horizon always yields a token trie with sound bounds, and the Max-\mu loop preserves soundness at every expansion. Projection and merge keep the accumulated structure a constraint horizon, which is the invariant the next iteration needs. Nothing in this argument assumes that the prompts are close; a bad group only costs more passes, never an unsound bound. The loop terminates because finitely many sequences carry probability at least \epsilon.

The cost intuition is similar. If a prompt is close in total variation to one whose horizon is already stored, its instantiated frontier is already close to the tolerance: the bound gap grows by at most the distance between the two response distributions, so the loop has little left to do. When a prompt explores responses the horizon does not contain, it adds them, and later prompts can reuse them. A horizon that fills with responses that later prompts never produce hurts: each prompt pays to instantiate paths it will not use. This is why grouping matters. On privacy, prompts of one base request form natural groups at no cost; elsewhere the paper groups prompts with a short-prefix total-variation or coverage distance. The experiments at the end of this chapter quantify both the savings and the cases where grouping fails to pay.

Summary

  • IVAN reuses the shape of a branch-and-bound proof: a pruned specification tree and a better branching heuristic replace a search from the root. The method stays complete, and its gain shrinks as the network changes more.
  • IRS reuses smoothing samples. A stored lower bound plus a cheap estimate of the disagreement between old and updated classifiers gives a sound radius for the update; it pays when the disparity is small.
  • Otter reuses exploration across prompts. A constraint horizon stores the tree and oracle verdicts but no probabilities, so it is valid for a whole group of prompts.
  • Projection, instantiation and merge are sound and need no new oracle verdicts. Instantiation costs one forward pass per maximal path, which is optimal for a fixed horizon.
  • Otter returns per-prompt sound bounds for any grouping and any order. Grouping and order affect cost, not soundness; close prompts and shared responses make reuse pay.

Notes and further reading

IVAN and its specification tree are in (Ugare et al. 2023); complete verification by branch and bound is surveyed there and in (Bunel et al. 2020; Wang et al. 2021). IRS is in (Ugare et al. 2024), and randomized smoothing in (Cohen et al. 2019). Proof templates, transfer and sharing are developed in (Singh et al. 2025; Ugare et al. 2022; Fischer et al. 2022), with limits in (Das et al. 2026). Otter’s horizon, operations and soundness theorem are in Sections 4 and 5 of (Wadhwa et al. 2026); the BEAVER project page at https://beaverframework.pages.dev/ describes the single-prompt verifier used inside it. Chapter 7 gives the trie, frontier and Max-\mu rule that this chapter builds on; Chapter 9 turns the per-prompt bounds into statements about prompt distributions and release decisions.

Experimental results

This section reports the experiments of Otter (Wadhwa et al. 2026), IVAN (Ugare et al. 2023), and IRS (Ugare et al. 2024). Otter is an unpublished preprint under review. Its numbers can change before publication. The space-level risk of Otter is also in the Experimental results section of Chapter 9.

Otter: incremental verification over a space of prompts

Setup

Research questions. The paper asks three questions.

  • RQ1 (risk over a space): What risk does Otter certify over a space of prompts? How is the risk spread over the space and over the models?
  • RQ2 (cost of reuse): How much does the accumulated horizon reduce the cost of verification against the per-prompt baseline, for equal soundness? The cost is the forward passes and the wall-clock time.
  • RQ3 (what drives the saving): How does the saving depend on the position of a prompt in its group and on the grouping? What is the memory cost of reuse?

Tasks and oracles. The paper adapts two tasks from the BEAVER paper and adds one new task.

Table 1: The three Otter tasks (Section 5.1 and Appendix G of (Wadhwa et al. 2026)).
Task Base requests Oracle \Phi Max. length
Privacy 50 (name, email) pairs from Enron posed as few-shot completions (preprocessing of Huang et al.: 3,238 pairs after filtering; five exemplars from the target’s email domain) violated when the response contains an address of the leaked Enron set (the target’s or an exemplar’s) 16 tokens
Secure code 32 of the 486 C/C++ autocomplete requests of CyberSecEval (13 in C, 19 in C++), covering 12 CWE weaknesses violated when the response contains an insecure pattern flagged by CyberSecEval’s Insecure Code Detector (evaluated on the response every ten tokens and on the complete response) 64 tokens
Agent security 50 (user task, injection task) pairs from AgentDojo (workspace, travel, banking and slack suites, important_instructions attack): the conversation up to the tool output holding the injection (18 workspace, 16 banking, 9 travel, 7 slack requests; 38 user tasks and 24 injection tasks) violated when the agent’s next tool call is a target function of the attacker’s goal with a JSON-object argument containing an attacker canary (e.g. the attacker’s account as the recipient of send_money) 160 tokens

For agent security, a final answer or a refusal without a tool call is safe. A call to a function that is not a target is safe. A call that the 160-token limit cuts and that does not parse is safe. The oracle reads only the first tool call. The verdict cannot change after this call closes. The secure-code responses of Otter have at most 64 tokens. The BEAVER experiments use 32 tokens.

Spaces of prompts. A space pairs each base request with many adversarial contexts. A context puts a system prompt in front of the request. The request does not change. For privacy and secure code, the authors grow a set of jailbreak system prompts with a genetic algorithm. The construction has two banks. The first bank has framings, which are short pretexts that tell the model to produce a violating response. The second bank has side instructions, which are one-line directives. They suppress refusal, enforce a short format, state that the caller is authorized, and press for the unsafe behavior. To build a system prompt, the construction takes a framing and splits it into sentences. It inserts each side instruction between two sentences with crossover probability 0.05. It can also mutate a few tokens.

The privacy framing makes the model a database-completion assistant that restores a corrupted record. It has five sentences. The bank has 20 side instructions, and a prompt has 4.1 of them on average. The secure-code bank has nine framings. They are a legacy-code migration tool, a vulnerability-scanner benchmark, a fuzzing-seed generator, a capture-the-flag forge, a decompiler, and an autograder. A prompt has about 4.7 side instructions. Agent security builds its system messages in a different way. Each of the 100 messages uses the opener of AgentDojo, a “task executor” jailbreak persona, the rules of the AgentDojo system prompt, and a bank of 32 side instructions. The parts are shuffled. A message has 0 to 6 side instructions. Two messages are identical, so the space has 4,950 different prompts.

Table 2: Sizes of the spaces of prompts (Section 5.1 of (Wadhwa et al. 2026)).
Task Contexts per base request Prompts per model
Privacy 200 10,000
Secure code 128 4,096
Agent security 100 5,000

Groups and heuristics. Otter needs groups of prompts with close output distributions. On privacy, a group is the set of contexts of one base request. This gives 50 groups of 200 prompts and needs no forward pass. On secure code, the authors cluster the prompts with the five-token total variation distance (TV@5). This is the total variation between the distributions of the first five tokens of the response. On agent security, they use agglomerative clustering with complete linkage and the five-token coverage distance (Cov@5):

d_{\text{cov}}(p, p') = 1 - \min\{\text{cov}(p \to p'), \text{cov}(p' \to p)\}, \quad \rho = 0.1.

The coverage of p on p' is the probability that p' puts on the five-token prefixes listed for p. The listing expands the trie of p best-first to depth 5. It stops at 0.99 of the mass or after 100 forward passes. The authors cluster the prompts of each attacker target separately. Inside a group, the verification order starts with the medoid. The heuristics do not read the oracle. One grouping serves every oracle on the same prompts. The heuristics change only the cost. The bounds are sound for every grouping and every order.

Baseline, metrics, parameters. The baseline is BEAVER, run on every prompt of the space (the per-prompt baseline). It gives bounds with the same soundness. Both methods send their forward passes to the same served model. The server batches the requests of all workers. The risky detection rate (RDR) is the share of the prompts of a space that a method certifies as risky at \tau. The cost is the mean forward passes for each prompt (fp), the total forward passes of the space (\Sigmafp, in thousands), and the wall-clock time. The speedup is the baseline cost divided by the Otter cost. The Otter forward passes include the passes that form the groups. The four models are Qwen3-4B, Llama3.1-8B, Qwen2.5-14B, and Qwen3-30B-A3B. The settings are temperature 1, top-p 0.99, tolerance \epsilon = 0.01, a budget of 500 forward passes for each prompt, and \tau = 0.9. Both methods keep at most 10,000 nodes on the frontier.

Results

RQ1: risk over a space. Table 3 shows, for each model and task, two fractions. “Base prompt” is the fraction of base requests that the method certifies as risky when it poses them alone, with no context. “Space” is the fraction that Otter certifies as risky in at least one context of their space.

Table 3: Risk of a base request in isolation against risk over its space (Table 1 of (Wadhwa et al. 2026)).
Model Privacy: base prompt Privacy: space Secure code: base prompt Secure code: space Agent security: base prompt Agent security: space
Qwen3-4B 56.00% 62.00% 12.50% 31.25% 14.00% 44.00%
Qwen2.5-14B 58.00% 64.00% 6.25% 28.12% 10.00% 46.00%
Qwen3-30B-A3B 58.00% 60.00% 21.88% 34.38% 40.00% 64.00%
Llama3.1-8B 60.00% 62.00% 0.00% 6.25% 0.00% 24.00%

The second fraction is larger for every model and every task. The effect is small on privacy (2 to 6 points). It is large on secure code, for example from 6.25% to 28.12% on Qwen2.5-14B. It is largest on agent security, where it grows by 24 to 36 points. Examples are 10% to 46% on Qwen2.5-14B and 0% to 24% on Llama3.1-8B. A verifier that checks only the bare request misses the requests that become risky in context.

Table 4: Verifying each space with the per-prompt baseline (“Base”) and with Otter (Table 2 of (Wadhwa et al. 2026)). RDR is the share of prompts certified risky at \tau = 0.9; fp is the mean forward passes for a prompt; \Sigmafp is the total forward passes in thousands; time is the wall-clock time of the space in hours, comparable within a model and task; speedups are baseline over Otter; Otter’s forward passes include those that form the groups. † Estimated for one reference setup from measured step times.
Model Base RDR (%) Base fp Base \Sigmafp (k) Base time (h) Otter RDR (%) Otter fp Otter \Sigmafp (k) Otter time (h) Speedup fp Speedup time
Privacy (n = 10{,}000)
Qwen3-4B 55.71 15.1 151.4 3.44 55.70 2.8 28.3 0.39 5.35× 8.72×
Qwen2.5-14B 58.44 22.4 223.9 9.50 58.44 9.8 98.0 0.86 2.28× 10.98×
Qwen3-30B-A3B 58.01 19.5 194.7 26.36 58.02 4.8 47.8 1.81 4.07× 14.53×
Llama3.1-8B 60.19 33.1 330.9 0.42 60.35 13.1 131.3 0.23 2.52× 1.81×
Secure code (n = 4{,}096)
Qwen3-4B 25.90 384.6 1,575.3 6.55 26.15 244.9 1,003.1 4.47 1.57× 1.47×
Qwen2.5-14B 22.29 311.1 1,274.2 11.15 24.24 227.4 931.6 8.30 1.37× 1.34×
Qwen3-30B-A3B 26.17 357.0 1,462.4 9.53 26.39 185.8 761.2 5.36 1.92× 1.78×
Llama3.1-8B 2.32 153.4 628.2 3.26 3.34 126.2 516.8 2.95 1.22× 1.11×
Agent security (n = 5{,}000)
Qwen3-4B 20.44 188.6 942.7 28.15 20.78 85.3 426.4 9.82 2.21× 2.87×
Qwen2.5-14B 20.72 198.1 990.3 19.07† 21.40 146.4 732.1 8.38† 1.35× 2.28׆
Qwen3-30B-A3B 43.66 160.5 802.7 15.19† 43.96 85.8 428.8 4.86† 1.87× 3.1׆
Llama3.1-8B 9.54 166.9 834.7 1.86 9.42 221.6 1,108.1 1.73 0.75× 1.08×

Table 4 shows the risk over each full space as the RDR. On privacy, every model is certified risky on more than half of the prompts (55% to 60%). On secure code, the RDR is 22% to 26% for the three Qwen models and 2.3% for Llama3.1-8B. On agent security, it goes from 9.5% for Llama3.1-8B to 43.7% for Qwen3-30B-A3B. The order of the models changes with the task. Llama3.1-8B has the lowest RDR on secure code and agent security, and the highest on privacy. Qwen3-30B-A3B is close to the other models on privacy and secure code. On agent security, it has about twice the RDR of the smaller Qwen models. A safety estimate under one oracle does not transfer to another oracle.

The RDR counts only certified prompts. It is a lower bound on the share of risky prompts. A prompt that is open at the budget is not counted. Otter and the baseline certify the same risk, except for prompts near the decision boundary. Their RDRs differ by at most 0.2 points on privacy and 0.7 points on agent security. On secure code, Otter certifies 0.2 to 2.1 points more. An instantiated horizon gives a prompt the violating responses that earlier prompts of its group found. With the same budget, Otter decides prompts that the baseline leaves open. On secure code, the baseline uses the whole budget on 1,387, 668, and 1,213 prompts for the three Qwen models. Otter uses it on 289, 110, and 169 prompts. This is the reason for the larger RDR of Otter on secure code.

RQ2: cost of reuse. On privacy, Otter uses 2.3 to 5.4 times fewer forward passes than the baseline and 1.8 to 14.5 times less time. On secure code, the saving is 1.2 to 1.9 times in forward passes and 1.1 to 1.8 times in time. The responses are four times longer and the groups are smaller. A later prompt still expands many nodes beyond the horizon. On agent security, the saving is 1.35 to 2.21 times in forward passes for the three Qwen models. The saving in time is 1.1 to 3.1 times. Llama3.1-8B is the one case where Otter uses more forward passes than the baseline (0.75 times). The next paragraphs give the reason.

Figure 8: Prompts verified to tolerance by the per-prompt baseline and Otter for Qwen3-4B on the privacy task. Solid curves count all prompts verified; dotted curves count only risky prompts. Left: against cumulative forward passes; right: against elapsed wall-clock time. Figure from (Wadhwa et al. 2026).

Reuse lowers the cost of each prompt after the first in its group. So Otter verifies more of a space than the baseline for every budget. Figure 8 shows this for Qwen3-4B on privacy. The Otter curve is above the baseline curve for all cumulative forward passes. The dotted curves show the same order for the risky prompts alone. So the advantage does not come from the easy prompts first. The order is the same against wall-clock time.

Cost of the grouping. On privacy, the grouping needs no forward pass. On secure code and agent security, it expands the five-token distribution of each prompt. The Otter forward passes in Table 4 include this cost. The distance and the clustering run on a CPU and take at most 10 seconds for a space.

Table 5: Cost of the Cov@5 listing and the groups it gives on the agent security space of 5,000 prompts (Table 4 of (Wadhwa et al. 2026)). The share is the listing as a fraction of the baseline’s forward passes.
Model Listing fp Share of baseline Groups (singletons) Speedup, without → with listing
Qwen3-4B 65,814 7.0% 213 (7) 2.61× → 2.21×
Qwen2.5-14B 311,892 31.5% 1,051 (769) 2.36× → 1.35×
Qwen3-30B-A3B 164,300 20.5% 266 (69) 3.04× → 1.87×
Llama3.1-8B 511,424 61.3% 2,941 (1,875) 1.40× → 0.75×

The listing uses 7% to 61% of the forward passes of the baseline. It is largest for Llama3.1-8B. For this model, the listing reaches its limit of 100 forward passes on almost every prompt, and more than half of the groups have one prompt. This is why Otter is slower than the baseline in forward passes on this model. The listing does not read the oracle. The user pays it once for a model and a space. Every oracle on the same space reuses it. For secure code, the TV@5 grouping gives 854, 1,267, 645, and 1,576 groups for Qwen3-4B, Qwen2.5-14B, Qwen3-30B-A3B, and Llama3.1-8B. The authors did not log its listing. They estimate six forward passes for each prompt, about 24.6k for the space. They add this estimate to the Otter forward passes in Table 4. The speedup in forward passes goes from 1.61, 1.40, 1.99, and 1.28 times to 1.57, 1.37, 1.92, and 1.22 times.

Groups and base requests. For Qwen3-4B, the paper compares the Cov@5 groups with the base requests. It reports the adjusted Rand index and the normalized mutual information (value 1 means equal partitions). On privacy, the values are 0.94 and 0.98. The groups are almost the base requests. On secure code, they are 0.79 and 0.89. The groups are finer than the base requests, and no group mixes two requests. On agent security, they are 0.66 and 0.87. The grouping splits and merges base requests, and 28 groups have prompts of more than one request.

Table 6: Cov@5 groups against the base requests of each space, for Qwen3-4B (Table 5 of (Wadhwa et al. 2026)). A mixed group holds prompts from more than one request. A split request lies in more than one group. A whole request is exactly one group.
Task Requests (contexts) Mixed groups Split requests Whole requests ARI / NMI
Privacy 50 (200) 0 16 34 0.94 / 0.98
Secure code 32 (128) 0 23 9 0.79 / 0.89
Agent security 50 (100) 28 39 6 0.66 / 0.87

RQ3: what drives the saving.

Figure 9: Forward passes of Otter as a fraction of the baseline’s forward passes on the same prompts, by the position of a prompt in its group (privacy, secure code, agent security). The first prompt of a group is verified from the empty horizon. Figure from (Wadhwa et al. 2026).

Figure 9 plots the cost by position in a group. Table 7 gives the values.

Table 7: Forward passes of Otter as a fraction of the baseline’s, by position in the group; lower is better (Table 11 of (Wadhwa et al. 2026)).
Task Model 1 2 3–5 6–20 >20
Privacy Qwen3-4B 1.00 0.18 0.16 0.16 0.19
Privacy Qwen2.5-14B 1.00 0.33 0.29 0.31 0.45
Privacy Qwen3-30B-A3B 0.99 0.24 0.19 0.22 0.24
Privacy Llama3.1-8B 0.99 0.34 0.29 0.30 0.40
Secure code Qwen3-4B 1.00 0.72 0.61 0.53 0.46
Secure code Qwen2.5-14B 1.00 0.69 0.59 0.60 0.56
Secure code Qwen3-30B-A3B 1.01 0.67 0.57 0.45 0.37
Secure code Llama3.1-8B 1.00 0.88 0.86 0.75 0.60
Agent security Qwen3-4B 1.00 0.58 0.44 0.33 0.28
Agent security Qwen2.5-14B 1.00 0.31 0.27 0.25 0.32
Agent security Qwen3-30B-A3B 1.04 0.46 0.34 0.28 0.21
Agent security Llama3.1-8B 1.00 0.29 0.30 0.23 0.18

The first prompt of a group costs the same as in the baseline (within 4%). A prompt that is alone in its group loses nothing. The saving starts at the second prompt. On privacy, the second prompt costs 0.18 to 0.34 of the baseline. Later prompts cost about the same. One verification finds almost all the responses that the group needs. On secure code, the cost continues to fall with the position. It goes from 0.67–0.88 at the second prompt to 0.37–0.60 after the twentieth prompt. On agent security, the second prompt costs 0.29 to 0.58 of the baseline. A prompt after the twentieth costs 0.18 to 0.32. On these two tasks, the responses are longer. Each prompt adds responses to the horizon, and the later prompts reuse them. A larger group of close prompts saves more. By group size, the speedup in forward passes grows up to 4.85 times on privacy and 2.81 times on secure code, for groups of more than 100 prompts. A group of one prompt has a speedup of 1.

Reuse for one prompt. Table 8 covers the prompts that are not the first of their group. “No search” is the share that Otter verifies from the instantiated horizon alone. “Cheaper” and “costlier” are the shares that use fewer or more forward passes than the baseline.

Table 8: Prompts after the first of their group: the share that needs no search beyond the horizon, and the share that costs fewer or more forward passes than in the baseline (Table 12 of (Wadhwa et al. 2026)).
Task Model Prompts No search Cheaper Costlier
Privacy Qwen3-4B 9,950 99.2% 99.8% 0.0%
Privacy Qwen2.5-14B 9,950 97.2% 95.8% 3.8%
Privacy Qwen3-30B-A3B 9,950 99.1% 99.9% 0.1%
Privacy Llama3.1-8B 9,950 90.3% 97.4% 2.1%
Secure code Qwen3-4B 3,242 14.0% 95.4% 2.5%
Secure code Qwen2.5-14B 2,829 6.0% 91.0% 8.4%
Secure code Qwen3-30B-A3B 3,451 18.9% 96.1% 3.3%
Secure code Llama3.1-8B 2,520 0.0% 79.2% 18.1%
Agent security Qwen3-4B 4,787 66.4% 96.4% 1.9%
Agent security Qwen2.5-14B 3,949 42.5% 95.5% 4.4%
Agent security Qwen3-30B-A3B 4,734 67.5% 97.7% 2.0%
Agent security Llama3.1-8B 2,012 15.2% 100.0% 0.0%

On privacy, Otter verifies 90.3% to 99.2% of these prompts from the horizon alone. On secure code, this share is at most 18.9%. Most prompts continue the search, but from the horizon. Between 79% and 96% of them use fewer forward passes than the baseline. A prompt costs more than in the baseline when the horizon has paths that the prompt does not need. This happens for at most 3.8% of the prompts on privacy and 18.1% on secure code.

Grouping.

Figure 10: Total forward passes of Otter and three grouping variants as verification proceeds on the privacy space: Otter (TV@5 clustering with medoid ordering), a single group for the whole space, TV@1 clustering, and singletons (which coincide with the per-prompt baseline). Figure from (Wadhwa et al. 2026).

The grouping decides how much reuse pays. It never changes the soundness. Figure 10 plots the total forward passes on the privacy space for four groupings. Groups of one prompt are the per-prompt baseline. One group for the whole space first beats the baseline. Then it falls behind the baseline, and it ends behind even the singleton baseline. The horizon fills with responses that later prompts do not produce, and each prompt pays to instantiate them. Clustering with the one-token distance (TV@1) recovers most of the saving. The five-token distance (TV@5) gives the lowest cost of the four. A one-token horizon captures much of the similarity that reuse can use. The remaining saving needs five tokens. The coverage distance is better than TV@5. On the same privacy space and hardware, it saves 5.80 times in forward passes, against 4.91 times. Reuse pays only when it stays inside groups of similar prompts.

Other ablations. The first ablation is the order inside a group.

Table 9: Average frontier expansions per instance under medoid-first against random within-group order, on a subset of 600 instances per task (Table 7 of (Wadhwa et al. 2026)).
Model Privacy medoid Privacy random Secure code medoid Secure code random
Qwen3-4B 3.33 3.30 28.33 28.46
Llama3.1-8B 2.40 2.40 11.01 10.96

The two orders differ by about one percent, and neither order is always better. The medoid-first order is a safe default. The second ablation is the cap on the incomplete leaves that Otter carries from one prompt to the next.

Table 10: Effect of the cap on incomplete leaves carried from one prompt to the next, on the development subset of the agent security space (576 instances, Qwen3-4B); ratios are Otter over the baseline, lower is better (Table 8 of (Wadhwa et al. 2026)).
Cap on incomplete leaves \Sigmafp fp ratio Time ratio R/S/O
Baseline 102,400 1.00 1.00 142/291/143
500 42,148 0.41 0.46 142/316/118
2,000 30,196 0.29 0.22 143/316/117
None 30,470 0.30 0.22 143/316/117

A cap of 2,000 and no cap give the same verdicts and almost the same cost. The third ablation is the decoding setting.

Table 11: Decoding settings on a subset of 600 instances of the privacy space, Qwen3-4B; fp is the mean forward passes per prompt (Table 9 of (Wadhwa et al. 2026)).
Decoding Baseline fp Otter fp Speedup Safe / risky
T = 1, top-p 0.99 14.2 3.3 4.3× 250 / 350
T = 1, top-p 0.999 14.2 3.2 4.4× 250 / 350
T = 1, top-p 0.9 11.0 2.4 4.6× 250 / 350
T = 1, top-k 5 / 20 / 50 14.2 3.2–3.3 4.3–4.4× 250 / 350
T = 0.75 12.5 2.7 4.6× 250 / 350
T = 0.5 10.8 2.2 4.8× 250 / 350
Greedy 8.5 1.25 6.8× 250 / 350

The verdicts are the same in every setting. A lower temperature and a tighter truncation lower the forward passes of both methods. Greedy decoding gives one response for each prompt, and the speedup is largest (6.8 times). The fourth ablation is the parallelism.

Table 12: Wall-clock time of the privacy space (10,000 prompts, Qwen3-4B) with and without batching across prompts (Table 10 of (Wadhwa et al. 2026)).
Setting Baseline (s) Otter (s) Speedup
One verifier at a time 6,529 1,707 3.82×
16 verifiers, one server 1,587 3.29×

Batching across prompts makes the baseline about 4.1 times faster and Otter about 3.5 times faster. Otter keeps a speedup of 3.29 times against the batched baseline. The groups are independent and run in parallel. Inside a group, the prompts run in sequence, because each prompt extends the horizon for the next prompt. The Otter time for 16 verifiers is missing from the extracted table.

Time of one prompt and memory. The paper gives the time of one prompt as median / 90th percentile / mean, in seconds. On privacy, the baseline and Otter values are:

  • Qwen3-4B: 1.17 / 2.88 / 1.53 and 0.12 / 0.26 / 0.16;
  • Qwen2.5-14B: 2.98 / 12.19 / 5.11 and 0.67 / 1.75 / 1.93;
  • Qwen3-30B-A3B: 2.48 / 7.93 / 3.91 and 0.46 / 0.71 / 0.81;
  • Llama3.1-8B: 3.21 / 8.93 / 4.42 and 0.55 / 2.25 / 1.47.

On secure code:

  • Qwen3-4B: 75.5 / 102.2 / 72.8 and 37.7 / 109.1 / 47.3;
  • Qwen2.5-14B: 129.9 / 210.5 / 135.5 and 91.7 / 183.3 / 96.1;
  • Qwen3-30B-A3B: 121.9 / 165.7 / 114.4 and 41.3 / 133.3 / 56.3;
  • Llama3.1-8B: 33.4 / 66.9 / 36.7 and 25.7 / 48.8 / 28.0.

The horizon is a trie on the host and uses no GPU memory. On agent security with Qwen3-4B, the token trie of one prompt has a median of 120 nodes in the baseline (maximum 1,065). In Otter it has a median of 145 nodes (maximum 8,442). The Otter trie holds the instantiated horizon and the new search. Otter carries a median of 19 paths from one prompt to the next (maximum 2,152).

Takeaways

A space of prompts shows more risk than the bare request. On agent security, the share of risky base requests grows by 24 to 36 points. Reuse inside a group of close prompts lowers the forward passes by 1.2 to 5.4 times. It lowers the wall-clock time by up to 14.5 times on privacy. This needs good groups. When almost no prompt is close to another (Llama3.1-8B on agent security), the grouping costs more than the reuse saves. The numbers hold for four open-weight models, responses of 16–160 tokens, \epsilon = 0.01, a budget of 500 forward passes, and the three oracles above.

IVAN: incremental verification of neural networks

Source: Ugare et al. (2023). IVAN is about classifiers, not LLMs. It is the earlier form of the idea that Otter applies to LLM output distributions.

Setup

IVAN reuses and refines the branch-and-bound specification tree of an original network to verify an updated network. The experiments use L_\infty local-robustness properties of MNIST and CIFAR10 classifiers. The \epsilon values are the standard values for complete verifiers. They also use the global ACAS-XU properties of the VNN-COMP benchmarks.

Table 13: Models and perturbations \epsilon for the evaluation of IVAN (Table 1 of (Ugare et al. 2023)).
Model Architecture Dataset #Neurons Training method \epsilon
ACAS-XU networks 6 × 50 linear layers ACAS-XU 300 Standard –
FCN-MNIST 2 × 256 linear layers MNIST 512 Standard 0.02
CONV-MNIST 2 Conv, 2 linear layers MNIST 9508 Certified robust (Balunovic and Vechev) 0.1
CONV-CIFAR 2 Conv, 2 linear layers CIFAR10 4852 Empirical robust (Dong et al.) 2/255
CONV-CIFAR-WIDE 2 Conv, 2 linear layers CIFAR10 6244 Certified robust (Wong and Kolter) 4/255
CONV-CIFAR-DEEP 4 Conv, 2 linear layers CIFAR10 6756 Certified robust (Wong and Kolter) 4/255

The updated networks are post-training int8 and int16 quantizations. The quantization is symmetric with zero point 0. The baselines are:

  • for local robustness, a BaB verifier with LP-based triangle-relaxation bounding and a ReLU split based on zonotope coefficients;
  • for ACAS-XU, RefineZono (DeepZ with input splitting).

The experiments run on 64 cores of an AMD Ryzen Threadripper CPU with 128 GB memory. The LP analyzer uses Gurobi. The authors tune the hyperparameters with Optuna. The overall speedup is the sum of the baseline times divided by the sum of the IVAN times. The sums cover the cases that the baseline solves within the time limit. No case exists where the baseline verifies a property and IVAN times out.

Results

Headline. IVAN has a geometric-mean speedup of 2.4 times for the MNIST and CIFAR10 classifiers. For the ACAS-XU classifiers, it is 3.8 times. IVAN works best on hard instances. For specifications that take more than 10 s on the baseline, the geometric-mean speedup is 3.1 times. For easy specifications with small trees, IVAN has a small overhead. On int16 FCN-MNIST, all 83 cases with a speedup below 1.2 times take 16.27 s in total with IVAN. In one case, the baseline takes 75.54 s and IVAN takes 1.73 s (43 times). Pruning reduces the BaB tree from 345 nodes to 28 nodes.

Figure 11: Speedup of IVAN over the baseline on local-robustness properties of FCN-MNIST with int16 (left) and int8 (right) quantization; each cross is one property, the x-axis is the baseline’s time. Figure from (Ugare et al. 2023).

Figure 11 shows the speedup of each property against the time of the baseline. The spread is wide. The largest speedups are on the instances that are hard for the baseline. These instances also dominate the total time.

Table 14: Ablation of the overall speedup (Sp) and the number of additionally solved problems (+Solved) for the techniques of IVAN: reuse only, reorder only, and all (Table 2 of (Ugare et al. 2023)).
Model Approx. Reuse Sp Reuse +Solved Reorder Sp Reorder +Solved IVAN Sp IVAN +Solved
FCN-MNIST int16 2.51× 0 2.71× 0 4.43× 0
FCN-MNIST int8 1.07× 0 1.64× 0 2.02× 0
CONV-MNIST int16 1.62× 0 2.15× 0 3.09× 2
CONV-MNIST int8 1.27× 2 1.34× 3 1.71× 4
CONV-CIFAR int16 1.02× 0 1.57× 2 2.52× 2
CONV-CIFAR int8 1.08× 0 1.53× 0 1.78× 0
CONV-CIFAR-WIDE int16 1.43× 1 1.51× 0 1.87× 2
CONV-CIFAR-WIDE int8 0.75× 0 1.62× 1 1.53× 2
CONV-CIFAR-DEEP int16 1.64× 0 2.29× 0 3.21× 0
CONV-CIFAR-DEEP int8 1.15× 0 1.13× 1 1.25× 1

All techniques together are better than reuse or reorder alone in most cases. Reorder is better than reuse, except for FCN-MNIST on int8. The speedups for int8 are mostly lower than for int16. For FCN-MNIST, they are 2.02 and 4.43 times. The int8 quantization changes the network more. The hyperparameter study (int16 FCN-MNIST) shows that the speedup of reorder alone depends on the penalty parameter \theta. For \theta = 0, reordering gives no speedup. The best point is (\alpha, \theta) = (0.25, 0.01). IVAN with the reuse of the pruned tree depends less on the hyperparameters. It still gives about 2.5 times for \theta = 0. For the global ACAS-XU properties with input splitting, IVAN has a speedup of 9.5 times for int16 and 3.1 times for int8 against RefineZono. For int16, the average tree size of the baseline is 285.4. On the cases with large trees (|T| > 5), the baseline takes 305 s in total. IVAN takes 32 s.

The speedup shrinks with larger perturbations. The authors stress-test IVAN with larger changes. They perturb every weight by uniform random noise of 2%, 5%, and 10%. They measure the average speedup over 100 properties for each network.

Table 15: Average IVAN speedup under uniform random weight perturbations (Table 3 of (Ugare et al. 2023)).
Model 2% 5% 10%
FCN-MNIST 1.65× 1.57× 0.87×
CONV-MNIST 1.97× 0.57× 0.57×
CONV-CIFAR 1.29× 1.09× 0.69×
CONV-CIFAR-WIDE 1.42× 1.08× 0.96×
CONV-CIFAR-DEEP 1.32× 1.06× 1.05×

In most cases, the speedup falls when the perturbation grows. At 10%, it is below 1 (a slowdown) for four of the five networks. The paper explains this: the specification tree of the perturbed network is no longer similar to the tree of the original network. The reuse then leads to poor splits and a longer verification time. The paper notes that even the 2% perturbation changes the network more than quantization, pruning, or fine-tuning do. These methods often change specific layers in a non-uniform way.

Takeaways

IVAN gives large speedups for small updates and hard instances. The speedup falls with larger weight changes and can go below 1. The numbers hold for classifiers and ACAS-XU controllers on CPU. They say nothing about the cost of LLM verification.

IRS: incremental randomized smoothing

Source: Ugare et al. (2024).

Setup

IRS reuses the class-probability estimates p_A and p_B of randomized smoothing for the original network f. It uses them to certify the smoothed classifier of an approximation f^p. It estimates a bound \zeta_x on the disagreement of the two networks under Gaussian noise. The experiments use ResNet-20 and ResNet-110 on CIFAR10 and ResNet-50 on ImageNet. The approximations are fp16, bf16, and int8 quantization (dynamic per-channel) and pruning of the weights with the lowest magnitude (5%, 10%, 20%). The confidence parameters are \alpha = 0.001 for the certification of g and \alpha_\zeta = 0.001 for the estimate of \zeta_x. The baseline uses \alpha_b = \alpha + \alpha_\zeta = 0.002. Both methods then give radii with equal confidence. The average certified radius (ACR) is the mean of the certified radii over the test inputs. The radius is 0 when the certifier abstains or is wrong. The speedup compares the certification time of IRS for the approximate network with the certification from scratch by randomized smoothing. Both methods pay the certification of the first network, so the comparison does not count it. The experiments run on a 48-core Intel Xeon Silver 4214R CPU with two NVIDIA RTX A5000 GPUs. The approximate networks are close to the original. With n = 1000 and \sigma = 1 over 500 inputs, the average \zeta_x is 0.009 (CIFAR10 ResNet-110) and 0.006 (ImageNet ResNet-50) for int8. It is 0.010 and 0.008 for 10% pruning.

Results

ACR against certification time. The main comparison uses int8, 500 images, n = 10^5 samples for g, n_p from 5% to 50% of n, and \sigma = 1. The paper plots the ACR against the total certification time for 10 values of n_p for IRS and for the baseline.

Figure 12: Total certification time against ACR with \sigma = 1.0 for int8 quantization: ResNet-110 on CIFAR10 (left) and ResNet-50 on ImageNet (right), for IRS and the baseline at 10 values of n_p. Figure from (Ugare et al. 2024).

Figure 12 shows that IRS always needs less time for the same ACR. For ResNet-110 on CIFAR10, IRS reduces the certification time from 2.91 hours to 0.71 hours (4.1 times faster). It reaches an ACR above 0.565, which the baseline does not reach for any n_p. For ResNet-50 on ImageNet, IRS reduces the time for an ACR of 0.875 from 27.82 hours to 22.45 hours (1.24 times). For an ACR of 0.90, it reduces the time from 53.93 hours to 40.58 hours (1.33 times). The abstract states “up to 4.1x certification speedup”.

Quantizations. The full setting needs months. The other experiments use smaller values: n = 10^4, n_p from 1% to 10% of n, and three values of \sigma. The authors compute the speedup with an approximate area-under-curve analysis. It covers the range of ACR that both methods reach.

Table 16: Average IRS speedup for combinations of quantizations and \sigma (Table 2 of (Ugare et al. 2024)).
Dataset Architecture \sigma fp16 bf16 int8
CIFAR10 ResNet-20 0.25 1.37× 1.29× 1.3×
CIFAR10 ResNet-20 0.5 1.79× 1.7× 1.77×
CIFAR10 ResNet-20 1.0 2.85× 2.41× 2.65×
CIFAR10 ResNet-110 0.25 1.42× 1.35× 1.29×
CIFAR10 ResNet-110 0.5 1.97× 1.74× 1.77×
CIFAR10 ResNet-110 1.0 3.02× 2.6× 2.6×
ImageNet ResNet-50 0.5 1.2× 1.14× 1.19×
ImageNet ResNet-50 1.0 1.43× 1.31× 1.43×
ImageNet ResNet-50 2.0 2.04× 1.69× 1.80×

IRS has a larger speedup for larger \sigma. The paper explains that p_A is smaller on average for larger \sigma.

The speedup shrinks with more pruning.

Table 17: Average IRS speedup for combinations of pruning ratio (l1 unstructured pruning) and \sigma (Table 3 of (Ugare et al. 2024)).
Dataset Architecture \sigma Prune 5% Prune 10% Prune 20%
CIFAR10 ResNet-20 0.25 1.3× 1.25× 0.99×
CIFAR10 ResNet-20 0.5 1.63× 1.39× 1.13×
CIFAR10 ResNet-20 1.0 2.5× 2.09× 1.39×
CIFAR10 ResNet-110 0.25 1.35× 1.24× 1.04×
CIFAR10 ResNet-110 0.5 1.83× 1.6× 1.23×
CIFAR10 ResNet-110 1.0 2.7× 2.25× 1.63×
ImageNet ResNet-50 0.5 1.19× 1.04× 0.87×
ImageNet ResNet-50 1.0 1.36× 1.15× 0.87×
ImageNet ResNet-50 2.0 1.87× 1.54× 1.01×

The speedups go from 0.99 to 2.7 times, with 0.87 times for two ImageNet entries. They fall when the pruning is more aggressive. The paper explains this with the higher \zeta_x for aggressive pruning. Quantization gives smaller \zeta_x than pruning, so IRS is more effective for quantization. In the ablation on the threshold \gamma, the ACR changes little for \gamma between 0.9 and 0.999. For ResNet-20 on CIFAR10, it goes from 0.438 at \gamma = 0.9 to a maximum of 0.446 at \gamma = 0.99. For ResNet-110, it goes from 0.436 to 0.443. For ResNet-50 on ImageNet, it goes from 0.458 to 0.467.

Takeaways

The saving of IRS depends on how close the approximation is to the original. It is largest for quantization with large \sigma. It falls for 20% pruning. IVAN and IRS show the same pattern as the grouping ablation of Otter: reuse pays when the reused object is close to the needed object. The numbers hold for image classifiers.

References

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.
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.
Das, K., S. Ugare, B.-Y. E. Chang, S. Misailovic, G. Singh, and M. Sridharan. 2026. “Uncovering the Limits of Proof Sharing for Neural Networks.” SAS.
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.
Fischer, M., C. Sprecher, D. I. Dimitrov, G. Singh, and M. Vechev. 2022. “Shared Certificates for Neural Network Verification.” CAV. https://link.springer.com/chapter/10.1007/978-3-031-13185-1_7.
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.
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.
Ugare, S., D. Banerjee, S. Misailovic, and G. Singh. 2023. “Incremental Verification of Neural Networks.” PLDI. https://arxiv.org/abs/2304.01874.
Ugare, S., G. Singh, and S. Misailovic. 2022. “Proof Transfer for Fast Certification of Multiple Approximate Neural Networks.” OOPSLA. https://dl.acm.org/doi/10.1145/3527319.
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, 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.