More Data Can Expand the Generalization Gap Between Adversarially Robust and Standard Models.

Lin Chen, Yifei Min, Mingrui Zhang, Amin KarbasiarXiv 2020

Abstract

Despite remarkable success in practice, modern machine learning models have been found to be susceptible to adversarial attacks that make human-imperceptible perturbations to the data, but result in serious and potentially dangerous prediction errors. To address this issue, practitioners often use adversarial training to learn models that are robust against such attacks at the cost of higher generalization error on unperturbed test sets. The conventional wisdom is that more training data should shrink the gap between the generalization error of adversarially-trained models and standard models. However, we study the training of robust classifiers for both Gaussian and Bernoulli models under $\ell_\infty$ attacks, and we prove that more data may actually increase this gap. Furthermore, our theoretical results identify if and when additional data will finally begin to shrink the gap. Lastly, we experimentally demonstrate that our results also hold for linear regression models, which may indicate that this phenomenon occurs more broadly.

Introduction

A fundamental tenet of machine learning is that increasing the volume of training data generally improves model performance. However, as models are increasingly deployed in security-critical environments, the focus has shifted from standard accuracy to adversarial robustness. Adversarial training, the primary defense against small, malicious perturbations, often introduces a significant trade-off: robust models typically perform worse on "clean" (unperturbed) data than their standard counterparts. This performance discrepancy is known as the cross generalization gap.

The prevailing assumption in the research community has been that this gap is a consequence of data scarcity. The logic follows that with sufficient data, a robust model should eventually learn the underlying distribution well enough to match standard performance. This paper challenges that assumption, providing rigorous proof that adding more data can, counterintuitively, expand the generalization gap.

Theoretical Framework and Methodology

To move beyond empirical observations in complex deep networks, the authors analyze three fundamental mathematical models:

  1. Gaussian Classification: Binary classification where data follows a Gaussian distribution $\mathcal{N}(y\mu, \Sigma)$.
  2. Bernoulli Classification: A task with binary features and signal strength parameter $\tau$.
  3. Linear Regression: A continuous prediction task used to verify the broader applicability of the findings.

The study focuses on the minimax optimization problem, where the learner seeks to minimize the maximum loss an adversary can cause within an $\ell_\infty$ ball of radius $\epsilon$. By deriving exact expressions for the cross generalization gap ($g_n$) as a function of the number of training samples ($n$), the authors characterize how this gap evolves as the dataset grows.

The Generalization Gap Paradox

The research identifies a critical "phase transition" in the behavior of the generalization gap, determined by the relationship between the adversary's strength ($\epsilon$) and the data's inherent signal.

Two Distinct Regimes

  • Strong Adversary Regime: When the attack budget $\epsilon$ is large relative to the signal, the generalization gap monotonically increases with $n$. In this regime, more data indefinitely degrades the robust model's performance on clean data relative to a standard model.
  • Weak Adversary Regime: When the attack budget is small, the gap follows a "hump" shape. It initially increases (the "increasing stage") before reaching a peak and eventually beginning to shrink as $n \to \infty$.

The "Increasing Stage" Trap

A particularly significant finding is that the "increasing stage" in the weak adversary regime can be made arbitrarily long. A practitioner might add a substantial amount of data and observe a widening gap, leading to the false conclusion that they are in the strong adversary regime, when in fact they simply haven't reached the turning point where more data starts to help.

Key Results

The theoretical predictions are validated through synthetic experiments that allow for precise control over parameters.

Generalization gap $g_n$ for Gaussian and Bernoulli models as a function of training dataset size $n$.
  • Gaussian Model: As shown in Figure 1(a), if the perturbation $\epsilon$ exceeds the data mean $\mu$, the gap expands indefinitely. If $\epsilon < \mu$, the gap eventually shrinks, but only after a period of expansion that scales with the signal-to-noise ratio.
  • Bernoulli Model: Figure 1(b) illustrates an "oscillating" trend. While the gap is not monotonic, it remains within a "strip" that exhibits the same phase transition behavior observed in the Gaussian case.
  • Linear Regression: Experiments with Poisson-distributed inputs (discrete spacing) versus Gaussian inputs (continuous spacing) highlight that data "crowding" on the real line is a primary driver of the gap's expansion. In discrete settings with small $\epsilon$, the gap can shrink immediately, whereas continuous settings often face the expansion phase.

Conclusion and Future Directions

This work demonstrates that "more data" is not a universal remedy for the robustness-accuracy trade-off. The findings suggest that current adversarial training objectives fundamentally sacrifice standard accuracy, and this sacrifice may not vanish even in the infinite-data limit.

The primary limitation is the focus on linear models. Future research is needed to determine how these regimes manifest in high-dimensional, non-linear deep neural networks. Ultimately, closing the generalization gap may require moving beyond the minimax paradigm toward entirely new training objectives or architectures that can reconcile robustness with standard generalization.

Summary updated

BibTeX
@misc{chen2020more,
  author = {Lin Chen and Yifei Min and Mingrui Zhang and Amin Karbasi},
  title = {{More Data Can Expand the Generalization Gap Between Adversarially Robust and Standard Models.}},
  year = {2020},
  eprint = {2002.04725},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.04725},
}
Figure