Fast is better than free: Revisiting adversarial training

Eric Wong, Leslie Rice, J. Zico Kolter

arXiv (Cornell University) · 2020 · 486 citations · 33 references

DOIFull text

Open access

Concepts

TL;DR

Adversarial training is usually considered more costly than standard training because it requires generating adversarial examples with methods such as PGD. We show that using the fast gradient sign method (FGSM) with random initialization yields robust models as effective as PGD-based training but at much lower cost, achieving 45 % robust accuracy on CIFAR‑10 in 6 min and 43 % on ImageNet in 12 h, and we identify catastrophic overfitting as a failure mode. All code and pretrained models are available at https://github.com/locuslab/fast_adversarial.

Abstract

Adversarial training, a method for learning robust deep networks, is typically assumed to be more expensive than traditional training due to the necessity of constructing adversarial examples via a first-order method like projected gradient decent (PGD). In this paper, we make the surprising discovery that it is possible to train empirically robust models using a much weaker and cheaper adversary, an approach that was previously believed to be ineffective, rendering the method no more costly than standard training in practice. Specifically, we show that adversarial training with the fast gradient sign method (FGSM), when combined with random initialization, is as effective as PGD-based training but has significantly lower cost. Furthermore we show that FGSM adversarial training can be further accelerated by using standard techniques for efficient training of deep networks, allowing us to learn a robust CIFAR10 classifier with 45% robust accuracy to PGD attacks with $ε=8/255$ in 6 minutes, and a robust ImageNet classifier with 43% robust accuracy at $ε=2/255$ in 12 hours, in comparison to past work based on "free" adversarial training which took 10 and 50 hours to reach the same respective thresholds. Finally, we identify a failure mode referred to as "catastrophic overfitting" which may have caused previous attempts to use FGSM adversarial training to fail. All code for reproducing the experiments in this paper as well as pretrained model weights are at https://github.com/locuslab/fast_adversarial.

References

33