Towards Sound Verification of Deployed Neural Networks

Attila Szász, Balázs Bánhelyi, Márk JelasityNeurIPS 2026

TL;DR

When you verify a neural network on paper, you assume $a + b + c$ always gives the same answer—but on real hardware using floating-point math, changing the order of addition can change the output and trigger hidden backdoors. While verifying every possible execution order in deployment was thought to be prohibitively expensive, this paper uses classic numerical error bounds to build the first practically sound verifiers. They catch 100% of floating-point backdoors with almost zero loss in precision on normal networks and only a modest runtime hit.

What Problem Does This Paper Address?

Formal verification aims to mathematically guarantee that a neural network behaves safely (e.g., classifying an image correctly despite adversarial noise). A verifier is called sound if it never gives a false sense of security—if it says a network is safe, it truly is.

Here’s the catch: existing verifiers check the theoretical mathematical model, not the deployed code. Real computers use finite-precision floating-point arithmetic, which isn’t associative. Depending on how a GPU parallelizes threads or orders operations (the expression tree), $(2^{53} + 1) - 2^{53}$ might evaluate to $0$, while $(2^{53} - 2^{53}) + 1$ evaluates to $1$. Because deployment environments dynamically pick execution orders we don't know in advance, attackers can plant backdoors that stay dormant during verification's fixed order of operations, only to activate on specific target hardware. Until now, no existing verifier could guarantee safety across all possible floating-point execution orders.

Methods

Instead of trying to enumerate an astronomical number of expression trees, the authors turn to numerical analysis—specifically, Higham’s backward error bounds for inner products.

In floating-point math, every multiplication or addition introduces a tiny relative rounding error bounded by machine epsilon ($\mu$). For a neuron with fan-in $n$ (where $n\mu < 1$), any term in an inner product experiences at most $n$ rounding steps. The authors generalize Higham's bound $\Delta = \frac{n\mu}{1-n\mu}$ to wrap every term of an inner product in a slightly widened interval: $[1 - \Delta, 1 + \Delta]$. Provably, this single interval swallows the output of every valid floating-point ordering and parenthesizing.

The authors upgrade two foundational verification building blocks for ReLU networks with this $\Delta$-widening trick (plus outward floating-point rounding):

  • FPSoundIBP: Enhances standard Interval Bound Propagation (passing numeric min/max intervals layer by layer).
  • FPSoundSymbolic: Enhances vanilla symbolic linear propagation (tracking variables as linear equations using a DeepZ-style envelope for unstable ReLUs).

Finally, because Higham’s bounds break down during overflow or underflow, the authors add safeguards: summing positive and negative terms separately to flag potential overflows, and slightly nudging interval endpoints to integer multiples of the smallest representable number to safely absorb underflows.

Datasets

The authors evaluate their verifiers on the first 100 test images of MNIST (perturbation radius $\epsilon = 0.1$) and CIFAR-10 ($\epsilon = 2/255$). No new datasets are introduced; instead, they test across seven existing ReLU networks: five standard benign models (ConvSmall, ConvBig, ConvSuper) and two models from prior backdoor literature—a base MNIST network (M) and its malicious twin (MO3), which hides a floating-point order-sensitive detector neuron.

Table 1: The networks used in the empirical evaluation, and the performance of some baseline verifiers. Sym, Poly, and Zono stand for Symbolic, DeepPoly [16] and DeepZ [15].

Key Insights and Ideas

  • Symbolic verification works despite structural mismatch: Symbolic verifiers rearrange algebra, meaning the verifier’s math looks nothing like the deployed network’s neuron-by-neuron execution tree. Remarkably, applying $[1-\Delta, 1+\Delta]$ recursively to symbolic coefficients still bounds every possible numerical execution in deployment.
  • Safety doesn't ruin precision: You might expect widening every single neuron's calculation to snowball into uselessly massive bounds. On benign networks, the extra width is practically invisible—sitting around $10^{-12}$ to $10^{-8}$.
  • Blown-up intervals act as a smoke alarm: When fed the malicious MO3 network, the sound verifiers suddenly spit out massive interval widths (e.g., widening by $6.33 \times 10^6$). An abnormally wide gap between naive and sound bounds is a clear red flag that a model is hiding numerical trickery.

Key Results

  • 100% Backdoor Detection: While baseline verifiers (Symbolic, DeepZ, DeepPoly) are completely fooled by MO3—reporting 90–96% safety when true practical safety is 0%—both FPSoundIBP and FPSoundSymbolic successfully catch MO3 and all other adversarial verifier attacks from prior work.
  • Zero Accuracy Drop on Benign Models: Across all benign networks, the sound methods verify the exact same test inputs as their naive, non-sound counterparts.
  • Manageable Runtime Overhead: Because inspecting scaled weights individually breaks standard hardware matrix-multiplication optimizations, FPSoundSymbolic takes roughly $2\times$ as long as naive symbolic propagation, plus ~30% extra for underflow checks (e.g., going from $2.18\text{s}$ to $4.69\text{s}$ on ML), keeping runtimes well within the same order of magnitude.

Limitations and Future Work

  • Vanilla Baselines: FPSoundIBP produces overly loose bounds in practice, and FPSoundSymbolic lacks advanced tricks like backsubstitution (used in CROWN or DeepPoly). Extending $\Delta$-widening to those state-of-the-art verifiers is left for future work.
  • Low Precision + Wide Layers: The math requires $n\mu < 1$ (neuron fan-in times machine epsilon). Very wide layers paired with ultra-low-precision formats could violate this constraint.
  • No Approximate Math: The guarantees assume exact IEEE-style arithmetic; if deployment hardware uses approximate matrix multiplication algorithms, all bets are off (though standard Fused Multiply-Add can be easily accommodated).

Summary updated

Abstract

Verification methods aim at mathematically proving desirable properties of neural networks, such as robustness to adversarial perturbations. A verifier is sound if and only if it never claims that a neural network has the desired property when it does not. It was shown recently that none of the currently known verifiers that are claimed to be sound are guaranteed to be sound when considering the deployed version of the verified network. Due to this, all the known verifiers are vulnerable to certain backdoor attacks, where an adversarial network passes verification, but in reality, it exhibits adversarial behavior in specific deployment environments. So far, it has been suspected that sound verification is prohibitively expensive if we wish to verify all possible executions&mdash;including parallel and stochastic ones&mdash;in deployment. We show that efficient and practically sound verifiers can be designed using a bound on the so-called backward error. Using this bounding technique, we propose two verifiers: one based on interval bound propagation, and one using symbolic propagation. Both verifiers are proven to remain sound even if the deployment environment randomly selects a valid expression tree (an ordering and parenthesizing of the arithmetic operations) to compute the network, and even if numeric underflow or overflow occurs in any valid expression tree. This is especially interesting in the case of symbolic propagation, where the expression tree used by the verifier is completely different from the one used in deployment. We demonstrate empirically that our techniques introduce only a limited performance overhead while detecting all the known verifier backdoor attacks.
BibTeX
@inproceedings{szasz2026towards,
  author = {Attila Szász and Balázs Bánhelyi and Márk Jelasity},
  title = {{Towards Sound Verification of Deployed Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=nHbkxmdykn},
}
Figure