NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Evaluating the Robustness of Neural Networks: An Extreme Value Theory Approach

Tsui-Wei Weng, Huan Zhang, Pin-Yu Chen, Jinfeng Yi, Dong Su, Yupeng Gao, Cho-Jui Hsieh, Luca Daniel

TL;DR

The authors propose CLEVER, the first attack-agnostic robustness metric for neural networks that scales to large-scale models like ImageNet. By framing robustness as a local Lipschitz constant estimation problem and solving it using Extreme Value Theory (EVT), they provide a computationally feasible way to estimate the lower bound of the minimum distortion required to misclassify an input.

What Problem Does This Paper Address?

How do we know if a neural network is truly robust? Currently, the most common way to measure robustness is to run specific adversarial attacks (like FGSM or the Carlini-Wagner attack) and see how much distortion they need to cause a misclassification.

However, this approach is attack-dependent. If a network resists a specific attack, it might just mean the attack is weak, not that the network is robust. We lack an "intrinsic" metric—similar to how the BLEU score evaluates text generation regardless of the model used—that measures a network's inherent stability against any possible adversarial perturbation. While some formal verification methods exist, they are computationally expensive and generally don't scale beyond tiny networks.

Methods

The authors bridge the gap between empirical attacks and formal verification using two key pillars:

  1. Lipschitz Continuity: They prove that for a classifier $f$, the minimum distortion $\Delta_p$ needed to change a prediction is lower-bounded by the difference between the top class score and the runner-up class score, divided by the local Lipschitz constant ($L_q$) of that difference. Intuitions behind Theorem 3.2 Figure 1: The intuition is that if the function's slope (gradient) is bounded, the function value cannot drop to zero (causing a misclassification) within a certain distance.
Figure 1: Intuitions behind Theorem 3.2.
  1. Extreme Value Theory (EVT): Finding the exact local Lipschitz constant is an optimization nightmare for deep networks. Instead, the authors treat the norms of sampled local gradients as random variables. According to the Fisher-Tippett-Gnedenko theorem, the maximum of these samples follows one of three distributions. Since the Lipschitz constant is bounded, they fit a Reverse Weibull distribution to the sampled gradients to estimate the "extreme value"—the maximum possible gradient norm in a neighborhood.

The resulting CLEVER score (Cross Lipschitz Extreme Value for nEtwork Robustness) acts as an estimated lower bound on the distortion needed for a successful attack.

Datasets

The authors evaluated CLEVER across a range of standard benchmarks and architectures:

  • MNIST & CIFAR-10: Used to test small MLPs and CNNs, including versions defended by Defensive Distillation and Bounded ReLU (BReLU).
  • ImageNet: Used to demonstrate scalability on state-of-the-art models including ResNet-50, Inception-v3, and MobileNet.

Key Insights and Ideas

  • Attack Agnosticism: Unlike previous metrics, CLEVER doesn't care which attack you use. It measures the local geometry of the loss landscape itself.
  • Scalability via Sampling: By using EVT, the authors avoid the "curse of dimensionality." They show that sampling just a few hundred gradients is often enough to get a stable estimate of the Lipschitz constant, even for ImageNet-sized inputs.
  • Handling Non-Differentiability: While ReLUs are not everywhere differentiable, the authors extend their theoretical guarantees to ReLU networks by using one-sided directional derivatives.
  • Benchmarking Attacks: CLEVER provides a "security checkpoint." If there is a large gap between the CLEVER score (lower bound) and the distortion found by a specific attack (upper bound), it suggests that a more powerful attack might exist to close that gap.

Key Results

  • Distribution Fit: The authors used Kolmogorov-Smirnov tests to confirm that the sampled gradient norms indeed follow a Reverse Weibull distribution across different datasets and models. Reverse Weibull fits Figure 2: Empirical gradient samples (blue) vs. the fitted EVT distribution (red).
  • Alignment with Strong Attacks: The CLEVER score consistently aligned with the distortions produced by the Carlini-Wagner (CW) attack, which is known to be near-optimal. This suggests CLEVER is a tight and reliable estimate.
  • Defense Validation: CLEVER successfully reflected the increased robustness of defended networks. For example, networks using Defensive Distillation showed significantly higher CLEVER scores than their unprotected counterparts.
  • Comparison to Baselines: The authors compared CLEVER to a simpler "SLOPE" estimator from prior work. As shown in Figure 4, the SLOPE method often wildly overestimated the lower bound, making it useless for robustness guarantees, whereas CLEVER remained conservative and accurate.
Reverse Weibull fits

Limitations and Future Work

  • Estimation vs. Proof: CLEVER is an estimation of a lower bound based on sampling. While EVT is robust, it does not provide the 100% mathematical certainty that formal verification methods (like SMT solvers) offer.
  • Computational Cost: Although much faster than formal verification, CLEVER still requires hundreds of backpropagation passes per image to gather enough samples for the EVT fit.
  • Sampling Bias: If the gradient landscape has extremely narrow, high-frequency "spikes" that the sampling misses, the EVT estimate could potentially be unconservative. The authors suggest that adaptive sampling could be a future direction to mitigate this.

Summary updated

BibTeX
@inproceedings{weng2018evaluating,
  author = {Tsui-Wei Weng and Huan Zhang and Pin-Yu Chen and Jinfeng Yi and Dong Su and Yupeng Gao and Cho-Jui Hsieh and Luca Daniel},
  title = {{Evaluating the Robustness of Neural Networks: An Extreme Value Theory Approach}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=BkUHlMZ0b},
}
Figure