Eliminating Catastrophic Overfitting Via Abnormal Adversarial Examples Regularization

Runqi Lin, Chaojian Yu, Tongliang Liu

TL;DR

Single-step adversarial training (SSAT) is a fast alternative to robustify neural networks, but it often collapses due to "catastrophic overfitting" (CO). This paper identifies Abnormal Adversarial Examples (AAEs)—samples where an attack actually decreases loss—as the primary driver of this collapse and proposes a lightweight regularization method (AAER) to suppress them, maintaining robustness with negligible computational cost.

What Problem Does This Paper Address?

Adversarial Training (AT) is the most effective defense against small, intentional perturbations designed to fool AI models. However, standard AT is computationally expensive because it requires multiple "steps" of backpropagation to generate strong adversarial examples during training.

Single-step Adversarial Training (SSAT), like the Fast Gradient Sign Method (FGSM), is much faster but suffers from a fatal flaw: Catastrophic Overfitting (CO). During training, the model's robust accuracy against multi-step attacks suddenly plummets to 0% within a few iterations.

Robust accuracy comparison showing catastrophic overfitting in standard FGSM versus the proposed AAER method.

While researchers knew CO was linked to "distorted decision boundaries," the exact mechanism of how this distortion starts and accelerates remained a mystery.

Methods: The Role of Abnormal Adversarial Examples

The authors discover a specific phenomenon driving this collapse: Abnormal Adversarial Examples (AAEs).

  • Normal behavior: An adversarial attack (the "inner maximization" step) should find a perturbation that increases the model's loss.
  • Abnormal behavior: In AAEs, the attack actually decreases the loss. This happens because the decision boundary is so jagged and distorted that the gradient-based attack "overshoots" or falls into a local minimum that is actually "safer" for the model.
Diagram illustrating how optimizing on Abnormal Adversarial Examples severely distorts the decision boundary.

The paper reveals a vicious circle:

  1. A few AAEs appear due to slight initial boundary distortion.
  2. The model tries to "optimize" on these AAEs.
  3. This optimization further twists the decision boundary.
  4. More AAEs are created, leading to a rapid, catastrophic collapse.

To break this cycle, they introduce Abnormal Adversarial Examples Regularization (AAER). This method adds a penalty term to the loss function that:

  1. Counts AAEs: Penalizes the total number of abnormal samples in a batch.
  2. Regularizes Confidence: Penalizes the anomalous loss decrease in AAEs.
  3. Constrains Logits: Uses "Normal" Adversarial Examples (NAEs) as a reference to ensure the output distribution of AAEs doesn't deviate wildly.

Crucially, AAER requires no extra gradient steps or image generation, making it nearly as fast as standard SSAT.

Datasets

The authors evaluated their method across several standard computer vision benchmarks:

  • CIFAR-10 & CIFAR-100: The primary testing grounds for small-scale image classification.
  • SVHN (Street View House Numbers): To test performance on digit recognition.
  • Tiny-ImageNet & ImageNet-100: Medium-to-large scale datasets to demonstrate scalability.
  • Architectures: They tested on PreactResNet-18 and WideResNet-34 to ensure the method wasn't architecture-specific.

Key Insights and Ideas

  • AAEs as a Leading Indicator: AAEs appear before the catastrophic drop in accuracy occurs. They serve as an "early warning system" for model instability.
  • The "Self-Sabotage" Mechanism: CO isn't just a failure to learn; it's a process where the model actively destroys its own decision boundaries by trying to satisfy the contradictory gradients of abnormal examples.
  • Reference-Based Stability: Instead of just suppressing AAEs, the method uses the behavior of "Normal" examples as a benchmark. This "Constrained Variation" ensures the model stays on a stable training path.

Key Results

  • Eliminating CO: AAER successfully prevented catastrophic overfitting across all tested noise magnitudes (from $8/255$ up to a very difficult $32/255$).
  • Superior Robustness: On CIFAR-10, AAER achieved a robust accuracy of ~48% (PGD-50-10), while vanilla FGSM dropped to 0%. It even outperformed more complex "fast" methods like GradAlign and FreeAT.
  • Efficiency: The training time for AAER is almost identical to standard FGSM. For example, on an RTX 4090, FGSM takes 11.0s per epoch, while AAER takes only 11.2s (a mere 1.8% overhead).
  • Reliability: The results held up under AutoAttack, the current gold standard for evaluating adversarial robustness, proving the gains aren't just due to "gradient masking."

Limitations and Future Work

  • Hyperparameter Tuning: The method introduces three hyperparameters ($\lambda_1, \lambda_2, \lambda_3$). While the authors provide settings for common datasets, new tasks might require some search to find the optimal balance.
  • Multi-Step AT Integration: While AAEs also exist in standard multi-step adversarial training, the authors noted that they couldn't find a hyperparameter configuration that significantly improved multi-step AT using this specific regularization.
  • Theoretical Grounding: The work is primarily empirical. Future work could involve a more formal mathematical analysis of why the loss surface becomes "abnormal" in the first place.

Summary updated

BibTeX
@inproceedings{lin2023eliminating,
  author = {Runqi Lin and Chaojian Yu and Tongliang Liu},
  title = {{Eliminating Catastrophic Overfitting Via Abnormal Adversarial Examples Regularization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Oj7Mrb4009},
}
Figure