Adversarial Training Can Hurt Generalization

Aditi Raghunathan, Sang Michael Xie, Fanny Yang, John C. Duchi, Percy LiangarXiv 2019

Adversarial training is currently the most effective defense against malicious perturbations designed to fool deep learning models. However, it comes with a well-documented downside: models trained for robustness often exhibit significantly lower accuracy on clean, unperturbed data compared to their standard counterparts. For instance, on the CIFAR-10 dataset, standard training typically achieves ~95% accuracy, while adversarial training often drops this to ~87%. This paper investigates whether this "robustness-accuracy tradeoff" is an inherent mathematical conflict or a manageable statistical challenge.

The Sample Complexity of Robustness

The authors hypothesize that the drop in clean accuracy is not due to a fundamental incompatibility between robustness and accuracy, but rather a sample complexity problem. Robust models must learn decision boundaries that are "flat" in specific local regions to resist perturbations. This requirement naturally makes the target function more complex, necessitating significantly more training data to achieve the same level of generalization as a simpler, non-robust model.

To illustrate this, the authors introduce the "Staircase" problem, a 1D regression task where the true underlying function is a staircase. While a simple linear model can approximate the general trend with few samples, it is not robust. Learning the exact staircase—which is both perfectly accurate and robust—requires many more samples to capture the complex local "steps."

The Staircase Problem: (a) shows the true robust function $f^*$ vs a linear approximation. (b) and (c) demonstrate how a robust model requires a large sample size to generalize correctly, whereas standard training settles for a simpler fit.

Empirical Validation

The researchers validated their theory across several benchmarks, including CIFAR-10 and MNIST. Their findings consistently show that the performance gap between standard and robust models is highly dependent on the amount of available data.

On CIFAR-10, the gap in clean accuracy narrows as the number of training samples increases. This suggests that with enough data, the robust model eventually learns the complex features necessary for both high accuracy and high robustness. Conversely, on MNIST, adversarial training can actually improve clean accuracy. This occurs because the robust solution for MNIST is simpler than the standard one, allowing adversarial training to act as a beneficial regularizer.

Empirical results showing that the gap between robust and standard test error decreases as the number of labeled training samples increases across different perturbation levels ($\epsilon$).

Bridging the Gap with Unlabeled Data

Since the primary bottleneck for robust generalization is the lack of labeled data, the authors propose Robust Self-Training (RST). This semi-supervised approach leverages large amounts of unlabeled data to help the model learn the complex geometry required for robustness without the prohibitive cost of manual labeling.

In experiments on CIFAR-10, standard adversarial training reached 87.3% clean accuracy. By incorporating unlabeled data via RST, the clean accuracy was recovered to 89.7%, while simultaneously boosting robust accuracy from 45.8% to 62.5%. This demonstrates that the perceived tradeoff can be mitigated by addressing the underlying sample complexity requirements.

Conclusion

This work reframes the robustness-accuracy tradeoff as a statistical challenge rather than a fundamental limitation. The "hidden cost" of adversarial training is the increased demand for data. Future research in robust machine learning should prioritize methods that can efficiently utilize massive unlabeled datasets to satisfy the high sample complexity of robust decision boundaries.

Summary updated

BibTeX
@misc{raghunathan2019adversarial,
  author = {Aditi Raghunathan and Sang Michael Xie and Fanny Yang and John C. Duchi and Percy Liang},
  title = {{Adversarial Training Can Hurt Generalization}},
  year = {2019},
  eprint = {1906.06032},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.06032},
}
Figure