Why Clean Generalization and Robust Overfitting Both Happen in Adversarial Training

Binghui Li, Yuanzhi Li · DOI

Adversarial training (AT) is the gold standard for defending deep neural networks against malicious perturbations. However, researchers have identified a persistent paradox: models trained this way generalize well to "clean" data but suffer from a massive "robust generalization gap." They effectively memorize adversarial examples in the training set without learning to resist them in the wild. This phenomenon is termed Clean Generalization and Robust Overfitting (CGRO).

The Problem: The Robust Generalization Gap

In standard training, a model that fits the training data well typically generalizes to the test set. In adversarial training, this relationship often breaks down. Models achieve near-zero error on the adversarial examples they were trained on, but their performance plummets when faced with new adversarial examples at test time. Strangely, these same models continue to perform excellently on standard, "clean" test data.

Accuracy curves during adversarial training, showing the widening gap between robust training accuracy and robust test accuracy over epochs.

The paper "On the Clean Generalization and Robust Overfitting in Adversarial Training from Two Theoretical Views" provides a rigorous mathematical explanation for this behavior, analyzing it through the lenses of representation complexity and training dynamics.

Theoretical View 1: Representation Complexity

The first explanation lies in the inherent difficulty of the tasks. Using computational learning theory, the authors compare the "size" (number of parameters) required for different types of classifiers. They prove a fundamental disparity:

  • Clean Generalization: A ReLU network needs only a polynomial number of extra parameters to achieve clean generalization and robust memorization.
  • True Robustness: A truly robust classifier requires an exponential number of parameters ($\Omega(\exp(D))$) in the worst case.

Because typical neural networks lack the exponential capacity required for true robustness, they take a "shortcut." They use their limited capacity to memorize the specific noise patterns of training samples rather than learning the complex, globally robust features needed for true defense.

Theoretical View 2: Training Dynamics

The authors further analyze the learning process of a two-layer Convolutional Neural Network (CNN) on structured data. They model the data as having "signal patches" (true features) and "noisy patches" (spurious features), tracking how weights evolve through a three-stage phase transition:

  1. Phase I (Signal Learning): The model quickly learns the "true" signal, enabling clean generalization.
  2. Phase II (Interference): Signal learning slows down as noise begins to interfere with the optimization process.
  3. Phase III (Noise Memorization): The model focuses entirely on memorizing the specific noise of training samples to minimize adversarial loss, leading to robust overfitting.

Empirical Validation

The researchers validated these theories using MNIST, CIFAR-10, and synthetic "patch" datasets.

Empirical results showing performance vs. model size on MNIST and CIFAR-10, alongside the feature learning process over iterations.

Key findings include:

  • Model Capacity: On CIFAR-10, as model capacity increases, robust training accuracy climbs much faster than robust test accuracy, confirming that added capacity is often co-opted for memorization.
  • Feature vs. Noise: On synthetic data, the model reached 100% clean test accuracy and 100% robust training accuracy, but only ~17.5% robust test accuracy, perfectly matching the theoretical CGRO definition.

Conclusion

The "shortcut" to robustness is a consequence of the massive complexity gap between clean and robust classification. Models prioritize memorizing training noise over learning expensive, truly robust features. Understanding this transition from feature learning to noise memorization provides a theoretical foundation for developing new regularization techniques that might one day prevent models from entering the "noise memorization" phase.

Summary updated

BibTeX
@misc{li2023why,
  author = {Binghui Li and Yuanzhi Li},
  title = {{Why Clean Generalization and Robust Overfitting Both Happen in Adversarial Training}},
  year = {2023},
  eprint = {2306.01271},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.01271},
}
Figure