CLAD: Constrained Abstract Domain for Neural Network Verification
Organizations: Department of Computer Science George Mason University Fairfax, VA, USA · Unaffiliated Yokosuka, Japan
Abstract
Neural network verification (NNV) formally verifies that a network satisfies a specified property for all inputs within a defined region. Modern NNV tools employ abstract domains to compute a sound over-approximation of the network's behavior from the given input region, thus the tightness of these abstractions essentially determines efficiency. A long line of increasingly precise domains has been developed, but they all describe the valid input region in the same restrictive way, e.g., an Lp-norm ball. A practical input region is rarely a simple Lp ball, but rather a combination Lp ball with additional constraints. Verifying a network over such a region with existing abstraction produces a loose over-approximation, which results in either failing to verify a property or spurious counterexamples. We introduce Constrained Lagrangian Abstract Domain (CLAD), a new abstract domain that computes a sound over-approximation of neural networks over input regions defined by a combination of convex constraints. CLAD propagates these constraints and tightens bounds over the true feasible region. However, bounding a neuron over the intersection of these constraints has no closed-form solution, so CLAD relaxes each constraint into the objective with a Lagrange multiplier and solves the resulting max-min problem with a projected primal-dual method, alternating a projected gradient step on the input with a multiplier update. CLAD supports any convex constraint with a subgradient, e.g., from automatic differentiation. We evaluate CLAD on 1,944 instances across four convolutional networks with motion-blur structured perturbations with halfspace or L2-ball constraints. On standard unconstrained Linf property, CLAD verifies as many instances as GCPCROWN at a similar runtime. On constrained properties, CLAD verifies 60% more instances than GCPCROWN on L2-ball properties, and 22% more in total.
Figures & tables
| Network | Ibp | Zonotope | Crown / DeepPoly | -Crown | Sdp-Crown | Gcp-Crown | Clad | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Verified | Time | Verified | Time | Verified | Time | Verified | Time | Verified | Time | Verified | Time | Verified | Time | |
| ConvSmall (M) | 0 | 0.00 | 216 | 0.00 | 264 | 0.04 | 297 | 4.94 | 297 | 14.24 | 300 | 18.81 | 358 | 19.23 |
| ConvSmall (C) | 0 | 0.00 | 222 | 0.00 | 270 | 0.04 | 312 | 5.24 | 312 | 15.59 | 315 | 28.77 | 375 | 22.55 |
| ConvDeep | 0 | 0.00 | 198 | 0.00 | 243 | 0.06 | 300 | 8.35 | 303 | 22.64 | 306 | 35.95 | 354 | 38.77 |
| ConvLarge | 0 | 0.00 | 0 | 0.10 | 0 | 0.20 | 18 | 30.78 | 18 | 63.70 | 18 | 72.37 | 59 | 78.05 |