Universal Lower-Bounds on Classification Error under Adversarial Attacks and Random Corruption

Elvis DohmatobarXiv 2020

Abstract

We theoretically analyse the limits of robustness to test-time adversarial and noisy examples in classification. Our work focuses on deriving bounds which uniformly apply to all classifiers (i.e all measurable functions from features to labels) for a given problem. Our contributions are two-fold. (1) We use optimal transport theory to derive variational formulae for the Bayes-optimal error a classifier can make on a given classification problem, subject to adversarial attacks. The optimal adversarial attack is then an optimal transport plan for a certain binary cost-function induced by the specific attack model, and can be computed via a simple algorithm based on maximal matching on bipartite graphs. (2) We derive explicit lower-bounds on the Bayes-optimal error in the case of the popular distance-based attacks. These bounds are universal in the sense that they depend on the geometry of the class-conditional distributions of the data, but not on a particular classifier. Our results are in sharp contrast with the existing literature, wherein adversarial vulnerability of classifiers is derived as a consequence of nonzero ordinary test error.

Introduction

The susceptibility of machine learning models to adversarial examples—carefully crafted, small perturbations that lead to incorrect predictions—poses a significant challenge for safety-critical applications. While much of the existing literature attributes this vulnerability to specific model architectures or training deficiencies, this paper investigates whether adversarial vulnerability is a fundamental property of the underlying data geometry.

By establishing universal, classifier-independent lower bounds on adversarial error, we demonstrate that for certain data distributions, even a theoretically optimal classifier is destined to fail under small perturbations. This shift in perspective moves the focus from "fixing the model" to understanding the intrinsic limits of robustness imposed by the data itself.

Adversarial Attacks as Optimal Transport

The theoretical framework of this study relies on bridging classification theory with Optimal Transport (OT). We model an adversarial attack as a transport problem where an attacker aims to transform samples from one class distribution into another while minimizing a cost function.

Specifically, we consider an attack budget $\epsilon$ and a binary cost function $c(x, y)$ defined as $0$ if $d(x, y) \le \epsilon$ and $1$ otherwise. In this setting, the optimal adversarial attack corresponds to an optimal transport plan between class-conditional distributions.

The geometric interpretation of an adversarial budget $\epsilon$ within the feature space $\mathcal{X}$. The green band represents the region of allowed perturbations $|x - y| \le \epsilon$.

Using Kantorovich-Rubinstein duality and Strassen’s Theorem, we derive variational formulae for the adversarial Bayes-optimal error. This error is shown to be related to a modified Total Variation distance, $\text{TV}_\epsilon(P^1, P^2)$, which quantifies the overlap between distributions $P^1$ and $P^2$ under an $\epsilon$-perturbation.

Universal Lower Bounds and Concentration of Measure

A key result of our work is the derivation of a universal lower bound for the adversarial error of any classifier: $$\text{err}^*_\epsilon(P^1, P^2) \ge \frac{1}{2}(1 - \text{TV}_\epsilon(P^1, P^2))$$ This bound is independent of the specific classifier used and depends only on the geometry of the class-conditional distributions.

Furthermore, we explore the implications of this bound in high-dimensional settings. We prove that for light-tailed distributions (e.g., sub-Gaussian), the adversarial error of any classifier approaches the random guessing threshold (50%) exponentially fast as the attack budget $\epsilon$ increases. This "curse of dimensionality" implies that high-dimensional data is inherently more vulnerable to adversarial perturbations, as the effective distance between classes shrinks relative to the volume of the space.

Computational Aspects and Empirical Validation

To bridge theory and practice, we provide an algorithm to compute the optimal universal attack plan from finite samples. This is achieved by solving a maximal matching problem on a bipartite graph, which can be implemented efficiently in $\mathcal{O}(k \min(n_1, n_2) \sqrt{\max(n_1, n_2)})$ time, where $n_1, n_2$ are sample sizes and $k$ is the average number of edges.

While the algorithm is computationally tractable, we highlight the "curse of dimensionality" from the attacker's perspective: the sample complexity required to accurately estimate the optimal transport plan grows exponentially with the number of dimensions. This suggests that while universal vulnerabilities exist, finding the globally optimal attack may be difficult in practice for very high-dimensional data without massive amounts of samples. Additionally, the variational formulas derived provide a theoretical justification for adversarial training, showing it to be a sound proxy for minimizing the adversarial Bayes-optimal error.

Conclusion

This paper provides a rigorous theoretical foundation for understanding adversarial robustness as a geometric property of data. By deriving universal lower bounds, we show that adversarial vulnerability is not merely a symptom of imperfect training but an unavoidable consequence of data distribution in high-dimensional spaces. These results provide a benchmark for evaluating the robustness of existing models and offer theoretical support for strategies like adversarial training.

Summary updated

BibTeX
@misc{dohmatob2020universal,
  author = {Elvis Dohmatob},
  title = {{Universal Lower-Bounds on Classification Error under Adversarial Attacks and Random Corruption}},
  year = {2020},
  eprint = {2006.09989},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.09989},
}
Figure