Skip to content

The Convex Relaxation Barrier to Tight Neural Network Robustness VerificationA Convex Relaxation Barrier to Tight Robustness Verification of Neural Networks

arXiv· arXiv:1902.08722· Hadi Salman, Greg Yang, Huan Zhang, Cho-Jui Hsieh, Pengchuan ZhangMicrosoft Research AI; UCLAIndexed by this site · 24 days ago· Originally publishedSelected DefensesSelectedAttention40

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

The authors unify existing LP relaxation neural network verifiers and, through experiments exceeding 22 CPU years, find that the optimal layer-wise convex relaxation still cannot close the gap with the PGD upper bound.

Questions
In neural network robustness verification, exact verifiers are NP-complete and difficult to scale, while efficient relaxation verifiers are incomplete. The authors ask: can tight verification results be obtained through faster and more accurate layer-wise convex relaxation alone?
Methods
The authors propose a layer-wise convex relaxation framework that unifies the primal and dual perspectives of existing LP relaxation verifiers, and prove that the three are subject to the same theoretical upper bound; they then use LP-ALL to exactly solve the optimal convex relaxation within this framework on ReLU networks.
Experiments and results
On normally and robustly trained networks on MNIST and CIFAR-10, LP-ALL's improvement over LP-GREEDY is limited: the ε lower bound is still 1.5–5 times smaller than the PGD upper bound (MNIST) or 1.5–2 times smaller (CIFAR-10), and the robust error upper bound does not noticeably close the gap.
Limitations and future work
The authors point out that the relaxation loses correlations among neurons in the same layer over the box domain, that layer-by-layer recursive bound computation accumulates error, and that each relaxation of an unstable ReLU neuron incurs loss (Appendix A); the experiments cover only ReLU feedforward networks and MNIST/CIFAR-10, and ε-search uses only 10 samples per dataset.
Experimental setupMNIST、CIFAR-10 · robust error 的上下界、minimum adversarial distortion ε 的上下界 et al.
Benchmarks
MNISTCIFAR-10
Metrics
robust error 的上下界minimum adversarial distortion ε 的上下界median percentage gap
AI summaryand selection rationaleResearchers propose a unified layer-wise convex relaxation framework that incorporates existing LP-relaxation-based neural network robustness verification methods (covering both primal and dual perspectives) into a single system, and prove that they are subject to the same barrier. The authors invest more than 22 CPU years on a cluster of 1000 CPU nodes to exactly solve the optimal convex relaxation LP-all under this framework for ReLU networks on MNIST and CIFAR-10; the results are only slightly better than Wong and Kolter's LP relaxation dual method, and cannot significantly narrow the gap with the PGD attack estimate. On MNIST, the certified lower bounds on minimum adversarial perturbation for conventionally trained or PGD adversarially trained networks are 1.5 to 5 times smaller than the PGD upper bounds, the gap for networks trained with the LP relaxation dual objective is less than 1.5 times, and on CIFAR-10 it is 1.5 to 2 times for each model. The authors discuss possible sources of the barrier (such as box-domain relaxation and layer-wise recursive bound computation) and directions for bypassing it (such as combining with branch and bound); the code and models are open-sourced at github.com/Hadisalman/robust-verify-benchmark.

Researchers propose a unified layer-wise convex relaxation framework that incorporates existing LP-relaxation-based neural network robustness verification methods (covering both primal and dual perspectives) into a single system, and prove that they are subject to the same barrier. The authors invest more than 22 CPU years on a cluster of 1000 CPU nodes to exactly solve the optimal convex relaxation LP-all under this framework for ReLU networks on MNIST and CIFAR-10; the results are only slightly better than Wong and Kolter's LP relaxation dual method, and cannot significantly narrow the gap with the PGD attack estimate. On MNIST, the certified lower bounds on minimum adversarial perturbation for conventionally trained or PGD adversarially trained networks are 1.5 to 5 times smaller than the PGD upper bounds, the gap for networks trained with the LP relaxation dual objective is less than 1.5 times, and on CIFAR-10 it is 1.5 to 2 times for each model. The authors discuss possible sources of the barrier (such as box-domain relaxation and layer-wise recursive bound computation) and directions for bypassing it (such as combining with branch and bound); the code and models are open-sourced at github.com/Hadisalman/robust-verify-benchmark.

Why it was selectedThe paper unifies existing LP-relaxation verification methods into a convex relaxation framework, and uses 22 CPU years of experiments to show that even the optimal solution struggles to significantly narrow the gap with the PGD attack estimate.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors ask: can tighter neural network robustness verification be achieved with more precise layer-wise convex relaxations alone? The answer is no.

    Core question: does the broad class of efficient neural network verification methods based on layer-wise convex relaxation have a tightness barrier that cannot be overcome by improving relaxation precision?

    • Problem setting: verifying the robustness of neural networks to adversarial perturbations, i.e., lower-bounding the difference in Equation (1) between the true-class logit and the other-class logits. Exact verifiers (MILP, SMT) are difficult to scale because the problem is NP-complete, while relaxation verifiers are efficient but incomplete.
    • Shortcomings of existing methods (as stated in the paper): many relaxation verifiers have been proposed from the primal perspective (abstract transformers, linear outer bounds, IBP) or the dual perspective (Wong & Kolter, Dvijotham et al.), but the relationship between them is unclear, and none of them gives tight bounds.
    • Core observation: the authors argue that all these LP relaxation verifiers can be unified into a layer-wise convex relaxation framework, whose performance is limited by the theoretical upper limit of the "optimal layer-wise convex relaxation" within that framework.
    • Contributions of the paper: first, it proposes a unified framework and proves that the primal relaxation, the dual of the relaxation problem, and the dual of the original problem are all subject to the same upper limit; second, through large-scale experiments exceeding 22 CPU years, it exactly solves the optimal convex relaxation (LP-ALL) on ReLU networks and finds that it improves only marginally over existing methods, on which basis the authors argue that an inherent convex relaxation barrier exists.
  2. What related research exists?

    Related work is divided into three groups: exact verifiers, primal/dual relaxation verifiers, and methods outside the framework; the comparison baselines are LP-GREEDY, PGD and MILP.

    Exact verifiers

    • Reluplex (SMT) of Katz et al. [2017] and MILP methods such as Cheng et al. [2017] and Tjeng et al. [2019] — solve the verification problem exactly, but are difficult to scale because it is NP-complete; the paper notes that Reluplex takes several hours to find the minimum perturbation for a single sample on a small network with 300 neurons.
    • Tjeng et al. [2019] — use MILP to exactly verify medium-scale networks; the paper notes that their verification time is sensitive to the training method, being fast for networks trained the Wong & Kolter way and much slower for normally trained networks. Xiao et al. [2019] accelerate MILP through training, but the paper notes that this sacrifices network performance.

    Relaxation verifiers (the objects unified in this paper)

    • Primal perspective: abstract transformers (AI2 [Gehr et al., 2018], DeepZ/DeepPoly [Singh et al., 2018, 2019b]), linear outer bounds (CROWN [Zhang et al., 2018], Fast-Lin [Weng et al., 2018], Neurify [Wang et al., 2018b]), IBP [Gowal et al., 2018]. The paper notes that Fast-Lin/DeepZ/Neurify require the upper and lower bounds to have the same slope (zonotope), and that CROWN/DeepPoly relax this restriction and obtain better results.
    • Dual perspective: the LP relaxation dual of Wong and Kolter [2018] and the original-problem dual of Dvijotham et al. [2018b]. The paper proves that both are equivalent to the optimal primal relaxation (Theorem 4.2, Corollary 4.3).

    Methods outside the framework

    • The SDP relaxation of Raghunathan et al. [2018b] — not within the framework; the paper notes that it is difficult to generalize to general nonlinearities such as max-pooling, whereas the framework in this paper can.
    • Verification based on local Lipschitz constants and randomized smoothing certification — the paper explicitly states these are outside the scope of the framework; hybrid methods (branch-and-bound combined with relaxation) are also not discussed in this paper.

    Baselines and benchmarks: the experiments compare LP-GREEDY (the greedy dual algorithm of Wong & Kolter [2018]), LP-LAST (an intermediate variant), the PGD attack [Madry et al., 2017], and MILP [Tjeng et al., 2019], on the MNIST and CIFAR-10 datasets.

    The authors position this paper as: providing a unified view of existing relaxation verifiers and using experiments to answer whether "this path is viable," with a negative conclusion.

  3. How does the paper address this problem?

    Proposes a unified layer-wise convex relaxation framework and proves primal/dual equivalence, then uses LP-ALL to exactly solve the optimal relaxation for large-scale empirical testing.

    The overall approach has two steps: first unify all LP relaxation verifiers into a layer-wise convex relaxation framework and characterize its theoretical upper bound, then exactly solve that upper bound (LP-ALL) and compare it empirically with existing methods.

    Problem setting and formalization

    • The verification target is Eq. (1): whether, within the input neighborhood Sin(x), the minimum of the difference between the true-class logit and the other-class logits is positive. Sin(x) is assumed to be a convex set (e.g., an l∞ ball), and the network is an L-layer feedforward network, extensible to convolutions and skip connections.
    • Define optimization problem (O): minimize c⊤ x(L) + c0 over the domain D constrained by pre-activation bounds z(l) ≤ z(l) ≤ z̄(l); choosing appropriate c, c0 makes it equivalent to Eq. (1). Solving (O) recursively layer by layer yields the pre-activation bounds for each layer.

    Convex relaxation from the primal perspective

    • Relax the non-convex equality constraint x(l+1)=σ(l)(z(l)) into the convex inequalities σ̲(z) ≤ x(l+1) ≤ σ̄(z), yielding convex problem (C), whose optimal value p*C ≤ p*O.
    • Optimal layer-wise convex relaxation: σ̲opt is the largest convex function dominated by σ, and σ̄opt is the smallest concave function dominating σ; under the non-interactive assumption this is the convex hull of that layer's nonlinear constraint. Figure 2 gives the optimal relaxation shapes for tanh, ReLU, step and max; Ehlers' ReLU relaxation (Eq. 4) is optimal, while the MaxPool relaxation (Eq. 5) is not.
    • When each layer has only one linear upper bound and one linear lower bound (Eq. 7), (C) can be solved greedily layer by layer, covering Fast-Lin, DeepZ, Neurify, CROWN and DeepPoly.

    Dual perspective and equivalence

    • Theorem 4.1: when σ̲ and σ̄ have finite Lipschitz constants, strong duality holds between (C) and its Lagrangian dual (independent of the Slater condition; proof in Appendix E).
    • Theorem 4.2: under the non-interactive assumption, the dual lower bound d*O of the original problem (O) equals the dual lower bound d*Copt of the optimal relaxation problem; Corollary 4.3 further gives p*Copt = d*O, applicable to ReLU, step, ELU, sigmoid, tanh, polynomials and non-overlapping max pooling. The authors state that this shows the three relaxations are blocked by the same barrier.
    • The dual greedy algorithm (Eqs. 47–48) can exactly reproduce the algorithm of Wong & Kolter [2018], and degenerates to Fast-Lin or CROWN under specific slope choices.

    LP-ALL: exactly solving the optimal relaxation

    • For ReLU networks, (C) with Eq. (4) is an LP. LP-ALL has two steps: (A) solve one LP per neuron to obtain the tightest pre-activation bounds; (B) solve one LP per non-true class in the final layer, and if all solutions are positive, certify robustness.
    • Each LP is independent; the authors solve them in parallel on a cluster of 1000 CPU nodes, modeling LPs with CVXPY and solving with ECOS. Comparison variants are LP-GREEDY (both bounds and final LP solved greedily) and LP-LAST (bounds greedy, final LP solved exactly).
  4. What experiments did the paper conduct?

    On MNIST/CIFAR-10, the bounds on robust error upper and lower bounds and on the minimum adversarial perturbation ε were measured; LP-ALL's improvement is limited and does not close the gap with PGD.

    Experimental setup

    • Networks tested: all are ReLU feedforward networks. The robust error experiments use MLP-A (1 hidden layer, 500 neurons) and MLP-B (2 hidden layers, 100 neurons each); the ε-search experiments use CNN-SMALL, CNN-WIDE-K (K=1,2,4,8), CNN-DEEP-K (K=1,2), MLP-[9]-500, MLP-[9]-100, MLP-[2]-100 (Appendix I.1).
    • Training methods: NOR (ordinary cross-entropy), ADV (PGD adversarial training), LPD (Wong & Kolter dual robust training); in ε-search, ADV/LPD networks are trained on MNIST with ε=0.1 and on CIFAR-10 with 8/255.
    • Comparison methods: upper bounds (certified robustness) use LP-ALL, LP-GREEDY, MILP; lower bounds (finding adversarial examples) use PGD, MILP. MILP time limit is 3600 seconds.
    • Metrics: upper and lower bounds on robust error (Table 1); upper and lower bounds on the minimum adversarial perturbation ε and the median percentage gap (Tables 2, 3; gap is defined as (εPGD − εLP-X)/εPGD × 100).
    • Sample size: the robust error experiments use the entire MNIST test set; ε-search uses only 10 samples per dataset because LP-ALL is expensive. Total computation exceeds 22 CPU years.

    Main results

    Table 1 (robust error bounds on the MNIST test set, excerpt):

    Swipe horizontally to read the table

    NetworkεPGD lower boundMILP upper boundLP-ALL upper boundLP-GREEDY upper bound
    ADV-MLP-B0.034.17%5.78%10.04%13.40%
    ADV-MLP-B0.115.86%34.37%61.59%71.34%
    NOR-MLP-B0.0320.37%48.67%65.70%75.85%
    NOR-MLP-B0.0553.37%94.04%97.95%99.39%
    LPD-MLP-B0.113.39%14.45%17.24%18.32%
    LPD-MLP-B0.481.85%83.17%83.62%87.89%

    (According to Table 1; MILP reaches the 3600-second time limit on ADV/NOR networks, and the upper and lower bounds do not close; on LPD networks the MILP upper and lower bounds match.)

    • The authors state that LP-ALL is tighter than LP-GREEDY in every case (as expected), but the improvement is insufficient to close the gap with the PGD/MILP lower bounds.
    • For LPD networks at large ε, the relative improvement of LP-ALL over LP-GREEDY is larger, but the absolute improvement is only 4–7%, and at this point both clean and robust error are already high, so the authors consider this tightness of little use.

    ε-search experiments (Tables 2, 3, Figures 3, 8)

    • What was measured: binary search is used to find lower bounds (LP-GREEDY/LP-LAST/LP-ALL) and upper bounds (PGD) on the minimum adversarial perturbation ε, with 10 samples each.
    • Results: on MNIST, the LP lower bounds for NOR/ADV networks are 1.5–5 times smaller than the PGD upper bound, and within 1.5 times for LPD networks; on CIFAR-10, all models are 1.5–2 times smaller. For example, CNN-SMALL (NOR, MNIST) has an LP-ALL lower bound of 18.87×10⁻³ versus a PGD upper bound of 52.70×10⁻³, with a median gap of 61.40% (Table 2).
    • Authors' interpretation: the improvement of LP-ALL and LP-LAST over LP-GREEDY is insufficient to close the gap with the PGD upper bound; the smaller gap for LPD networks is consistent with prior work.

    Randomly initialized networks (Appendix M, Table 4)

    • On untrained randomly initialized networks, the LP lower bound is 2–3 times smaller than the PGD upper bound, consistent with the pattern for trained networks.

    Other ablations and analyses

    • Computation time: LP solve time increases as networks become wider and deeper, and solve time for robustly trained networks is greater than for normally trained or randomly initialized networks (Figures 5, 6, Appendix K); layer by layer, the deeper the layer, the longer the per-neuron solve time (Figure 7).
    • Some network × training combinations were not run: the LPD rows for CNN-WIDE-8, CNN-DEEP-2, and MLP-[9]-500 are N.A. in Table 2.
  5. What are some points that can be further explored?

    In Appendix A, the authors point out three sources of looseness in the relaxation and directions for circumventing them; the experiments cover only ReLU feedforward networks and two datasets.

    Limitations and future directions noted by the authors

    • Box-domain relaxation loses correlations (Appendix A): relaxing the nonlinearity over the box domain {z ≤ z ≤ z̄} may lose correlations among coordinates of neurons in the same layer; the authors state that SDP-type methods could account for same-layer interactions.
    • Layer-by-layer recursion accumulates error (Appendix A): pre-activation bounds are solved recursively layer by layer, and each layer introduces a gap, which may be problematic for very deep or recurrent networks.
    • Unstable ReLU neurons (Appendix A): each crossing of an unstable neuron incurs loss; the authors suggest a possible direction of combining branch-and-bound with convex relaxation to strategically split unstable neurons.
    • Combinations outside the framework (Appendix A): exact verifiers, Lipschitz-type verifiers and hybrid methods are not within the framework; the authors believe it would be valuable to consider combinations of these methods with convex relaxation in the future.
    • Whether the barrier is a problem depends on the application (Section 7): the authors point out that if the ultimate goal is to train networks that can be accurately certified (e.g., Gowal et al. [2018] use IBP for verified training), the barrier need not be a problem.

    Experimental coverage

    • All tested networks are ReLU-activated feedforward networks (MLPs and ConvNets), 9 architectures in total (Appendix I.1).
    • The datasets are MNIST and CIFAR-10; the robust error experiments are done only on the MNIST test set (Table 1).
    • The ε-search experiments use only 10 samples per dataset, and the binary search tolerance for LP-LAST/LP-ALL is 5%×εLP-GREEDY (Appendix L.1).
    • Training covers three modes, NOR, ADV and LPD, plus a control with randomly initialized networks (Appendix M).
    • The paper does not report experimental results for LP-ALL on larger networks (e.g., ImageNet scale) or on nonlinearities other than ReLU.
  6. Summarize the main content of the paper

    A convex relaxation framework unifying LP relaxation verifiers, with 22 CPU years of experiments showing that its optimal relaxation still has an inherent tightness barrier.

    A theoretical plus empirical analysis paper on neural network robustness verification, answering "can the layer-wise convex relaxation path lead to tight verification".

    • Problem: exact verifiers (MILP/SMT) are hard to scale due to NP-completeness, while relaxation verifiers are efficient but not tight; the authors study the common performance ceiling of all LP relaxation verifiers.
    • Method: propose a layer-wise convex relaxation framework that unifies the primal perspective (Fast-Lin, CROWN, DeepZ, DeepPoly, etc.) and the dual perspective (Wong & Kolter, Dvijotham, etc.); Theorem 4.1 proves strong duality, and Theorem 4.2 and Corollary 4.3 prove that the dual of the original problem, the dual of the relaxation problem and the optimal primal relaxation all give the same lower bound, i.e., are constrained by the same barrier. They then use LP-ALL to exactly solve this optimal relaxation on ReLU networks (one LP per neuron, parallelized on 1000 CPU nodes, over 22 CPU years in total).
    • Results: on MNIST the LP lower bound is 1.5–5 times smaller than the PGD upper bound (within 1.5 times for the LPD network), and on CIFAR-10 it is 1.5–2 times smaller (Table 2, 3); for robust error upper bounds, e.g., ADV-MLP-B (ε=0.03), LP-ALL gives 10.04%, still higher than the MILP upper bound of 5.78% (Table 1); for the LPD network at large ε, LP-ALL's absolute improvement over LP-GREEDY is only 4–7%.
    • Authors' conclusion: LP-ALL consistently outperforms LP-GREEDY but the improvement is limited; the authors consider this to constitute an inherent convex relaxation barrier for methods within this framework, which any method describable by the framework will hit.
    • Implications (in the authors' voice): whether the barrier is a problem depends on the application—if the goal is to train certifiably robust networks, it may not be; in Appendix A the authors point out three sources of looseness—box-domain relaxation, layer-by-layer recursion, and unstable neurons—and suggest exploring new relaxation paradigms such as SDP, combinations of branch-and-bound with convex relaxation, etc.
Read originalarxiv.org