Linear Bound Propagation Verification

Description

Linear bound propagation verification proves that a trained neural network meets a stated property for every input in a defined region, for example that no small change to the pixels of an image alters its class, or that a controller's output stays within limits across a box of sensor readings. CROWN, the named method, replaces each neuron's activation function with two straight lines that bound it from above and below over the values that neuron can take, then works backwards from the outputs through the layers to express an upper and a lower bound on each output as a linear function of the input, and evaluates those functions over the region to obtain guaranteed numerical bounds. If the bounds show the property holds (for a classifier, that the correct class's score stays above every other class's), it is proved for the whole region; because the straight lines over-approximate the network, bounds that fail to show it leave the case undecided, so bound propagation on its own is sound but incomplete. The alpha-beta-CROWN tool tightens the bounds by tuning the lines with gradient-based optimisation and by branch and bound: for a ReLU network it splits undecided neurons into their active and inactive cases and bounds each part separately, which given enough time settles every case, making the tool complete for ReLU networks, but at a cost that can grow exponentially with the number of neurons split, so in practice each run ends as verified, falsified (a counterexample input found) or timed out. Running on graphics processors, it reaches convolutional networks with millions of parameters, larger than exact constraint solvers usually handle, at the price of leaving hard cases undecided.

Example Use Cases

Safety

An avionics supplier's verification team checks the network that flags wildfires in airborne infrared images. For each background crop in a held-out set taken from real flight logs, it uses alpha-beta-CROWN to prove that the detector's confidence never falls as a planted fire signal grows stronger within the specified range, lists the crops where a counterexample is found, and enters the proved cases in the safety case as evidence for that consistency requirement.

A transmission system operator replaces slow time-domain simulation with a neural network that predicts whether the grid stays stable after a fault, inside the optimiser that plans generator dispatch. At each candidate dispatch its engineers use alpha-beta-CROWN to certify that the stability prediction holds for every combination of wind, solar and load within the forecast uncertainty, and raise the stability margin wherever certification fails before the plan is issued.

Reliability

A pharmaceutical packaging line uses a convolutional classifier to accept or reject blister packs from camera images. Before each model release the quality team reports certified accuracy on held-out images: the share for which CROWN bounds prove that no change of up to 2/255 in any pixel can flip the decision, a bound set above the largest per-pixel noise measured on the line's cameras. A release whose certified accuracy falls well below its ordinary accuracy goes back for retraining.

Limitations

  • Bound propagation on its own is incomplete: when the bounds are too loose to show the property, the case stays undecided, which is not evidence either way. Branch and bound settles more cases, but the problem is NP-complete in general, so hard cases end in a time-out. In an industrial study of an airborne wildfire detector, every query for a monotonicity property was settled, while 62 per cent of the queries for a sensor-blur property timed out.
  • The property must be written as a region of inputs, such as every image within a small per-pixel change of a test image or a box of sensor values, plus a linear condition on the outputs. Rotation, lighting, weather or blur are not regions of that kind; covering them means modelling them first, for example with a separate network that generates plausible blur, and the accuracy of that model then has to be argued separately.
  • Robustness is proved one region at a time, usually around each test input, so certified accuracy on a test set is evidence about those inputs and that perturbation only. It does not carry over to new inputs from operation, and a classifier certified around every test image can still misclassify an unperturbed image it has not seen.
  • It needs the whole network in a supported form (PyTorch or ONNX) and, beyond small networks, a graphics processor with enough memory: most of the tool's example configurations were tested on a 24 GB GPU, and its documented branch-and-bound support for ReLU image models reaches residual networks of about 20 layers. Layers the library does not support need their bounds written by hand, and its documented reach of millions of parameters is far below the size of large language models.
  • The guarantee covers the network alone. Pre-processing, sensor faults and, for a controller, the plant it drives and how errors build up over time are outside it, so a proof that a policy network never outputs an unsafe command for any state in a box does not show that the controlled system stays safe; that needs a separate analysis of the closed loop.

Resources

Research Papers

Efficient Neural Network Robustness Certification with General Activation Functions
Huan Zhang et al.•Jan 1, 2018

Finding minimum distortion of adversarial examples and thus certifying robustness in neural networks classifiers is known to be a challenging problem. Nevertheless, recently it has been shown to be possible to give a non-trivial certified lower bound of minimum distortion, and some recent progress has been made towards this direction by exploiting the piece-wise linear nature of ReLU activations. However, a generic robustness certification for \textit{general} activation functions still remains largely unexplored. To address this issue, in this paper we introduce CROWN, a general framework to certify robustness of neural networks with general activation functions. The novelty in our algorithm consists of bounding a given activation function with linear and quadratic functions, hence allowing it to tackle general activation functions including but not limited to the four popular choices: ReLU, tanh, sigmoid and arctan. In addition, we facilitate the search for a tighter certified lower bound by \textit{adaptively} selecting appropriate surrogates for each neuron activation. Experimental results show that CROWN on ReLU networks can notably improve the certified lower bounds compared to the current state-of-the-art algorithm Fast-Lin, while having comparable computational efficiency. Furthermore, CROWN also demonstrates its effectiveness and flexibility on networks with general activation functions, including tanh, sigmoid and arctan.

Beta-CROWN: Efficient Bound Propagation with Per-neuron Split Constraints for Neural Network Robustness Verification
Shiqi Wang et al.•Jan 1, 2021

Software Packages

alpha-beta-CROWN: a fast and scalable neural network verifier with efficient bound propagation

alpha-beta-CROWN: An Efficient, Scalable and GPU Accelerated Neural Network Verifier (winner of VNN-COMP 2021, 2022, 2023, 2024, 2025) - Verified-Intelligence/alpha-beta-CROWN

Tutorials

Quick Start — auto_LiRPA documentation

Documentations

alpha-beta-CROWN usage documentation

alpha-beta-CROWN: An Efficient, Scalable and GPU Accelerated Neural Network Verifier (winner of VNN-COMP 2021, 2022, 2023, 2024, 2025) - Verified-Intelligence/alpha-beta-CROWN

Tags

Safety Dimensions

Reliability Dimensions

Other Categories

Applicable Models:
Data Requirements:
Data Type:
Evidence Type:
Technique Type: