Revisiting and Exploring Efficient Fast Adversarial Training via LAW: Lipschitz Regularization and Auto Weight Averaging

Xiaojun Jia, Yuefeng Chen, Xiaofeng Mao, Ranjie Duan, Jindong Gu, Rong Zhang, Hui Xue, Yang Liu, Xiaochun Cao

TL;DR

Fast Adversarial Training (FAT) is a double-edged sword: it’s significantly faster than standard methods but prone to "Catastrophic Overfitting," where a model's robustness suddenly collapses. This paper introduces FGSM-LAW, a method that combines a novel Lipschitz regularization term with an automated weight-averaging scheme to achieve state-of-the-art robustness at a fraction of the usual training cost.

What Problem Does This Paper Address?

Deep Neural Networks are notoriously vulnerable to adversarial examples—tiny, invisible perturbations that trick models into making wrong predictions. The gold standard for defense is Adversarial Training (AT), where models are trained on these "attack" images.

However, standard AT (like PGD-AT) is computationally expensive because it requires multiple iterations to generate a single adversarial example. Fast Adversarial Training (FAT) tries to solve this by using a single-step attack (FGSM). The catch? FAT often suffers from Catastrophic Overfitting (CO). During training, the model's robustness might look great for a few epochs, then suddenly plummet to zero. The authors set out to understand why this happens and how to build a fast training pipeline that is both stable and highly robust.

Methods

The authors propose a framework called LAW, which stands for Lipschitz Regularization and Auto Weight Averaging.

  1. Lipschitz Regularization: The authors argue that CO is caused by extreme local non-linearity in the loss surface. To fix this, they introduce a regularization term based on the Lipschitz constraint. Unlike previous methods that regularize during the "attack" phase (inner maximization), they apply it only during the "update" phase (outer minimization). This ensures the loss surface stays smooth without adding significant computational overhead.
  2. Auto Weight Averaging (Auto-EMA): Model Weight Averaging (WA) usually helps generalization. However, in fast training, some iterations produce "garbage" non-robust parameters due to poor adversarial examples. Standard WA would soak up these bad parameters. The authors propose a metric ($\Delta$) that calculates the ratio of robust accuracy to clean accuracy for each batch. If $\Delta$ is too low, the weight averaging skips that iteration, preventing the "pollution" of the final model.
  3. Optimized Pipeline: They combine these with a random Bernoulli initialization (to prevent early-stage CO) and the Cutout data augmentation technique, which they found surprisingly effective for fast training.

Datasets

The researchers evaluated their approach on four widely used computer vision benchmarks:

  • CIFAR-10 & CIFAR-100: Small-scale image datasets used for rapid prototyping.
  • Tiny ImageNet: A mid-sized dataset with 200 classes.
  • ImageNet: The industry-standard large-scale dataset for image classification.

Key Insights and Ideas

  • The "Where" Matters: One of the most important findings is that regularization is unnecessary during the adversarial example generation (inner loop). By applying it only during the weight update (outer loop), they achieve better results with much less training time.
  • Quality Control for Weights: The "Auto" in Auto Weight Averaging is a clever filter. By acknowledging that not every training step is "good," they allow the model to ignore the noise generated during the volatile phases of fast training.
  • Data Augmentation Synergy: While data augmentation is standard in clean training, its role in FAT was less clear. The authors demonstrate that techniques like Cutout significantly improve the quality of adversarial examples generated during training, leading to better final robustness.

Key Results

FGSM-LAW consistently outperformed other fast training variants and even challenged slow, multi-step methods:

  • Robustness: On CIFAR-10, FGSM-LAW achieved a robust accuracy of 56.36% against a PGD-50 attack, surpassing other fast methods like FGSM-PGI (~54%) and FGSM-SDI (~51%).
  • Efficiency: FGSM-LAW is roughly 3.2x faster than standard PGD-AT on CIFAR-10 (81 minutes vs. 265 minutes) while achieving higher robustness.
  • Large Scale: On the massive ImageNet dataset, FGSM-LAW reached 30.12% robust accuracy (AutoAttack), significantly higher than the baseline FGSM-RS (26.24%) and even the multi-step Free-AT (28.58%).

Limitations and Future Work

While FGSM-LAW effectively solves Catastrophic Overfitting and boosts robustness, there is still a slight trade-off: the "clean" accuracy (performance on un-attacked images) is often slightly lower than that of non-adversarial models.

The authors suggest that future research could explore more sophisticated ways to balance this clean-vs-robust trade-off. Additionally, while LAW works well for $L_\infty$ attacks, exploring its effectiveness against other types of perturbations (like $L_2$ or common corruptions) remains an open area for exploration.

Summary updated

BibTeX
@article{jia2024revisiting,
  author = {Xiaojun Jia and Yuefeng Chen and Xiaofeng Mao and Ranjie Duan and Jindong Gu and Rong Zhang and Hui Xue and Yang Liu and Xiaochun Cao},
  title = {{Revisiting and Exploring Efficient Fast Adversarial Training via LAW: Lipschitz Regularization and Auto Weight Averaging}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2024},
  doi = {10.1109/tifs.2024.3420128},
}
Figure