Convergence of Adversarial Training in Overparametrized Neural Networks

Ruiqi Gao, Tianle Cai, Haochuan Li, Liwei Wang, Cho-Jui Hsieh, Jason D. Lee

Introduction

Recent studies have demonstrated that neural network models, despite achieving human-level performance on many important tasks, are not robust to adversarial examples—a small and human imperceptible input perturbation can easily change the prediction label . This phenomenon brings out security concerns when deploying neural network models to real world systems . In the past few years, many defense algorithms have been developed to improve the network’s robustness, but most of them are still vulnerable under stronger attacks, as reported in . Among current defense methods, adversarial training has become one of the most successful methods to train robust neural networks.

To obtain a robust network, we need to consider the “robust loss” instead of a regular loss. The robust loss is defined as the maximal loss within a neighborhood around the input of each sample, and minimizing the robust loss under empirical distribution leads to a min-max optimization problem. Adversarial training is a way to minimize the robust loss. At each iteration, it (approximately) solves the inner maximization problem by an attack algorithm A\mathcal{A} to get an adversarial sample, and then runs a (stochastic) gradient-descent update to minimize the loss on the adversarial samples. Although adversarial training has been widely used in practice and hugely improves the robustness of neural networks in many applications, its convergence properties are still unknown. It is unclear whether a network with small robust error exists and whether adversarial training is able to converge to a solution with minimal adversarial train loss.

In this paper, we study the convergence of adversarial training algorithms and try to answer the above questions on over-parameterized neural networks. We consider width-mm neural networks both for the setting of deep networks with HH layers, and two-layer networks for some additional analysis. Our contributions are summarized below.

For an HH-layer deep network with ReLU activations, and an arbitrary attack algorithm, when the width mm is large enough, we show that projected gradient descent converges to a network where the surrogate loss with respect to the attack A\mathcal{A} is within ϵ\epsilon of the optimal robust loss (Theorem 4.1). The required width is polynomial in the depth and the input dimension.

For a two-layer network with smooth activations, we provide a proof of convergence, where the projection step is not required in the algorithm (Theorem 5.1).

We then consider the expressivity of neural networks w.r.t. robust loss (or robust interpolation). We show when the width mm is sufficiently large, the neural network can achieve optimal robust loss ϵ\epsilon; see Theorems 5.2 and C.1 for the precise statement. By combining the expressivity result and the previous bound of the loss over the optimal robust loss, we show that adversarial training finds networks of small robust training loss (Corollary 5.1 and Corollary C.1).

We show that the VC-Dimension of the model class which can robustly interpolate any nn samples is lower bounded by Ω(nd)\Omega(nd) where dd is the dimension. In contrast, there are neural net architectures that can interpolate nn samples with only O(n)O(n) parameters and VC-Dimension at most O(nlog⁡n)O(n\log n). Therefore, the capacity required for robust learning is higher.

Related Work

Adversarial examples are inputs that are slightly perturbed from a natural sample and yet incorrectly classified by the model. An adversarial example can be generated by maximizing the loss function within an ϵ\epsilon-ball around a natural sample. Thus, generating adversarial examples can be viewed as solving a constrained optimization problem and can be (approximately) solved by a projected gradient descent (PGD) method . Some other techniques have also been proposed in the literature including L-BFGS , FGSM , iterative FGSM and C&W attack , where they differ from each other by the distance measurements, loss function or optimization algorithms. There are also studies on adversarial attacks with limited information about the target model. For instance, considered the black-box setting where the model is hidden but the attacker can make queries and get the corresponding outputs of the model.

Improving the robustness of neural networks against adversarial attacks, also known as defense, has been recognized as an important and unsolved problem in machine learning. Various kinds of defense methods have been proposed , but many of them are based on obfuscated gradients which does not really improve robustness under stronger attacks . As an exception, reported that the adversarial training method developed in is the only defense that works even under carefully designed attacks.

Adversarial Training

Adversarial training is one of the first defense ideas proposed in earlier papers . The main idea is to add adversarial examples into the training set to improve the robustness. However, earlier work usually only adds adversarial example once or only few times during the training phase. Recently, showed that adversarial training can be viewed as solving a min-max optimization problem where the training algorithm aims to minimize the robust loss, defined as the maximal loss within a certain ϵ\epsilon-ball around each training sample. Based on this formulation, a clean adversarial training procedure based on PGD-attack has been developed and achieved state-of-the-art results even under strong attacks. This also motivates some recent research on gaining theoretical understanding of robust error . Also, adversarial training suffers from slow training time since it runs several steps of attacks within one update, and several recent works are trying to resolve this issue . From the theoretical perspective, a recent work considers to quantitatively evaluate the convergence quality of adversarial examples found in the inner maximization and therefore ensure robustness. consider generalization upper and lower bounds for robust generalization. improves the robust generalization by data augmentation with GAN. considers to reduce the optimization of min-max problem to online learning setting and use their results to analyze the convergence of GAN. In this paper, our analysis for adversarial is quite general and is not restricted to any specific kind of attack algorithm.

Global convergence of Gradient Descent

Recent works on the over-parametrization of neural networks prove that when the width greatly exceeds the sample size, gradient descent converges to a global minimizer from random initialization . The key idea in the earlier literature is to show that the Jacobian w.r.t. parameters has minimum singular value lower bounded, and thus there is a global minimum near every random initialization, with high probability. However for the robust loss, the maximization cannot be evaluated and the Jacobian is not necessarily full rank. For the surrogate loss, the heuristic attack algorithm may not even be continuous and so the same arguments cannot be utilized.

Certified Defense and Robustness Verification

In contrast to attack algorithms, neural network verification methods tries to find upper bounds of the robust loss and provide certified robustness measurements. Equipped with these verification methods for computing upper bounds of robust error, one can then apply adversarial training to get a network with certified robustness. Our analysis in Section 4 can also be extended to certified adversarial training.

Preliminaries

Let [n]={1,2,…,n}[n]=\{1,2,\ldots,n\}. We use N(0,I)\mathcal{N}(\mathbf{0},\mathbf{I}) to denote the standard Gaussian distribution. For a vector v\mathbf{v}, we use ∥v∥2\left\lVert\mathbf{v}\right\rVert_{2} to denote the Euclidean norm. For a matrix A\mathbf{A} we use ∥A∥F\left\lVert\mathbf{A}\right\rVert_{F} to denote the Frobenius norm and ∥A∥2\left\lVert\mathbf{A}\right\rVert_{2} to denote the spectral norm. We use ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle to denote the standard Euclidean inner product between two vectors, matrices, or tensors. We let O(⋅)O(\cdot), Θ(⋅)\Theta(\cdot) and Ω(⋅)\Omega\left(\cdot\right) denote standard Big-O, Big-Theta and Big-Omega notations that suppress multiplicative constants.

2 Deep Neural Networks

Here we give the definition of our deep fully-connected neural networks. For the convenience of proof, we use the same architecture as defined in .We only consider the setting when the network output is scalar. However, it is not hard to extend out results to the setting of vector outputs. Formally, we consider a neural network of the following form.

where x‾(h)\overline{\mathbf{x}}^{(h)} and x(h)\mathbf{x}^{(h)} are the feature vectors before and after the activation function, respectively. Sometimes we also denote x‾(0)=x(0)\overline{\mathbf{x}}^{(0)}=\mathbf{x}^{(0)}.

3 Perturbation and the Surrogate Loss Function

The goal of adversarial training is to make the model robust in a neighbor of each datum. We first introduce the definition of the perturbation set function to determine the perturbation at each point.

Given a perturbation set, we are now ready to define the perturbation function that maps a data point to another point inside its perturbation set. We note that the perturbation function can be quite general including the identity function and any adversarial attackIt is also not hard to extend our analysis to perturbation functions involving randomness.. Formally, we give the following definition.

With the definition of perturbation function, we can now define a large family of loss functions on the training set {xi,yi}i=1n\{\mathbf{x}_{i},y_{i}\}_{i=1}^{n}. We will show this definition covers the standard loss used in empirical risk minimization and the robust loss used in adversarial training.

Given a perturbation function A\mathcal{A} defined in Definition 3.2, the current parameter W\mathbf{W} of a neural network ff, and a training set {xi,yi}i=1n\{\mathbf{x}_{i},y_{i}\}_{i=1}^{n}, we define the surrogate loss LA(W)L_{\mathcal{A}}(\mathbf{W}) on the training set as

It can be easily observed that the standard training loss L(W)L(\mathbf{W}) is a special case of surrogate loss function when A\mathcal{A} is the identity. The goal of adversarial training is to minimize the robust loss, i.e. the surrogate loss when A\mathcal{A} is the strongest possible attack. The formal definition is as follows:

Convergence Results of Adversarial Training

We consider optimizing the surrogate loss LAL_{\mathcal{A}} with the perturbation function A(W,x)\mathcal{A}(\mathbf{W},\mathbf{x}) defined in Definition 3.2, which is what adversarial training does given any attack algorithm A\mathcal{A}. In this section, we will prove that for a neural network with sufficient width, starting from the initialization W0\mathbf{W}_{0}, after certain steps of projected gradient descent within a convex set B(R)B(R), the loss LAL_{\mathcal{A}} is provably upper-bounded by the best minimax robust loss in this set

Denote PB(R)\mathcal{P}_{B(R)} as the Euclidean projection to the convex set B(R)B(R). Denote the parameter W\mathbf{W} after the tt-th iteration as Wt\mathbf{W}_{t}, and similarly Wt(h)\mathbf{W}^{(h)}_{t}. For each step in adversarial training, projected gradient descent takes an update

Specifically, we have the following theorem.

where W∗=arg⁡min⁡W∈B(R)L∗(W)\mathbf{W}_{\ast}=\arg\min_{\mathbf{W}\in B(R)}L_{\ast}(\mathbf{W}).

Recall that LA(W)L_{\mathcal{A}}(\mathbf{W}) is the loss suffered with respect to the perturbation function A\mathcal{A}. This means, for example, if the adversary uses the projected gradient ascent algorithm, then the theorem guarantees that projected gradient ascent cannot successfully attack the learned network. The stronger the attack algorithm is during training, the stronger the guaranteed surrogate loss becomes.

The value of RR depends on the approximation capability of the network, i.e. the greater RR is, the less L∗(W∗)L_{\ast}(\mathbf{W}_{\ast}) will be, thus affecting the overall bound on min⁡tLA(Wt)\min_{t}L_{\mathcal{A}}(\mathbf{W}_{t}). We will elaborate on this in the next section, where we show that for RR independent of mm there exists a network of small adversarial training error.

Adversarial Training Finds Robust Classifier

Motivated by the optimization result in Theorem 4.1, we hope to show that there is indeed a robust classifier in B(R)B(R). To show this, we utilize the connection between neural networks and their induced Reproducing Kernel Hilbert Space (RKHS) via viewing networks near initialization as a random feature scheme . Since we only need to show the existence of a network architecture that robustly fits the training data in B(R)B(R) and neural networks are at least as expressive as their induced kernels, we may prove this via the RKHS connection. The strategy is to first show the existence of a robust classifier in the RKHS, and then show that a sufficiently wide network can approximate the kernel via random feature analysis. The approximation results of this section will be, in general, exponential in dimension dependence due to the known issue of dd-dimensional functions having exponentially large RKHS norm , so only offer qualitative guidance on existence of robust classifiers.

Since deep networks contain two-layer networks as a sub-network, and we are concerned with expressivity, we focus on the local expressivity of two-layer networks. We write the standard two-layer network in the suggestive wayThis makes f(W,x)=0f(\mathbf{W},\mathbf{x})=0 at initialization, which helps eliminate some unnecessary technical nuisance. (where the width mm is an even number)

and initialize as wr∼N(0,Id)\mathbf{w}_{r}\sim\mathcal{N}(0,\mathbf{I}_{d}) i.i.d. for r=1,⋯ ,m2r=1,\cdots,\frac{m}{2}, and wˉr\bar{\mathbf{w}}_{r} is set to be equal to wr\mathbf{w}_{r}, ara_{r} is randomly drawn from {1,−1}\{1,-1\} and ar′=−ara^{\prime}_{r}=-a_{r}. Similarly, we define the set B(R)={W:∥W−W0∥F≤R}B(R)=\left\{\mathbf{W}:\left\lVert\mathbf{W}-\mathbf{W}_{0}\right\rVert_{F}\leq R\right\}Note that we have taken out the term 1m\frac{1}{\sqrt{m}} explicitly in the network expression for convenience, so in this section there is a difference of scaling by a factor of m\sqrt{m} from the W\mathbf{W} used in the previous section. for W=(w1,⋯ ,wm/2,wˉ1,⋯ ,wˉm/2)\mathbf{W}=(\mathbf{w}_{1},\cdots,\mathbf{w}_{m/2},\bar{\mathbf{w}}_{1},\cdots,\bar{\mathbf{w}}_{m/2}), W0\mathbf{W}_{0} being the initialization of W\mathbf{W}, and fix all ara_{r} after initialization.

To make things cleaner, we will use a smooth activation function σ(⋅)\sigma(\cdot) throughout this sectionSimilar approximation results also hold for other activation functions like ReLU., formally stated as follows.

Prior to proving the approximation results, we would like to first provide a version of convergence theorem similar to Theorem 4.1, but for this two-layer setting. It is encouraged that the reader can read Appendix B for the proof of the following Theorem 5.1 first, since it is relatively cleaner than that of the deep setting but the proof logic is analogous.

Suppose the loss function satisfies Assumption 3.1 and the activation function satisfies Assumption 5.1. With high probability, using the two-layer network defined above, for any ϵ>0\epsilon>0, if we run gradient descent with step size α=O(ϵ)\alpha=O\left(\epsilon\right), and if m=Ω(R4ϵ2)m=\Omega\left(\frac{R^{4}}{\epsilon^{2}}\right), we have

where W∗=min⁡W∈B(R)L∗(W)\mathbf{W}_{\ast}=\min_{\mathbf{W}\in B(R)}L_{\ast}(\mathbf{W}) and T=Θ(mα)T=\Theta(\frac{\sqrt{m}}{\alpha}).

Compared to Theorem 4.1, we do not need the projection step for this two-layer theorem. We believe using a smooth activation function can also eliminate the need of the projection step in the deep setting from a technical perspective, and from a practical sense we conjecture that the projection step is not needed anyway.

Now we’re ready to proceed to the approximation results, i.e. proving that L∗(W∗)L_{\ast}(\mathbf{W}_{\ast}) is also small, and combined with Equation (5) we can give an absolute bound on min⁡tLA(Wt)\min_{t}L_{\mathcal{A}}(\mathbf{W}_{t}). For the reader’s convenience, we first introduce the Neural Tangent Kernel (NTK) w.r.t. our two-layer network.

For a given kernel KK, there is a reproducing kernel Hilbert space (RKHS) introduced by KK. We denote it as H(K)\mathcal{H}(K). We refer the readers to for an introduction of the theory of RKHS.

We formally make the following assumption on the universality of NTK.

For any ϵ>0\epsilon>0, there exists f∈H(Kσ)f\in\mathcal{H}(K_{\sigma}), such that ∣f(xi′)−yi∣≤ϵ\left|f(\mathbf{x}_{i}^{\prime})-y_{i}\right|\leq\epsilon, for every i∈[n]i\in[n] and xi′∈B(xi)\mathbf{x}_{i}^{\prime}\in\mathcal{B}(\mathbf{x}_{i}).

Also, we make an additional assumption on the activation function σ(⋅)\sigma(\cdot):

Under these assumptions, by applying the strategy of approximating the infinite situation by finite sum of random features, we can get the following theorem:

Given data set D={(xi,yi)}i=1n\mathcal{D}=\{(\mathbf{x}_{i},y_{i})\}_{i=1}^{n} and a compatible perturbation set function B\mathcal{B} with xi\mathbf{x}_{i} and its allowed perturbations taking value on S\mathcal{S}, for the two-layer network defined in (4), if Assumption 3.1, 5.1, 5.2, 5.3 hold, then for any ϵ>0\epsilon>0, there exists RD,B,ϵR_{\mathcal{D},\mathcal{B},\epsilon} such that when the width mm satisfies m=Ω(RD,B,ϵ4ϵ2)m=\Omega\left(\frac{R_{\mathcal{D},\mathcal{B},\epsilon}^{4}}{\epsilon^{2}}\right), with probability at least 0.99 over the initialization there exists W\mathbf{W} such that

Combining Theorem 5.1 and 5.2 we finally know that

Given data set on the unit sphere equipped with a compatible perturbation set function and an associated perturbation function A\mathcal{A}, which also takes value on the unit sphere. Suppose Assumption 3.1, 5.1, 5.2, 5.3 are satisfied. Then for any ϵ>0\epsilon>0, there exists a RD,B,ϵR_{\mathcal{D},\mathcal{B},\epsilon} which only depends on dataset D\mathcal{D}, perturbation B\mathcal{B} and ϵ\epsilon, such that for any 22-layer fully connected network with width m=Ω(RD,B,ϵ4ϵ2)m=\Omega(\frac{R_{\mathcal{D},\mathcal{B},\epsilon}^{4}}{\epsilon^{2}}), if we run gradient descent with stepsize α=O(ϵ)\alpha=O\left(\epsilon\right) for T=Ω(RD,B,ϵ2ϵα)T=\Omega(\frac{R_{\mathcal{D},\mathcal{B},\epsilon}^{2}}{\epsilon\alpha}) steps, then with probability 0.990.99,

We point out that Assumption 5.2 is rather general and can be verified for a large class of activation functions by showing their induced kernel is universal as done in . Also, here we use an implicit expression of the radius BD,B,ϵB_{\mathcal{D},\mathcal{B},\epsilon}, but the dependence on ϵ\epsilon can be calculated under specific activation function with or without the smoothness assumptions. As an example, using quadratic ReLU as activation function, we solve the explicit dependency on ϵ\epsilon in Appendix C.2 that doesn’t rely on Assumption 5.2.

Therefore, adversarial training is guaranteed to find a robust classifier under a given attack algorithm when the network width is sufficiently large.

Capacity Requirement of Robustness

In this section, we will show that in order to achieve adversarially robust interpolation (which is formally defined below), one needs more capacity than just normal interpolation. In fact, empirical evidence have already shown that to reliably withstand strong adversarial attacks, networks require a significantly larger capacity than for correctly classifying benign examples only . This implies, in some sense, that using a neural network with larger width is necessary.

We begin with the definition of the interpolation class and the robust interpolation class.

We say that a function class F\mathcal{F} is an nn-robust interpolation class, if the following is satisfied:

We will use the VC-Dimension of a function class F\mathcal{F} to measure its complexity. In fact, as shown in (Equation(2)), for neural networks there is a tight connection between the number of parameters WW, the number of layers HH and their VC-Dimension

In addition, combining with the results in (Theorem 3) which shows the existence of a 4-layer neural network with O(n)O(n) parameters that can interpolate any nn data points, i.e. an nn-interpolation class, we have that an nn-interpolation class can be realized by a fixed depth neural network with VC-Dimension upper bound

For a general hypothesis class F\mathcal{F}, we can evidently see that when F\mathcal{F} is an nn-interpolation class, F\mathcal{F} has VC-Dimension at least nn. For a neural network that is an nn-interpolation class, without further architectural constraints, this lower bound of its VC-dimension is tight up to logarithmic factors as indicated in Equation (7). However, we show that for a robust-interpolation class we will have a much larger VC-Dimension lower bound:

If F\mathcal{F} is an nn-robust interpolation class, then we have the following lower bound on the VC-Dimension of F\mathcal{F}

where dd is the dimension of the input space.

For neural networks, Equation (8) shows that any architecture that is an nn-robust interpolation class should have VC-Dimension at least Ω(nd)\Omega(nd). Compared with Equation (7) which shows an nn-interpolation class can be realized by a network architecture with VC-Dimension O(nlog⁡n)O(n\log n), we can conclude that robust interpolation by neural networks needs more capacity, so increasing the width of neural network is indeed in some sense necessary.

Discussion on Limitations and Future Directions

This work provides a theoretical analysis of the empirically successful adversarial training algorithm in the training of robust neural networks. Our main results indicate that adversarial training will find a network of low robust surrogate loss, even when the maximization is computed via a heuristic algorithm such as projected gradient ascent. However, there are still some limitations with our current theory, and we also feel our results can lead to several thought-provoking future work, which is discussed as follows.

Removal of projection. It is also natural to ask whether the projection step can be removed, as it is empirically unnecessary and also unnecessary for our two-layer analysis. We believe using smooth activations might resolve this issue from a technical perspective, although practically it seems the projection step in the algorithm is unnecessary in any case.

Generalizing to different attacks. Firstly, our current guarantee of the surrogate loss is based on the same perturbation function as that used during training. It is natural to ask that whether we can ensure the surrogate loss is low with respect to a larger family of perturbation functions than that used during training.

Exploiting structures of network and data. Same as the recent proof of convergence on overparameterized networks in the non-robust setting, our analysis fails to further incorporate useful network structures apart from being sufficiently wide, and as a result increasing depth can only hurt the bound. It would be interesting to provide finer analysis based on additional assumptions on the alignment of the network structure and data distribution.

Improving the approximation bound. On the expressivity side, the current argument utilizes that a neural net restricted to a local region can approximate its induced RKHS. Although the RKHS is universal, they do not avoid the curse of dimensionality (see Appendix C.2). However, we believe in reality, the required radius of region RR to achieve robust approximation is not as large as the theorem demands. So an interesting question is whether the robust expressivity of neural networks can adapt to structures such as low latent dimension of the data mechanism , thereby reducing the approximation bound.

Capacity requirement of robustness and robust generalization. Apart from this paper, there are other works supporting the need for capacity including the perspective of network width , depth and computational complexity . It is argued in that robust generalization is also harder using Rademacher complexity. In fact, it appears empirically that robust generalization is even harder than robust training. It is observed that increasing the capacity, though benifiting the dacay of training loss, has much less effect on robust generalization. There are also other factors behind robust generalization, like the number of training data . The questions about robust generalization, as well as to what extent capacity influnces it, are still subject to much debate.

The above are several interesting directions of further improvement to our current result. In fact, many of these questions are largely unanswered even for neural nets in the non-robust setting, so we leave them to future work.

Acknowlegements

We acknowlegde useful discussions with Siyu Chen, Di He, Runtian Zhai, and Xiyu Zhai. RG and TC are partially supported by the elite undergraduate training program of School of Mathematical Sciences in Peking University. LW acknowledges support by Natioanl Key R&D Program of China (no. 2018YFB1402600), BJNSF (L172037). JDL acknowledges support of the ARO under MURI Award W911NF-11-1-0303, the Sloan Research Fellowship, and NSF CCF #1900145.

References

Appendix A Proof of the Convergence Result for Deep Nets in Section 4

and the gradient w.r.t. W(h)\mathbf{W}^{(h)} is

First, we will restate some basic results at initialization.

If m≥dm\geq d, with probability 1−O(H)e−Ω(m)1-O(H)e^{-\Omega(m)} at initialization, we have ∥A∥2=O(1)\left\lVert\mathbf{A}\right\rVert_{2}=O(1), ∥W(h)∥2=O(1),∀h∈[H]\left\lVert\mathbf{W}^{(h)}\right\rVert_{2}=O(1),\forall h\in[H], and ∥a∥2=O(m)\left\lVert\mathbf{a}\right\rVert_{2}=O(\sqrt{m}).

For any fixed input x∈S\mathbf{x}\in\mathcal{S}, with probability 1−O(H)e−Ω(m/H)1-O(H)e^{-\Omega(m/H)} over the randomness of initialization, we have for every h∈{0,…,H}h\in\{0,\ldots,H\}, ∥x‾(h)∥2∈[2/3,4/3]\left\lVert\overline{\mathbf{x}}^{(h)}\right\rVert_{2}\in[2/3,4/3] and ∥x(h)∥2∈[2/3,4/3]\left\lVert{\mathbf{x}}^{(h)}\right\rVert_{2}\in[2/3,4/3] at initialization.

This is a restatement of Lemma 7.1 in taking the number of data n=1n=1. ∎

If m=Ω(Hlog⁡H)m=\Omega\left(H\log H\right), for any fixed input x∈S\mathbf{x}\in\mathcal{S}, with probability 1−e−Ω(m/H)1-e^{-\Omega(m/H)}, at initialization we have for every h∈[H]h\in[H],

Note that ∥a⊤D(H)W(H)⋯D(h)W(h)∥2≤∥a⊤∥2∥D(H)∥2∥W(H)⋯D(h)W(h)∥2\left\lVert\mathbf{a}^{\top}\mathbf{D}^{(H)}\mathbf{W}^{(H)}\cdots\mathbf{D}^{(h)}\mathbf{W}^{(h)}\right\rVert_{2}\leq\left\lVert\mathbf{a}^{\top}\right\rVert_{2}\left\lVert\mathbf{D}^{(H)}\right\rVert_{2}\left\lVert\mathbf{W}^{(H)}\cdots\mathbf{D}^{(h)}\mathbf{W}^{(h)}\right\rVert_{2} and ∥D(H)∥2≤1\left\lVert\mathbf{D}^{(H)}\right\rVert_{2}\leq 1. This lemma then becomes a direct consequence of Lemma A.1 and Lemma 7.3(a) in with number of data n=1n=1. ∎

Our general idea is that within the local region (where R=Ω(1)R=\Omega(1))

the gradient f′(h)(W)f^{\prime(h)}(\mathbf{W}) remains stable over W\mathbf{W} when x\mathbf{x} is fixed, and the perturbation of f′(h)(W)f^{\prime(h)}(\mathbf{W}) is small compared to the scale of f′(h)(W0)f^{\prime(h)}(\mathbf{W}_{0}). This property has been studied in extensively. However, in the non-adversarial setting, they only need to prove this property at finitely many data points {xi}i=1n\{\mathbf{x}_{i}\}_{i=1}^{n}. In our adversarial training setting, though, we also need to prove that it holds for any xi′∈B(xi)\mathbf{x}^{\prime}_{i}\in\mathcal{B}(\mathbf{x}_{i}). Specifically, in this section we would like to prove that it holds for any x∈S\mathbf{x}\in\mathcal{S}. Our method is based on viewing the perturbation of x\mathbf{x} as an equivalent perturbation of the parameter W(1)\mathbf{W}^{(1)}, and then we will be able to make use of the results in . This is elaborated in the following lemma:

Given any fixed input x∈S\mathbf{x}\in\mathcal{S}. If R=O(m)R=O(\sqrt{m}), with probability 1−O(H)e−Ω(m/H)1-O(H)e^{-\Omega(m/H)} over random initialization, for any x′∈S\mathbf{x}^{\prime}\in\mathcal{S} satisfying ∥x−x′∥2≤δ\left\lVert\mathbf{x}-\mathbf{x}^{\prime}\right\rVert_{2}\leq\delta, and any W∈B(R)\mathbf{W}\in B(R), there exists W~∈B(R+O(mδ))\widetilde{\mathbf{W}}\in B(R+O(\sqrt{m}\delta)) such that W(h)=W~(h)\mathbf{W}^{(h)}=\widetilde{\mathbf{W}}^{(h)} for h=2,⋯ ,Hh=2,\cdots,H, and for all h∈[H]h\in[H] we have

In other words, the network with a perturbation from x\mathbf{x} to x′\mathbf{x}^{\prime} is same as the network with a perturbation from W\mathbf{W} to W~\widetilde{\mathbf{W}} since layer x‾(1)\overline{\mathbf{x}}^{(1)} and up.

By Lemma A.1, with probability 1−O(H)e−Ω(m)1-O(H)e^{-\Omega(m)}, ∥A∥2=O(1)\left\lVert\mathbf{A}\right\rVert_{2}=O(1) and ∥W0(1)∥2=O(1)\left\lVert\mathbf{W}_{0}^{(1)}\right\rVert_{2}=O(1). Thus ∥W(1)∥2≤∥W0(1)∥2+Rm=O(1)\left\lVert{\mathbf{W}}^{(1)}\right\rVert_{2}\leq\left\lVert{\mathbf{W}}^{(1)}_{0}\right\rVert_{2}+\frac{R}{\sqrt{m}}=O(1). By Lemma A.2, with probability 1−O(H)e−Ω(m/H)1-O(H)e^{-\Omega(m/H)}, ∥x(0)∥2∈[2/3,4/3]\left\lVert\mathbf{x}^{(0)}\right\rVert_{2}\in[2/3,4/3]. Let

W~(1)\widetilde{\mathbf{W}}^{(1)} obviously satisfies W~(1)x(0)=W(1)x′(0)\widetilde{\mathbf{W}}^{(1)}\mathbf{x}^{(0)}={\mathbf{W}}^{(1)}\mathbf{x}^{\prime(0)}. Then setting W~(2),…,W~(H)\widetilde{\mathbf{W}}^{(2)},\ldots,\widetilde{\mathbf{W}}^{(H)} equal to W(2),…,W(H){\mathbf{W}}^{(2)},\ldots,{\mathbf{W}}^{(H)} will make all the following hidden layer vectors and D(h)\mathbf{D}^{(h)} equal. It is also easy to verify that

so we know that W~∈B(R+O(mδ))\widetilde{\mathbf{W}}\in B(R+O(\sqrt{m}\delta)). ∎

By Lemma A.4, we can directly apply many results in which are only intended for the fixed data originally, to our scenario where the input can be perturbed, as long as we take the parameter radius as Rm+O(δ)\frac{R}{\sqrt{m}}+O(\delta) in their propositionsNote that in the corresponding region B(R)B(R) is defined by the 22-norm instead of the FF-norm: B2(R):={W:∥W(h)−W0(h)∥2≤Rm,∀h∈[H]}B_{2}(R):=\{\mathbf{W}:\left\lVert\mathbf{W}^{(h)}-\mathbf{W}_{0}^{(h)}\right\rVert_{2}\leq\frac{R}{\sqrt{m}},\forall h\in[H]\}. Since obviously B2(R)⊂B(R)B_{2}(R)\subset B(R), we can still apply their results to our case directly.. This can give us the following important lemma:

Given any fixed input x∈S\mathbf{x}\in\mathcal{S}. If m≥max⁡(d,Ω(Hlog⁡H))m\geq\max(d,\Omega(H\log H)), Rm+δ≤cH6(log⁡m)3\frac{R}{\sqrt{m}}+\delta\leq\frac{c}{H^{6}(\log m)^{3}} for some sufficiently small constant cc, then with probability at least 1−O(H)e−Ω(m(R/m+δ)2/3H)1-O(H)e^{-\Omega(m(R/\sqrt{m}+\delta)^{2/3}H)} over random initialization, we have for any W∈B(R)\mathbf{W}\in B(R) and any x′∈S\mathbf{x}^{\prime}\in\mathcal{S} with ∥x−x′∥2≤δ\left\lVert\mathbf{x}-\mathbf{x}^{\prime}\right\rVert_{2}\leq\delta,

By Lemma 8.2(b)(c) of , using the method of Lemma A.4 stated above, when Rm+δ≤cH9/2(log⁡m)3\frac{R}{\sqrt{m}}+\delta\leq\frac{c}{H^{9/2}(\log m)^{3}}, with probability 1−e−Ω(m(R/m+δ)2/3H)1-e^{-\Omega(m(R/\sqrt{m}+\delta)^{2/3}H)}, for any W∈B(R)\mathbf{W}\in B(R) and any x′∈S\mathbf{x}^{\prime}\in\mathcal{S} with ∥x−x′∥2≤δ\left\lVert\mathbf{x}-\mathbf{x}^{\prime}\right\rVert_{2}\leq\delta, we have for h∈[H]h\in[H], Here the zero norm ∥⋅∥0\left\lVert\cdot\right\rVert_{0} denotes the number of non-zero entries of a matrix or a vector.

where (11) is also easily verified to hold for h=0h=0. Next, according to Lemma 8.7 of We only use the setting when the network output is a scalar., when the bound (10) satisfies O(m(Rm+δ)2/3H)≤mH3log⁡mO(m(\frac{R}{\sqrt{m}}+\delta)^{2/3}H)\leq\frac{m}{H^{3}\log m}, with probability 1−e−Ω((R/m+δ)2/3Hmlog⁡m)1-e^{-\Omega((R/\sqrt{m}+\delta)^{2/3}Hm\log m)}, we have for any W∈B(R)\mathbf{W}\in B(R) and any x′∈S\mathbf{x}^{\prime}\in\mathcal{S} with ∥x−x′∥2≤δ\left\lVert\mathbf{x}-\mathbf{x}^{\prime}\right\rVert_{2}\leq\delta, ∀h∈[H]\forall h\in[H],

Note that with our condition Rm+δ≤cH6(log⁡m)3\frac{R}{\sqrt{m}}+\delta\leq\frac{c}{H^{6}(\log m)^{3}}, the previous requirements are all satisfied. Also, combining (11) with Lemma A.2, we know for h=0,⋯ ,Hh=0,\cdots,H,

Combining Equation (11), (12), (13), and Lemma A.3, we obtain

With Lemma A.5, we are ready to state an important bound that implies the loss function is close to being convex within the neighborhood B(R)B(R) for any x∈S\mathbf{x}\in\mathcal{S}. We use the ϵ\epsilon-net to turn the result from a fixed x\mathbf{x} to all x∈S\mathbf{x}\in\mathcal{S},

where the first inequality uses the convexity of ll w.r.t ff and the last inequality is due to the boundedness of ∣∂l/∂f∣|\partial l/\partial f| is bounded, Lemma A.5, and ∇Wf=(f′(1),…,f′(H))\nabla_{\mathbf{W}}f=(f^{\prime(1)},\ldots,f^{\prime(H)}). We take δ=Rm\delta=\frac{R}{\sqrt{m}}. With R=O(mH6(log⁡m)3)R=O\left(\frac{\sqrt{m}}{H^{6}(\log m)^{3}}\right) the requirement Rm+δ≤cH6(log⁡m)3\frac{R}{\sqrt{m}}+\delta\leq\frac{c}{H^{6}(\log m)^{3}} can be satisfied. Therefore, taking union event over all NN points, our proposition holds with probability

where the last equation is due to the condition m=Ω(d3/2log⁡3/2(m/R)RH3/2)m=\Omega\left(\frac{d^{3/2}\log^{3/2}(\sqrt{m}/R)}{RH^{3/2}}\right). ∎

With the above preparations, we are ready to prove the main theorem.

We denote Wt\mathbf{W}_{t} as the parameter after tt steps of projected gradient descent, starting from the initialization W0\mathbf{W}_{0}. We perform a total of TT steps with step size α\alpha.

For projected gradient descent, Wt∈B(R){\mathbf{W}}_{t}\in B(R) holds for all t=0,1,⋯ ,Tt=0,1,\cdots,T. Recall that the update rule is Wt+1=PB(R)(Vt+1)\mathbf{W}_{t+1}=\mathcal{P}_{B(R)}\left(\mathbf{V}_{t+1}\right) for Vt+1=Wt−α∇WLA(Wt)\mathbf{V}_{t+1}=\mathbf{W}_{t}-\alpha\nabla_{\mathbf{W}}L_{\mathcal{A}}(\mathbf{W}_{t}). Let dt:=∥Wt−W∗∥Fd_{t}:=\|{\mathbf{W}}_{t}-{\mathbf{W}}_{\ast}\|_{F}. We have

where the second inequality is due to Lemma A.6 and Lemma A.5, the third inequality is due to the definition of A∗\mathcal{A}_{\ast}. Note that in order to satisfy the condition for Lemma A.6 and Lemma A.5, our choice m=max⁡{Ω(H16R9ϵ7),Ω(d2)}m=\max\{\Omega\left(\frac{H^{16}R^{9}}{\epsilon^{7}}\right),\Omega(d^{2})\} suffices. By induction on the above inequality, we have

where in the last inequality we use our choice of α=O(ϵmH2)\alpha=O\left(\frac{\epsilon}{mH^{2}}\right), T=Θ(R2mαϵ)T=\Theta\left(\frac{R^{2}}{m\alpha\epsilon}\right), and also m−1/6R4/3H5/2log⁡m≤O(ϵ)m^{-1/6}R^{4/3}H^{5/2}\sqrt{\log m}\leq O(\epsilon), which is satisfied by m=Ω(H16R9ϵ7)m=\Omega\left(\frac{H^{16}R^{9}}{\epsilon^{7}}\right).

Appendix B Proof of Theorem 5.1: Convergence Result for Two-Layer Networks

We denote Wt\mathbf{W}_{t} as the parameter after tt steps of projected gradient descent, starting from the initialization W0\mathbf{W}_{0}. We perform a total of TT steps with step size α\alpha, where each step is an update Wt+1=Wt−α∇WLA(Wt)\mathbf{W}_{t+1}=\mathbf{W}_{t}-\alpha\nabla_{\mathbf{W}}L_{\mathcal{A}}(\mathbf{W}_{t}). Firstly, the formula for the network gradient is

where a=(a1,⋯ ,am2,a1′,⋯ ,am2′)⊤\mathbf{a}=(a_{1},\cdots,a_{\frac{m}{2}},a_{1}^{\prime},\cdots,a_{\frac{m}{2}}^{\prime})^{\top} is the parameter for the output layer. We can compute the Lipschitz property of ∇Wf\nabla_{\mathbf{W}}f w.r.t W\mathbf{W}: For any fixed x∈S\mathbf{x}\in\mathcal{S},

In addition, we can also easily know that for W∈B(R)\mathbf{W}\in B(R) and R=O(M)R=O(\sqrt{M}), x∈S\mathbf{x}\in\mathcal{S}, we have

since the initialization satisfies ∥W0∥2=O(m)\left\lVert\mathbf{W}_{0}\right\rVert_{2}=O(\sqrt{m}) with high probability given m=Ω(d)m=\Omega(d) (see Lemma A.1), thereby ∥W∥2=O(m)\left\lVert\mathbf{W}\right\rVert_{2}=O(\sqrt{m}).

Denote dt=∥Wt−W∗∥Fd_{t}=\|\mathbf{W}_{t}-\mathbf{W}_{*}\|_{F}. Without a projection step, there could be two possible scenarios during the optimization process: Either Wt∈B(3R)\mathbf{W}_{t}\in B(3R) holds for all t=1,⋯ ,Tt=1,\cdots,T, or there exists some T0<TT_{0}<T such that Wt∈B(3R)\mathbf{W}_{t}\in B(3R) for t≤T0t\leq T_{0} but WT0+1∉B(3R)\mathbf{W}_{T_{0}+1}\notin B(3R). Either way, while Wt\mathbf{W}_{t} is still in B(3R)B(3R) up to t−1t-1, we have

where the first inequality is based on (14) and (15), the second inequality is based on the definition of L∗(W∗)L_{\ast}(\mathbf{W}_{\ast}), and cc is some constant. Let St=(1+cαm)tS_{t}=(1+\frac{c\alpha}{\sqrt{m}})^{t} which is a geometric series, and dividing (16) by StS_{t} we have

and note that ∑i=0t−11Si+1=mcα(1−1St)\sum_{i=0}^{t-1}\frac{1}{S_{i+1}}=\frac{\sqrt{m}}{c\alpha}\left(1-\frac{1}{S_{t}}\right), which yields

Now we will consider the two cases separately:

Case 1. Wt∈B(3R)\mathbf{W}_{t}\in B(3R) holds for all t=1,⋯ ,Tt=1,\cdots,T. We have chosen T=mcαT=\frac{\sqrt{m}}{c\alpha}, and then ST≈eS_{T}\approx e. Also, since d02−dT2ST≤d02=O(R2)d_{0}^{2}-\frac{d_{T}^{2}}{S_{T}}\leq d_{0}^{2}=O(R^{2}), by choosing m=Ω(R4/ϵ2)m=\Omega(R^{4}/\epsilon^{2}) and α=O(ϵ)\alpha=O\left(\epsilon\right), and taking t=Tt=T in (17), we can obtain min⁡t=0,⋯ ,TLA(Wt)−L∗(W∗)≤ϵ\min_{t=0,\cdots,T}L_{\mathcal{A}}(\mathbf{W}_{t})-L_{\ast}(\mathbf{W}_{\ast})\leq\epsilon.

Case 2. There exists some T0<TT_{0}<T such that Wt∈B(3R)\mathbf{W}_{t}\in B(3R) for t≤T0t\leq T_{0} but WT0+1∉B(3R)\mathbf{W}_{T_{0}+1}\notin B(3R). Since W∗∈B(R)\mathbf{W}_{*}\in B(R), we know that d0≤Rd_{0}\leq R and dT0+1≥2Rd_{T_{0}+1}\geq 2R. Still using the choice of parameters above, we have d02−dT0+12ST0+1≤R2−(4/e)R2≤0d_{0}^{2}-\frac{d_{T_{0}+1}^{2}}{S_{T_{0}+1}}\leq R^{2}-(4/e)R^{2}\leq 0. Hence, taking t=T0+1t=T_{0}+1 in (17), we obtain min⁡t=0,⋯ ,TLA(Wt)−L∗(W∗)≤min⁡t=0,⋯ ,T0LA(Wt)−L∗(W∗)≤ϵ\min_{t=0,\cdots,T}L_{\mathcal{A}}(\mathbf{W}_{t})-L_{\ast}(\mathbf{W}_{\ast})\leq\min_{t=0,\cdots,T_{0}}L_{\mathcal{A}}(\mathbf{W}_{t})-L_{\ast}(\mathbf{W}_{\ast})\leq\epsilon.

So in any case the result is correct, thus we have proved the convergence without the need of projection. ∎

Appendix C Proof of Gradient Descent Finding Robust Classifier in Section 5

As discussed in Section 5, we will use the idea of random feature to approximate g∈H(Kσ){g}\in\mathcal{H}(K_{\sigma}) on the unit sphere. We consider functions of the form

Let FRF\mathcal{F}_{\text{RF}} and H(Kσ)\mathcal{H}(K_{\sigma}) be defined as above. Then FRF\mathcal{F}_{\text{RF}} is dense in H(Kσ)\mathcal{H}(K_{\sigma}), and further, dense in H(Kσ)\mathcal{H}(K_{\sigma}) w.r.t. ∥⋅∥∞,S\left\lVert\cdot\right\rVert_{\infty,\mathcal{S}}, where ∥f∥∞,S=sup⁡x∈S∣f(x)∣\left\lVert f\right\rVert_{\infty,\mathcal{S}}=\sup_{\mathbf{x}\in\mathcal{S}}\left|f(\mathbf{x})\right|.

We then show that we can approximate elements of FRF\mathcal{F}_{\text{RF}} by finite random features. Our results are inspired by . For the next theorem, recall Assumption 5.1, 5.3, the constant CC satisfies σ′\sigma^{\prime} is CC-Lipschitz, ∣σ′(⋅)∣≤C\left|\sigma^{\prime}(\cdot)\right|\leq C.

This result is obtained by importance sampling, where we construct h^\hat{h} with ci=c(wi)Mp0(wi)c_{i}=\frac{c(\mathbf{w}_{i})}{Mp_{0}(\mathbf{w}_{i})}. We first notice that ∥ci∥2=∥c(wi)∥2Mp0(wi)≤∥h∥RFM\left\lVert c_{i}\right\rVert_{2}=\frac{\left\lVert c(\mathbf{w}_{i})\right\rVert_{2}}{Mp_{0}(\mathbf{w}_{i})}\leq\frac{\left\lVert h\right\rVert_{\text{RF}}}{M} which satisfies the condition of the theorem. We then define the random variable

We bound this deviation from its expectation using McDiarmid’s inequality.

by using triangle, Cauchy-Schwartz inequality, ∣σ′(⋅)∣≤C\left|\sigma^{\prime}(\cdot)\right|\leq C and ∥x∥2=1\left\lVert\mathbf{x}\right\rVert_{2}=1.

where ϵ1,⋯ ,ϵM\epsilon_{1},\cdots,\epsilon_{M} is a sequence of Rademacher random variables.

Since ∣ci⊤x∣≤∥ci∥2≤∥h∥RFM\left|c_{i}^{\top}\mathbf{x}\right|\leq\left\lVert c_{i}\right\rVert_{2}\leq\frac{\left\lVert h\right\rVert_{\text{RF}}}{M} and σ′\sigma^{\prime} is CC-Lipschitz, we have that ci⊤xσ′(⋅)c_{i}^{\top}\mathbf{x}\sigma^{\prime}(\cdot) is C∥h∥RFM\frac{C\left\lVert h\right\rVert_{\text{RF}}}{M}-Lipschitz in the scalar argument and zero when the scalar argument is zero. Following (18), by Talagrand’s lemma (Lemma 5.7) in together with Cauchy-Schwartz, Jensen’s inequality, we have

The proposition is proved by solving the ϵ\epsilon while setting the right hand to the given δ\delta. ∎

. Finally, we construct W∗\mathbf{W}_{\ast} within a ball of the initialization W0\mathbf{W}_{0} that suffers little robust loss L∗(W∗)L_{\ast}(\mathbf{W}_{\ast}). Using the symmetric initialization in (4), we have f(W0,x)=0f(\mathbf{W}_{0},\mathbf{x})=0 for all x\mathbf{x}. We then use the neural Taylor expansion w.r.t. the parameters:

where wi0\mathbf{w}_{i0} denotes the value of wi\mathbf{w}_{i} at initialization. We omitted the second order term. The term (i) has the form of the random feature approximation, and so Proposition C.1 can be used to construct a robust interpolant.

In summary, we give the entire proof of Theorem 5.2 as follows.

By Assumption 5.2 with ϵˉ\bar{\epsilon}, there exists g1∈H(Kσ)g_{1}\in\mathcal{H}(K_{\sigma}) such that

for every xi′∈B(xi)\mathbf{x}_{i}^{\prime}\in\mathcal{B}(\mathbf{x}_{i}), i∈[n]i\in[n], where B(xi)\mathcal{B}(\mathbf{x}_{i}) is the perturbation set.

such that g3=∑i=1m/2ci⊤xσ′(wi⊤x)g_{3}=\sum_{i=1}^{m/2}c_{i}^{\top}\mathbf{x}\sigma^{\prime}(\mathbf{w}_{i}^{\top}\mathbf{x}) satisfies

with probability at least 1−δ1-\delta on the initialization wi\mathbf{w}_{i}’s.

We decompose ff into the linear part and its residual:

Then set wi=wi0+m4ci,wˉi=−m4ci+wˉi0\mathbf{w}_{i}=\mathbf{w}_{i0}+\sqrt{\frac{m}{4}}c_{i},\bar{\mathbf{w}}_{i}=-\sqrt{\frac{m}{4}}c_{i}+\bar{\mathbf{w}}_{i0}, we have

Finally, set mm to be large enough (=Ω(∥g2∥RF4ϵ2)=\Omega\left(\frac{\left\lVert g_{2}\right\rVert_{\text{RF}}^{4}}{\epsilon^{2}}\right)) so that the left hand in Equation (19) no more than ϵˉ\bar{\epsilon} and let RD,B,ϵR_{\mathcal{D},\mathcal{B},\epsilon} to be ∥g2∥RF/2\left\lVert g_{2}\right\rVert_{\text{RF}}/2. Then

The theorem follows by setting δ=0.01\delta=0.01. ∎

C.2 Example of Using Quadratic ReLU Activation

The dataset {xi,yi}i=1n⊂S\{\mathbf{x}_{i},y_{i}\}_{i=1}^{n}\subset\mathcal{S} and the perturbation set function B\mathcal{B} satisfies the following: There does not exist x,xˉ\mathbf{x},\bar{\mathbf{x}} and i,ji,j such that x∈B(xi)‾∪(−B(xi)‾),xˉ∈B(xj)‾∪(−B(xj)‾)\mathbf{x}\in\overline{\mathcal{B}(\mathbf{x}_{i})}\cup(-\overline{\mathcal{B}(\mathbf{x}_{i})}),\bar{\mathbf{x}}\in\overline{\mathcal{B}(\mathbf{x}_{j})}\cup(-\overline{\mathcal{B}(\mathbf{x}_{j})}) but yi≠yjy_{i}\neq y_{j}.

And then we can derive the finite-sum approximation result by random features.

For a given Lipschitz function h∈H(Kσ)h\in\mathcal{H}(K_{\sigma}). For ϵ>0,δ∈(0,1)\epsilon>0,\delta\in(0,1), let w1,⋯ ,wM\mathbf{w}_{1},\cdots,\mathbf{w}_{M} be sampled i.i.d. from the uniform distribution on the surface of the sphere of radius d\sqrt{d} where

Let h∈H(Kσ)h\in\mathcal{H}(K_{\sigma}). For ϵ>0\epsilon>0, let dρd\rho be the uniform distribution on S\mathcal{S}. Let w1,⋯ ,wM\mathbf{w}_{1},\cdots,\mathbf{w}_{M} be sampled i.i.d. from uniform distribution on the surface of the sphere of radius d\sqrt{d}, then for any δ∈(0,1)\delta\in(0,1), if

Then we can give the proof of Theorem C.1.

Let Lip(f)Lip(f) denote the Lipschitz coefficient of ff. We consider h^\hat{h} in Lemma C.2, by the property of Lipschitz coefficient, we have

By Lemma C.2, for some constant CD,BC_{\mathcal{D},\mathcal{B}}, when M=Ω(CD,Bϵd+1log⁡1ϵd+1δ)M=\Omega\left(\frac{C_{\mathcal{D},\mathcal{B}}}{\epsilon^{d+1}}\log\frac{1}{\epsilon^{d+1}\delta}\right), Equation (25) fails, so ∥h−h^∥∞,S≤ϵ\left\lVert h-\hat{h}\right\rVert_{\infty,\mathcal{S}}\leq\epsilon holds and at the same time we have ∑r=1M∥cr∥22=O(CD,B′M)\sum_{r=1}^{M}\left\lVert c_{r}\right\rVert_{2}^{2}=O\left(\frac{C^{\prime}_{\mathcal{D},\mathcal{B}}}{M}\right) for some CD,B′C^{\prime}_{\mathcal{D},\mathcal{B}} that only depends on the data and the perturbation. ∎

Now, we get a similar but more explicit finite-sum approximation result for quadratic ReLU activation, we are then going to show that the RKHS is rich enough that Assumption 5.2 can be derived. We have the following lemma to characterize the capacity of the RKHS.

Then, by plugging-in the finite-sum approximation theorem (Theorem C.1) and the theorem of the capacity of RKHS (Theorem C.3) to the proof of Theorem 5.2 and combining with the optimization theorem, we can get an overall theorem for the quadratic-ReLU network which is similar to Corollary 5.1 but with explicit ϵ\epsilon dependence:

Given data set on the unit sphere equipped with a compatible perturbation set function and an associated perturbation function A\mathcal{A}, which also takes value on the unit sphere. Suppose Assumption 3.1, C.1 are satisfied. Let CD,B′′C_{\mathcal{D},\mathcal{B}}^{\prime\prime} be a constant that only depends on the dataset D\mathcal{D} and perturbation B\mathcal{B}. Then for any 22-layer quadratic-ReLU network with width m=Ω(CD,B′′ϵd+1log⁡1ϵ)m=\Omega(\frac{C_{\mathcal{D},\mathcal{B}}^{\prime\prime}}{\epsilon^{d+1}}\log\frac{1}{\epsilon}), if we run gradient descent with stepsize α=O(ϵ)\alpha=O(\epsilon) for T=Ω(mα)T=\Omega(\frac{\sqrt{m}}{\alpha}) steps, then with probability 0.990.99,

Appendix D Proof of Theorem 6.1

We prove this theorem by an explicit construction of [n2]×d\left[\frac{n}{2}\right]\times d data points that F\mathcal{F} is guaranteed to be able to shatter. Consider the following data points

we can always put r=δr=\delta. This also holds in the case that PiP_{i} or NiN_{i} is empty, where we can simply put one ball centered at xi,1=ci\mathbf{x}_{i,1}=\mathbf{c}_{i} and put Br(xi,2)\mathcal{B}_{r}(\mathbf{x}_{i,2}) anywhere far away so that it is disjoint from the other balls. Recall that we have chosen ∥ci−ci′∥2≥6δ\left\lVert\mathbf{c}_{i}-\mathbf{c}_{i^{\prime}}\right\rVert_{2}\geq 6\delta for i≠i′i\neq i^{\prime}. Such balls Br(xi,l):i∈{1,⋯ ,[n2]},l∈{1,2},\mathcal{B}_{r}(\mathbf{x}_{i,l}):i\in\{1,\cdots,\left[\frac{n}{2}\right]\},l\in\{1,2\}, are disjoint since ϵ≤δ\epsilon\leq\delta, and ∥xi,l′−ci∥2≤2δ\left\lVert\mathbf{x}_{i,l}^{\prime}-\mathbf{c}_{i}\right\rVert_{2}\leq 2\delta for l=1,2l=1,2. In this way, since F\mathcal{F} is an nn-robust interpolation class, we can use the fact that there exists a function f∈Ff\in\mathcal{F} such that for any i∈{1,⋯ ,[n2]}i\in\{1,\cdots,\left[\frac{n}{2}\right]\}, f(x)=1f(\mathbf{x})=1 for x∈Br(xi,1)\mathbf{x}\in\mathcal{B}_{r}(\mathbf{x}_{i,1}) and f(x)=−1f(\mathbf{x})=-1 for x∈Br(xi,2)\mathbf{x}\in\mathcal{B}_{r}(\mathbf{x}_{i,2}). In this way, f(xi,j)=yi,jf(\mathbf{x}_{i,j})=y_{i,j} holds for all i,ji,j. Since the labels yi,jy_{i,j} can be picked at will, by the definition of the VC-dimension, we know that the VC-dimension of F\mathcal{F} is always at least [n2]×d\left[\frac{n}{2}\right]\times d. ∎