Reachability Analysis of Deep Neural Networks with Provable Guarantees

Wenjie Ruan, Xiaowei Huang, Marta Kwiatkowska

Introduction

As Deep Neural Networks (DNNs) are increasingly deployed in safety-critical domains such as autonomous vehicles and aerospace, the need for formal verification of their behavior has become paramount. A central challenge in this field is the reachability problem: determining the range of possible outputs for a given set of inputs. Traditional verification tools, such as Reluplex or SHERLOCK, primarily rely on Satisfiability Modulo Theories (SMT) or Mixed-Integer Linear Programming (MILP). However, these methods face significant hurdles in scalability—struggling with networks beyond a few hundred neurons—and are often restricted to piecewise-linear activations like ReLU, failing to handle the transcendental functions (e.g., Sigmoid, Softmax) common in modern architectures.

Methodology: The DeepGO Framework

This paper introduces DeepGO, a novel framework that treats DNNs as Lipschitz continuous functions to provide provable safety guarantees. By leveraging the Lipschitz constant $K$, which bounds the rate of change of the network's output relative to its input, the authors transform the verification task into a global optimization problem.

Key Innovations

  1. Broad Layer Support: The authors provide mathematical proofs for the Lipschitz constants of Sigmoid, Tanh, and Softmax layers, enabling the formal verification of these previously "difficult" layers.
  2. Adaptive Nested Optimization: To find global extrema in high-dimensional spaces, DeepGO decomposes the problem into a sequence of nested 1D optimization tasks.
  3. The Saw-tooth Bound: In the 1D case, the algorithm constructs a piecewise-linear "saw-tooth" function that serves as a guaranteed lower bound. This bound is iteratively refined until the gap between the estimated and actual minimum falls within a user-defined tolerance $\epsilon$.
Illustration of the saw-tooth bound construction using Lipschitz constants.

Experimental Evaluation

The researchers evaluated DeepGO across several benchmarks:

  • Synthetic Benchmarks: Six 2-input/1-output networks for direct comparison with SHERLOCK and Reluplex.
  • ACAS-Xu: A standard airborne collision avoidance system benchmark.
  • MNIST: Seven convolutional neural network (CNN) architectures, ranging from 5 to 19 layers, trained on handwritten digits.

A critical insight from these experiments is that DeepGO's complexity depends primarily on the number of input dimensions rather than the number of hidden neurons. This allows the tool to scale to networks with millions of neurons, provided the input subspace remains relatively small.

Key Results

DeepGO demonstrated significant performance gains over state-of-the-art tools:

  • Efficiency: It achieved a 36x speedup over SHERLOCK and was nearly 100x faster than Reluplex on benchmark networks.
  • Scalability: While competing tools were generally limited to 6 layers, DeepGO successfully validated networks with up to 19 layers.
  • Versatility: The framework handled architectures including dropout, normalization, and non-linear activations that caused other tools to fail.
Confidence reachability diameter across seven different DNN architectures.

Conclusion and Future Work

DeepGO provides a robust, scalable approach to DNN verification by unifying adversarial example generation, safety verification, and robustness measurement under the reachability umbrella. While highly effective, the method is still subject to the "curse of dimensionality" regarding the input space and requires tight Lipschitz constants for optimal convergence. Future work aims to parallelize the algorithm on GPUs and extend the framework to Recurrent Neural Networks (RNNs) and reinforcement learning models.

Summary updated

BibTeX
@inproceedings{ruan2018reachability,
  author = {Wenjie Ruan and Xiaowei Huang and Marta Kwiatkowska},
  title = {{Reachability Analysis of Deep Neural Networks with Provable Guarantees}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/368},
}
Figure