Evaluating Neural Network Robustness: An Extreme Value Theory ApproachEvaluating the Robustness of Neural Networks: An Extreme Value Theory Approach
The authors propose the attack-agnostic robustness metric CLEVER, which uses extreme value theory to estimate the local Lipschitz constant, and it matches CW and I-FGSM attack distortion on 11 networks.
- Existing robustness evaluation relies on the success rate and distortion of specific attack algorithms; conclusions are limited by attack capability and may be biased, so the authors aim to give a robustness metric that is attack-agnostic and applicable to any classifier.
- Robustness analysis is turned into estimation of a local cross Lipschitz constant: gradient norms are sampled uniformly within a ball around the sample, a reverse Weibull distribution is fitted by maximum likelihood, and its location parameter is used as the constant estimate, from which the minimum-distortion lower bound CLEVER is computed.
- On 11 networks across MNIST, CIFAR-10, and ImageNet, CLEVER is in most cases smaller than the distortion found by CW and I-FGSM and the ordering is consistent; CLEVER increases after DD and BReLU defenses (except CIFAR-BReLU); in the K-S test, the reverse Weibull hypothesis cannot be rejected for the vast majority of samples.
- The paper does not specifically discuss limitations. The experiments cover 11 image classification networks and 3 datasets, with CW and I-FGSM as control attacks; CLEVER is a lower-bound estimate rather than a certified lower bound, and on Inception-v3 at most 25% of samples have CLEVER higher than the CW distortion.
- Evaluated models
- MNIST-MLPMNIST-CNNMNIST-DDMNIST-BReLUCIFAR-MLPCIFAR-CNNCIFAR-DDCIFAR-BReLUResNet-50Inception-v3MobileNet
- Benchmarks
- MNISTCIFAR-10ImageNet
- Metrics
- CLEVER score平均 l2/l∞ 失真K-S 检验 p 值
The authors propose the CLEVER metric, which uses extreme value theory to estimate the local Lipschitz constant, evaluating neural network robustness in a manner independent of specific attacks. The metric is computationally applicable to large networks and was tested on networks such as ResNet, Inception-v3 and MobileNet. Results show that CLEVER is consistent with the robustness reflected by adversarial examples generated by strong attacks under the ℓ2 and ℓ∞ norms; defended networks using defensive distillation or bounded ReLU also obtain better CLEVER scores. The authors state that CLEVER is the first attack-independent robustness metric applicable to arbitrary neural network classifiers.
Paper analysis
What problem does this paper attempt to solve?
The authors address the problem that neural network robustness evaluation depends on specific attacks and yields biased conclusions, and propose the attack-agnostic CLEVER metric.
Core question: how to measure the intrinsic robustness of neural network classifiers to adversarial examples without relying on any specific attack algorithm.
- Problem setting: the authors note that adversarial examples are feasible both in the digital space and in the physical world, threatening safety-critical applications such as autonomous driving and malware detection, so the intrinsic robustness of models needs to be evaluated.
- Shortcomings of existing methods: the authors argue that existing approaches generally use the success rate and distortion of some attack as robustness metrics, entangling evaluation with attack capability; for example, adversarial training is robust only to attacks seen during training and may still be vulnerable to unseen attacks, leading to biased analysis.
- Core observation: starting from perturbation analysis, the authors derive a minimum-distortion lower bound that holds for any attack and any lp norm with p≥1; this lower bound is determined by the output difference and the local cross Lipschitz constant, so robustness evaluation is turned into a problem of estimating a local Lipschitz constant.
- Proposed approach: use extreme value theory (Extreme Value Theory) to efficiently estimate this constant, and propose the robustness metric CLEVER (Cross Lipschitz Extreme Value for nEtwork Robustness), which the authors state is attack-independent, applies to any neural network classifier, and scales to large networks at ImageNet scale.
- Positioning statement: the authors state that CLEVER is the first robustness metric that is attack-independent and applicable to any neural network classifier ("to the best of our knowledge").
What related research exists?
Related work falls into three groups: attacks, defenses, and theoretical guarantees; the authors state that CLEVER differs from them in being attack-agnostic and applicable to any network.
Attack methods (as tools for controlled experiments)
- White-box attacks: I-FGSM (Goodfellow et al., 2015; Kurakin et al., 2016b), CW attack (Carlini & Wagner, 2017b), and EAD (Chen et al., 2017b) are, according to the authors, the state-of-the-art attacks under the l∞, l2, and l1 norms respectively; this paper's experiments use the distortion of CW and I-FGSM as controls.
- Black-box attacks: ensemble methods (Liu et al., 2016), training substitute models (Papernot et al., 2017), zero-order optimization attacks (Chen et al., 2017c); the paper only describes them.
Defense methods
- Defensive distillation (Papernot et al., 2016) and bounded ReLU (Zantedeschi et al., 2017): this paper uses CLEVER to evaluate networks after these two defenses.
- Adversarial training and ensembles: Madry et al. (2017) defend against most adversarial examples on MNIST at the cost of increasing network capacity; Tramèr et al. (2017) and Liu et al. (2017) discuss model ensembles.
- Detection-based methods: feature squeezing (Xu et al., 2017), example reforming (Meng & Chen, 2017); the paper notes that the CW attack can bypass 10 detection methods (Carlini & Wagner, 2017a), and states that detection methods are beyond the scope of this paper.
Theoretical robustness guarantees
- Szegedy et al. (2013): explain robustness using the product of the global Lipschitz constants of each layer; the paper notes that the bound given by global constants is very loose.
- Hein & Andriushchenko (2017): give a robustness lower bound using local Lipschitz conditions, but the closed-form solution applies only to single-hidden-layer MLPs with softplus activation; the paper states that it generalizes their result from continuously differentiable functions to ReLU networks, and that their result is a special case of this paper's analysis (Corollary 3.2.1).
- Formal verification and LP methods: Ehlers (2017), Katz et al. (2017a;b), Huang et al. (2017) turn verification into SMT/LP problems; the paper notes that their computational complexity is high and they apply only to very small networks; Bastani et al. (2016) use LP distortion as a metric; the paper notes that the distortion found by an attack is an upper bound on the minimum distortion and depends on the specific algorithm, whereas CLEVER is a lower-bound estimate and is attack-independent.
- Wood & Zhang (1996): also use extreme value theory to estimate Lipschitz constants; the paper notes two differences—the sampling method differs (it computes slopes between pairs of sample points, whereas this paper directly samples gradient norms), and it considers only one-dimensional functions; in the experiments it is denoted SLOPE as a control.
Positioning
The authors state that, unlike the above work, CLEVER is attack-independent, applies to any neural network classifier, and is computationally feasible for large networks such as Inception-v3.
How does the paper address this problem?
Robustness is turned into estimation of a local cross Lipschitz constant; extreme value theory is used to fit samples of gradient norms, yielding the minimum-distortion lower-bound estimate CLEVER.
Overall idea: first prove that a lower bound on the minimum adversarial distortion depends only on the output difference and the local cross Lipschitz constant, then use extreme value theory to estimate that constant from sampled gradient norms, yielding the attack-independent robustness score CLEVER.
Formalization and robustness lower bound
- Definition: for input x0, the minimum lp adversarial distortion ∆p,min is the minimum norm over all adversarial example perturbations; the lower bound βL ≤ ∆p,min guarantees that no perturbation with norm at most βL changes the prediction (Definition 3.1–3.4).
- Core theorem: Theorem 3.2 states that the prediction is unchanged when |δ|p ≤ minj≠ c (fc(x0)−fj(x0))/(Ljq), i.e., the right-hand side is βL; here Ljq is the Lipschitz constant of the cross-term function fc(x)−fj(x), and 1/p+1/q=1.
- Localization and extension: Corollary 3.2.1 uses the local constant Ljq,x0 within the ball Bp(x0, R) to obtain a tighter bound (consistent with Hein & Andriushchenko 2017); Corollary 3.2.2 gives a targeted-attack version; Lemma 3.3 extends the result to ReLU networks (replacing the gradient norm with the maximum norm of directional derivatives).
Estimating the local Lipschitz constant with extreme value theory
- Difficulty: Ljq,x0 is the maximum gradient norm within the ball, and high-dimensional inputs (e.g., d=150528 for ImageNet) cannot be exhaustively enumerated.
- Theoretical basis: the Fisher-Tippett-Gnedenko theorem (Theorem 4.1) states that the limiting distribution of the maximum of independent identically distributed samples can only be one of three types: Gumbel, Fréchet, or reverse Weibull; when the Lipschitz constant is bounded, the right endpoint of the limiting distribution is finite, corresponding to the reverse Weibull class, whose location parameter aW is exactly the local cross Lipschitz constant to be estimated.
- Estimation procedure: sample uniformly and independently within Bp(x0, R), split into Nb batches of Ns points each, compute the gradient norm of each point by backpropagation, take the maximum of each batch and store it in set S; perform maximum likelihood estimation of the reverse Weibull distribution on S, using the location estimate âW as the estimate of Ljq,x0.
CLEVER computation procedure
- CLEVER-t (targeted, Algorithm 1): for target class j, µ = min(g(x0)/âW, R), i.e., the output difference divided by the estimated constant, then the minimum with radius R.
- CLEVER-u (untargeted, Algorithm 2): compute CLEVER-t for all j≠c and take the minimum ν = min_j µ_j.
- Experimental parameters: Nb = 500, Ns = 1024, R = 5; the targeted evaluation computes three targets per image (least likely, random, top-2).
Success criteria and validation
- Goodness of fit: use the K-S test to test whether S follows a reverse Weibull distribution; a p-value greater than 0.05 means the null hypothesis cannot be rejected.
- Metric validation: compare CLEVER (estimated lower bound) with the distortion found by CW and I-FGSM (upper bound), checking whether CLEVER is smaller in most cases and whether the ordering is consistent.
What experiments did the paper conduct?
CLEVER is compared with CW and I-FGSM distortion on 11 networks and 3 datasets; for most samples CLEVER is a valid lower bound and the ordering is consistent.
Experimental setup
- Networks evaluated (11): 4 each on MNIST and CIFAR-10—a single-hidden-layer softplus MLP, a 7-layer AlexNet-like CNN, a CNN with defensive distillation (DD), and a CNN with bounded ReLU (BReLU); 3 on ImageNet—ResNet-50, Inception-v3, and MobileNet (width multiplier 1.0, ImageNet accuracy 70.6%, using publicly available pretrained weights).
- Datasets: MNIST, CIFAR-10, ImageNet.
- Controls: attack distortion upper bounds are given by CW and I-FGSM; the control method for Lipschitz constant estimation is SLOPE (the algorithm of Wood & Zhang, 1996), computed only on small networks.
- Metrics: mean l2/l∞ CLEVER scores, mean l2/l∞ distortion found by attacks, K-S test statistic D and p-value.
- Attack parameters: CW runs 1000 iterations on ImageNet/CIFAR and 2000 on MNIST, with the learning rate tuned per model (0.001 for Inception-v3 and ResNet-50, 0.0005 for MobileNet, 0.01 for the rest); I-FGSM runs 50 iterations and selects the best of 8 ε candidates per image, increased to 250 (CIFAR) or 500 (MNIST) iterations for DD networks to reach 100% success rate; the reported attack success rate is 100% for all networks.
- Sample sizes: targeted attacks use 500 test images each for CIFAR/MNIST and 100 for ImageNet, with three targets per image (least likely, random, top-2); untargeted attacks use 100 images on MNIST/CIFAR; sampling parameters Nb=500, Ns=1024, R=5.
Main results
Table 3 gives the mean distortion and CLEVER under the targeted setting (least likely target column, according to Table 3):
Swipe horizontally to read the table
Network CW l∞ I-FGSM l∞ CLEVER l∞ CW l2 CLEVER l2 MNIST-CNN 0.601 0.313 0.090 2.377 1.257 MNIST-DD 0.578 0.283 0.103 2.644 1.532 MNIST-BReLU 0.601 0.276 0.257 2.349 3.312 CIFAR-CNN 0.053 0.033 0.005 0.836 0.156 CIFAR-DD 0.091 0.053 0.011 2.065 0.347 CIFAR-BReLU 0.045 0.030 0.004 0.407 0.140 Inception-v3 0.023 0.011 0.002 0.628 0.524 ResNet-50 0.031 0.015 0.002 0.767 0.357 The table omits MNIST-MLP, CIFAR-MLP, and MobileNet (MobileNet's l2 CLEVER is 0.617 and CW l2 is 0.837).
- Authors' interpretation: CLEVER is in most cases smaller than the attack distortion; the mean l2 distortion of CW is close to l2 CLEVER, from which the authors conclude that CW is a strong l2 attack and that CLEVER can roughly indicate the distortion of the optimal attack under a given lp norm.
- Defense effect: CLEVER consistently increases after adding DD or BReLU, with the sole exception of CIFAR-BReLU—both its CLEVER and CW distortion decrease, from which the authors conclude that bounded ReLU is an ineffective defense for CIFAR.
- Untargeted results (Table 2, 100 images): the trend is consistent, e.g., MNIST-CNN's CW l2 is 1.500 and CLEVER l2 is 0.721; CIFAR-CNN's CW l2 is 0.195 and CLEVER l2 is 0.072.
Per-sample lower-bound validity
- What was measured: Table 4 reports the proportion of samples (100 images) on the three ImageNet networks for which CLEVER is greater than the attack distortion.
- Results: on MobileNet and ResNet-50, more than 96% of samples have CLEVER as a strict lower bound for both attacks (the distortion is exceeded in at most 4% of cases under each condition); Inception-v3 is worse but still above 75%, with 25% of samples under the least likely target having l2 CLEVER exceeding the CW distortion.
- Authors' interpretation: in the Inception-v3 cases where the bound is exceeded, the attack distortion and CLEVER differ by only a small amount; the empirical CDF of the gap in Figure 5 shows that most samples have a small positive gap, which the authors state indicates that CW is close to optimal in l2 distortion.
Goodness of fit and method comparison
- K-S test (Table 5, Figure 3): the proportion of samples with p-value greater than 0.05 (reverse Weibull hypothesis cannot be rejected) is close to 100% across all 11 networks, both norms, and three targets, with the lowest being 93.3% for MNIST-BReLU (least likely, l2).
- SLOPE comparison (Table 3, Figure 4): SLOPE's estimates are generally far larger than the attack distortion (e.g., the l2 estimate for MNIST-BReLU reaches 52.058, recorded as 5 per the paper's handling); the authors state that it is not a suitable lower-bound estimate, so it was not computed on the ImageNet networks.
Other ablations and analyses
- Number of samples Nb (Figure 7, Figure 9): Nb is set to 50/100/250/500; the authors state that 50 or 100 samples usually already yield a fairly accurate estimate; the exception is MNIST-BReLU, where increasing Nb raises the estimated lower bound.
- Computation time: on a single GTX 1080 Ti, one sample (Ns=1024) takes 2.9 s for MobileNet, 5.0 s for ResNet-50, and 8.9 s for Inception-v3.
What are some points that can be further explored?
The paper does not specifically discuss limitations; the experiments cover 11 image classification networks and 3 datasets, with CW and I-FGSM as control attacks.
Limitations and future directions noted by the authors
- The paper does not specifically discuss limitations (there is no Limitations section, and no explicit statement of limitations or future directions appears in the Conclusion or the appendix).
Scope of experimental coverage
- Subjects evaluated: 11 image classification networks—MLP, CNN, CNN+DD, CNN+BReLU on MNIST/CIFAR, and ResNet-50, Inception-v3, MobileNet on ImageNet (Section 5.1); defense evaluation includes only defensive distillation and bounded ReLU, and detection-based methods are explicitly stated to be out of scope (Section 2.2).
- Control attacks: only two white-box attacks, CW and I-FGSM; EAD and black-box attacks are described only in related work and are not used as controls (Section 5.3).
- Sample sizes: the targeted setting uses 500 test images each for CIFAR/MNIST and 100 for ImageNet; the untargeted setting uses 100 images each for MNIST/CIFAR; the paper does not report the number of repeated experiments.
- Nature of the metric: CLEVER is an estimate of a lower bound, not a certified lower bound—in Table 4, for Inception-v3 under the least likely target, 25% of samples have l2 CLEVER higher than the CW distortion.
- Hyperparameter sensitivity: the effect of Nb is given in Figure 7 and Figure 9; Ns=1024 and R=5 are fixed throughout the paper, and the paper does not report a sweep over these two parameters.
Summarize the main content of the paper
CLEVER uses extreme value theory to estimate the local Lipschitz constant, giving an attack-agnostic lower-bound estimate of robustness, and matches attack distortion on 11 networks.
An ICLR 2018 paper proposing CLEVER, an attack-independent robustness metric for neural networks.
- Problem: the authors argue that measuring robustness by attack success rate and distortion entangles evaluation with attack capability and produces biased evaluation, and that a metric independent of the generation process is needed, analogous to BLEU for text generation.
- Method: prove that a lower bound on the minimum adversarial distortion exists, βL = min_j (fc(x0)−fj(x0))/Ljq (Theorem 3.2, extended to ReLU networks), turning robustness evaluation into estimation of a local cross Lipschitz constant; sample gradient norms within a ball around the sample (Nb=500, Ns=1024, R=5) and estimate the constant using the location parameter of a reverse Weibull maximum likelihood fit.
- Result one: on 11 networks across MNIST, CIFAR-10, and ImageNet, CLEVER is in most cases smaller than the distortion found by CW and I-FGSM (both with 100% success rate), and CW's l2 distortion is close to l2 CLEVER (Table 2, 3).
- Result two: on MobileNet and ResNet-50, CLEVER is a strict lower bound for more than 96% of samples, and on Inception-v3 for more than 75% (Table 4).
- Result three: CLEVER consistently increases after DD and BReLU defenses, with the exception of CIFAR-BReLU, from which the authors conclude that bounded ReLU is ineffective for CIFAR; the proportion of samples for which the reverse Weibull hypothesis cannot be rejected in the K-S test is close to 100% (Table 5).
- Authors' conclusion: the authors state that CLEVER is attack-independent, applies to any classifier, has theoretical guarantees, and is computationally feasible for large networks (8.9 s per sample for Inception-v3), and can serve as a safety checkpoint against unseen attacks.