Abstract
Deep neural networks are increasingly being used as controllers for safety-critical systems. Because neural networks are opaque, certifying their correctness is a significant challenge. To address this issue, several neural network verification approaches have recently been proposed. However, these approaches afford limited scalability, and applying them to large networks can be challenging. In this paper, we propose a framework that can enhance neural network verification techniques by using over-approximation to reduce the size of the network - thus making it more amenable to verification. We perform the approximation such that if the property holds for the smaller (abstract) network, it holds for the original as well. The over-approximation may be too coarse, in which case the underlying verification tool might return a spurious counterexample. Under such conditions, we perform counterexample-guided refinement to adjust the approximation, and then repeat the process. Our approach is orthogonal to, and can be integrated with, many existing verification techniques. For evaluation purposes, we integrate it with the recently proposed Marabou framework, and observe a significant improvement in Marabou's performance. Our experiments demonstrate the great potential of our approach for verifying larger neural networks.
Introduction
As deep neural networks (DNNs) are deployed in safety-critical domains such as autonomous aviation and medical diagnostics, the need for formal guarantees of their behavior becomes paramount. We cannot rely on statistical performance; we require mathematical proof that these systems will never violate critical safety constraints. However, formal verification of DNNs is an NP-complete problem. Existing tools, such as SMT solvers, face a "scalability wall" as the number of neurons increases, leading to an exponential growth in the search space for potential failures. This research addresses the scalability challenge by asking whether a large, complex network can be simplified into a smaller "abstract" version that remains valid for verification purposes.
Methodology: CEGAR for Neural Networks
The core of the proposed framework is a CounterExample-Guided Abstraction Refinement (CEGAR) loop. This process involves three main stages: transformation, abstraction, and refinement.
Transformation and Expansion
Before abstraction can occur, the original network is transformed into an equivalent structure where neurons are categorized based on their influence on the output. Specifically, neurons are classified into four categories—positive/negative (based on outgoing edge weights) and increasing/decreasing (based on how their values affect the final output). While this transformation can increase the network size by up to four times, it creates a structured environment that allows for aggressive and safe merging of neurons later.
Abstraction and Verification
In the abstraction phase, neurons belonging to the same class are merged. Weights in the abstract network are calculated using max or min operations to ensure the resulting model is an over-approximation. This mathematical property ensures that if a safety property holds for the abstract network, it is guaranteed to hold for the original. A "black-box" verifier, such as Marabou, is then used to check the property on this smaller model.
Refinement Loop
If the verifier identifies a counterexample, the framework must determine if it is "spurious"—a result of the approximation rather than a true failure of the original network. If the counterexample is spurious, the framework performs refinement by splitting merged neurons back into their original components and re-verifying.
Experimental Evaluation
The framework was evaluated using the ACAS Xu benchmark, a standard suite of 45 neural networks for airborne collision avoidance. The authors tested both domain-specific safety properties and adversarial robustness (L∞-norm).
Key Results
Integrating the abstraction framework with the Marabou verifier yielded significant performance gains:
- Increased Coverage: The abstraction-enhanced version solved 58 instances of the ACAS Xu benchmarks, compared to only 35 by the vanilla version within the same time limit.
- Speed Improvements: For instances solved by both, the median runtime dropped from approximately 63,671 seconds to 1,045 seconds—a 60x speedup.
- Robustness Efficiency: In adversarial robustness tests, the framework achieved a 99% improvement in median runtime (0.026s vs. 15.07s).
- Model Compression: On average, properties were proven using abstract networks that were 66% smaller than the originals.
Conclusion and Future Work
This abstraction-based framework demonstrates that "expansion for contraction"—starting with a larger, structured network to enable aggressive simplification—is a powerful strategy for overcoming the scalability challenges of DNN verification. While currently optimized for ReLU activations, future work will focus on extending the framework to other activation functions like Sigmoid or Tanh and exploring parallelized refinement heuristics to further improve efficiency on massive networks.
Summary updated