TL;DR
This paper tackles the scalability challenge in verifying neural networks (NNs) by introducing a parallel "Split-and-Conquer" (S&C) framework. They propose novel partitioning strategies and heuristics, including polarity-based ones, to significantly speed up verification and enable analysis of larger, more complex NNs.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs) are increasingly used in safety-critical applications, but their "black-box" nature and vulnerability to adversarial attacks raise concerns about trustworthiness. Formal verification aims to provide rigorous guarantees about DNN behavior, but existing methods struggle with the sheer scale of modern NNs, which can have thousands or millions of nodes. This paper addresses this scalability bottleneck by adapting parallelization techniques, inspired by SAT solver advancements, to the domain of neural network verification.
Methods
The core contribution is the Split-and-Conquer (S&C) algorithm, a framework for parallelizing NN verification. S&C works by recursively partitioning a verification problem into smaller sub-problems, each solved within a time budget. If a sub-problem times out, it's further partitioned. The paper introduces several key innovations within this framework:
- Split-and-Conquer (S&C) Algorithm: A general divide-and-conquer approach that manages a queue of verification queries, allowing for parallel execution.
- Partitioning Strategies:
- Input Interval Splitting: Divides the input space of the NN.
- ReLU Case Splitting: Splits based on the activation phases (active/inactive) of ReLU neurons. This is a novel approach.
- Polarity-Based Heuristics:
- Branching Heuristic: Guides which input variable or ReLU to split on, aiming for balanced sub-problems. Polarity measures the symmetry of a ReLU's bounds around zero.
- Direction Heuristic: Guides the order in which to explore ReLU phases (active vs. inactive) or repair assignments, prioritizing phases with wider bounds for potentially faster SAT solutions.
- Iterative Propagation: A highly parallelizable pre-processing step that attempts to "fix" ReLUs by discovering their phase (active or inactive) through temporary constraint solving. This simplifies the problem before S&C begins.
Datasets
The paper evaluates their techniques on three benchmark sets:
- ACAS Xu: A family of 45 fully-connected feed-forward NNs used for aircraft collision avoidance.
- TinyTaxiNet: Perception networks used in vision-based autonomous taxiing, designed to predict aircraft position and orientation.
- MNIST: Three fully-connected feed-forward NNs trained for digit recognition.
These benchmarks represent safety-critical domains (aviation) and perception tasks, with varying network sizes and complexities.
Key Insights and Ideas
- Parallelism is Key for Scalability: The core idea is that by breaking down complex verification problems into smaller, manageable pieces that can be solved concurrently, we can overcome the limitations of sequential solvers.
- ReLU Splitting is Powerful: Directly splitting on ReLU activation phases (ReLU-based partitioning) is a more effective strategy for deeper networks compared to just splitting input intervals, especially when dealing with high-dimensional inputs.
- Polarity is a Useful Proxy: The "polarity" metric, derived from ReLU bounds, provides a surprisingly effective heuristic for guiding both branching (which ReLU to split) and direction (which phase to explore first), leading to better performance on both satisfiable and unsatisfiable queries.
- Pre-processing Pays Off: Iterative propagation, while adding some overhead, effectively simplifies problems by fixing ReLUs, leading to better overall performance, especially for harder instances.
- Complementarity of Techniques: The combination of polarity-based heuristics (S+D) and iterative propagation (S+P) within the S&C framework (S+D+P) yields the best results, suggesting these techniques are complementary rather than redundant.
Key Results
- Significant Performance Gains: The proposed S&C algorithm with polarity-based heuristics and iterative propagation (S+D+P) significantly outperforms the baseline sequential Marabou solver (M) and the input-based S&C (I) across all benchmark sets.
- Outperforming State-of-the-Art: S+D+P solves more instances than Neurify, a state-of-the-art solver, particularly on perception networks with high input dimensions. While Neurify can be faster on some specific instances, S+D+P shows more consistent and broader performance.
- Scalability Demonstrated: An ultra-scalability experiment using the
ggplatform on cloud infrastructure (AWS Lambda) shows that the S&C algorithm scales well with a large number of workers, maintaining performance even with hundreds of parallel tasks. - Iterative Propagation Trade-offs: Investing more time in iterative propagation (per-ReLU timeout) can fix more ReLUs, but performance gains plateau and eventually decrease beyond a certain point (around 8 seconds per ReLU).
Limitations and Future Work
- Hyper-parameter Tuning: The authors note that future work could involve investigating more dynamic strategies for choosing S&C hyper-parameters.
- Interleaving Techniques: Exploring different ways to interleave iterative propagation with S&C could further optimize performance.
- Solver Improvement: Integrating advanced techniques like conflict analysis (from CDCL SAT solvers) and more sophisticated bound propagation (from Neurify) into the underlying Marabou solver could yield further improvements.
- Broader Activation Functions: Extending the polarity concept and verification techniques to other piecewise-linear activation functions (e.g., hard tanh, leaky ReLU) is a promising direction.
- Complementarity with Other Tools: The authors suggest that techniques like polarity-based heuristics and iterative propagation could potentially be integrated into other VNN verification tools like Neurify.
Summary updated