Understanding Robust Overfitting from the Feature Generalization Perspective

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

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

Adversarial Training (AT) is the primary defense against adversarial attacks, formulated as a min-max optimization problem where models are trained on "worst-case" perturbed data. While effective, it suffers from a phenomenon known as Robust Overfitting (RO). In RO, test robustness significantly declines after a certain point in training, even as training robustness continues to improve. This late-stage collapse makes training stable, robust models exceptionally difficult.

Standard Adversarial Training (AT) showing the characteristic drop in test robustness (light blue line) after epoch 100, while training robustness (dark blue line) continues to rise.

Standard regularization techniques like weight decay or dropout often fail to mitigate RO. This paper investigates the root cause of this phenomenon, moving beyond simple sample complexity arguments to explore the interaction between natural data and adversarial perturbations.

Investigating the Inducing Factors

To identify the trigger for RO, the authors conducted factor ablation experiments. They decomposed adversarial training samples into natural data and adversarial perturbations to see which component drove the overfitting.

Factor ablation experiments identifying natural data as the inducing factor of robust overfitting. Removing natural data from small-loss samples (red line) prevents the robustness drop seen in the baseline (green line).

The key discovery was that removing natural data from "small-loss" samples (those the model has already learned well) effectively mitigated RO. Conversely, removing only the perturbations did not stop the overfitting. This identifies natural data as the primary inducing factor of RO, rather than the perturbations themselves.

The Feature Generalization Perspective

The authors hypothesize that adversarial perturbations essentially "poison" the model's ability to learn generalizable features from natural data. This leads to a feedback loop:

  1. A gap between training and test robustness emerges.
  2. This gap results in distinct adversarial perturbations for training and test sets.
  3. These perturbations degrade the generalization of natural features.
  4. Weakened generalization further widens the robustness gap, completing a "vicious cycle."

This degradation is most acute in "small-loss" samples, where the model becomes over-confident and the generated attacks become overly specialized to the training set.

Proposed Methods: ROFG_AS and ROFG_DA

Based on the feature generalization perspective, two methods are proposed to stabilize AT and maintain robustness:

  • ROFG_AS (Attack Strength): This method adaptively reduces the attack budget for easy (small-loss) samples. By weakening the perturbations on these samples, it prevents them from degrading the model's feature generalization.
  • ROFG_DA (Data Augmentation): This approach applies strong data augmentation (e.g., AugMix) specifically to small-loss samples. This intentionally reduces the model's confidence on these samples, narrowing the generalization gap between training and test performance.

Experimental Results

The proposed methods were evaluated on CIFAR-10, CIFAR-100, and Tiny-ImageNet using various architectures like PreAct ResNet-18 and Wide ResNet-34-10.

  • Eliminating the Collapse: In CIFAR-10 experiments, standard AT robustness dropped from a peak of ~52% to ~44% by the end of training. ROFG_AS maintained a final robustness of 51.96%, effectively eliminating the late-stage performance collapse.
  • Superior Robustness: Both ROFG_AS and ROFG_DA consistently outperformed standard AT and other state-of-the-art variants like TRADES across multiple attack types (PGD-20, AutoAttack).
  • Broad Applicability: The effectiveness of these methods across different model sizes and datasets confirms that feature generalization is a fundamental aspect of the RO phenomenon.

Limitations and Conclusion

While effective at mitigating RO, the proposed methods come with trade-offs. ROFG_DA is significantly slower due to iterative data augmentation (taking ~1222s per epoch compared to ~147s for standard AT), and both methods require tuning a loss threshold ($t$) to distinguish "small-loss" samples. In conclusion, this work provides a novel diagnostic framework for robust overfitting, identifying the role of natural data and feature generalization degradation as a path toward more reliable adversarial training.

Summary updated

BibTeX
@misc{yu2023understanding,
  author = {Chaojian Yu and Xiaolong Shi and Jun Yu and Bo Han and Tongliang Liu},
  title = {{Understanding Robust Overfitting from the Feature Generalization Perspective}},
  year = {2023},
  eprint = {2310.00607},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.00607},
}
Figure