Adversarial examples from computational constraints

Sébastien Bubeck, Eric Price, Ilya Razenshteyn

Introduction

Such an input X+zX+z in the above event is colloquially referred to as an adversarial exampleIn the literature one sometimes uses a more stringent definition of adversarial examples, where XX and zz are in addition required to satisfy f(X+z)=f(X)f(X+z)=f(X). We ignore this requirement here..

Following Szegedy et al. there is a rapidly expanding literature exploring the vulnerability of neural networks to adversarially chosen perturbations. The surprising observation is that, say in vision applications, for most images X∼DX\sim D the perturbation can be chosen in a way that is imperceptible to a human yet dramatically changes the output of state-of-the-art neural networks. This is a particularly important issue as these neural networks are currently being deployed in real-world situations. Naturally there is by now a large literature (in fact going back at least to ) on attacks (finding adversarial perturbations) and defenses (making classifiers robust against certain type of attacks).

While we have a sophisticated theory for the classical goal of minimizing the non-robust probability of error, our understanding of the robust scenario is still very rudimentary. At the moment, the “attackers” seem to be winning the arms race against the “defenders”, see e.g., . We identify four mutually exclusive possibilities for why all known classification algorithms are vulnerable to adversarial examples:

Identifying a robust classifier requires too much training data.

Identifying a robust classifier from limited training data is information theoretically possible but computationally intractable.

We just have not found the right algorithm yet.

The goal of this paper is to provide two pieces of evidence, one in favor of hypothesis 3 and one against hypothesis 2. Our primary result is that hypothesis 3 is indeed possible: there exist robust classification tasks that are information theoretically easy but computationally intractable under a powerful model of computation (namely the statistical query model, see below). Our secondary result is evidence against hypothesis 2, showing that if a robust classifier exists then it can be found with relatively few training examples under a standard assumption on the data distribution (for example, that the distribution within each label is close to a Lipschitz generative model, or is drawn from a finite set of exponential size).

In Section 1.1 we discuss related work on adversarial examples in light of those four hypotheses. In Section 1.2 we introduce the model of computation under which we will prove intractability. We conclude the introduction with Section 1.3 where we give a brief proof overview for our primary and secondary result. These results are discussed in greater depth respectively in Section 4 and Section 3.

To the best of our knowledge, previous works have not linked computational constraints to adversarial examples, but instead have focused on the other three hypotheses.

Another work arguing the inevitability of adversarial examples is Gilmer et al. . There the authors propose a simple classification task, namely distinguishing between samples on the unit sphere in high dimension and samples on a sphere of radius RR bounded away from 11. They show experimentally that even in such a simple setup, state-of-the-art neural networks have adversarial examples at most points. We note however that this example only applies to specific classifiers, since it is easy to construct an efficient robust classifier for the given example (e.g., just use a linear model on the norm of the features); thus the “hardness” here only appears for a given network structure.

2 The SQ model

Proving computational hardness is a notoriously difficult problem. To circumvent this difficulty one usually either (i) reduces the problem at hand to a well-established computational hardness conjecture (e.g., proving NP-hardness), or (ii) proves an unconditional hardness within a limited computational framework (such as the oracle lower bounds in convex optimization, ). Our task here is further complicated by the average-case nature of the problem (the datasets are i.i.d. from some fixed distribution). Fortunately there is a growing set of results on computational hardness in learning theory that we can leverage. The statistical query (SQ) model of computation from Kearns is a particularly successful instance of approach (ii) for learning theory: (a) most known learning algorithms fall in the framework, including in particular logistic regression, SVM, stochastic gradient descent, etc; and (b) SQ-hardness has been proved for many interesting problems that are believed to be computationally hard, such as learning parity with noise , learning intersection of halfspaces , the planted clique problem , robust estimation of high-dimensional Gaussians , or learning a function computable by a small neural network . Thus we naturally use this model to prove our main result on the computational hardness of robust learning. We now recall the definition of the SQ model and state informally our main result.

not efficiently and robustly learnable in the statistical query model, in the sense that even with an exponential (in dd) precision statistical query oracle one needs an exponential (in dd) number of queries in order to robustly learn with robustness parameter ε\varepsilon.

Of course, a number of natural machine learning algorithms such as nearest neighbor are not based on statistical queries. Although we cannot prove it, we believe that our input distributions are computationally hard in general. For the case of nearest neighbor, the distance to points of each class have very similar distributions—indeed, the two distributions match on polynomially many moments. This suggests that exponentially many samples are necessary for nearest neighbor. For more information about nearest neighbor classifiers in the context of adversarial examples, see .

Moreover, there are very few problems in any domain with exponential SQ hardness for which polynomial time algorithms are known; in fact, the only such problems involve solving systems of linear equations over finite fields . Since Theorem 1.1 involves a real-valued problem, finding a polynomial time algorithm that avoids the SQ lower bound would be a remarkable breakthrough in SQ theory.

3 Overview of proofs

Our secondary result, on the information theoretic achievability of robustness, is proved via simple arguments reminiscent of PAC-learning theory. Namely, if a classifier is not good enough for a given pair of distributions, we can rule it out with high confidence by looking at not too many samples. Then, we use a union bound to claim the result for a family of pairs that is either at most exponentially large, or is at least covered by a net of at most exponential size (the only subtlety is in the proper definition of a net in this robust context).

Our primarily result, on the hardness of robustness, is technically much more challenging. The central object in the proof is a natural high-dimensional generalization of a construction from Diakonikolas et al. . Roughly speaking, a hard pair of distributions is obtained by taking a standard multivariate Gaussian, choosing a random kk-dimensional subspace and planting there two well-separated distributions that match many moments of a Gaussian (in only the case k=1k=1 is considered). To show an SQ lower bound, we use – as in – the framework of to reduce the question to computing a certain non-standard notion of correlation between the distributions. To bound said correlation, we deviate from significantly, since their argument is tailored crucially to the case k=1k=1. Our argument is less precise, but allows k≫1k\gg 1 which is necessary to obtain a large separation between the distributions (which in turn controls the parameter MM in Theorem 1.1).

Definitions

We say that D\mathcal{D} is (ε,δ)(\varepsilon,\delta)-robustly learnable with nn samples if there is a classification algorithm such that, for every D∈DD\in\mathcal{D}, with probability at least 2/32/3 over X‾0\underline{X}_{0} and X‾1\underline{X}_{1}, the algorithm produces a classifier ff that is (ε,δ)(\varepsilon,\delta)-robust for DD.

The success probability 2/32/3 is an arbitrary constant larger than 1/21/2. It is easy to see that, for any η>0\eta>0, by using O(nlog⁡(1/η))O(n\log(1/\eta)) samples one can obtain a success probability of 1−η1-\eta.

We say that D\mathcal{D} is (ε,δ)(\varepsilon,\delta)-robustly feasible if every D∈DD\in\mathcal{D} admits an (ε,δ)(\varepsilon,\delta)-robust classifier. When it exists we denote fDf_{D} for such a classifier (chosen arbitrarily among all robust classifiers for DD), and FD={fD,D∈D}\mathcal{F}_{\mathcal{D}}=\{f_{D},D\in\mathcal{D}\}.

Robust learning with few samples

Obviously robust feasibility is a necessary condition for robust learnability. We show that it is in fact sufficient, even for sample efficient robust learnability. We first do so when a finite set of classifiers FD\mathcal{F}_{\mathcal{D}} suffices for robust feasibility.

Assume that D\mathcal{D} is (ε,δ)(\varepsilon,\delta)-robustly feasible. Then it is (ε,δ+δ′)(\varepsilon,\delta+\delta^{\prime})-robustly learnable with n=Ω(δ+δ′δ′2log⁡(∣FD∣))n=\Omega\left(\frac{\delta+\delta^{\prime}}{\delta^{\prime 2}}\log(|\mathcal{F}_{\mathcal{D}}|)\right).

Let D^i=1n∑j=1nδX‾i(j)\hat{D}_{i}=\frac{1}{n}\sum_{j=1}^{n}\delta_{\underline{X}_{i}(j)} be the empirical measure corresponding to the dataset X‾i\underline{X}_{i}. We will show that ERM on the ε\varepsilon-robust loss gives the claimed sample complexity. More precisely we consider the classification algorithm that outputs:

Now observe that for n≥4δ+δ′δ′2log⁡(∣FD∣)n\geq 4\frac{\delta+\delta^{\prime}}{\delta^{\prime 2}}\log(|\mathcal{F}_{\mathcal{D}}|) one can has pfDlog⁡(∣FD∣)/n≤δ′/2\sqrt{p_{f_{D}}\log(|\mathcal{F}_{\mathcal{D}}|)/n}\leq\delta^{\prime}/2 , and thus we obtain with n=Ω(δ+δ′δ′2log⁡(∣FD∣))n=\Omega\left(\frac{\delta+\delta^{\prime}}{\delta^{\prime 2}}\log(|\mathcal{F}_{\mathcal{D}}|)\right),

It now suffices to observe that s≥δ+δ′s\geq\delta+\delta^{\prime} implies s−δ′2sδ+δ′>δ+δ′2s-\frac{\delta^{\prime}}{2}\sqrt{\frac{s}{\delta+\delta^{\prime}}}>\delta+\frac{\delta^{\prime}}{2}. ∎

2 Robust covering number

With the above definitions one can obtain the following result as a straightforward corollary of Theorem 3.1 and the definition of total variation distance.

It is now easy to prove the following strengthening of Theorem 3.3:

3 Covering number bound from generative models

We now show that distributions approximated by generative models have bounded covering numbers (in terms of Definition 3.4), so Theorem 3.5 gives a good sample complexity for such distributions. The proof is deferred to Appendix C in the supplementary material.

Lower bound for the SQ model

The distributions D~0\widetilde{D}_{0} and D~1\widetilde{D}_{1} admits a (Ω(1/γ),2−dΩ(γ))(\Omega(\sqrt{1/\gamma}),2^{-d^{\Omega(\gamma)}})-robust classifier; moreover, a Ω(1/γ),0.01)\Omega(\sqrt{1/\gamma}),0.01)-robust classifier can be learned from O(d)O(d) samples from D0D_{0} and D1D_{1};

For D0~\widetilde{D_{0}} and D1~\widetilde{D_{1}}, there exists a linear (non-robust) classifier, which can be learned in polynomial time;

For every ε>ρ\varepsilon>\rho, in order to learn a (ε,0.01)(\varepsilon,0.01)-robust classifier for D~0\widetilde{D}_{0} and D~1\widetilde{D}_{1}, one needs at least 2dΩ(1)2^{d^{\Omega(1)}} statistical queries with accuracy as good as 2−dΩ(γ)2^{-d^{\Omega(\gamma)}}.

For instance, if γ\gamma is a small constant we get the existence of a CC-robust classifier, where CC is a large constant. One could push CC as high as Ω(log⁡1/2−εd)\Omega(\log^{1/2-\varepsilon}d) at a cost of the lower bound being against SQ queries with somewhat worse accuracy (2−2log⁡Ω(ε)d2^{-2^{\log^{\Omega(\varepsilon)}d}} instead of 2−dΩ(1)2^{-d^{\Omega(1)}}).

We first show a family of pairs (D0,D1)(D_{0},D_{1}) that admit a robust classifier, yet it is hard (in the SQ model) to learn any (non-robust) classifier. Later, in Section 4.3, we show a simple modification of this family to obtain the main result.

Here we define a hard family of pairs of distributions (D0,D1)(D_{0},D_{1}) as discussed above. This section contains the definition and key properties of the family; proofs of those properties appear in Appendix A. This family can be seen to be a high-dimensional generalization and modification of a family considered in . The family depends on three parameters: integers 1≤k≤d1\leq k\leq d, m≥1m\geq 1 and a positive real ε>0\varepsilon>0.

DAD_{A} and DBD_{B} match N(0,1)N(0,1) in the first mm moments;

A,B∈C∞A,B\in C^{\infty}, and for every 0≤l≤m+10\leq l\leq m+1 and tt, one has: ∣dldtlA(t)G(t)∣,∣dldtlB(t)G(t)∣≤mO(l+1)|\frac{d^{l}}{dt^{l}}\frac{A(t)}{G(t)}|,|\frac{d^{l}}{dt^{l}}\frac{B(t)}{G(t)}|\leq m^{O(l+1)}.

For every k≤dΩ(1)k\leq d^{\Omega(1)}, there exists such a family U\mathcal{U} with ε≤d−0.49\varepsilon\leq d^{-0.49} and ∣U∣=2dΘ(1)|\mathcal{U}|=2^{d^{\Theta(1)}}.

where A(⋅)A(\cdot) and B(⋅)B(\cdot) are densities of distributions DAD_{A} and DBD_{B} from Lemma 4.2, and G(t)=12π⋅e−t2/2G(t)=\frac{1}{\sqrt{2\pi}}\cdot e^{-t^{2}/2} is the p.d.f. of the standard Gaussian distribution N(0,1)N(0,1). Now we simply take D0D_{0} to be DU,AD_{U,A} and D1D_{1} to be DU,BD_{U,B}.

The heart of the matter is to show that it requires 2dΩ(1)2^{d^{\Omega(1)}} statistical queries with precision τ=2−dΘ(γ)\tau=2^{-d^{\Theta(\gamma)}} to learn a classifier for DU,AD_{U,A} and DU,BD_{U,B} provided that all the parameters m,k,εm,k,\varepsilon are set correctly. The argument is fairly involved and uses the framework of to reduce the question to that of upper bounding χ\chi-correlation between the distributions. Due to space limitations, we show the argument in Appendix B of the supplementary material.

3 Making the distribution easy to learn non-robustly

Conclusion and future directions

In this paper we put forward the thesis that adversarial examples might be an unavoidable consequence of computational constraints for learning algorithms. Our main piece of evidence is a classification task, for which there essentially exists a classifier robust to Euclidean perturbations of size log⁡1/2−εd\log^{1/2-\varepsilon}d (while with high probability any sample has norm O(d)O(\sqrt{d})), yet finding any non-trivial robust classifier (even for arbitrarily small perturbations, and with probability of correctness only slightly better than chance) is hard in the statistical query model (in the sense that one needs an exponential number of queries, even with a very high precision statistical query oracle). We identify several directions in which this result could be strengthened to give stronger evidence for our thesis.

The most important question for the validity of our thesis is whether one could prove a similar hardness result for natural distributions. This is a particularly challenging open problem as the concept of a natural distribution is fuzzy (for instance there is no consensus on what a natural distribution for images should look like).

We believe that our proposed classification task is really computationally hard in any sense, not only in the statistical query model. As we discussed SQ is natural for learning theory hardness, but there have been lots of works leveraging other types of hardness assumption (e.g., cryptographic). It would be interesting to explore further the position of robust learning in the hardness landscape.

Finally one might wonder whether the perturbation size log⁡1/2−εd\log^{1/2-\varepsilon}d is optimal (for distributions essentially supported in a ball of size d\sqrt{d}). A concrete open question could be phrased as follows: consider a classification task that is (Ψ(d),0)(\Psi(d),0)-robustly feasible, how fast does Ψ\Psi need to grow in order to ensure that one can find in polynomial time a (1,1/3)(1,1/3)-robust classifier?

References

Appendix A Proofs of properties of the SQ hard distribution

We start with the following lemma on Hermite polynomials:

For every k>1k>1, the distance between any roots of Hk−1(t)H_{k-1}(t) and Hk(t)H_{k}(t) is at least Ω(1/k)\Omega(1/\sqrt{k}).

It is known that extrema of HkH_{k} are exactly zeros of Hk−1H_{k-1}, which follows from Hk′=2kHk−1H_{k}^{\prime}=2kH_{k-1} and a lack of double roots. Thus, it is enough to show that extrema and zeros of HkH_{k} are Ω(1/k)\Omega(1/\sqrt{k})-separated.

Consider the case where 0≤u<v<w0\leq u<v<w are such that Hk(u)=Hk(w)=0H_{k}(u)=H_{k}(w)=0, HkH_{k} is positive between uu and ww, and Hk′(v)=0H_{k}^{\prime}(v)=0. Let us show how to lower bound v−uv-u. Denote Fk(t)=e−t2/2Hk(t)F_{k}(t)=e^{-t^{2}/2}H_{k}(t). Clearly, Fk(u)=Fk(w)=0F_{k}(u)=F_{k}(w)=0 and FkF_{k} is positive between uu and ww with a unique local maximum on [u,w][u,w], which we denote by v′v^{\prime}. It is not hard to check that v′≤vv^{\prime}\leq v. Thus, it is enough to lower bound v′−uv^{\prime}-u. It is known (see, e.g., [19, Section 5.5] that FkF_{k} satisfies the ODE Z′′+(2k+1−t2)Z=0Z^{\prime\prime}+(2k+1-t^{2})Z=0. By comparing with Z′′+(2k+1)Z=0Z^{\prime\prime}+(2k+1)Z=0, we can get that lower bound v−u≥v′−u≥π22k+1=Ω(1/k)v-u\geq v^{\prime}-u\geq\frac{\pi}{2\sqrt{2k+1}}=\Omega(1/\sqrt{k}).

Now let us lower bound w−vw-v. It is known [19, Section 5.5] that HkH_{k} satisfies the ODE Z′′−2tZ′+2kZ=0Z^{\prime\prime}-2tZ^{\prime}+2kZ=0. By comparing this ODE with Z′′−2wZ′+2kZ=0Z^{\prime\prime}-2wZ^{\prime}+2kZ=0, we get that w−v≥arctan⁡(2k−w2w)2k−w2≥Ω(1/k)w-v\geq\frac{\arctan\left(\frac{\sqrt{2k-w^{2}}}{w}\right)}{\sqrt{2k-w^{2}}}\geq\Omega(1/\sqrt{k}). The latter step is due to w≤2kw\leq\sqrt{2k} and that the lower bound on w−vw-v is nonincreasing in ww.

DAD_{A} and DBD_{B} match N(0,1)N(0,1) in the first mm moments;

A,B∈C∞A,B\in C^{\infty}, and for every 0≤l≤m+10\leq l\leq m+1 and tt, one has: ∣dldtlA(t)G(t)∣,∣dldtlB(t)G(t)∣≤mO(l+1)|\frac{d^{l}}{dt^{l}}\frac{A(t)}{G(t)}|,|\frac{d^{l}}{dt^{l}}\frac{B(t)}{G(t)}|\leq m^{O(l+1)}.

Let Hm(t)H_{m}(t) and Hm+1(t)H_{m+1}(t) be two consecutive (physicist’s) Hermite’s polynomials. It is a classic result in Gaussian quadrature (see, e.g., ) that for every kk, there exists a discrete distribution supported on the zeros of Hk(t/2)H_{k}(t/\sqrt{2}), which matches N(0,1)N(0,1) in the first 2k−12k-1 moments. Let D~A\widetilde{D}_{A} denote such a distribution for HmH_{m} and D~B\widetilde{D}_{B} the same for Hm+1H_{m+1}. By Lemma A.1, the distance between the supports of D~A\widetilde{D}_{A} and D~B\widetilde{D}_{B} is at least Ω(1/m)\Omega(1/\sqrt{m}) and they both match N(0,1)N(0,1) in the first 2m−1≥m2m-1\geq m moments.

Now, we obtain the desired distributions DAD_{A} and DBD_{B} as follows. Fix a small δ>0\delta>0. The distribution DAD_{A} is defined as 1−δ⋅x+δ⋅y\sqrt{1-\delta}\cdot x+\sqrt{\delta}\cdot y, where x∼D~Ax\sim\widetilde{D}_{A}, y∼N(0,1)y\sim N(0,1), and xx and yy are independent. The distribution DBD_{B} is defined similarly, but instead of D~A\widetilde{D}_{A} we use D~B\widetilde{D}_{B}. It is easy to check that DAD_{A} and DBD_{B} match the first mm moments of N(0,1)N(0,1). Now suppose that δ=1/m2\delta=1/m^{2}. The second property follows from the supports of D~A\widetilde{D}_{A} and D~B\widetilde{D}_{B} being Ω(1/m)\Omega(1/\sqrt{m}) separated and the standard concentration inequalities; specifically, we take SAS_{A} to be the Minkowski sum of the support of scaled down D~A\widetilde{D}_{A} and the ball of radius Θ(1/m)\Theta(1/\sqrt{m}), and SBS_{B} to be similar with D~B\widetilde{D}_{B} instead of D~A\widetilde{D}_{A}. Then the chance x∼DAx\sim D_{A} is not in SAS_{A} is at most the chance y∼N(0,1)y\sim N(0,1) has ∣δy∣>Ω(1/m)|\sqrt{\delta}y|>\Omega(1/\sqrt{m}), which is e−Ω(m)e^{-\Omega(m)}.

Now let us prove the bounds on dldtlA(t)G(t)\frac{d^{l}}{dt^{l}}\frac{A(t)}{G(t)}, for the B(⋅)B(\cdot) similar bounds follows exactly the same way.

Denote x1<x2<…<xmx_{1}<x_{2}<\ldots<x_{m} the roots of Hm(t)H_{m}(t).

We have for every ii the bound piexi2=O(1)p_{i}e^{x_{i}^{2}}=O(1) . Therefore, if Q(t)Q(t) denotes the p.d.f. of N(0,δ/(1−δ))N(0,\delta/(1-\delta)) we have

For every k≤dΩ(1)k\leq d^{\Omega(1)}, there exists such a family U\mathcal{U} with ε≤d−0.49\varepsilon\leq d^{-0.49} and ∣U∣=2dΘ(1)|\mathcal{U}|=2^{d^{\Theta(1)}}.

Thus, we can set ε=d−0.49\varepsilon=d^{-0.49}, and k≤dσk\leq d^{\sigma} for a sufficiently small positive σ\sigma, which yields ∣U∣=2dΘ(1)|\mathcal{U}|=2^{d^{\Theta(1)}}. ∎

The points x∈SU,Ax\in S_{U,A} and y∈SU,By\in S_{U,B} are well-separated, since in at least a 0.80.8-fraction of 1≤i≤k1\leq i\leq k, both ⟨x,ui⟩∈SA\langle x,u_{i}\rangle\in S_{A} and ⟨y,ui⟩∈SB\langle y,u_{i}\rangle\in S_{B}. Since SAS_{A} and SBS_{B} are Ω(1/m)\Omega(1/\sqrt{m})-separated, we obtain the result.

The bounds on the probabilities follow from the respective bounds in Lemma 4.2 and standard Chernoff bounds. ∎

Appendix B SQ lower bound

Now let us show that if we set all the parameters appropriately, it is hard in the SQ model to learn a good classifier (robust or otherwise) for distributions DU,AD_{U,A} and DU,BD_{U,B} defined above, where U∈UU\in\mathcal{U} is an unknown subspace. The main idea is to show that if the subspace U∈UU\in\mathcal{U} is chosen uniformly at random, unless we perform more than 2dΩ(1)2^{d^{\Omega(1)}} queries, we can not tell apart DU,AD_{U,A} or DU,BD_{U,B} from the standard Gaussian N(0,Id)N(0,I_{d}) (and as a result, from each other). Intuitively, any since query can only reliably distinguish DU,AD_{U,A} from N(0,Id)N(0,I_{d}) for a tiny fraction of subspaces U∈UU\in\mathcal{U}. The result then follows by a simple counting argument. To formalize the above intuition, we use an argument similar at a high-level to the one used in .

In Section B.2, we show that for an appropriate setting of parameters (namely, when εmΘ(1)k≤d−Ω(1)\varepsilon m^{\Theta(1)}k\leq d^{-\Omega(1)}), for every U1,U2∈UU_{1},U_{2}\in\mathcal{U}, one has:

Then by repeating the proof of Lemma 3.3 from , we get that if the number of queries is significantly smaller than:

then with high probability over a random subspace U∈UU\in\mathcal{U}, all the queries asked can be answered as if both DU,AD_{U,A} and DU,BD_{U,B} were N(0,Id)N(0,I_{d}). As a result, we cannot distinguish them from N(0,Id)N(0,I_{d}) and, as a result, between each other.

Suppose that mlog⁡d>Cklog⁡mm\log d>Ck\log m for a sufficiently large constant CC, so that the mO(k)d−Ω(m)m^{O(k)}d^{-\Omega(m)} term is less than d−Ω(m)<m−Ω(k)d^{-\Omega(m)}<m^{-\Omega(k)}. Then we can set the precision τ\tau to m−Θ(k)m^{-\Theta(k)} and still be unable to distinguish DU,AD_{U,A} from DU,BD_{U,B} from ∣U∣m−O(k)=2dΩ(1)m−O(k)|\mathcal{U}|m^{-O(k)}=2^{d^{\Omega(1)}}m^{-O(k)} queries. If mO(k)≤2dσm^{O(k)}\leq 2^{d^{\sigma}} for a sufficiently small positive σ>0\sigma>0, this gives the desired lower bound of 2dΩ(1)2^{d^{\Omega(1)}} on the number of SQ queries the algorithm must ask.

B.2 Upper bounding pairwise correlations

We assume that mCεk≤d−Ω(1)m^{C}\varepsilon k\leq d^{-\Omega(1)} for a sufficiently large constant CC to be determined later. Since by Lemma 4.3 we can take ε=d−0.49\varepsilon=d^{-0.49}, the required inequality holds as long as mm and kk are at most small powers of dd.

where the fourth step is due to the independence of ⟨x,ui⟩\langle x,u_{i}\rangle (which is implied by orthogonality of uiu_{i}), and the fifth step follows from Lemma 4.2.

for some θi=θi(x)\theta_{i}=\theta_{i}(x) that lies between ⟨x,v~i⟩\langle x,\widetilde{v}_{i}\rangle and ⟨x,vi⟩\langle x,v_{i}\rangle.

Suppose ∣S∣≥∣T∣|S|\geq|T|. For every l ⁣:T→{0,1,…,m}l\colon T\to\{0,1,\ldots,m\}, one has:

Since vi−v~i∈U1v_{i}-\widetilde{v}_{i}\in U_{1}, we can write vi−v~i=∑j=1kαijujv_{i}-\widetilde{v}_{i}=\sum_{j=1}^{k}\alpha_{ij}u_{j}. One has:

Now let us fix partitions βij\beta_{ij} and show that:

Since ∑ijβij=∑il(i)≤∣T∣⋅m\sum_{ij}\beta_{ij}=\sum_{i}l(i)\leq|T|\cdot m, there exists j∗∈Sj^{*}\in S such that: ∑iβij∗≤∣T∣⋅m∣S∣≤m\sum_{i}\beta_{ij^{*}}\leq\frac{|T|\cdot m}{|S|}\leq m. Since ⟨x,uj∗⟩\langle x,u_{j^{*}}\rangle is independent from the remaining dot products, we can factor from (3) the expression

with l≤ml\leq m. But since ⟨x,uj∗⟩\langle x,u_{j^{*}}\rangle is distributed as N(0,1)N(0,1), one has that (4) is equal to zero due to Lemma 4.2. ∎

Let us continue upper bounding (B.2). For i∈Ti\in T and 0≤j≤m+10\leq j\leq m+1, denote:

Plugging (B.2) into (B.2), we get the result.

B.3 Setting parameters

We obtain a Ω(k/m)\Omega(\sqrt{k/m})-robust classifier, and the precision of statistical queries can be as high as mO(k)⋅d−Ω(m)m^{O(k)}\cdot d^{-\Omega(m)}. Thus, for 0<γ<1/100<\gamma<1/10, we can set m=dΘ(γ)m=d^{\Theta(\gamma)} and k≪mlog⁡dlog⁡mk\ll\frac{m\log d}{\log m}. As a result we get robustness Ω(k/m)=Ω(log⁡d/log⁡m)=Ω(1/γ)\Omega(\sqrt{k/m})=\Omega(\sqrt{\log d/\log m})=\Omega(\sqrt{1/\gamma}), and the precision of statistical queries can be as good as 2−dΩ(γ)2^{-d^{\Omega(\gamma)}}.

Appendix C Bound on covering number of generative models

by Lemma C.1 and our chosen α\alpha. Since ∥x∥2≤k/δ\|x\|_{2}\leq\sqrt{k}/\delta with probability much higher than 1−δ1-\delta, this implies D(gw∗)∈Uδ,δ(D(gw^))D(g_{w^{*}})\in U_{\delta,\delta}(D(g_{\widehat{w}})). The triangle inequality then gives Di∈Uε+δ,δ(D(gw^))D_{i}\in U_{\varepsilon+\delta,\delta}(D(g_{\widehat{w}})) as desired. ∎