Abstract
Training machine learning models to be adversarially robust typically involves minimizing a tractable surrogate loss, as the true adversarial 0/1 loss is NP-hard to optimize. This paper investigates the theoretical foundations of these surrogates, specifically focusing on $\mathcal{H}$-calibration and $\mathcal{H}$-consistency. The authors prove that standard convex surrogate losses lack calibration for complex hypothesis classes like Generalized Linear Models (GLMs) and one-layer neural networks. Furthermore, they demonstrate a critical disconnect in adversarial learning: unlike standard classification, calibration does not imply consistency. The study concludes that achieving consistency requires strict distributional assumptions, such as $\mathcal{H}$-realizability.
Introduction
Deep learning models are notoriously vulnerable to adversarial examples—small, imperceptible perturbations that trigger incorrect predictions. To defend against these, researchers aim to minimize the adversarial 0/1 loss, which penalizes a model if it misclassifies any point within a defined neighborhood (e.g., an $l_2$ ball) of an input.
Because direct optimization of the adversarial 0/1 loss is computationally intractable, practitioners rely on surrogate losses, such as cross-entropy applied to worst-case perturbed inputs. However, the theoretical validity of these surrogates remains poorly understood. This paper addresses this gap by analyzing whether minimizing these surrogates actually leads to the minimization of the true adversarial error.
Defining Calibration and Consistency
The authors evaluate surrogate losses through two primary lenses:
- $\mathcal{H}$-Calibration: This property ensures that minimizing the surrogate loss for a specific input point guarantees the minimization of the true adversarial loss for that point within a hypothesis class $\mathcal{H}$.
- $\mathcal{H}$-Consistency: This property ensures that minimizing the surrogate loss over the entire data distribution will successfully identify the model in $\mathcal{H}$ with the lowest possible true adversarial error.
While these two properties are often linked in standard classification, this research highlights a significant divergence in the adversarial setting.
Theoretical Analysis: The Failure of Convexity
Using statistical learning theory, the authors analyze calibration functions for various surrogate losses across GLMs and one-layer ReLU neural networks. Their findings challenge several common practices in adversarial training:
- The Convexity Liability: The authors mathematically prove that standard convex margin-based losses and supremum-based convex losses—the most common choices in adversarial training—are not $\mathcal{H}$-calibrated for GLMs or neural networks. This lack of calibration may explain the significant drop in standard accuracy often observed when training for robustness.
- Quasi-concave Alternatives: The research identifies a specific family of non-convex losses, known as "quasi-concave even" losses (e.g., the $\rho$-margin ramp loss), which can achieve $\mathcal{H}$-calibration for these complex model classes.
The Disconnect Between Calibration and Consistency
A major contribution of this paper is the proof that calibration does not imply consistency in adversarial learning. In standard settings, a calibrated loss is usually consistent; however, the authors prove that no continuous surrogate loss is consistent in the adversarial setting without specific assumptions about the data distribution.
This finding explicitly corrects the scientific record by falsifying a claim from a prominent COLT 2020 paper, which had incorrectly assumed that calibrated quasi-concave losses were automatically consistent. The authors show that for a surrogate to be $\mathcal{H}$-consistent, one must assume "$\mathcal{H}$-realizability"—the condition where the data distribution is perfectly separable by the model class even under adversarial perturbation (i.e., the Bayes adversarial risk is zero).
Empirical Validation
To validate these theoretical proofs, the authors utilized two simulated 2D datasets:
- Unit Circle: A distribution where data points are arranged such that the optimal adversarial error is non-zero. On this dataset, optimizing both calibrated and uncalibrated surrogates resulted in models that deviated significantly from the optimal adversarial classifier, confirming that calibration does not guarantee consistency.
- Segments: A distribution designed to be perfectly separable under perturbation (satisfying $\mathcal{H}$-realizability). In this scenario, the calibrated $\rho$-margin loss successfully converged to the optimal adversarial error, while standard convex losses failed.
Conclusion
This research provides a rigorous theoretical framework for understanding adversarial surrogate losses. It reveals that the convex surrogates widely used in the industry lack fundamental theoretical guarantees for robustness in neural networks. While non-convex quasi-concave losses offer a path toward calibration, they only guarantee consistency under the strict and often unrealistic assumption of $\mathcal{H}$-realizability.
Future work is required to identify weaker, more realistic distributional assumptions that might support $\mathcal{H}$-consistency and to extend these findings to deeper, multi-layer architectures used in modern AI applications.
Summary updated