An Abstraction-Based Framework for Neural Network Verification

Yizhak Yisrael Elboher, Justin Gottschlich, Guy Katz

TL;DR

Verifying the safety of large deep neural networks (DNNs) is notoriously difficult because the problem is computationally "heavy" (NP-complete). This paper introduces a framework that uses over-approximation to shrink a large network into a much smaller "abstract" version that is easier to verify. By using a refinement loop (CEGAR), the authors demonstrate that they can prove properties of complex networks orders of magnitude faster than existing state-of-the-art tools.

What Problem Does This Paper Address?

As neural networks move into safety-critical roles—like autonomous flight or medical diagnosis—we can’t just rely on them "usually" working; we need mathematical proofs that they will never violate specific safety constraints.

The challenge is scalability. Current formal verification tools (like SMT solvers) struggle as networks grow. The search space for potential failures grows exponentially with the number of neurons. This paper tackles the "scalability wall" by asking: Can we verify a smaller, simpler version of the network and have the results still apply to the original?

Methods

The authors propose a CounterExample-Guided Abstraction Refinement (CEGAR) framework specifically tailored for DNNs. Here is the workflow:

  1. Transformation: First, they transform the original network into an equivalent one where every neuron is categorized into four classes based on its influence on the output: pos/neg (based on outgoing edge weights) and inc/dec (whether increasing the neuron's value increases or decreases the final output). This can increase the network size by up to 4x but sets the stage for safe merging.
  2. Abstraction: They merge neurons of the same class. The "abstract" weights are chosen carefully (using max or min operations) to ensure the new network is an over-approximation. If the abstract network satisfies a safety property (e.g., "output $y$ is never greater than $c$"), the original network is guaranteed to satisfy it too.
  3. Verification: They use a "black-box" verifier (in this case, Marabou) to check the abstract network.
  4. Refinement: If the verifier finds a failure (a counterexample), the framework checks if it’s "spurious" (an artifact of the approximation). If it is, the framework "refines" the network by splitting some merged neurons back apart and tries again.

Datasets

The framework was evaluated using the ACAS Xu benchmark, a suite of 45 neural networks designed for airborne collision avoidance. These are standard benchmarks in the formal verification community.

  • Safety Properties: The authors tested specific domain-specific properties (e.g., ensuring the system doesn't give conflicting turn advisories).
  • Adversarial Robustness: They also generated 900 custom queries to test how sensitive the networks are to small input perturbations (L∞-norm robustness).

Key Insights and Ideas

  • The Power of Monotonicity: By classifying neurons as "increasing" or "decreasing," the authors found a mathematically sound way to merge neurons without losing the "over-approximation" guarantee.
  • Expansion for Contraction: It seems counter-intuitive to start by making a network 4x larger (the transformation step). However, this structured expansion allows for a much more aggressive and effective "contraction" during abstraction.
  • Aggression Wins: One of the most surprising findings was that "abstraction to saturation"—shrinking the network as much as possible right at the start—outperformed more cautious, "guided" abstraction methods. Even if it required more refinement steps later, the initial queries were so small that the solver could breeze through them.

Key Results

The results show a massive boost in performance when integrating this framework with the Marabou verifier:

  • More Solved Instances: On the ACAS Xu benchmarks, the abstraction-enhanced version solved 58 instances, while the vanilla version only solved 35 within the same time limit.
  • Massive Speedups: For the instances both could solve, the median runtime dropped from 63,671 seconds (vanilla) to just 1,045 seconds (abstraction)—a roughly 60x improvement.
  • Robustness Efficiency: In adversarial robustness tests, the framework achieved a 99% improvement in median runtime (0.026s vs. 15.07s).
  • Significant Shrinkage: On average, the tool was able to prove properties using abstract networks that were 66% smaller than the originals.

Limitations and Future Work

  • ReLU Only: The current implementation is optimized for ReLU activation functions. While ReLUs are common, the framework would need adjustments to handle Sigmoid or Tanh activations.
  • Initial Overhead: The 4x transformation step could become a memory bottleneck for truly massive networks (millions of parameters) before the abstraction even begins.
  • Future Directions: The authors plan to explore more sophisticated refinement heuristics (deciding exactly which neurons to split) and parallelizing the process so multiple "worker nodes" can explore different abstraction levels simultaneously.

Summary updated

BibTeX
@inproceedings{elboher2020abstraction,
  author = {Yizhak Yisrael Elboher and Justin Gottschlich and Guy Katz},
  title = {{An Abstraction-Based Framework for Neural Network Verification}},
  booktitle = {CAV},
  year = {2020},
  url = {https://openreview.net/forum?id=lFLiGXPLvy},
}

Loading related content...

Figure