Precise Multi-Neuron Abstractions for Neural Network Certification

Mark Niklas Müller, Gleb Makarchuk, Gagandeep Singh, Markus Püschel, Martin T. Vechev · DOI

TL;DR

PRIMA is a new framework for neural network verification that uses novel, polynomial-time algorithms to approximate the convex hull of multiple neurons. By efficiently capturing inter-neuron dependencies, it significantly outperforms existing verifiers in precision across various activation functions and scales to complex real-world models like autonomous driving systems.

What Problem Does This Paper Address?

Formal verification—proving that a neural network will behave safely under all possible inputs—is essential for deploying AI in high-stakes environments like self-driving cars. However, researchers face a "precision-scalability" wall. "Exact" verifiers provide definitive answers but are computationally explosive. "Incomplete" verifiers are fast but often too "loose" because they approximate each neuron's behavior in isolation, ignoring how they interact. This leads to many "false alarms" where a safe network cannot be proven safe.

Fig. 2. Convex single-neuron approximation (blue) of a ReLU (black) with bounded inputs 𝑥∈[𝑙𝑥,𝑢𝑥].

Existing multi-neuron methods were largely restricted to ReLU activations and struggled to scale. PRIMA aims to break this barrier by providing a general framework that handles any non-linear activation (ReLU, Sigmoid, Tanh, etc.) while remaining both precise and scalable.

Methods

PRIMA introduces two core technical innovations:

  1. Split-Bound-Lift Method (SBLM): Instead of trying to solve a massive, high-dimensional convex hull problem for an entire layer, SBLM decomposes it. It splits the input space into regions, bounds the activations, and "lifts" them into the output space one variable at a time. This recursive decomposition keeps the dimensionality low, which is crucial for both speed and precision.
  2. Partial Double Description Method (PDDM): The exact convex hull problem is NP-hard. PDDM is a novel approximation algorithm that leverages computational geometry (specifically duality and ray-shooting) to find a sound over-approximation in polynomial time. It is designed to be "tight" enough for verification while being orders of magnitude faster than exact methods.
Fig. 1. Illustration of the tightness of different abstraction strategies, for a layer of four neurons (grey dots). Strong interdependencies between neurons that can be captured directly or indirectly are shown as solid or dashed lines, respectively. Individual single-neuron, multi-neuron or optimal convex abstractions are illustrated in blue and the resulting overall layer-wise abstraction in green.

PRIMA combines these by grouping neurons into small, overlapping sets to capture the most important dependencies without the cost of considering every possible interaction.

Datasets

The authors evaluated PRIMA on a wide range of standard and challenging benchmarks:

  • MNIST & CIFAR10: Used for testing various architectures including fully connected, convolutional, and residual networks (ResNet).
  • Udacity Self-Driving Car Dataset: Used to evaluate the DAVE network, a realistic regression model for steering angle prediction containing over 100,000 neurons.
  • Activation Functions: Evaluations covered ReLU, Sigmoid, and Tanh-based networks.

Key Insights and Ideas

  • The Power of Overlap: A key "aha" moment is that you don't need to capture all neuron interactions at once. Tighter overall abstractions can be achieved by considering many small, overlapping groups of neurons.
  • Decomposition is a Double Win: Breaking the convex hull problem into lower dimensions (via SBLM) doesn't just make it faster; it actually makes the PDDM approximation more precise because approximation errors grow with dimensionality.
  • Generalizing Beyond ReLU: By moving away from ReLU-specific tricks to general geometric approximations, PRIMA becomes the first multi-neuron verifier that works effectively for "S-curve" activations like Sigmoid and Tanh.

Key Results

  • Precision Gains: PRIMA verified robustness for up to 14% more images on ReLU networks, 30% more on Sigmoid, and 34% more on Tanh compared to previous state-of-the-art methods.
  • Real-World Scalability: It successfully verified the DAVE autonomous driving network—a model with >100k neurons and >27 million connections—within just a few minutes.
  • Efficiency: For small neuron groups, PRIMA's approximate convex hull computation is roughly 200 times faster than exact methods while losing only about 5% in volume precision.
  • Synergy with Refinement: When combined with standard abstraction refinement techniques (like MILP), PRIMA showed a significant jump in the number of verified regions (e.g., from 21 to 60 in one test case).

Limitations and Future Work

As an incomplete verifier, PRIMA can still fail to certify a property even if it holds (false positives), though it is much tighter than its predecessors. The main computational bottleneck has shifted from the constraint generation to the LP-solver itself, especially for very large networks. The authors suggest that integrating PRIMA's multi-neuron constraints with highly optimized, GPU-based solvers (like $\beta$-CROWN) is a promising next step to further boost scalability and speed.

Summary updated

Abstract

Formal verification of neural networks is critical for their safe adoption in real-world applications. However, designing a precise and scalable verifier which can handle different activation functions, realistic network architectures and relevant specifications remains an open and difficult challenge. In this paper, we take a major step forward in addressing this challenge and present a new verification framework, called PRIMA. PRIMA is both (i) general: it handles any non-linear activation function, and (ii) precise: it computes precise convex abstractions involving multiple neurons via novel convex hull approximation algorithms that leverage concepts from computational geometry. The algorithms have polynomial complexity, yield fewer constraints, and minimize precision loss. We evaluate the effectiveness of PRIMA on a variety of challenging tasks from prior work. Our results show that PRIMA is significantly more precise than the state-of-the-art, verifying robustness to input perturbations for up to 20%, 30%, and 34% more images than existing work on ReLU-, Sigmoid-, and Tanh-based networks, respectively. Further, PRIMA enables, for the first time, the precise verification of a realistic neural network for autonomous driving within a few minutes.
BibTeX
@inproceedings{muller2022precise,
  author = {Mark Niklas Müller and Gleb Makarchuk and Gagandeep Singh and Markus Püschel and Martin T. Vechev},
  title = {{Precise Multi-Neuron Abstractions for Neural Network Certification}},
  booktitle = {Proc. ACM Program. Lang},
  year = {2022},
  url = {https://openreview.net/forum?id=HWVWvbMcwgc},
}
Figure