Towards Understanding Fast Adversarial Training

Bai Li, Shiqi Wang, Suman Jana, Lawrence Carin

Abstract

Adversarial training (AT) is essential for securing deep neural networks against malicious perturbations, yet it remains computationally expensive. While fast methods like FGSM training offer significant speed advantages, they frequently succumb to "catastrophic overfitting," where robustness suddenly collapses. This paper identifies the "overfit-and-recover" phenomenon, revealing that models constantly overfit and recover at a granular batch level. Leveraging this insight, we introduce FastAdv+ and FastAdvW, methods that achieve state-of-the-art robustness with up to a 4x speedup over traditional PGD training.

Introduction

Deep neural networks are notoriously fragile; small, intentional perturbations to an input (adversarial examples) can easily fool them. The gold standard for defense is Adversarial Training (AT), where the model is trained on these "attack" images. However, a massive trade-off exists between speed and security. Multi-step Projected Gradient Descent (PGD) training is highly effective but incredibly slow. Conversely, one-step Fast Gradient Sign Method (FGSM) training is fast but suffers from "catastrophic overfitting," a state where the model learns to defeat weak attacks by masking gradients while remaining vulnerable to real-world adversarial threats.

The Overfit-and-Recover Phenomenon

A key contribution of this work is the discovery that catastrophic overfitting is not a single terminal event but a process occurring at the batch level. Previous assumptions suggested that successful fast training required avoiding overfitting entirely. Instead, empirical evidence shows that models in fast training regimes frequently enter and exit overfitted states. The ability of a training method to facilitate this recovery is what determines its ultimate success.

Visualization of the overfit-and-recover phenomenon. Panel (a) shows a failure case of catastrophic overfitting, while (b) and (c) demonstrate successful interventions that allow the model to recover robustness after a drop.

Proposed Methods: FastAdv+ and FastAdvW

To exploit the overfit-and-recover mechanism, we propose two primary improvements:

  • FastAdv+ (Intervention): We implement a monitoring system that tracks robust accuracy on a validation set. If accuracy falls below a threshold ($c$), the training temporarily switches from fast FGSM to strong PGD for several batches. This intervention "kicks" the model out of the overfitted state, allowing it to resume fast training once robustness is restored.
  • FastAdvW (Warmup): We utilize FastAdv+ as a warmup phase for the first ~70% of training, followed by standard PGD. This approach recognizes that models benefit most from strong attacks once they have established a baseline of learning. Additionally, using a smaller perturbation size ($\epsilon$) during early stages further optimizes final performance.

Experimental Results

We evaluated our methods on standard benchmarks including CIFAR-10, CIFAR-100, and Tiny ImageNet across various architectures such as PreAct ResNet-18 and Wide-ResNet 34-10.

Comparison of test accuracy across different training schedules. The proposed methods allow standard piecewise schedules (dots) to achieve robustness comparable to or exceeding traditional PGD training (dashed lines).

Our results demonstrate that security does not have to come at the cost of speed:

  • Superior Robustness: On CIFAR-10, FastAdvW achieved a robust accuracy of 53.09%, actually outperforming standard PGD training (51.74%).
  • Massive Speedup: While standard PGD training took roughly 166 minutes, FastAdvW achieved better results in just 40 minutes—a 4x speedup.
  • Schedule Flexibility: Unlike previous fast methods restricted to cyclic learning rates, our intervention strategy enables high performance using standard piecewise schedules, which generally yield better final accuracy.

Conclusion

By understanding that fast adversarial training is a process of continuous recovery rather than simple avoidance, we can design more efficient and robust training protocols. FastAdvW provides a practical solution for training robust models at a fraction of the traditional computational cost. Future work will focus on reducing hyperparameter sensitivity and providing a more rigorous theoretical framework for the overfit-and-recover phenomenon.

Summary updated

BibTeX
@misc{li2020towards,
  author = {Bai Li and Shiqi Wang and Suman Jana and Lawrence Carin},
  title = {{Towards Understanding Fast Adversarial Training}},
  year = {2020},
  eprint = {2006.03089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.03089},
}
Figure