Precise statistical analysis of classification accuracies for adversarial training

Adel Javanmard, Mahdi Soltanolkotabi · DOI

TL;DR

This paper provides a rigorous theoretical framework to understand the complex interplay between standard accuracy (on clean data) and robust accuracy (on adversarially perturbed data) in adversarial training. By precisely characterizing these accuracies for a class of minimax trained models on Gaussian mixture data, the authors offer a deep theoretical explanation for counterintuitive empirical observations and reveal how various factors like perturbation type, data size, and model complexity influence performance.

What Problem Does This Paper Address?

Modern machine learning models, despite their impressive performance, are notoriously vulnerable to adversarial attacks. Even tiny, imperceptible perturbations to input data can drastically degrade their accuracy. Adversarial training aims to mitigate this by training models to be robust to such attacks. However, empirical results show that adversarial training often leads to a trade-off: improved robust accuracy comes at the cost of reduced standard accuracy. Furthermore, this trade-off behaves in a surprisingly counterintuitive and data-dependent manner, making it difficult to predict and optimize. This paper addresses the fundamental question of why this happens and seeks to provide a precise theoretical understanding of how adversarial training affects both standard and robust accuracies, considering various factors like the type of adversarial perturbation (governed by different $l_p$ norms), data characteristics, and model complexity.

Methods

The core of this paper lies in its rigorous theoretical analysis. The authors leverage a powerful mathematical tool called the Convex Gaussian Minimax Theorem (CGMT) to derive precise characterizations of standard and robust accuracies. They focus on a specific class of adversarial training methods: minimax estimators trained on binary classification problems with data drawn from Gaussian mixture models. A key aspect of their approach is to analyze the problem in a high-dimensional asymptotic regime where both the number of data points and the feature dimension grow proportionally. They also introduce the concept of "robust separability" to characterize the data's inherent difficulty for adversarial training. By reformulating the adversarial training objective into a series of equivalent optimization problems, they can then apply CGMT to derive analytical expressions for the accuracies.

Datasets

The paper does not introduce new datasets. Instead, it uses a synthetic data model: a mixture of two Gaussian distributions with general anisotropic covariance matrices. This model allows for precise theoretical analysis and is a standard benchmark for studying classification problems. The authors also mention using this model for empirical validation, with specific examples using $d=400$ dimensional data.

Key Insights and Ideas

  • Counterintuitive Trade-offs: The paper provides a theoretical explanation for why the trade-off between standard and robust accuracy can be highly non-linear and dependent on factors like the type of adversarial perturbation ($l_p$ norm). For instance, $l_2$ perturbations might not affect standard accuracy, while $l_1$ or $l_\infty$ perturbations can hurt it.
  • Phase Transitions: A significant finding is the characterization of a "phase transition" in robust separability. Below a certain data-to-dimension ratio ($\delta^*$), the data is robustly separable with high probability, and above it, it becomes non-separable. This transition point is precisely characterized and depends on the adversary's power and the perturbation norm.
  • Role of $l_p$ Norms: The choice of $l_p$ norm for adversarial perturbations plays a crucial role. The paper demonstrates how different $p$ values lead to distinct behaviors in standard and robust accuracies, highlighting that a "one-size-fits-all" approach to adversarial training is unlikely.
  • Model Complexity Matters: The ratio of data size to feature dimension ($\delta$) is shown to be a critical factor, influencing both separability and the resulting accuracies.

Key Results

The paper derives precise analytical expressions for standard accuracy (SA) and robust accuracy (RA) for a class of minimax adversarially trained linear classifiers on Gaussian mixture data. These expressions depend on various parameters, including the adversary's power ($\epsilon_0$), the data distribution (mean $\mu$ and covariance $\Sigma$), and the perturbation norm ($p$). The authors precisely characterize the separability threshold ($\delta^*$) and show how it depends on these parameters. They also provide detailed analyses for specific $l_p$ norms ($p=1, 2, \infty$), revealing distinct behaviors and trade-offs. For example, in the separable regime with $p=2$, adversarial training has no effect on standard accuracy, while for $p=1$ and $p=\infty$, it hurts standard accuracy.

Limitations and Future Work

The paper focuses on linear classifiers and Gaussian mixture models. While these are foundational, the authors acknowledge that extending their theory to more complex models (like random features models) and different data distributions is a natural next step. They also suggest that their framework could be used to analyze other adversarial training approaches and to investigate optimal adversarial training strategies that achieve better trade-offs across a range of adversary powers. The paper also points out that the analysis is primarily asymptotic, and while they expect their results to hold well for moderate dimensions, further empirical validation in such regimes is always valuable.

Summary updated

BibTeX
@misc{javanmard2020precise,
  author = {Adel Javanmard and Mahdi Soltanolkotabi},
  title = {{Precise statistical analysis of classification accuracies for adversarial training}},
  year = {2020},
  eprint = {2010.11213},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.11213},
}
Figure