Abstract
Neural networks are becoming increasingly prevalent in software, and it is therefore important to be able to verify their behavior. Because verifying the correctness of neural networks is extremely challenging, it is common to focus on the verification of other properties of these systems. One important property, in particular, is robustness. Most existing definitions of robustness, however, focus on the worst-case scenario where the inputs are adversarial. Such notions of robustness are too strong, and unlikely to be satisfied by—and verifiable for—practical neural networks. Observing that real-world inputs to neural networks are drawn from non-adversarial probability distributions, we propose a novel notion of robustness: probabilistic robustness, which requires the neural network to be robust with at least $(1 - \epsilon)$ probability with respect to the input distribution. This probabilistic approach is practical and provides a principled way of estimating the robustness of a neural network. We also present an algorithm, based on abstract interpretation and importance sampling, for checking whether a neural network is probabilistically robust. Our algorithm uses abstract interpretation to approximate the behavior of a neural network and compute an overapproximation of the input regions that violate robustness. It then uses importance sampling to counter the effect of such overapproximation and compute an accurate estimate of the probability that the neural network violates the robustness property.
Introduction
As neural networks are integrated into safety-critical systems, the need for formal verification becomes paramount. Traditionally, verification efforts have focused on robustness—the property that small perturbations in input should not lead to drastic changes in output. However, current paradigms typically fall into two categories: local robustness, which is too narrow for general safety guarantees, and global robustness, which is often impossible to satisfy. Global robustness accounts for adversarial "worst-case" scenarios—mathematically possible but statistically improbable inputs that rarely occur in real-world environments.
This paper argues that the industry requires a more pragmatic approach. By shifting the focus from adversarial worst-cases to non-malicious, real-world input distributions, we can define a version of robustness that is both principled and verifiable for practical applications.
Defining Probabilistic Robustness
The core contribution of this work is the definition of probabilistic robustness. Rather than demanding a network remain stable across the entire possible input space, we require it to satisfy the Lipschitz property with a high probability ($1 - \epsilon$) relative to a specific input distribution $D$.
The Lipschitz property ensures that the change in a network's output is bounded by the change in its input. By framing this within a probabilistic context, we allow for rare failures in statistically insignificant regions of the input space while maintaining rigorous guarantees where the network is most likely to operate. This "real-world shift" acknowledges that a failure occurring with a probability of $10^{-20}$ may not compromise the practical safety of a system.
A Hybrid Verification Framework
To verify this new property, we propose a two-stage algorithm that combines the rigor of formal methods with the precision of statistical sampling.
1. Product Program Construction
Robustness is inherently a relational property; it compares the relationship between two different inputs ($x$ and $x'$) and their corresponding outputs. To analyze this, we construct a "product program" that processes both inputs simultaneously. This transformation allows us to treat a complex relational property as a single-trace property, making it accessible to standard program analysis tools.
2. Abstract Interpretation (AI)
We utilize Abstract Interpretation to overapproximate the network’s behavior. By representing the network using Conditional Affine Transformations (CAT), we can identify geometric regions (polyhedra) in the input space where the robustness property might be violated. While AI is "sound"—meaning it will not miss any potential violations—it is often conservative and may flag safe regions as potential failures.
3. Importance Sampling
To address the imprecision of AI, we apply importance sampling to the regions flagged during the abstract interpretation phase. Instead of sampling the entire input space, the algorithm "zooms in" on the potential violation zones. This statistical refinement provides a highly accurate estimate of the actual failure probability, effectively bridging the gap between formal soundness and statistical precision.
Discussion and Future Work
This methodological framework represents a significant step toward practical AI verification. By treating robustness as a "hyperproperty" and leveraging product programs, we open the door for established software engineering tools to be applied to neural networks.
However, several challenges remain. The accuracy of the robustness estimate is inherently tied to the accuracy of the assumed input distribution $D$. Furthermore, while the Lipschitz-based definition works well for continuous outputs (or softmax probabilities in classifiers), it may require adaptation for networks with discrete or non-continuous components.
As this is a foundational paper, the current focus is on the theoretical and algorithmic feasibility of the approach. Future research will involve the empirical validation of this framework on standard benchmarks like MNIST and CIFAR-10 to evaluate how the use of powerset polyhedra and importance sampling scales with deeper, more complex architectures.
Summary updated