Introduction
As neural networks are increasingly deployed in safety-critical domains like autonomous driving and healthcare, the need for mathematical guarantees regarding their behavior becomes paramount. Formally verifying robustness—proving that small input perturbations won't lead to drastic output changes—is a significant challenge. Exact verification is NP-hard due to the non-linear nature of activation functions like ReLU, Sigmoid, and Tanh.
The Challenge: The Convex Barrier
To achieve scalability, most verifiers use incomplete methods that over-approximate network behavior using convex shapes. Traditionally, these methods approximate each neuron individually. While efficient, this approach ignores inter-neuron dependencies, leading to an accumulation of approximation errors known as the "convex barrier."
As shown in the figure above, a single neuron's non-linear behavior is bounded by linear constraints. However, when these individual approximations are stacked across layers, the resulting over-approximation often becomes too loose to prove meaningful safety properties.
PRIMA: Scalable Multi-Neuron Abstractions
The PRIMA framework addresses this by computing precise multi-neuron convex abstractions. Unlike previous attempts that were computationally prohibitive, PRIMA introduces two key algorithms:
- Split-Bound-Lift Method (SBLM): SBLM decomposes high-dimensional convex hull computations into lower-dimensional sub-problems. It splits the input space, computes bounds, and "lifts" the space one variable at a time, maintaining efficiency.
- Partial Double Description Method (PDDM): PDDM is a fast, polynomial-time algorithm that computes sound over-approximations of convex hulls. By operating in dual space and using ray-shooting techniques, it achieves massive speedups over exact geometric algorithms.
Key Insights: The Power of Overlap
A core finding of this work is that computing bounds for small, overlapping groups of neurons (e.g., 3 or 4) provides a "sweet spot" for precision and speed.
By capturing dependencies between neighboring neurons, PRIMA significantly tightens the layer-wise abstraction compared to single-neuron methods (a). The use of overlapping groups (c) allows the verifier to approximate the optimal convex hull (d) much more closely than disjoint groups (b), effectively breaking the convex barrier.
Results and Scalability
PRIMA was evaluated on MNIST, CIFAR10, and the Udacity Self-Driving Car dataset. Key results include:
- Improved Precision: Verified up to 34% more images than state-of-the-art verifiers on Tanh-based networks.
- Efficiency: SBLM + PDDM is approximately 200x faster than exact methods, generating 70% fewer constraints, which in turn speeds up the final Linear Programming (LP) solver by 8x.
- Real-World Impact: Successfully verified the DAVE autonomous driving network (containing over 100,000 neurons), a first for a model of this scale in a regression setting.
Conclusion
PRIMA demonstrates that precise multi-neuron abstractions are computationally feasible for large-scale networks and diverse activation functions. By shifting the computational bottleneck from geometric computation to LP solving, it opens new avenues for combining multi-neuron constraints with high-performance GPU-based solvers to further push the boundaries of neural network certification.
Summary updated