Precise Multi-Neuron Abstractions for Neural Network Certification.

Mark Niklas Müller, Gleb Makarchuk, Gagandeep Singh, Markus Püschel, Martin Vechev2021

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."

Standard convex relaxation of a single ReLU neuron using linear bounds.

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:

  1. 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.
  2. 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.

Comparison of neuron abstraction strategies from single-neuron (a) to overlapping multi-neuron groups (c) and the optimal convex hull (d).

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

Abstract

Formal verification of neural networks is critical for their safe adoption in real-world applications. However, designing a verifier which can handle realistic networks in a precise manner remains an open and difficult challenge. In this paper, we take a major step in addressing this challenge and present a new framework, called PRIMA, that computes precise convex approximations of arbitrary non-linear activations. PRIMA is based on novel approximation algorithms that compute the convex hull of polytopes, leveraging concepts from computational geometry. The algorithms have polynomial complexity, yield fewer constraints, and minimize precision loss. We evaluate the effectiveness of PRIMA on challenging neural networks with ReLU, Sigmoid, and Tanh activations. Our results show that PRIMA is significantly more precise than the state-of-the-art, verifying robustness for up to 16%, 30%, and 34% more images than prior work on ReLU-, Sigmoid-, and Tanh-based networks, respectively.
BibTeX
@misc{muller2021precise,
  author = {Mark Niklas Müller and Gleb Makarchuk and Gagandeep Singh and Markus Püschel and Martin Vechev},
  title = {{Precise Multi-Neuron Abstractions for Neural Network Certification.}},
  year = {2021},
}

Loading related content...

Figure