Lagrangian Decomposition for Neural Network Verification
About
A fundamental component of neural network verification is the computation of bounds on the values their outputs can take. Previous methods have either used off-the-shelf solvers, discarding the problem structure, or relaxed the problem even further, making the bounds unnecessarily loose. We propose a novel approach based on Lagrangian Decomposition. Our formulation admits an efficient supergradient ascent algorithm, as well as an improved proximal algorithm. Both the algorithms offer three advantages: (i) they yield bounds that are provably at least as tight as previous dual algorithms relying on Lagrangian relaxations; (ii) they are based on operations analogous to forward/backward pass of neural networks layers and are therefore easily parallelizable, amenable to GPU implementation and able to take advantage of the convolutional structure of problems; and (iii) they allow for anytime stopping while still providing valid bounds. Empirically, we show that we obtain bounds comparable with off-the-shelf solvers in a fraction of their running time, and obtain tighter bounds in the same time as previous dual algorithms. This results in an overall speed-up when employing the bounds for formal verification. Code for our algorithms is available at https://github.com/oval-group/decomposition-plnn-bounds.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Verified Robustness | MNIST (test) | Robustness Score33.2 | 25 | |
| Formal Verification | MNIST FFNet first 1000 images (val) | Relative Verification Bound-6.5 | 13 | |
| Formal Verification | MNIST Deep first 1000 images (val) | Relative Verification Bound-11.5 | 13 | |
| Neural Network Verification | MNIST Deep | Time2.5 | 13 | |
| Neural Network Verification | MNIST Wide | Execution Time1.5 | 13 | |
| Neural Network Verification | CIFAR-10 Deep | Verification Time (s)94.69 | 12 | |
| Neural Network Verification | CIFAR-10 Base | Verification Time (s)662.2 | 12 | |
| Neural Network Verification | CIFAR-10 Wide | Verification Time (s)280.4 | 12 | |
| Formal Verification | MNIST Wide first 1000 images (val) | Relative Verification Bound-5.4 | 7 | |
| Neural Network Verification | MNIST FFNet (val) | Execution Time (s)5.2 | 7 |