Bridging the Performance Gap between FGSM and PGD Adversarial Training

Tianjin Huang, Vlado Menkovski, Yulong Pei, Mykola PechenizkiyarXiv 2020

Abstract

Adversarial training is essential for securing Deep Neural Networks (DNNs) against malicious perturbations. While Projected Gradient Descent (PGD) training is the current gold standard for robustness, its high computational cost limits scalability. This paper introduces adv.FGSMR, a novel method that bridges the gap between the efficient but often unreliable Fast Gradient Sign Method (FGSM) and the robust but slow PGD. By incorporating a curvature regularization term, adv.FGSMR achieves PGD-level robustness at approximately half the training cost.

Introduction

Deep Neural Networks are notoriously vulnerable to adversarial attacks—small, imperceptible perturbations designed to deceive models. Adversarial training, which involves training models on these perturbed examples, is a primary defense. However, practitioners face a significant trade-off:

  • adv.FGSM: A fast, one-step attack. It is computationally efficient but prone to "catastrophic overfitting," where the model becomes robust to the specific training attack but remains vulnerable to others.
  • adv.PGD: A multi-step iterative attack. It provides strong robustness but is extremely slow, often requiring 10–20 times more computation than standard training.

The authors propose a "middle ground" that maintains efficiency while ensuring robustness by managing the geometry of the loss surface.

The Curvature Connection

The failure of standard FGSM training is closely linked to the local geometry of the loss surface. The authors observe that during training, the loss surface curvature can spike suddenly. When this happens, the model's robustness against multi-step PGD attacks collapses—a phenomenon known as catastrophic overfitting.

Correlation between accuracy drop and curvature spike during training (a, b) versus the stabilized performance of the proposed method (c, d).

In high-curvature regions, a single large step (FGSM) moves the input into a zone where the gradient direction has changed drastically. This makes the one-step perturbation inaccurate compared to the path found by a multi-step approach like PGD.

Proposed Method: adv.FGSMR

To address this, the authors propose adv.FGSMR (FGSM with Regularization). The core idea is to force the loss surface to be locally "flat" along the perturbation direction.

Curvature Regularization

The method adds a penalty term ($R_\theta$) to the standard loss function. This term minimizes the difference between the gradient at the original point $x$ and the gradient at the FGSM-perturbed point $x + \delta$. Mathematically, this acts as a finite-difference approximation of the second directional derivative.

Geometric visualization of the loss surface: high curvature causes FGSM (red) to deviate from the optimal path found by PGD (green).

By regularizing the curvature, the direction generated by a simple FGSM attack becomes much more aligned with the direction found by a complex PGD attack, as illustrated in the loss surface visualization above.

Experimental Results

The researchers evaluated adv.FGSMR on MNIST and CIFAR-10 using various architectures, including ResNet and WideResNet.

Efficiency and Robustness

  • Speedup: adv.FGSMR is roughly 2x faster than adv.PGD. For instance, training ResNet-18 on CIFAR-10 for 50 epochs took 106 minutes with the proposed method, compared to 214 minutes with PGD.
  • Robust Performance: On CIFAR-10, adv.FGSMR achieved 45.8% accuracy against white-box PGD attacks, slightly outperforming the 44.4% achieved by standard PGD training.
  • Transferability: The method showed superior defense against "transfer attacks" (adversarial examples generated on different models) compared to PGD-trained baselines.

Conclusion

The results demonstrate that the computational "brute force" of multi-step PGD is not strictly necessary for robustness if the geometry of the loss surface is explicitly managed. By penalizing high curvature, adv.FGSMR provides a practical and efficient path toward robust deep learning.

Summary updated

BibTeX
@misc{huang2020bridging,
  author = {Tianjin Huang and Vlado Menkovski and Yulong Pei and Mykola Pechenizkiy},
  title = {{Bridging the Performance Gap between FGSM and PGD Adversarial Training}},
  year = {2020},
  eprint = {2011.05157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.05157},
}
Figure