Introduction
Deep neural networks (DNNs) have become integral to modern technology, yet they remain notoriously fragile. Small, imperceptible "adversarial" perturbations to an input can cause these models to fail spectacularly, leading to incorrect classifications with high confidence. For instance, a slight change in an image of a car might lead a network to classify it as a bird.
To deploy DNNs in safety-critical domains like autonomous driving or medical diagnosis, formal verification is required. This process provides a mathematical proof that no adversarial example exists within a specific region (e.g., an $L_\infty$ ball around an image). However, verification faces a classic trade-off between scalability and precision. Exact verifiers are precise but slow, while inexact verifiers like DeepPoly use abstract interpretation to over-approximate behavior, offering better speed but still facing CPU bottlenecks.
GPUPoly: Parallel Polyhedral Verification
GPUPoly is a massively parallel neural network verifier designed to bring formal robustness guarantees into the GPU era. By redesigning the state-of-the-art DeepPoly algorithm to exploit GPU parallelism and structural sparsity, GPUPoly achieves unprecedented performance. The approach is built on three technical pillars:
1. Dependence Sets and Structural Sparsity
The core bottleneck of polyhedral verification is backsubstitution. Rather than treating this as a dense matrix operation, GPUPoly identifies the "receptive field" or "dependence set" of each neuron. For convolutional and residual layers, these sets are significantly smaller than the full layer. GPUPoly leverages these sets to create small, dense sub-matrices that align with GPU SIMD (Single Instruction, Multiple Data) architectures, avoiding the memory explosion typical of previous GPU-based verifiers.
2. Floating-Point Soundness
Standard GPU libraries often prioritize speed over mathematical rigor, potentially introducing rounding errors that invalidate formal proofs. GPUPoly addresses this by implementing custom CUDA kernels using interval arithmetic. By tracking lower and upper bounds for every calculation, the verifier ensures that the final proof remains mathematically sound despite floating-point non-associativity.
3. Early Termination
The algorithm identifies "stable" ReLU neurons—those that remain consistently active or inactive for a given input region. Once a neuron's state is determined to be stable, its contribution to the proof becomes fixed, allowing the verifier to skip expensive backsubstitution steps for those rows, further accelerating the process.
Experimental Evaluation
The authors evaluated GPUPoly on 16 deep neural networks across the MNIST and CIFAR-10 benchmarks. The models ranged from simple fully-connected architectures to large ResNet-34 models containing nearly 1 million neurons.
Key Results
- Massive Speedups: GPUPoly is up to 250x faster than CPU-based DeepPoly on standard networks. On robustly trained networks where early termination is more frequent, speedups reach up to 68,000x.
- Unprecedented Scale: GPUPoly successfully verified a ResNet-34 with 1 million neurons in approximately 34.5 ms.
- Superior Precision: Compared to other GPU-based verifiers like CR-IBP, GPUPoly demonstrates significantly higher precision. On a standard CIFAR-10 model, while CR-IBP failed to prove any properties, GPUPoly successfully verified over 4,500.
Discussion and Conclusion
The success of GPUPoly highlights that sparsity is a critical factor in scaling formal verification. By formalizing "dependence sets," the authors demonstrate that the computationally "heavy" process of propagating linear constraints can be made millisecond-fast.
While GPUPoly is a significant leap forward, it relies on the DeepPoly relaxation, which is an inexact method. Consequently, it provides a sufficient but not necessary proof; it may fail to prove robustness for some models that are actually robust. Future work may involve extending support to more complex architectures like Transformers or integrating GPUPoly directly into the training loop to produce certifiably robust models more efficiently.
Paper Metadata: * Title: Scaling Polyhedral Neural Network Verification on GPUs * Authors: Christoph Müller, François Serre, Gagandeep Singh, Markus Püschel, Martin Vechev * Venue: MLSys 2021
Summary updated