Improving the Branch and Bound Algorithm for Neural Network Verification via Lagrangian DecompositionImproved Branch and Bound for Neural Network Verification via Lagrangian Decomposition
The authors propose BaDNB, a neural network verification framework based on Lagrangian Decomposition, and claim that on the OVAL dataset it reduces average verification time by up to 50 times.
- Neural networks in safety-critical scenarios require formal verification of their input-output properties, but existing complete verifiers are either computationally expensive or have overly loose bounds, making it difficult to scale to larger convolutional networks.
- The authors use Lagrangian Decomposition to re-derive the dual bounding problem, give two GPU-parallelizable solvers, supergradient and proximal, and propose the Filtered Smart Branching branching strategy, combining them into the BaDNB framework.
- On CIFAR-10 robustness verification on OVAL and COLT, BaDNB's average verification time is lower than Gurobi BaBSR, MIP, ERAN, nnenum, and VeriNet; the authors claim up to 50 times speedup relative to prior complete verification systems.
- In the Discussion, the authors state that Lagrangian Decomposition is expected to extend to tighter MIP relaxations, and that branching and intermediate bounds could further use stronger solvers; the experiments cover only 5 ReLU convolutional networks on CIFAR-10 and the l∞ robustness property.
- Threat model
- The verification goal is the robustness of feedforward neural networks to l∞-norm adversarial perturbations: given an input domain C and a property P, determine whether there exists an input that makes P false. The attacker can control the input perturbation, and the victim system is a ReLU convolutional network; the paper does not use terms such as white-box/black-box to describe the threat model.
- Evaluated models
- BaseWideDeep2/2558/255
- Benchmarks
- OVALCOLTCIFAR-10
- Metrics
- 平均验证时间平均子问题数%TimeoutPlanet optimality gap
The researchers propose the BaDNB framework to improve Branch and Bound (BaB) verification of neural networks; the paper claims it reduces average verification time by up to 50 times on adversarial robustness properties, substantially outperforming previous complete verification systems. BaDNB (Branch and Dual Network Bound)'s bounding algorithm is based on Lagrangian decomposition, restricting the optimization to the dual domain to guarantee a subspace containing the optimal solution, accelerating convergence, and can be implemented with large-scale parallelism on GPUs using modern deep learning frameworks. Its activation-based branching strategy combines cheap heuristics with fast dual bounds, greatly reducing the size of the BaB tree compared with previous heuristic methods, achieving performance comparable to recent learning-based strategies without their high offline training cost.
Paper analysis
What problem does this paper attempt to solve?
Improve the scalability of Branch and Bound complete neural network verification so that it can be used for larger convolutional networks.
Core problem: how to improve the scalability of Branch and Bound (BaB) neural network complete verification so that it can prove input-output properties of larger networks.
- Application scenario: The authors argue that before deep learning systems are deployed in safety-critical scenarios, techniques are needed that can formally prove their behavior; a key property is adversarial robustness, i.e., no adversarial example exists within the input neighborhood.
- Shortcomings of existing methods: The authors state that prior bound algorithms are either computationally expensive (e.g., solving convex hull relaxations with Gurobi) or sacrifice tightness for speed (e.g., propagation-based methods), leading to overly loose bounds; although BaBSR can scale to medium-sized convolutional networks, the authors hope to further improve its design to scale to larger networks.
- Core observation: The authors propose replacing the previous Lagrangian relaxation with Lagrangian Decomposition, restricting the dual optimization to a subspace guaranteed to contain the optimal solution, thereby accelerating convergence; at the same time, cheap heuristics plus fast dual bounds are used to improve branching decisions.
- Paper contributions: Two bound solvers (Supergradient, Proximal), a new activation branching strategy Filtered Smart Branching (FSB), integrated into a GPU-accelerated complete verification framework BaDNB.
- Verification task setup:
- Goal: prove or disprove the network's robustness to l∞-norm adversarial perturbations.
- Victim system: ReLU feedforward/convolutional networks (OVAL's Base, Wide, Deep; COLT's 2/255, 8/255).
- Input domain: l∞ perturbation balls around CIFAR-10 test images, with radius ε_ver set per dataset.
- Decision: the sign of the network output minimum in canonical form; if the lower bound is positive, the property holds.
What related research exists?
Related work is divided into three categories: BaB frameworks for complete verification, bound algorithms for incomplete verification, and branching strategies.
Complete verification and the BaB framework
- Bunel et al. (2018, 2020b)—unified various complete verification methods as branch and bound and proposed BaBSR; the authors state that it outperforms prior complete verifiers on several standard datasets (Katz et al., 2017; Wang et al., 2018b; Tjeng et al., 2019), and this paper improves on its framework.
- Reluplex (Katz et al., 2017), Planet (Ehlers, 2017), MIP (Tjeng et al., 2019), ReLUVal/Neurify (Wang et al., 2018a,b)—complete verification routes such as SMT, convex hull LP, and mixed integer programming, which the authors regard as instances of BaB.
Bound algorithms for incomplete verification
- Propagation-based methods: Wong and Kolter (2018), Weng et al. (2018), Singh et al. (2018), CROWN (Zhang et al., 2018), Singh et al. (2019b)—solve a linear relaxation with only two constraints per activation, fast but with loose bounds; Salman et al. (2019) show they are equivalent to evaluating at some suboptimal dual point.
- IBP (Gowal et al., 2018; Mirman et al., 2018)—interval propagation, looser but faster.
- Dvijotham et al. (2018)—directly takes the dual of the non-convex problem and solves it with a supergradient method, and is the direct precursor of this paper's dual formulation; the authors prove that under ReLU networks this paper's dual produces bounds at least as tight (Theorem 2).
- Tighter relaxations: the SDP of Raghunathan et al. (2018), the MIP relaxation of Anderson et al. (2020)—the authors note that their number of variables is quadratic or their number of constraints is exponential, and this paper does not handle them.
Branching strategies
- Input domain splitting: Wang et al. (2018a), Bunel et al. (2018), Royo et al. (2019); Smart Branching (Bunel et al., 2018) approximates strong branching with WK bounds.
- Activation splitting: Ehlers (2017), Katz et al. (2017), Wang et al. (2018b); BaBSR's Smart ReLU (SR) branching (Bunel et al., 2020b)—the authors state that on convolutional networks with about one thousand neurons, activation splitting outperforms input splitting.
- GNN learned branching (Lu and Kumar, 2020)—uses a graph neural network to imitate strong branching; the authors state that FSB can compete with it without its offline training cost.
Baselines and benchmarks: complete verification is compared against MIP, Gurobi BaBSR, Proximal BaBSR, ERAN, nnenum, VeriNet; the benchmarks are OVAL (the CIFAR-10 subset of Lu and Kumar, 2020) and COLT (two larger networks trained by Balunovic and Vechev, 2020). The authors position this paper as improving bounds, branching, and intermediate bound computation simultaneously within the BaBSR framework, in order to expand the applicable scale of complete verification.
How does the paper address this problem?
Derive a new dual using Lagrangian Decomposition and give two parallelizable solvers, then combine with the FSB branching strategy to form BaDNB.
Overall approach: formulate neural network verification as a minimization problem, use Lagrangian Decomposition to construct a new dual, design two GPU-parallelizable dual solvers (Supergradient, Proximal) as bound subroutines for BaB, and propose the Filtered Smart Branching (FSB) branching strategy, integrated into the framework BaDNB.
Problem setup and formalization
- Verification problem (f, C, P): x0 ∈ C and xd = f(x0) imply P(xd); when P is a Boolean formula of linear inequalities, f and P can be merged into a canonical-form network fP, and verification reduces to the sign of the minimum of problem (1).
- Problem (1) is NP-HARD because the activation constraints (1c) are non-convex; incomplete verification approximates it by computing a lower bound on the minimum.
- Core dual: q(ρ) = minx,x̂ x̂A,n + ∑k=1n−1 ρkT (x̂B,k − x̂A,k), subject to the subproblems P0, Pk; the meaning is to group each layer's activations with the following linear layer as one constraint set, duplicate variables and use dual variables ρ to enforce consistency among the copies, and any ρ gives a valid lower bound.
Supergradient solver (§3.2)
- At a point ρ, the inner minimization decomposes completely over the constraint subsets: the P0 subproblem reduces to optimizing a linear function over C (closed-form solutions for both the l∞ box and the l2 ball); the Pk subproblem has a closed-form solution for ReLU, requiring only taking the minimum over the three vertices of the convex hull triangle.
- The supergradient is x̂*B − x̂*A, updated by ρ ← ρ + α∇q, and Adam can be used; Algorithm 1 gives the procedure.
Proximal solver (§3.3)
- Proximal maximization of the dual function q yields the method of multipliers (Augmented Lagrangian Method): alternating between the dual update ρ ← ρ + (x̂B − x̂A)/η and the primal variable update.
- The primal subproblem (19) is strongly convex but has no closed-form solution; Frank-Wolfe (conditional gradient) is used to perform block-coordinate updates layer by layer, and a closed form for the optimal step size γk* per layer is given (Equation 21); Appendix D gives the momentum-accelerated dual update.
Relation to the old dual (§3.4)
- Proposition 1: under ReLU, the dual in this paper and the dual of Dvijotham et al. (2018) take the same value at the optimum, both equal to the optimal value of the convex hull relaxation (7).
- Theorem 2: under ReLU, for any dual point (µ, λ), q(µ) ≥ d(µ, λ), i.e., the bound of this paper's dual is at least as tight; geometrically this amounts to restricting the dual space to a subset that always contains the optimal solution.
- Proposition 3: the outputs of propagation-based algorithms (CROWN, WK) can be used to initialize both duals, at the cost of one backward pass.
Filtered Smart Branching (§4)
- First, a single backward pass computes the improvement score sFSB (replacing the max in the SR score with min, to balance the two subproblems) and the backup score tSR, taking one candidate per layer to form a candidate set DFSB of size O(n).
- For the candidates, a fast dual bound algorithm AFSB (taking the tighter of CROWN and WK) computes the post-split lower bound, and the activation to split on is chosen by the max-min criterion (Equation 25).
BaDNB framework details (§5)
- Intermediate bounds: take the per-layer optimum of CROWN and WK, computed only once at the root of the BaB tree (WK + CROWN @root), not updated at each split.
- Dynamic tightness: maintain an exponential moving average of the lower-bound improvement between parent and child; when the estimated gain from additional iterations (normalized by runtime) exceeds the branching improvement, raise the number of Proximal iterations from ATj to ATj+1.
- Upper bound: evaluate the network at the last computed inner minimization solution x0.
- Implementation: all computations are network forward/backward-pass-style linear algebra, implemented in PyTorch, solving hundreds of subproblem bounds in parallel in batches on GPU (in the experiments B ranges from 100 to 1600, with up to about 45000 bound computations simultaneously).
What experiments did the paper conduct?
Incomplete verification compares bound tightness versus speed; complete verification ablates each component on OVAL and COLT and compares with five complete verifiers.
Experimental setup
- Verified networks: Three ReLU convolutional networks from the OVAL dataset (Table 1): Base (3172 activations), Wide (6244), Deep (6756), trained with adversarial training of Wong and Kolter (2018); two larger networks from the COLT dataset (Table 2): 2/255 (16643 activations) and 8/255 (49411), trained with COLT.
- Verified properties: l∞ robustness on CIFAR-10 test images; for OVAL, 100 properties per network, with ε_ver determined by binary search; for COLT, the first 100 images in the test set that were not misclassified (82 for 2/255, 56 for 8/255), with ε_ver fixed to the training radius.
- Incomplete verification setup (§7): Wide architecture networks, Madry adversarial training (ε_train = 8/255), verification ε_ver = 12/255; metrics are runtime and Planet optimality gap (gap relative to the Gurobi optimal solution); iteration counts are matched at equal average runtime (e.g., 260 steps DSG+, 185 steps Supergradient, 100 steps Proximal; higher budgets 1040/740/400 steps).
- Complete verification setup (§8): time limit 1 hour, timeouts counted as 1 hour; metrics are average verification time, average number of subproblems, %Timeout; dual methods run on a single Nvidia Titan Xp GPU, Gurobi on a 6-core i7-6850K CPU.
- Baselines: incomplete verification compared against IBP, WK, CROWN, DSG+, Dec-DSG+, Gurobi Planet, Gurobi-TL; complete verification compared against MIP, Gurobi BaBSR, Proximal BaBSR, ERAN, nnenum, VeriNet (the latter three on COLT taken from VNN-COMP, with a 5-minute time limit).
- Number of repetitions: the paper does not report the number of repeated experiments; hyperparameters were tuned on a small subset of the CIFAR-10 test set.
Main results
Complete verifier comparison (according to Figure 7(a) and Figure 8(a); values are average time [s] / %Timeout):
Swipe horizontally to read the table
Method Base Wide Deep 2/255 8/255 BaDNB 309.30 / 7.00 165.54 / 4.00 10.50 / 0.00 211.06 / 4.88 667.29 / 14.29 Proximal BaBSR 808.62 / 20.00 498.69 / 10.00 206.54 / 3.00 842.00 / 21.95 1249.02 / 33.93 Gurobi BaBSR 1352.15 / 25.00 1236.54 / 17.00 782.84 / 7.00 1313.88 / 25.61 1461.48 / 35.71 MIP 2582.30 / 57.00 1702.88 / 38.00 1831.44 / 25.00 1353.07 / 25.61 1611.46 / 37.50 ERAN 805.89 / 5.00 632.12 / 9.00 545.72 / 0.00 1136.76 / 28.05 1541.98 / 41.07 nnenum not reported not reported not reported 1081.02 / 29.27 1431.46 / 39.29 VeriNet not reported not reported not reported 845.57 / 23.17 1225.24 / 33.93 - The authors claim BaDNB has the shortest average time on all five networks, with the speedup relative to Proximal BaBSR reaching an order of magnitude on Deep; the abstract claims up to 50 times speedup relative to prior complete verification systems.
- The authors claim MIP is the slowest, indicating that black-box MIP solvers are unsuitable; Gurobi BaBSR is limited by Gurobi's scalability.
- Exception: on OVAL, ERAN's %Timeout on Base (5.00) and Deep (0.00) is lower than BaDNB's (7.00; on Deep, 0.00 is tied), but its average time is longer; the authors give no explanation for this.
Bound algorithm comparison (§7, §8.2)
- What was measured: under incomplete verification, the runtime and Planet optimality gap distribution of each bound algorithm (Figure 2, 3); under complete verification, the effect of replacing the BaBSR bound algorithm (Figure 4).
- Results: The point-by-point comparison in Figure 3 shows that Supergradient's bounds are consistently better than DSG+; Proximal's average bounds are better than Supergradient's, and the heavy tail of the optimality gap distribution leans toward tighter bounds. In complete verification (Figure 4(a)), on the Deep network Proximal averages 206.54 s, Gurobi Planet 782.84 s, WK + CROWN 2055.09 s (53.00% timeout).
- Authors' interpretation: actually solving the relaxation is worth more than a one-shot approximation; the dual method's runtime overhead relative to CROWN is about three orders of magnitude, but the tightness gain is critical for complete verification; the Lagrangian Decomposition dual is better than the dual of Dvijotham et al. (2018), consistent with Theorem 2.
Branching strategy comparison (§8.3)
- What was measured: with the Proximal bound fixed, four branching strategies SR, mSR, GNN, FSB were compared (Figure 5).
- Results: FSB's average time is 546.22 s on Base, 247.13 s on Wide, 32.29 s on Deep, all lower than SR (822.61 / 524.24 / 234.23 s) and GNN (633.71 / 274.57 / 88.43 s); FSB also has the fewest average subproblems (1702.02 on Deep, versus 3959.28 for GNN).
- Authors' interpretation: FSB's speedup relative to SR ranges from about 35% on Base to an order of magnitude on Deep; compared with GNN, FSB requires no offline training cost. Exception: mSR on Deep (256.17 s) is slower than SR (234.23 s), which the authors explain as mSR tending to branch at earlier layers, increasing the cost of computing intermediate bounds.
Other ablations and analyses
- Intermediate bounds (Figure 6(a), Proximal + FSB): on Deep, IBP + WK 31.46 s, WK + CROWN 17.95 s, WK + CROWN @root 11.41 s; @root has more subproblems but the shortest total time.
- Dynamic iterations (§8.5.1): on Wide, BaDNB (309.30 s for Base; 165.54 s for Wide) further reduces average time by about 40% relative to fixed-iteration WK + CROWN @root (230.30 s).
- Appendix E: on the SGD-trained network (ε_verif = 5/255) the conclusions are consistent with the main text, and the authors state that the advantage of the Lagrangian Decomposition dual over DSG+ is more pronounced than on adversarially trained networks.
- Hardware differences: the ERAN, nnenum, VeriNet results on COLT are taken from VNN-COMP, with CPU and 5-minute time limit different from the authors' setup (marked with ∗ in Figure 8(a)).
What are some points that can be further explored?
The authors propose using decomposition for tighter relaxations and stronger solvers at branching and intermediate bounds; experiments are limited to 5 ReLU networks on CIFAR-10.
Limitations and future directions noted by the authors
- Discussion: The authors believe Lagrangian Decomposition has the potential to extend to tighter relaxations in the Mixed Integer Linear Programming literature (Sherali and Adams, 1994); this paper only handles the convex hull of element-wise activation functions.
- Discussion: The authors believe that selectively using the Lagrangian Decomposition solver for branching decisions and intermediate bound tightening could further improve verification performance; in this paper, to control cost, only cheap algorithms were used for these components.
- §3.1, Appendix C: The derivation uses ReLU as an example; the authors state it can be extended to other nonlinearities, and Appendix C gives the sigmoid case, but the main experiments only cover ReLU.
- The paper has no dedicated Limitations section; the above comes from the Discussion and the method section.
Experimental coverage
- 5 networks were verified in total: OVAL's Base, Wide, Deep (WK adversarial training) and COLT's 2/255, 8/255 (COLT training), all ReLU convolutional networks on CIFAR-10 (Table 1, 2).
- The verified property is only l∞-norm adversarial robustness; incomplete verification additionally includes one Madry-trained network (ε_ver = 12/255) and one SGD-trained network (ε_verif = 5/255, Appendix E).
- Complete verification is compared against MIP, Gurobi BaBSR, Proximal BaBSR, ERAN, nnenum, VeriNet; among these, the ERAN, nnenum, VeriNet numbers on COLT are taken from VNN-COMP, with a 5-minute time limit and different hardware.
- The time limit for each verified property is 1 hour, and timeouts are counted as 1 hour in the average; the paper does not report the number of repeated runs or variance.
- The paper does not report complete verification experiments of BaDNB on other activations such as sigmoid, nor complete verification results for other perturbation norms such as l2 (§3.2.1 gives a closed-form solution for the l2 ball but no complete verification experiments were done).
Summarize the main content of the paper
BaDNB uses Lagrangian Decomposition duality and FSB branching to accelerate complete verification, and the authors claim a speedup of up to 50×.
A paper on a complete neural network verification method: addressing the difficulty of scaling Branch and Bound verifiers to larger convolutional networks, it improves BaBSR in both bound algorithms and branching strategy, forming the GPU-accelerated framework BaDNB.
- Problem: prove the robustness of ReLU networks to l∞ adversarial perturbations; prior bound algorithms either solve convex hull LPs with Gurobi (slow) or use propagation-based approximations (loose).
- Method: derive a new dual using Lagrangian Decomposition, prove that under ReLU its bound is at least as tight as the dual of Dvijotham et al. (2018) (Theorem 2), and that it can be initialized with propagation-based methods such as CROWN (Proposition 3); give two batch-parallelizable solvers, Supergradient and Proximal; for branching, propose FSB, which filters candidates with an improved SR score and then approximates strong branching with fast dual bounds; intermediate bounds use WK + CROWN and are computed only at the root, and the number of Proximal iterations is adjusted dynamically.
- Incomplete verification: on CIFAR-10, Supergradient's bounds are consistently better than DSG+, and Proximal is tighter on average (Figure 2, 3).
- Main complete verification results: on OVAL Deep, BaDNB averages 10.50 s with 0.00% timeout, Proximal BaBSR is 206.54 s, Gurobi BaBSR is 782.84 s (Figure 7(a)); on COLT 8/255, BaDNB is 667.29 s, VeriNet 1225.24 s, ERAN 1541.98 s (Figure 8(a)).
- Branching ablation: FSB has lower average time and fewer subproblems than SR and GNN learned branching on all three OVAL networks (Figure 5(a)).
- Authors' conclusion: the authors claim BaDNB reduces average verification time by up to 50 times relative to prior complete verification systems, and believe Lagrangian Decomposition can potentially extend to tighter MIP relaxations.