Abstract
We present a neural network verification toolbox to 1) assess the probability of satisfaction of a constraint, and 2) synthesize a set expansion factor to achieve the probability of satisfaction. Specifically, the toolbox establishes with a user-specified level of confidence whether the output of the neural network for a given input distribution is likely to be contained within a given set. Should the tool determine that the given set cannot satisfy the likelihood constraint, the tool also implements an approach outlined in this paper to alter the constraint set to ensure that the user-defined satisfaction probability is achieved. The toolbox is comprised of sampling-based approaches which exploit the properties of signed distance functions to define set containment.
Introduction
As neural networks (NNs) are increasingly integrated into safety-critical systems—such as autonomous drones and aircraft taxiing—ensuring their reliability under uncertainty is paramount. Traditional deterministic verification methods often focus on worst-case scenarios, which can be overly conservative or fail to account for the probabilistic nature of real-world noise, such as sensor interference or electronic glare.
SAVER (SAmpling-based VERification) addresses this by providing a framework for probabilistic verification. It tackles two primary challenges:
- Assessment: Determining the likelihood that a NN's output stays within a defined safety set given a specific input distribution.
- Synthesis: If the safety requirement isn't met, calculating the necessary expansion of the safety set to reach a target confidence level (e.g., 99.9% safety).
Methodology
SAVER utilizes a black-box, sampling-based approach, making it agnostic to the specific architecture of the neural network (e.g., ReLU vs. Sigmoid activations). The core of the methodology relies on several key innovations:
- Signed Distance Functions (SDFs): Safety sets are represented via SDFs, where a negative value indicates containment and a positive value indicates exclusion. This simplifies complex geometric constraints into scalar comparisons, facilitating operations like set expansion and intersection.
- Statistical Guarantees: The toolbox employs the Dvoretzky-Kiefer-Wolfowitz (DKW) inequality to determine the sample size required for a specific error tolerance. For more efficient "chance-constrained" problems, it uses Scenario Optimization to find minimal set enlargements.
- Modular Architecture: The toolbox is implemented in Python using PyTorch and NumPy, offering a modular API that separates the verification problem from the specific assessment or synthesis algorithms.
Experimental Evaluation
The authors demonstrated SAVER's utility across three diverse benchmarks:
- Synthetic Feedforward NN: Evaluated against a heavy-tailed Cauchy distribution. This distribution lacks defined moments, making it notoriously difficult for standard analytical verification methods, yet SAVER handled it effectively through sampling.
- MNIST Robustness: The tool assessed a CNN classifier's performance under Gaussian pixel noise, proving that the model could not meet a 99% correct-classification requirement under a noise variance of 0.25.
- TaxiNet Benchmark: In a simulated aircraft taxiing task (Cessna 208B), SAVER identified that the model could not maintain a 1-meter centerline constraint under pixel noise. The tool synthesized a new safety bound of 1.25 meters to guarantee 90% satisfaction.
Conclusion
SAVER provides a flexible and mathematically rigorous environment for verifying NNs in uncertain environments. By shifting the focus from simple "pass/fail" results to actionable set synthesis, it offers a practical tool for engineers to define safety buffers. While sampling can be computationally expensive for high-fidelity simulators, the toolbox's flexibility across different network architectures and noise distributions marks a significant step forward in reliable AI deployment.
Source: SAVER: A Toolbox for Sampling-Based, Probabilistic Verification of Neural Networks (2025).
Summary updated