Adversarial vulnerability for any classifier

Alhussein Fawzi, Hamza Fawzi, Omar Fawzi

Since the discovery of adversarial examples, machine learning has been locked in an arms race: practitioners develop new defenses, and researchers find new attacks to break them. But what if this vulnerability isn't just a flaw in current training methods?

This paper asks a fundamental question: Is it even mathematically possible to build a perfectly robust classifier? By assuming data is generated by a smooth manifold, the authors derive theoretical upper bounds showing that any classifier—no matter how well-trained—will be susceptible to tiny perturbations as the dimensionality of the data's latent space increases. The authors aim to find the "speed limit" of robustness—a baseline that no classifier can surpass.

Methods: Geometry Over Architecture

Most previous work focused on specific model architectures. This paper shifts the focus to the geometry of the data distribution. The authors base their analysis on the assumption that data (like images) is produced by a smooth generative model $g$ that maps a latent vector $z$ (sampled from a standard high-dimensional Gaussian) to an image $x$.

To establish their bounds, they rely on a few key components:

  • Gaussian Isoperimetric Inequality: In high-dimensional Gaussian spaces, almost all the "volume" of a set lies very close to its boundary. The authors apply this mathematical principle to the decision regions of a classifier in the latent space.
  • Smoothness ($\omega$): They define a modulus of continuity for the generator, quantifying how much the output image changes relative to changes in the latent input.
  • Two Notions of Robustness: They evaluate both in-distribution robustness ($r_{in}$) (the smallest perturbation that changes the label while keeping the image on the data manifold) and unconstrained robustness ($r_{unc}$) (standard adversarial perturbations that can move the image anywhere in pixel space).
Illustration of the generative mapping and the two notions of robustness: in-distribution ($r_{in}$) and unconstrained ($r_{unc}$).

By combining these concepts, they derive a theorem that provides a theoretical upper bound on the fraction of data points that can be robust to a perturbation of a certain size.

Key Insights: The Curse of Dimensionality

The theoretical framework reveals several striking insights about why our models are so fragile:

  • The Curse of Dimensionality: As the latent dimension $d$ increases, the required perturbation to fool a classifier shrinks at a rate of $1/\sqrt{d}$. In high dimensions, every point is mathematically "close" to a decision boundary.
  • Number of Classes ($K$): Robustness inherently decreases as the number of classes increases. It is mathematically "easier" to fool a 1000-class ImageNet model than a 10-class CIFAR model.
Theoretical upper bounds on normalized robustness as a function of latent dimension $d$ and number of classes $K$.
  • Linearity is the Goal: The theoretical bounds are tightest (meaning the classifier is most robust) when the decision boundaries in the latent space are linear. If a classifier creates complex, fragmented decision regions, it becomes significantly more vulnerable.
  • Transferability is Mathematical, Not Accidental: If two different classifiers both have low error rates on the same data manifold, they will inevitably share many of the same adversarial examples. Transferability is a consequence of models agreeing on the data distribution.
  • The Robustness Gap: There is a formal link between in-distribution and unconstrained robustness. For any classifier, one can construct a "nearest neighbor" version that is at least half as robust to unconstrained attacks as it is to manifold-constrained attacks.

Empirical Results vs. Theoretical Limits

To validate their theoretical bounds against real-world performance, the authors trained a DCGAN on SVHN and CIFAR-10 to serve as the "ground truth" generative model $g$. They then tested several architectures, including LeNet, VGG, and WideResNet (including versions with adversarial training).

On CIFAR-10, the theoretical upper bound for in-distribution robustness is approximately 0.10 (normalized). State-of-the-art robust models (like WideResNet with adversarial training) reach about 0.008.

This reveals two things: First, current models are highly fragile. Second, there is still a significant gap between current empirical performance and the absolute mathematical "limit." Furthermore, unlike some theoretical work that produces bounds too large to be useful, these bounds are non-vacuous. For SVHN, the math predicts that any classifier will have a significant portion of its data points susceptible to perturbations only 1/3 the size of the image norm.

Limitations and Future Work

While groundbreaking, the analysis has limitations that point toward future research:

  • Dependence on the Generator: The results rely on the quality and smoothness of the generative model. If the GAN doesn't perfectly capture the "true" image manifold, the bounds might be slightly off.
  • Perceptual Metrics: The paper uses $L_2$ norms to measure perturbations, but human vision doesn't perceive distance in $L_2$ space. Extending these bounds to perceptual metrics is a vital next step.
  • Human Robustness: The analysis implies that if the human visual system is truly robust, then natural images cannot be modeled by smooth, high-dimensional generative processes. This raises deep questions about whether our current generative models are fundamentally different from how the brain processes data.

Summary updated

BibTeX
@inproceedings{fawzi2018adversarial,
  author = {Alhussein Fawzi and Hamza Fawzi and Omar Fawzi},
  title = {{Adversarial vulnerability for any classifier}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure