Manuscript Offprint
arXiv:2610.22955On the tradeoff between robustness and geometric accuracy in adversarial training
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
RACHEL MORRIS, RYAN MURRAY, AND KERREK STINSON
ABSTRACT. For non-parametric binary classification in the presence of an adversary, we prove an optimal quantitative estimate for adversarial classifiers controlling geometric accuracy, as measured by the Hausdorff distance to the Bayes classifier, in terms or their robustness, as encoded by the adversarial budget . This rigorously shows that robust classifiers sacrifice at most or in accuracy, depending on the regularity of the underlying Bayes classifier. In contrast to prior work on the incompatibility of robustness and accuracy over low-complexity hypothesis classes, our work shows that high-complexity hypothesis classes allow for robust classifiers with precisely quantified accuracy. Our results apply for adversaries determined by any norm on Euclidean space and in both the infinite and finite data settings.
1. INTRODUCTION
Adversarial training is a robust optimization principle that accounts for perturbations of the data in the training process. In the formulation proposed by Madry et al. [18], one seeks to solve the min-max optimization problem
adversarial training
where is a classifier, is a probability measure describing the data, is the loss function, is a ball defined by a norm , and represents the adversarial budget. As seen in a variety of work [3, 23, 26, 27], adversarial training is a powerful antidote to adversarial attacks. However, there is an underlying tension in the problem:
Does robustness come at the expense of accuracy?
Here, accuracy is often measured by the standard risk . We are not the first to question the tradeoff between robustness and accuracy. Tsipras et al. [25] constructed a binary classification problem where small standard risk is incompatible with small robust risk over all linear classifiers. Nakkiran [20] further quantified this by showing that
over linear classifiers for a particular classification problem. Instead of viewing this as an intrinsic shortcoming of adversarial training, Nakkiran proposed that robust training is at odds with simplicity, and the loss of accuracy is a consequence of an insufficiently complex hypothesis class. In other words, finding a robust and (standard) accurate classifier is prohibited by a rigid hypothesis class.
In this paper, we take the complementary view: We show that given a flexible hypothesis class, robust classifiers sacrifice at most in geometric accuracy, and in fact, the accuracy is guaranteed to improve with additional structural information on the decision boundary of the Bayes classifier. Precisely, in the setting of non-parametric (where classifiers are the most expressive) binary classification, we consider the Bayes classifier
2020 Mathematics Subject Classification. 28A75, 68Q32, 62G35, 35B25.
Key words and phrases. adversarial training, robust classifiers, Hausdorff convergence, geometric measure theory.
which is unique under a simple non-degeneracy assumption on the data , and an adversarial classifier
We prove that for an -adversary it holds that
where is the local Hausdorff metric on (in fact, a related, but weaker estimate (5.13) holds with no regularity assumptions on ). A similar geometric estimate holds for adversarial training with perturbations determined by any norm (e.g., an -adversary) and for the empirical adversarial training problem with near optimal sample complexity; we refer to Theorems 2.3 and 2.7 for the precise details. We remark that Raghunathan et al. [22] were concerned with the robustness-accuracy tradeoff in finite data settings, and our empirical result (Theorem 2.7) provides, under appropriate assumptions, rigorous guarantees in precisely finite data settings.
Our approach builds on the geometric perspective for adversarial training introduced in [6]. Therein, it was shown that the adversarial training problem could equivalently be viewed as standard risk minimization regularized by a nonlocal total variation, allowing the authors to prove the existence of adversarial classifiers. Subsequent work by Bungert and the last author in [7] identified the asymptotic limit of the nonlocal total variation as the adversarial budget vanished. Using this, they showed that even without non-degeneracy assumptions on the data (i.e., allowing for non-unique Bayes classifiers), adversarial training acts as a selection mechanism for standard risk minimization with adversarial classifiers converging to a minimal-perimeter Bayes classifier as . It was very recently shown that this selection is still present for parametric models of adversarial training and allows for interpretability of the model via the saliency map [17]. Quantitative estimates for geometric accuracy were first introduced by the first two authors in [19]. Of particular interest to us here, it was shown that as given a unique Bayes classifier and under additional non-degeneracy and regularity assumptions that . By comparison, our main result (1.1) shows that a dimension-independent estimate holds for the geometric error, making the new optimal estimate meaningful in the context of high-dimensional statistics. The optimality of (1.1) is formally justified in Examples 5.4 and 5.8 and by [13], where it was shown that is described in terms of a curvature flow.
We briefly remark on related literature, though we surely provide an incomplete review which mostly focuses on the theoretical and mathematical aspects of the problem. Existence of adversarial classifiers has also been proven by Awasthi et al. [2] for a closed-ball version of the optimization problem. The open-ball model we consider has the advantage of substantially simplifying questions regarding measurability of classifiers. Frank and Niles-Weed [10] developed an existence theory for adversarial training with surrogate losses, and consistency of such models was studied by Awasthi et al. [1]. Building on this, Frank has identified natural uniqueness conditions for adversarial training in specific contexts [9, 8]. It has also been fruitful to view adversarial training as a distributionally robust optimization problem, opening the door to analysis via optimal transport. From this perspective, Pydi and Jog [21] proved existence of (closed-ball) adversarial classifiers, and García Trillos et al. [11, 12] proved existence of multiclass classifiers and a reformulation of the problem in terms of multimarginal optimal transport. We are optimistic that our low (Lipschitz) regularity estimate (1.1) will help quantify accuracy in the multiclass case, where the geometry must account for junctions where multiple classes meet.
Outline of the strategy. The intuition behind our arguments is contained in the proof of (1.1) for an -adversary under assumed regularity on the boundary of the Bayes and adversarial classifiers, see Section 3. For this, we use the first-order necessary conditions for adversarial classifiers introduced in [13] to deduce that all points in the boundary must be sufficiently close to . The proof is conditional as it is not known whether we can a priori assume any regularity for ; the presence of non-smooth determining the adversary further complicates the matter. To extend the argument beyond these assumptions, we introduce a flexible method for constructing energetic competitors by removing a ball from a given classifier, cf. Lemma 5.1. For minimizers, these energetic competitors are used to construct geometric barriers, preventing from moving too far away from . The barriers depend on both and the regularity of , thereby leading to control by or depending on whether has low (Lipschitz) or high ( ) regularity, respectively. The construction of barriers is highly adaptable, and with high probability, we can prove that the geometric estimates hold in the finite data setting assuming the number of sampled points satisfies , for a constant independent of dimension. In the case , this is roughly the number of samples needed to land within any ball of size in the domain. A fundamental challenge with finite data is quantifying geometric errors due to differences between the empirical distribution and the infinite data distribution. Using the results of García Trillos and Slepčev [15] to control the -Wasserstein distance between these two distributions, we introduce energetic competitors for the finite data classifiers in Lemma 6.1. Due to the probabilistic setting, the competitor must be carefully ‘initialized’ by an averaging argument that controls the interaction between distributional uncertainty and irregular geometry.
Organization. In Section 2, we precisely formulate the adversarial training problem and state the main results. The heuristic proof for convergence based on the first variation is given in Section 3. A brief review on adversarial training in metric spaces is contained in Section 4. In Sections 5 and 6, we prove our main results in the continuum (infinite data) and empirical (finite data) settings, respectively.
Notation. We use and to denote constants that may change from line to line but are always independent of . We indicate dependence via , which says that depends on . For , we often write . Let be a norm on Euclidean space and be the metric defined by . Any object implicitly or explicitly depending on a norm is taken to be with respect to unless stated otherwise, e.g., the ball . For a set , we define the (anisotropic) distance to the set as . For two sets and , we write . Similarly, the signed distance to is defined as . We use to denote the standard Euclidean norm.
ACKNOWLEDGMENTS
R. Murray acknowledges partial support from NSF DMS 2307971 and a Simons travel grant. K. Stinson was supported by funding from the NSF RTG grant DMS-2136198. The authors thank Leon Bungert for many fruitful discussions relating to this work. Part of this work was conducted during a visit to the Casa Matemática Oaxaca; R. Murray and K. Stinson are grateful for the hospitality during their visit.
2. MAIN RESULTS
We divide our results into two settings: continuum and empirical. First, we consider at the adversarial training problem in the infinite data limit, where the energetic cost is in terms of the underlying data distribution . We prove that the gap between the adversarial classifier and the Bayes classifier is controlled directly by robustness, via the parameter . Second, we introduce the empirical adversarial training problem and control the distance of the empirical minimizer to the Bayes classifier by and the number of sampled data points.
2.1. Convergence for the continuum adversarial training problem. Let be a norm on Euclidean space , its associated metric, and the collection of Borel measurable sets in . Binary classifiers in adversarial training are determined by the optimization problem
where is a probability measure on ,
is the (unnormalized) conditional density, and is the -dilation. We denote by a given minimizer of the adversarial classification problem (2.1), which exists by Theorem 3.18 in [6] (see also Section 4). For convenience we write the adversarial risk above as
Convergence rates of towards the Bayes classifier rely on two basic ingredients: non-degeneracy of the densities and regularity of the Bayes classifier. Non-degeneracy ensures is the unique Bayes classifier and formally that this uniqueness is stable at first order. When no confusion arises, we interchangeably use for the Lebesgue-density of the measure defined in (2.2), i.e., .
Definition 2.1 (Bayes classifier and non-degeneracy). Letting be the Bayes classifier, we say that the densities are non-degenerate if for any compact there is and a constant so that , , and
We emphasize that when is locally -regular (in the typical Euclidean sense), then (2.3) follows from the simple non-degeneracy condition and on .
Universally, we assume that is an open set with locally Lipschitz boundary, which, as we will show, is sufficient to recover an control on geometric accuracy. To obtain the improved estimate, we also require that the Bayes classifier is smooth with respect to the norm , referred to as -regular. If for instance , the Euclidean norm, a -regular set has -regular boundary and the -normal vector is the Euclidean normal vector. Similarly, in the case belongs to , -regularity coincides with standard -regularity for and the -normal vector is the Cahn–Hoffman vector. In the case that is crystalline, e.g., or , this allows for certain polygonal geometries for . We refer to [4] for examples of regular sets with respect to crystalline norms. One elementary example of a -regular set is the anisotropic ball . We state the precise definition of a -regular set, cf. Definition 3.1 in [5].
Definition 2.2 (σ-regular sets). We say that is a locally σ-regular set if for any compact there is a Lipschitz regular vector field such that for -a.e. ,
where is the standard Euclidean outer normal of and is the dual norm.
We emphasize to the reader that the technical advantage of -regularity is that a tubular neighborhood of may be defined in terms of tangential-normal coordinates (see Proposition 5.6).
Assuming the Bayes classifier is non-degenerate and regular, we show that any minimizer of (2.1) is (locally) -close to and our estimate provides the optimal dimension-independent scaling in determined by the underlying regularity of the classifier. For a given set , define
which is simply the Hausdorff metric localized to K.
Theorem 2.3. Suppose that is the Bayes classifier with locally Lipschitz boundary, the densities are non-degenerate (see Definition 2.1), and is a minimizer of the adversarial classification problem (2.1) for . Given the following holds:
(1) (Low regularity). There is a constant such that
(2) (High regularity). If in addition has locally -regular boundary (see Definition 2.2), then there is a constant such that
The proof of Theorem 2.3 is contained in Section 5. For intuition, in Section 3 we provide a simpler proof based on the first variation of the energy in the case that the boundary of is assumed to be regular and , the Euclidean norm.
We include a couple remarks on the theorem.
Remark 2.4 (Optimality). Theorem 2.3 provides the best expected control on accuracy via given the underlying regularity of . In Example 5.4 we provide a heuristic calculation for a Lipschitz surface when showing over a natural class of energetic competitors. Similarly, in Example 5.8, we show that is optimal in the high regularity setting. Another way to look at the high regularity setting is through [14], which shows that is formally given by a nonlocal curvature flow, which agrees with the fact that (2.6) is optimal.
Remark 2.5 (Dependence on dimension). The dependence of constants in Theorem 2.3 on the dimension is typically polynomial given fixed information on the densities and . In the high regularity setting, letting and be small so as to satisfy both Definitions 2.1 and 2.2 on the dilation and defining , we have that
for a constant where is the modulus of continuity for in . A similar conclusion holds in the low regularity setting, though the constant also depends on the equivalence of and . For the interested reader, we make many of the constant dependencies transparent in the proof of Theorem 2.3.
Remark 2.6. We take a slight deviation from [19] and do not control . To see that such an adjustment is necessary (though benign), it is possible and , meaning that .
2.2. Convergence for the empirical adversarial training problem. We now discuss convergence rates for the empirical adversarial training problem given data sampled from . In the high regularity setting where we hope for an control, we expect to require enough samples to resolve the boundary layer of width . As we should have this resolution everywhere along the boundary (an unknown), this requires sufficient data for every -ball in the domain. A direct estimate for this heuristic says the number of samples should scale like so that failure occurs with probability less than . While we do not recover this exact scaling, we require a similar number of samples—at most —to translate the convergence rate from Theorem 2.3 to the empirical adversarial training problem.
We simplify the setting by assuming that the (unnormalized) conditional densities defined in (2.2) are supported in , a bounded connected set with Lipschitz boundary, and that there is so that in for . If these conditions hold and Definition 2.1 holds with replaced by , we say the densities are non-degenerate in .
We introduce the empirical problem. Let be sampled from and define the discrete domain
For , using the samples , we define the empirical measures
We define the empirical adversarial classification problem as follows: Find minimizing the risk functional
where is the complement relative to the discrete domain and the dilations are defined by the anistropic distance as before. Following the work of [6], minimizers of this problem exist and we denote an empirical minimizer by (see Section 4).
Following the classical approach for ensuring dense sampling with respect to a specified length scale, we define the distributional error
which we use to quantify the distance between and , cf. [15, Theorem 1.1] where appears. Recalling from (2.4), we prove the following in Section 6.
Theorem 2.7. Suppose that is the Bayes classifier with locally Lipschitz boundary in , the densities are non-degenerate in (see above (2.8)), and is a minimizer of the empirical adversarial classification problem (2.8) for and . Given and , the following holds:
(1) (Low regularity). There is a constant and such that if then
(2) (High regularity). Supposing in addition has locally -regular boundary in (see Definition 2.2) and , there is a constant and such that if then
As this argument is substantially more involved than the continuum/infinite data setting and depends on the equivalence of and even in the high regularity setting, we do not provide as close of an accounting of constants and their dependencies, though the general dependence is as expected: meaning .
Remark 2.8 (Number of samples). Following the heuristic discussion from the beginning of this subsection, we would hope to require in the high regularity setting. Ignoring , we pay the price of an extra factor of with , meaning we have sampled well in all balls of radius with high probability. The same decrease in is found in the low regularity setting. The reason for the increase in samples is relatively technical: the proof of Theorem 2.7 relies on delicate averaging arguments to control Minkowski-type perimeter terms arising due to the gap between the empirical and continuum data distributions (see Lemma 6.1). Importantly, however, this shortcoming is not exacerbated in higher dimensions.
Remark 2.9 (The domain ). Using densities that are non-degenerate in allows us to take advantage of results in [15] giving Wasserstein convergence rates for empirical distributions to their continuum counterparts. It is likely that Theorem 2.7 holds in (analogous to the statement of Theorem 2.3) with more work spent localizing the Wasserstein convergence to regions where the densities are bounded away from 0. However, as this would distract from the essential difficulties, we do not pursue this here.
3. Heuristic argument: Proof in smooth case
We begin with a proof of convergence rates in the case that is smooth. While the regularity of is not well-understood in general, the method of proof illuminates the basic argument in a simpler setting than Theorem 2.3. As this result is not a logical prerequisite for our general proof, we avoid technical details where they hinder intuition.
Heuristic argument for Theorem 2.3(2). We suppose is the Euclidean norm, that is a minimizer of the adversarial training problem, and that has compact -boundary. Let have compact -boundary and be a non-degenerate Bayes classifier as in Definition 2.1 such that on and . Under these hypothesis, we sketch a proof of Theorem 2.3 based on the first variation. We point out that by convention the curvature of a ball is positive.
The minimizer satisfies the first order necessary conditions identified in [14], Proposition 6.2, given by
Here is the outer normal of the boundary and is the -th curvature of . We assume and then rearrange the necessary conditions to obtain
Now, let us consider the point which is farthest from , namely
We note that by the suboptimal convergence rates in [19], we may assume that for sufficiently small. Since is the farthest point of from , that we immediately have for some only depending on (and not on ) and that . (Control on the curvatures is analogous to having at a maximum of , where the condition ensures can be expressed as a graph over locally near .) The curvature lower bound gives that
from which one deduces
for a constant . Using the regularity of , the lower bound on , along with the fact that , we can bound
for . We then combine (3.2) and (3.3) to find
for a constant C > 0 independent of . On the other hand, by the non-degeneracy condition (2.3), we have
Altogether the previous two displays imply , or equivalently for a constant independent of . Combined with the analogous argument for the farthest point in from , we conclude that , which then implies the desired control on the Hausdorff metric.
Remark 3.1. In the complete proof of Theorem 2.3(2), non-degeneracy is effectively used in the same way. The essential challenge is how to circumvent the assumed regularity of the . The key idea is that, for any minimizer, the points that are farthest away from ( above) come with mild, one-sided regularity properties which we can leverage to construct energetic competitors.
- PRELIMINARIES ON ADVERSARIAL TRAINING
For the reader’s convenience, we briefly recall some notation and results for the adversarial classification problem that we use throughout the paper. Given , where is a metric space, the -dilation of in is
The -erosion of A in X is
The opening and closing of in is given by and , respectively. The closing and opening satisfy simple subset relations, which we record in the following proposition.
Proposition 4.1 ([16]). In a metric space the following hold:
The metric spaces we are interested in are the Euclidean space or finitely many samples , both equipped with the metric determined by . Within the proof of Theorem 2.7—as we must connect discrete objects to continuum counterparts—we explicitly state whether to use dilation/erosion in or . Typically, we use calligraphic writing to denote a set to remind the reader that erosions/dilations/complements should be done within . For dilations however it usually does not matter because, for instance, is the same regardless of using the dilation in or .
For , Theorem 3.18 [6] shows both problems (2.1) and (2.8) have solutions denoted by and . In fact, we may recover further solutions by taking the closing and opening.
Proposition 4.2. Let be a minimizer of (2.1) with a probability measure on . Then for any measurable set it holds that
and likewise with the opening replaced by the closing. In particular, and minimize (2.1). The analogous result holds for a minimizer of (2.8) with erosions/dilations defined relative to and in place of .
This proposition follows from Lemmas 3.28 and Corollary 3.29 in [6], where it is shown in the case of a metric space with . The relation can be localized since , and similarly for the closing.
5. THE CONTINUUM PROBLEM
We decompose the proof of Theorem 2.3 into its two parts. In both cases our approach is to construct an energetic competitor by removing a ball. With the competitor in hand, the general strategy for the main theorem is to choose as large of a ball as possible that stays on one side of in the non-degenerate region, thus leading to a favorable energy improvement, and contradicting minimality of a given classifier.
5.1. Energetic competitor. We construct our basic energetic competitor in the following lemma. By choosing and r depending on the circumstance, this construction can be directly applied in a variety of scenarios.
Lemma 5.1 (Basic competitor). Let and . For and , we define
Then for
(5.1) we have
This lemma shows that we can improve the energy of A by excising the ball B anytime the integral on the left-hand side of (5.2) is over a domain with positive measure and has positive integrand.
Proof of Lemma 5.1. Since , we have and . From this we rewrite
To estimate the right-hand side, we prove a useful set relation. Note that for , it follows and for any it holds that . We claim that
To see this, consider . We have by definition of that so that . For such , by the definition of , . Since , we have that
where we have used by Proposition 4.1, leading to (5.4).
Applying a change of variables and (5.4), we have
where is the Jacobian of (as in the lemma's statement). Using that by definition, we have , which when combined with (5.3) and (5.5) concludes the lemma.
5.2. Convergence in the low regularity setting. We turn to the proof of Theorem 2.3(1) in the case of low regularity. We begin with the proof of a one-sided bound. We control how far outside of the erosion of the optimizer, i.e., , extends. Given the symmetry of the argument with respect to labels, it also gives a bound for how far inside the set pushes.
Proposition 5.2. Under the hypotheses of Theorem 2.3(1), there is and such that
Proof. Let be sufficiently small so that Definition 2.1 holds on , namely an expanded version of . Suppose, with the aim of establishing a contradiction, that
for chosen below (independent of the dimension). Consider with , which exists as and are closed and is compact.
Step 1 (Generic competitor and estimates). Define
as in Lemma 5.1: we will make an appropriate choice for r dependent upon two cases below (see also Figure 1 below). We have
where M and are defined in (5.1). First, we note it holds that


FIGURE 1. The geometric barrier constructions for low (left) and high (right) regularity settings, as in Propositions 5.2 and 5.5, respectively. In the low regularity setting, the barrier radius is proportional to the distance between and . By contrast, in the high regularity setting, we use normal coordinates to select a radius independent of .
so long as , so has positive measure. We estimate the integrand from below for with
where is the modulus of continuity of on a set and we use that in . We also require that and so that necessarily belongs to . To estimate the Jacobian, we linearize the exponential with
where the last inequality holds if . Inserting this into our prior estimate we obtain
for . We reduce to cases based upon on whether is close to or far from to show that the right-hand side of (5.9) is strictly positive. Once this holds, (5.8) and (5.7) contradict the minimality of showing that (5.6) cannot hold.
Step 2 ( far from ). Suppose that . Let and define
For , we have . Further, using that , we estimate (5.9) from below by
which is valid when . Thus taking gives a positive lower bound to (5.10) contradicting minimality. We conclude that
Step 3 ( close to ). With (5.11) in hand, we may use non-degeneracy (2.3) to estimate (5.9) from below. Let ; this is consistent with the inequality for sufficiently small. Now, by letting be small enough, we have , we have
(5.12)
where we have used (5.6) and just depends on . Choosing large enough so that and then considering gives positivity of the expression in (5.9), contradicting minimality of and concluding the proof.
We remark that the above proof does not actually rely on the existence of a locally Lipschitz boundary for . At this point, up to ignoring the opening of (which can be dealt with as in the proof of Theorem 2.3(1) below), Proposition 5.2 can be used to show the subset relation
already providing meaningful information on the geometry of minimizers with no regularity assumptions on . It is only to obtain the symmetric relation with and swapped that we require be locally Lipschitz. At a high level, Lipschitz regularity gives a direction to move that is guaranteed to be away from (in the graphical setting this is in the -th direction). We formalize this in the following lemma.
Lemma 5.3. Suppose has locally Lipschitz boundary and . There are constants , , such that for any and such that , there is such that
Proof. Suppose for Lipschitz with (Euclidean) Lipschitz constant . We take such that . Define . Define the cone . Using that , a straightforward geometric estimate computing the distance to the cone gives
where denotes the Euclidean distance. Using that the Euclidean distance is equivalent to the -distance, we find that . By the triangle inequality, , concluding (5.14).
In the general case, one covers by finitely many cylinders where is represented by a Lipschitz graph with uniformly bounded constant, and chooses sufficiently small to ensure that the preceding graphical argument goes through in a single cylinder.
To lift the estimate of Proposition 5.2 on to , we use that the opening or closing of an adversarial minimizer is still a minimizer, see Proposition 4.2. We now turn to the main theorem in the low regularity setting.
Proof of Theorem 2.3(1). By Proposition 4.2, is a minimizer of (2.1) with
Since and outside of a Lebesgue-null set (by non-degeneracy), it follows that outside of a Lebesgue-null set. From this and a simple contradiction argument, we find that
since both dilations are open.
Applying Proposition 5.2, we find for that
But by (5.15), , which leads to
for . This gives control on the first term appearing in in (2.4).
To control the other term
as the above argument is symmetric with respect to the labels and , we first find that
for and , which are possibly chosen larger and smaller, respectively. Consider . If , then (5.16) necessarily implies so that . In the case that , we apply Lemma 5.3 with to find such that
for and some . Reusing our above reasoning, this shows that and thus as desired.
We conclude that
To obtain the estimate for all , take the constant , appearing in the previous estimate, large enough so that .
Example 5.4. We present a simple example to show that scaling is likely optimal. Take and . Consider the local energy
where and , which is a natural approximation of on given Definition 2.1 (see also [7] for the perimeter term). We consider the energy scaling for competitors found by rounding the tip of . Precisely, define the competitors
with a rounded cone tip. Then
where the second equality follows from a change of variables. Optimizing in gives that for some , so that minimizes . As may be directly checked, , and we see that the optimizer of over the class is at least away from in the Hausdorff metric.
Described in heuristic terms, “clipping” the corner of the Bayes classifier upward a distance r gives a gain in the perimeter of order , while incurring a bulk cost of order : these terms are balanced exactly when .
5.3. Convergence in the high regularity setting. In this subsection, we prove Theorem 2.3(2). The proof is similar in structure to Theorem 2.3(1) with the essential difference being the construction of energetic competitors near . Within the proof of Proposition 5.2 (and in particular in Step 3), we chose the ball with center and radius on the order of ; small makes it more challenging to construct an energetic improvement (as can be seen in the right-hand side of (5.9)). To obtain the optimal estimate, we use -regularity to choose a ball with new center and a radius independent of the distance to which tangentially touches the parallel surface . Phrasing this intuitively, for the low regularity setting we crudely cut out a ball to construct a competitor, but in the high regularity setting we choose a ball whose removal acts as a small perturbation of the decision boundary in the normal direction; this difference is illustrated in Figure 1.
As before, the essential ingredient is the one-sided bound.
Proposition 5.5. Under the hypotheses of Theorem 2.3(2), there is and such that
The proof of Proposition 5.5 relies on basic properties for -regular sets, see Definition 2.2, which we record in the following proposition. In particular, the proposition shows that a -regular set has a tubular neighborhood around its boundary described in terms of tangential-normal coordinates. For us, these coordinates provide a natural way to shift points ‘orthogonally’ to .
Proposition 5.6 (Lemma 33 and 34 in [5]). Suppose that is a -regular set with -normal vector as in Definition 2.2. Then the following holds:
(1) (Normal condition). .
(2) (Transversality). There is c > 0 so that for -a.e. .
(3) (Foliation). For any open and precompact set , there is such that the map defined by is a bi-Lipschitz map (onto its image) and .
We can now complete the proof of the one-sided estimate in Proposition 5.5.
Proof of Proposition 5.5. Let be sufficiently small so that Definition 2.1 and the conclusion of Proposition 5.6 hold on the dilation . Suppose towards a contradiction that
for chosen below (independent of the dimension). Consider such that which is possible since is closed. Following the argument of Steps 1 and 2 of the proof of Proposition 5.5, we immediately conclude that
for independent of the dimension.
In the tangential-normal coordinates associated to via Proposition 5.6, we write for . Define
We apply Lemma 5.1 to define with satisfying
where and are defined in (5.1). See Figure 1 for a depiction of the construction. As before, to contradict minimality of , we show that the integral is positive. The integral domain has positive measure since satisfies and so that .
To show that the integrand is positive, we follow the same reasoning as in (5.9) to find
for and where depends only on , where we have also used that is Lipschitz in by non-degeneracy.
Furthermore, for we have
For the sake of the reader, we remark that it is precisely for choosing a ball with radius independent of that satisfies the previous inequality that we use the tangential-normal coordinates . Uniting (5.19) with (2.3) (and utilizing the from that definition), (5.17), and (5.18), we have
for where and depend only on and (through its Lipschitz constant and magnitude). For large enough, this ensures the integrand is positive, contradicting minimality of , and thereby concluding the theorem.
At this point it is possible to prove Theorem 2.3(2) exactly as for Theorem 2.3(1), however the application of Lemma 5.3 uses equivalence of and , which potentially introduces a hidden dependence on the dimension, e.g. when . However, the following remark shows that Lemma 5.3 is superfluous with -regularity.
Remark 5.7. For with locally -regular boundary, let be as in Proposition 5.6 on with the associated tangential-normal coordinates. For any and such that , we can define which satisfies
Using Remark 5.7 in place of Lemma 5.3, the proof of Theorem 2.3(2) follows exactly as in the proof of Theorem 2.3(1) with replaced by .
Example 5.8. We present a simple example to show that scaling is the best expected. Take and and the class of competitors . Then with
where and . Applying polar coordinates
Thus the optimal , and the optimizer of over the class is at least away from in the Hausdorff metric. See also the closely related Example 6.1 in [13].
6. THE EMPIRICAL PROBLEM
We turn our attention now to proving Theorem 2.7 for the empirical adversarial training problem. Similar to before, our argument is based on the construction of a generic competitor for classifiers defined on the discrete domain constructed from the data sampled from . While the general idea is the same as Lemma 5.1—excise a ball—it is complicated by the gap between the empirical and continuum distributions. On the path to controlling this error, we first initialize the probabilistic setting. Once we have control on the distance between the empirical and continuum distributions, we may construct the competitor and then address convergence in low and high regularity settings. Throughout, we remind the reader of the conventions introduced in Section 4: dilations/erosions in the empirical adversarial training problem are in the discrete domain ; however, to connect the empirical problem to the continuum one, we also use dilations/erosions in (always in terms of the norm ). For clarity, we typically specify which is used.
6.1. Probabilistic setting. With the conventions introduced in Subsection 2.2, we have that form a sequence of independent samples drawn from a Bernoulli distribution with probabilities and of obtaining 0 and 1 respectively. Letting be the number of samples in with , we see that . Applying Hoeffding's inequality, we have
Using the definition of in (2.9), one can directly check that for a given with larger than a universal constant (depending on but independent of ). This shows that
for , where we have also used . The above inequality also implies that there is such that
for i = 0, 1.
We derive some transport estimates connecting and . Applying Theorem 1.1 from [15] and (6.2) with the sampling probability measure , it holds that
where is the -Wasserstein metric, the normalized measures are and , and is defined in (2.9) (with the convention ). We summarize this as
For convenience, we ignore the constant implicit in (6.3), which can be absorbed into and from Theorem 2.7. We note that since has a continuous density that estimate (6.3) is equivalently described in terms of a transport map satisfying
where indicates the pushforward. To move from (6.3)—which is in terms of —to (6.4), we must absorb a further constant into due to the equivalence of and . From (6.4), we also deduce
for since by non-degeneracy in .
Finally we use the above estimates to compare and for an arbitrary set . Using (6.1) and (6.3) we estimate that, with probability at least ,
(6.6)
We emphasize that dilations/erosions are taken in .
In the event that (6.1) and (6.3) hold, and thereby (6.1)–(6.6) hold, we now continue in our effort to prove Theorem 2.7.
6.2. Empirical energetic competitor. We develop a flexible notion of energetic competitor. While the strategy in the continuum setting is similar, we must now average over radii to manage the error between distributions appearing in (6.6), see Figure 2.
Lemma 6.1 (Empirical competitor). Suppose the results of Subsection 6.1 hold with the distributional error defined in (2.9). Let , and denote the dilation in . Given we define the collection of competitors

FIGURE 2. For the good radius, the fattened boundary is controlled by the volume of , with . However, in the case of the bad radius , we see that a thin sliver of may generate a disproportionately large fattened boundary and break the previous estimate. However, these bad slivers appear only when large pieces of align with , which fails for the majority of radii.
For satisfying
there is such that with ,
it holds that
where .
We emphasize that this is a conditional competitor: given (6.7), we may construct satisfying (6.8). Our choice of is made in the proof of Theorem 2.7 and depends on both and the regularity of (low or high).
To prove the competitor lemma, we rely on a geometric inequality controlling errors arising in (6.6). This is a consequence of Theorem 4 in [24], but given that we only rely on the inequality for discrete sets we provide a self-contained proof in Section A.
Proposition 6.2. Let be finite. If , then
for a universal constant C > 0, where dilations/erosions are taken in .
We now construct the competitor.
Proof of Lemma 6.1. We break the argument into two pieces. In the first step, estimate the gap between the risk for A and using set inequalities and transport inequalities due to (6.4). This leads to geometric errors that are similar to a Minkowski-type perimeter. In Step 2, we perform an averaging argument to control these geometric errors. Throughout, we exclusively use the dilation/erosion in .
Step 1 (Breakdown of the energy). Since we have and , where complements are taken relative to , we have that
To apply (6.6) to the right-hand side sets, we first modify the sets so that their -fattened boundaries are easier to control. Precisely, because , we have that
(recall Figure 2). We further claim that
By definition of , we have that
From this, as , it follows that
On the other hand, if
then maps onto so that
Additionally, since , we claim that
To see this, let and define . Then by (6.5), there is such that . By the triangle inequality and . The first inequality implies that (see Proposition 4.1), and the second that , proving (6.14). As (see above (5.4)), we conclude . This set inclusion combined with (6.13) and (6.10) implies that . With (6.12), this conclude (6.11).
Using (6.10) and (6.11) in (6.9), we apply (6.6) to find
(6.15)
where the constant in the first error term absorbs and . We next conduct an averaging argument to choose a good radius so that
and
which with (6.10) and (6.15) concludes the lemma.
Step 2 (Choosing a good radius ). Define the set . For , there is some with , meaning . Consequently , and . Simpler reasoning gives . These subset relations in conjunction with Proposition 6.2 give
As a direct consequence of this inequality and , we also find
We note this inequality with (6.7) shows that for any , (6.16) holds.
Recalling (6.10), we have that
Applying (6.18) and (6.7) for any , it holds that
To control the last set in (6.20), we use polar coordinates/Fubini's theorem, (6.19), and (6.7) to estimate
An averaging argument then gives that there is such that
Altogether we find
giving control on the first term in (6.17).
Control on the second term in (6.17) follows from (6.22): Since is isotropic, we have that
and so
where in the last inequality we use (6.22) and to bound (recall ; we point out that a much tighter control of is possible within the proof of Theorem 2.7).
Finally the third term in (6.17) may be controlled using another averaging argument as in (6.21). As the averaging arguments may be done simultaneously, we find a good radius obtaining (6.17), concluding the proof.
6.3. Convergence in the low regularity setting. We turn to the proof of Theorem 2.7(1). As the proof follows the same strategy as that for Theorem 2.3(1), we are light on details where they are in close correspondence and provide full details where the proofs deviate.
We first obtain a one-sided estimate. The primary difference with respect to the continuum setting is an averaging argument to choose Q in Lemma 6.1 well. For the low regularity setting, we are able to choose Q = 2. Looking to (6.8) with and non-degeneracy in mind shows that a contradiction to minimality arises if we are at least away from for . We formalize this argument in the following proposition.
Proposition 6.3. Under the hypotheses of Theorem 2.7(1), there is and such that
where is the erosion in .
Proof. Dilations are taken in . Let , with an open set. Choose as in the non-degeneracy Definition 2.1 on . Suppose by way of contradiction that
for to be chosen below. Let satisfy and define . For , we have , so in particular, we have that
where . Defining , we claim that for (determined by (6.26)) there is some such that
If the inequality fails for every , we can iterate the negated inequality across to find
Combined with (6.24) we obtain
for C > 0 (depending also on the dimension). Inserting (6.23) and the definition of , we find that
(6.26) which is not possible for sufficiently small (independent of when ). It follows that (6.25) holds for some choice of .
Consequently using , we may apply Lemma 6.1 with and to find a competitor denoted (with an abuse of notation) by for some such that
with ,
Since by construction , one may proceed precisely as in the proof of Proposition 5.2: In the far from case, and it holds that
for sufficiently small (this follows from (5.9) and (5.10)). When , (6.27) contradicts the minimality of and shows that . In the close to case with , given , for sufficiently large and sufficiently small it holds that
(this follows from (5.12)). Thus, taking appearing in (6.27) sufficiently small shows that the integral term therein is positive, contradicting minimality of and concluding the proof.
Finally we complete the proof of convergence in the low regularity setting for empirical classifiers. The main difference with the continuum argument is that we must bound the distance to the continuum Bayes classifier, but Proposition 4.2 naturally relates sets to the empirical Bayes classifier. We use (6.5) to move between the two Bayes classifiers.
Proof of Theorem 2.7(1). Let and consider . Applying Proposition 6.3, we have that
Proposition 4.2 shows that the discrete opening is an empirical adversarial minimizer with
This implies
Since by Proposition 4.1, (6.28) and (6.29) give
where we have possibly increased C.
On the other hand, consider . By (6.5) there is with so that, in particular, . Then (6.30) implies
where we have possibly increased C. This gives control of the first term of in (2.4).
We obtain control on the second term
within the Hausdorff distance: Interchanging labels, the same argument as for (6.31) gives
for some constant . Take . If , then letting be the nearest point in to , we have by (6.5) and the triangle inequality that
Since so that , from (6.32) it necessarily follows that and
If is close to with , we may assume that is sufficiently small so that , where is as in Lemma 5.3. Consequently, we may find such that
By (6.33), we find so that
Altogether, we have
for a larger constant C > 0. With (6.30), this concludes the proof.
6.4. Convergence in the high regularity setting. To deduce Theorem 2.7(2), it remains to synthesize the strategies developed in Subsections 5.3 and 6.3. The primary novelty of this section is the averaging argument to select Q within Lemma 6.1. This selection occurs within the proof of the following one-sided estimate.
Proposition 6.4. Under the hypotheses of Theorem 2.7(2), there is and such that
where is the erosion in .
Proof. Applying Proposition 6.3, we may assume
where is chosen to satisfy Definitions 2.1 and 2.2. Let satisfy . Using the tangential-normal coordinates associated to via Proposition 5.6, we write . Define
Defining , first note that
for some constant . With , we have and . Thus proving (6.34).
Define and take sufficiently small so that , where comes from the statement of Theorem 2.7(2). Letting , we claim that there is such that
for a constant . If not, we iterate the negated estimate to obtain
Using (6.34) gives
leading to a contradiction for sufficiently large and concluding (6.35).
With (6.35), we set and apply Lemma 6.1 with and to instantiate a competitor for some satisfying
with ,
Since , which is independent of , we may follow the argument of Proposition 5.5 to estimate for sufficiently small (this follows from (5.20)). Taking sufficiently small, we see that (6.36) contradicts the minimality of concluding the proof.
With the one-sided estimate in hand, the proof of Theorem 2.7(2) follows exactly as for Theorem 2.7(1) with Remark 5.7 and Proposition 6.4 in place of Lemma 5.3 and Proposition 6.3 (and in place of ), respectively.
APPENDIX A. GEOMETRIC INEQUALITY
Proof of Proposition 6.2. Let . We begin by proving the auxiliary estimate
We define the Voronoi partition of with cells
We point out that is star-shaped with center : Given we define for and check for that
with the case being similar. (Note that a Voronoi cell is not necessarily convex for every norm .)
Note that for all . We define the contraction , and deduce via star-shapedness that
It follows that
concluding (A.1).
We let and within (A.1) to obtain that
Letting , using we estimate
where the last inequality follows if . To satisfy the condition , note and we may assume so that
Thus follows from . Uniting the above displays gives
As and , this concludes the proposition.
REFERENCES
-
Pranjal Awasthi, Natalie Frank, Anqi Mao, Mehryar Mohri, and Yutao Zhong, Calibration and consistency of adversarial surrogate losses, Advances in Neural Information Processing Systems, vol. 34, Curran Associates, Inc., 2021, pp. 9804–9815.
-
Pranjal Awasthi, Natalie Frank, and Mehryar Mohri, On the existence of the adversarial bayes classifier (extended version), 2023.
-
Tao Bai, Jinqi Luo, Jun Zhao, Bihan Wen, and Qian Wang, Recent advances in adversarial training for adversarial robustness, arXiv preprint arXiv:2102.01356 (2021).
-
Giovanni Bellettini, Anisotropic and crystalline mean curvature flow, A Sampler of Riemann–Finsler Geometry (David Bao, Robert L. Bryant, Shing-Shen Chern, and Zhongmin Shen, eds.), MSRI Publications, vol. 50, 2004, pp. 49–82.
-
Giovanni Bellettini, Matteo Novaga, and Maurizio Paolini, On a crystalline variational problem, part i: First variation and global regularity, Archive for rational mechanics and analysis 157 (2001), no. 3, 165–191.
-
Leon Bungert, Nicolás García Trillos, and Ryan Murray, The geometry of adversarial training in binary classification, Inf. Inference 12 (2023), no. 2, 921–968. MR 4565755
-
Leon Bungert and Kerrek Stinson, Gamma-convergence of a nonlocal perimeter arising in adversarial machine learning, Calc. Var. 63 (2024), no. 5. MR 4737270
-
Natalie S Frank, Adversarial consistency and the uniqueness of the adversarial bayes classifier, European Journal of Applied Mathematics 37 (2026), no. 1, 24–42.
-
___ , A notion of uniqueness for the adversarial bayes classifier, SIAM Journal on Mathematics of Data Science 8 (2026), no. 1, 77–107.
-
Natalie S. Frank and Jonathan Niles-Weed, Existence and minimax theorems for adversarial surrogate risks in binary classification, Journal of Machine Learning Research 25 (2024), no. 58.
-
Nicolás García Trillos, Matt Jacobs, and Jakwang Kim, On the existence of solutions to adversarial training in multiclass classification, 2023.
-
Nicolás García Trillos, Jakwang Kim, and Matt Jacobs, The multimarginal optimal transport formulation of adversarial multiclass classification, Journal of Machine Learning Research 24 (2023). MR 4582467
-
Nicolás García Trillos and Ryan Murray, Adversarial classification: Necessary conditions and geometric flows, Journal of Machine Learning Research 23 (2022), no. 187, 1–38.
-
___ , Adversarial Classification: Necessary conditions and Geometric Flows, Journal of Machine Learning Research 23 (2022). MR 4577140
-
Nicolás García Trillos and Dejan Slepčev, On the rate of convergence of empirical measures in -transportation distance, Canadian Journal of Mathematics 67 (2015), no. 6, 1358–1383.
-
Robert M Haralick and Linda G Shapiro, Computer and robot vision., vol. 1, Addison-Wesley, 1992.
-
Yannick Lunk, Atell Yehor Krasnopolsky, Damien Garreau, and Leon Bungert, Explaining the saliency map sparsity of adversarially-trained neural networks, 2026.
-
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu, Towards deep learning models resistant to adversarial attacks, Sixth International Conference on Learning Representations, 2018.
-
Rachel Morris and Ryan Murray, Uniform convergence of adversarially robust classifiers, European Journal of Applied Mathematics 37 (2026), no. 1, 43–72.
-
Preetum Nakkiran, Adversarial robustness may be at odds with simplicity, 2019.
-
Muni Sreenivas Pydi and Varun Jog, Adversarial risk via optimal transport and optimal couplings, IEEE Transactions on Information Theory 67 (2021), no. 9, 6031–6052. MR 4345049
-
Aditi Raghunathan, Sang Michael Xie, Fanny Yang, John Duchi, and Percy Liang, Adversarial training can hurt generalization, Proceedings of the 36th International Conference on Machine Learning, Proceedings of Machine Learning Research, PMLR, 2019.
-
Ali Shafahi, Mahyar Najibi, Mohammad Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein, Adversarial training for free!, Advances in neural information processing systems 32 (2019).
-
László L Stachó, On the volume function of parallel sets, Acta Sci. Math 38 (1976), 365–374.
-
Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry, Robustness may be at odds with accuracy, 2019.
-
Sophie Xhonneux, Alessandro Sordoni, Stephan Günnemann, Gauthier Gidel, and Leo Schwinn, Efficient adversarial training in llms with continuous attacks, Advances in Neural Information Processing Systems 37 (2024), 1502–1530.
-
Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P. Xing, Laurent El Ghaoui, and Michael I. Jordan, Theoretically principled trade-off between robustness and accuracy, 2019.
(Rachel Morris) DEPARTMENT OF MATHEMATICS AND STATISTICS, CONCORDIA UNIVERSITY, MONTREAL, CANADA
Email address: rachel.morris@mail.concordia.ca
(Ryan Murray) DEPARTMENT OF MATHEMATICS, NORTH CAROLINA STATE UNIVERSITY, RALEIGH, USA
Email address: rwmurray@ncsu.edu
(Kerrek Stinson) DEPARTMENT OF MATHEMATICS, UNIVERSITY OF UTAH, SALT LAKE CITY, USA
Email address: kerrek.stinson@utah.edu