Towards Deep Learning Models Resistant to Adversarial Attacks

Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, Adrian Vladu

TL;DR

This seminal paper redefines adversarial robustness as a robust optimization problem, using a min-max "saddle point" formulation to unify attacks and defenses. The authors identify Projected Gradient Descent (PGD) as a "universal" first-order adversary and demonstrate that training against it creates models with unprecedented resistance to a wide range of attacks, provided the models have sufficient capacity.

What Problem Does This Paper Address?

Deep neural networks are notoriously brittle. Small, human-imperceptible perturbations—known as adversarial examples—can trick state-of-the-art models into making confident, incorrect predictions. While many "defenses" had been proposed prior to this work, most were heuristic and quickly bypassed by stronger, adaptive attacks.

The authors address the lack of a principled framework for robustness. They move away from the "cat-and-mouse" game of patching specific vulnerabilities and instead ask: How can we guarantee a model is resistant to an entire class of attacks?

Methods

The researchers frame adversarial training through the lens of Robust Optimization. They model the interaction between the network and the adversary as a saddle point problem:

$$\min_{\theta} \mathbb{E}_{(x,y) \sim \mathcal{D}} \left[ \max_{\delta \in \mathcal{S}} L(\theta, x + \delta, y) \right]$$

  • The Inner Maximization (The Attack): The goal is to find a perturbation $\delta$ within a set $\mathcal{S}$ (e.g., an $\ell_\infty$ ball) that maximizes the loss. The authors propose Projected Gradient Descent (PGD)—an iterative version of the Fast Gradient Sign Method (FGSM)—as the "ultimate" first-order adversary.
  • The Outer Minimization (The Defense): The goal is to find model parameters $\theta$ that minimize this "worst-case" loss. This is achieved by training the network exclusively on adversarial examples generated by PGD.

Crucially, they use Danskin’s Theorem to justify that the gradient of the inner maximum can be used to update the model parameters, even though the inner problem is non-concave.

Training loss over iterations for MNIST and CIFAR-10 during adversarial training.

Datasets

The authors evaluate their approach on two standard computer vision benchmarks:

  • MNIST: A dataset of handwritten digits.
  • CIFAR-10: A dataset of small color images across 10 classes (e.g., airplanes, dogs, trucks).

They also introduced an open challenge, inviting the community to break their MNIST and CIFAR-10 models, which served as a new benchmark for the field.

Key Insights and Ideas

  • The Landscape is Surprisingly Tractable: Despite the non-concavity of neural networks, the authors found that the local maxima found by PGD have very similar loss values. This "concentration of maxima" suggests that PGD is a reliable tool for solving the inner maximization problem.
  • The Capacity Gap: Robustness isn't free. The paper reveals that model capacity is a prerequisite for robustness. A model that is "just big enough" to classify clean images will fail to learn a robust decision boundary. To withstand strong attacks, networks need significantly more parameters (filters and layers) than their non-robust counterparts.
  • First-Order Universality: If a model is made robust against PGD (the strongest first-order attack), it tends to become robust against all other first-order attacks. This provides a concrete security guarantee for a well-defined class of adversaries.

Key Results

The authors achieved levels of robustness that were, at the time, the highest ever recorded:

Accuracy of robust models against varying perturbation sizes on MNIST and CIFAR-10.
  • MNIST: Their robust model achieved ~89% accuracy against the strongest white-box attacks (PGD with 100 iterations and 20 restarts) and over 95% against black-box attacks.
  • CIFAR-10: The robust model achieved ~46% accuracy against strong white-box attacks. While lower than MNIST, this was a massive leap over previous defenses, which typically dropped to near 0% accuracy under iterative attacks.
  • Resistance to Transfer: The models showed significantly reduced "transferability," meaning adversarial examples generated on one model were less likely to fool the robust model.

Limitations and Future Work

  • Computational Cost: Adversarial training with PGD is expensive. It requires $k$ forward/backward passes for every training step (where $k$ is the number of PGD iterations), increasing training time by a factor of $(k+1)$.
  • The Performance Trade-off: There is a clear "robustness tax." The robust CIFAR-10 model had lower accuracy on clean, natural images (~87%) compared to standard models (~95%).
  • Beyond $\ell_\infty$: The paper focuses on perturbations bounded by the $\ell_\infty$ norm. The authors acknowledge that more comprehensive notions of "perceptual similarity" are needed for a truly complete security guarantee.
  • Scaling to ImageNet: While successful on CIFAR-10, the authors noted that the increased capacity requirements and computational overhead made scaling to larger datasets like ImageNet a significant challenge for future research.

Summary updated

BibTeX
@inproceedings{madry2018towards,
  author = {Aleksander Madry and Aleksandar Makelov and Ludwig Schmidt and Dimitris Tsipras and Adrian Vladu},
  title = {{Towards Deep Learning Models Resistant to Adversarial Attacks}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=rJzIBfZAb},
}
Figure