On the Onset of Robust Overfitting in Adversarial Training

Chaojian Yu, Xiaolong Shi, Jun Yu, Bo Han, Tongliang Liu

Abstract

Adversarial training (AT) constructs robust neural networks by incorporating adversarial perturbations into natural data. However, it is plagued by the issue of robust overfitting (RO), which severely damages the model's robustness. In this paper, we investigate RO from a novel feature generalization perspective. Specifically, we design factor ablation experiments to assess the respective impacts of natural data and adversarial perturbations on RO, identifying that the inducing factor of RO stems from natural data. Given that the only difference between adversarial and natural training lies in the inclusion of adversarial perturbations, we further hypothesize that adversarial perturbations degrade the generalization of features in natural data and verify this hypothesis through extensive experiments. Based on these findings, we provide a holistic view of RO from the feature generalization perspective and explain various empirical behaviors associated with RO. To examine our feature generalization perspective, we devise two representative methods, attack strength and data augmentation, to prevent the feature generalization degradation during AT. Extensive experiments conducted on benchmark datasets demonstrate that the proposed methods can effectively mitigate RO and enhance adversarial robustness.

Introduction: The Challenge of Robust Overfitting

Deep learning models are notoriously vulnerable to adversarial attacks—tiny, invisible perturbations that trick a model into misclassification. To defend against this, researchers use Adversarial Training (AT), which involves training the model on these "poisoned" examples so it learns to ignore the noise.

However, AT suffers from a frustrating phenomenon called Robust Overfitting (RO). Unlike standard overfitting where test accuracy plateaus, in RO, the model’s robust accuracy against attacks actually decreases significantly if training continues past a certain point. While "early stopping" is a common heuristic, it doesn't address the underlying mystery: why does more training make the model weaker?

Standard Adversarial Training (AT) demonstrating the robust overfitting phenomenon where test robustness diverges from training robustness.

As shown in the figure above, while training robustness continues to improve, test robustness peaks and then sharply declines, a hallmark of RO.

Investigating the Root Cause: Factor Ablation

To understand why RO occurs, the authors proposed a new framework called ROFG (Robust Overfitting from Feature Generalization). They began with factor ablation experiments to separate the impact of natural data from adversarial perturbations.

By removing specific factors from "small-loss" (easy) training data, they discovered that the root cause of RO stems from how the model handles natural data when noise is present. Surprisingly, natural data is the primary inducing factor. In standard training, natural data doesn't cause this collapse; it only happens when adversarial noise is introduced, which then "corrupts" how the model perceives natural features.

Factor ablation experiments showing the impact of removing data and perturbations on test robustness.

The "Vicious Cycle" of Feature Degradation

The authors hypothesize that a "robustness gap" exists between training and test data. Because the model memorizes training data too well, the adversarial perturbations generated for training samples become "distinct" from those needed for test samples. These distinct perturbations degrade the model's ability to generalize natural features.

This creates a feedback loop:

  1. Robustness Gap: A gap between training and test robustness leads to the generation of specific, non-generalizable noise.
  2. Feature Degradation: This noise degrades the generalization of natural features.
  3. Performance Drop: The model performs worse on test data.
  4. Gap Widening: The robustness gap widens further, accelerating the collapse.

Interestingly, this perspective explains the "Perturbation Paradox": increasing the budget of adversarial noise initially worsens RO. However, if the budget becomes too large, RO decreases because the model's overall training robustness is limited, preventing the vicious cycle from gaining momentum.

Mitigation Strategies: ROFG_AS and ROFG_DA

Based on these insights, the authors developed two strategies to break this cycle by focusing on "small-loss" samples—those the model has already "learned":

  • ROFG_AS (Attack Strength): This method adaptively adjusts the strength of the adversarial attack on small-loss training data to prevent the generation of features that harm generalization.
  • ROFG_DA (Data Augmentation): This approach uses techniques like AugMix to intentionally weaken the model's robustness on easy training samples. By narrowing the "robustness gap" between training and test sets, they prevent the onset of the vicious cycle.

Experimental Results

The researchers validated their findings on CIFAR-10, CIFAR-100, and Tiny-ImageNet using various architectures like PreAct ResNet-18 and Wide ResNet-34-10.

The proposed methods significantly outperformed standard AT and the popular TRADES method. For instance, on CIFAR-10 with PreAct ResNet-18, standard AT sees its robust accuracy (AutoAttack) drop from a peak of 48.09% to 42.01% at the end of training. In contrast, using ROFG_AS, the final accuracy remains high at 45.97%, effectively eliminating the RO effect. While these methods increase training time, they provide a robust way to maintain defense performance throughout the training process.

Conclusion

This work provides a holistic view of robust overfitting through the lens of feature generalization. By identifying natural data as the inducing factor and adversarial perturbations as the degrading factor, the authors offer a compelling explanation for the RO phenomenon. Their proposed mitigation strategies demonstrate that targeting the feature generalization of "easy" samples is a viable path toward more stable and robust adversarial training.

Summary updated

BibTeX
@misc{yu2023onset,
  author = {Chaojian Yu and Xiaolong Shi and Jun Yu and Bo Han and Tongliang Liu},
  title = {{On the Onset of Robust Overfitting in Adversarial Training}},
  year = {2023},
  eprint = {2310.00607},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.00607},
}
Figure