Taxonomy Driven Fast Adversarial Training

Kun Tong, Chengze Jiang, Jie Gui, Yuan Cao

Introduction

Deep neural networks are highly susceptible to adversarial examples—inputs modified by imperceptible perturbations that trigger incorrect classifications. Adversarial Training (AT) has emerged as the most effective defense, involving the inclusion of adversarial examples in the training set. However, a significant trade-off exists: multi-step AT methods (like PGD) are robust but computationally intensive, while single-step methods (like FGSM) are fast but prone to Catastrophic Overfitting (CO). In CO, a model suddenly loses its robustness against strong multi-step attacks while appearing robust against the simple single-step attack used during training.

The Catastrophic Overfitting Phenomenon

The core challenge in single-step AT is that the model often learns to defeat the specific, weak attack used during training rather than developing genuine adversarial robustness. Researchers identified a critical indicator of this failure: label flipping.

Figure 1: Comparison of FGSM-AT and FGSM-RS showing the sudden crash in robust accuracy and the corresponding spike in label flipping during catastrophic overfitting.

As shown in Figure 1, when CO occurs (e.g., around epoch 20 for FGSM-AT), the test robust accuracy drops to near zero. Simultaneously, the proportion of "label flipping" examples—where the adversarial attack actually pushes a misclassified image back toward its correct ground-truth label—increases dramatically. This suggests that the inner maximization (the attack) fails to find a "worst-case" perturbation, causing the training process to collapse.

Methodology: The TDAT Framework

To address these issues, the authors developed Taxonomy Driven Fast Adversarial Training (TDAT). This method is built upon a detailed categorization of training examples.

Figure 2: The proposed taxonomy categorizes training examples into five cases based on initial prediction accuracy and the outcome of the FGSM attack.

The taxonomy (Figure 2) divides examples into five cases:

  • Case 1 & 2: Clean image is correctly classified; the attack either fails (1) or succeeds (2).
  • Case 3, 4, & 5: Clean image is misclassified; the attack results in a prediction that is still wrong (3), matches the ground truth (4 - label flipping), or is a different wrong class (5).

TDAT introduces three novel components to stabilize training:

  1. Batch Momentum Initialization: Instead of random noise, it uses historical perturbation data from previous batches to increase attack diversity without significant memory overhead.
  2. Dynamic Label Relaxation: A tanh-based decay function relaxes training labels early on to help the model learn clean features, gradually tightening them to enhance robustness.
  3. Taxonomy Driven Loss ($L_{TD}$): A specialized loss function that penalizes low-confidence examples, reducing the destabilizing influence of misclassified data points.

Experimental Evaluation

TDAT was evaluated on CIFAR-10, CIFAR-100, Tiny ImageNet, and ImageNet-100 using ResNet-18. The results demonstrate that TDAT consistently achieves state-of-the-art robustness for single-step methods:

  • Robust Accuracy: TDAT improved robust accuracy against PGD-10 attacks by up to 1.62% on CIFAR-100 compared to existing fast AT methods.
  • Stability: Unlike standard FGSM-AT, TDAT remains stable throughout the entire training duration, successfully avoiding the CO crash.
  • Efficiency: TDAT provides these gains with negligible additional computational or memory costs, making it a highly efficient alternative to multi-step AT.

Conclusion

Taxonomy Driven Fast Adversarial Training (TDAT) provides a robust solution to the catastrophic overfitting problem in single-step adversarial training. By leveraging a nuanced understanding of how different training examples behave and introducing targeted algorithmic improvements, TDAT achieves a "free lunch"—high robustness at the speed of fast training methods. Future work will explore its sensitivity to hyperparameters and its applicability to modern architectures like Vision Transformers.

Summary updated

BibTeX
@inproceedings{tong2024taxonomy,
  author = {Kun Tong and Chengze Jiang and Jie Gui and Yuan Cao},
  title = {{Taxonomy Driven Fast Adversarial Training}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i6.28330},
}
Figure