Generalized Leverage Score Sampling for Neural Networks

Jason D. Lee, Ruoqi Shen, Zhao Song, Mengdi Wang, Zheng Yu

Introduction

In this work, we follow the the approach in [AKM+17] and naturally generalize the result to a broader class of kernels, which is of the form

We summarize our main results and contribution as following:

Generalize the leverage score sampling theory for kernel ridge regression to a broader class of kernels.

Connect the leverage score sampling theory with neural network training.

Theoretically prove the equivalence between training regularized neural network and kernel ridge regression under both random Gaussian initialization and leverage score sampling initialization.

Related work

Given a m×nm\times n matrix AA. Let ai⊤a_{i}^{\top} be the ii-th rows of AA and the leverage score of the ii-th row of AA is σi(A)=ai⊤(A⊤A)†ai\sigma_{i}(A)=a_{i}^{\top}(A^{\top}A)^{\dagger}a_{i}. A row’s leverage score measures how important it is in composing the row space of AA. If a row has a component orthogonal to all other rows, its leverage score is 11. Removing it would decrease the rank of AA, completely changing its row space. The coherence of AA is ∥σ(A)∥∞\|\sigma(A)\|_{\infty}. If AA has low coherence, no particular row is especially important. If AA has high coherence, it contains at least one row whose removal would significantly affect the composition of AA’s row space.

Leverage score is a fundamental concept in graph problems and numerical linear algebra. There are many works on how to approximate leverage scores [SS11, DMIMW12, CW13, NN13] or more general version of leverages, e.g. Lewis weights [Lew78, BLM89, CP15]. From graph perspective, it has been applied to maximum matching [BLN+20, LSZ20], max-flow [DS08, Mad13, Mad16, LS20b, LS20a], generate random spanning trees [Sch18], and sparsify graphs [SS11]. From matrix perspective, it has been used to give matrix CUR decomposition [BW14, SWZ17, SWZ19] and tensor CURT decomposition [SWZ19]. From optimization perspective, it has been used to approximate the John Ellipsoid [CCLY19], linear programming [LS14, BLSS20, JSWZ20], semi-definite programming [JKL+20], and cutting plane methods [Vai89, LSW15, JLSW20].

Kernel methods can be thought of as instance-based learners: rather than learning some fixed set of parameters corresponding to the features of their inputs, they instead “remember” the ii-th training example (xi,yi)(x_{i},y_{i}) and learn for it a corresponding weight wiw_{i}. Prediction for unlabeled inputs, i.e., those not in the training set, is treated by the application of similarity function K\mathsf{K}, called a kernel, between the unlabeled input x′x^{\prime} and each of the training inputs xix_{i}.

There are three lines of works that are closely related to our work. First, our work is highly related to the recent discoveries of the connection between deep learning and kernels [DFS16, Dan17, JGH18, CB18]. Second, our work is closely related to development of connection between leverage score and kernels [RR08, CW17, CMM17, MW17b, MW17a, LTOS18, AKM+17, AKM+19, ACSS20]. Third, our work is related to kernel ridge regression [Bac13, AM15, ZDW15, ACW17, MM17, ZNV+20].

There is a long line of work studying the convergence of neural network with random input assumptions [BG17, Tia17, ZSJ+17, Sol17, LY17, ZSD17, DLT+18, GLM18, BJW19]. For a quite while, it is not known to remove the randomness assumption from the input data points. Recently, there is a large number of work studying the convergence of neural network in the over-parametrization regime [LL18, DZPS19, AZLS19b, AZLS19a, DLL+19, ADH+19b, ADH+19a, SY19, BPSW20]. These results don’t need to assume that input data points are random, and only require some much weaker assumption which is called “data-separable”. Mathematically, it says for any two input data points xix_{i} and xjx_{j}, we have ∥xi−xj∥2≥δ\|x_{i}-x_{j}\|_{2}\geq\delta. Sufficiently wide neural network requires the width mm to be at least poly⁡(n,d,L,1/δ)\operatorname{poly}(n,d,L,1/\delta), where nn is the number of input data points, dd is the dimension of input data point, LL is the number of layers.

Main results

In this section, we state our results. In Section 3.1, we consider the large-scale kernel ridge regression (KRR) problem. We generalize the Fourier transform result [AKM+17] of accelerating the running time of solving KRR using the tool of leverage score sampling to a broader class of kernels. In Section 3.2, we discuss the interesting application of leverage score sampling for training deep learning models due to the connection between regularized neural nets and kernel ridge regression.

In this section, we generalize the leverage score theory in [AKM+17], which analyzes the number of random features needed to approximate kernel matrix under leverage score sampling regime for the kernel ridge regression task. In the next a few paragraphs, we briefly review the settings of classical kernel ridge regression.

Due to the regularization λ>0\lambda>0 in this setting, instead of constructing the feature map directly from the distribution qq, we consider the following ridge leveraged distribution:

The leverage score sampling distribution qλ/sλ(K)q_{\lambda}/s_{\lambda}(K) takes the regularization term into consideration and achieves Eq. (2) using the following modified random features vector:

holds with probability at least 1−δ1-\delta.

2 Application in training regularized neural network

Past literature such as [DZPS19],[ADH+19a] have already witnessed the equivalence between training a neural network and solving a kernel regression problem in a broad class of network models. In this work, we first generalize this result to the regularization case, where we connect regularized neural network with kernel ridge regression. Then we apply the above discussed the leverage score sampling theory for KRR to the task of training neural nets.

To illustrate the idea, we consider a simple model two layer neural network with ReLU activation function as in [DZPS19, SY19]Our results directly extends to multi-layer deep neural networks with all layers trained together.

Let κ∈(0,1]\kappa\in(0,1] be a small multiplierTo establish the training equivalence result, we assign κ=1\kappa=1 back to the normal case. For the training equivalence result, we pick κ>0\kappa>0 to be a small multiplier only to shrink the initial output of the neural network. The is the same as what is used in [AKM+17].. Let λ∈(0,1)\lambda\in(0,1) be the regularization parameter. We initialize the network as ar∼i.i.d.unif⁡[{−1,1}]a_{r}\overset{i.i.d.}{\sim}\operatorname{unif}[\{-1,1\}] and wr(0)∼i.i.d.N(0,Id)w_{r}(0)\overset{i.i.d.}{\sim}\mathcal{N}(0,I_{d}). Then we consider solving the following optimization problem using gradient descent:

On the other hand, we consider the following neural tangent kernel ridge regression problem:

We connect the problem Eq. (6) and Eq. (7) by building the following equivalence between their training and test predictors with polynomial widths:

Given any accuracy ϵ∈(0,1/10)\epsilon\in(0,1/10) and failure probability δ∈(0,1/10)\delta\in(0,1/10). Let multiplier κ=1\kappa=1, number of iterations T=O~(1Λ0)T=\widetilde{O}(\frac{1}{\Lambda_{0}}), network width m≥O~(n4dΛ04ϵ)m\geq\widetilde{O}(\frac{n^{4}d}{\Lambda_{0}^{4}\epsilon}) and the regularization parameter λ≤O~(1m)\lambda\leq\widetilde{O}(\frac{1}{\sqrt{m}}). Then with probability at least 1−δ1-\delta over the Gaussian random initialization, we have

Here O~(⋅)\widetilde{O}(\cdot) hides poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

We can further show the equivalence between the test data predictors with the help of the multiplier κ\kappa.

Given any accuracy ϵ∈(0,1/10)\epsilon\in(0,1/10) and failure probability δ∈(0,1/10)\delta\in(0,1/10). Let multiplier κ=O~(ϵΛ0n)\kappa=\widetilde{O}(\frac{\epsilon\Lambda_{0}}{n}), number of iterations T=O~(1κ2Λ0)T=\widetilde{O}(\frac{1}{\kappa^{2}\Lambda_{0}}), network width m≥O~(n10dϵ6Λ010)m\geq\widetilde{O}(\frac{n^{10}d}{\epsilon^{6}\Lambda_{0}^{10}}) and regularization parameter λ≤O~(1m)\lambda\leq\widetilde{O}(\frac{1}{\sqrt{m}}). Then with probability at least 1−δ1-\delta over the Gaussian random initialization, we have

Here O~(⋅)\widetilde{O}(\cdot) hides poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

2.2 Equivalence II, training with leverage scores

To apply the leverage score theory discussed in Section 3.1, Note the definition of the neural tangent kernel is exactly of the form:

Specifically, given regularization parameter λ>0\lambda>0, we can define the ridge leverage function with respect to neural tangent kernel Hcts⁡H^{\operatorname{cts}} defined in Definition 3.1 as

and corresponding probability density function

We consider training the following reweighed neural network using leverage score initialization:

We show that training this reweighed neural net with leverage score initialization is still equivalence to the neural tangent kernel ridge regression problem (7) as in following theorem:

Given any accuracy ϵ∈(0,1)\epsilon\in(0,1) and failure probability δ∈(0,1/10)\delta\in(0,1/10). Let multiplier κ=1\kappa=1, number of iterations T=O(1Λ0log⁡(1ϵ))T=O(\frac{1}{\Lambda_{0}}\log(\frac{1}{\epsilon})), network width m=poly⁡(1Λ0,n,d,1ϵ,log⁡(1δ))m=\operatorname{poly}(\frac{1}{\Lambda_{0}},n,d,\frac{1}{\epsilon},\log(\frac{1}{\delta})) and regularization parameter λ=O~(1m)\lambda=\widetilde{O}(\frac{1}{\sqrt{m}}). Then with probability at least 1−δ1-\delta over the random leverage score initialization, we have

Here O~(⋅)\widetilde{O}(\cdot) hides poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

Overview of techniques

To prove Theorem 3.3, we follow the similar proof framework as Lemma 8 in [AKM+17].

Let K+λIn=V⊤Σ2VK+\lambda I_{n}=V^{\top}\Sigma^{2}V be an eigenvalue decomposition of K+λInK+\lambda I_{n}. Then conclusion (5) is equivalent to

holds with probability at least 1−δ1-\delta, which can be shown by applying matrix concentration results. Note

Applying matrix concentration Lemma 7 in [AKM+17], we complete the proof.

To establish the equivalence between training neural network with regularization and neural tangent kernel ridge regression, the key observation is that the dynamic kernel during the training is always close to the neural tangent kernel.

Then we can show the gradient flow of training regularized neural net satisfies

where term (13) is the primary term characterizing the linear convergence of unn⁡(t)u_{\operatorname{nn}}(t) to t∗t^{*}, and term (14) is the additive term that can be well controlled if H(t)H(t) is sufficiently close to Hcts⁡H^{\operatorname{cts}}. We argue the closeness of H(t)≈Hcts⁡H(t)\approx H^{\operatorname{cts}} as the consequence of the following two observations:

Initialization phase: At the beginning of the training, H(0)H(0) can be viewed as approximating the neural tangent kernel Hcts⁡H^{\operatorname{cts}} using finite dimensional random features. Note the size of these random features corresponds to the width of the neural network (scale by the data dimension dd). Therefore, when the neural network is sufficiently wide, it is equivalent to approximate the neural tangent kernel using sufficient high dimensional feature vectors, which ensures H(0)H(0) is sufficiently close to Hcts⁡H^{\operatorname{cts}}.

In the case of leverage score initialization, we further take the regularization into consideration. We use the tool of leverage score to modify the initialization distribution and corresponding network parameter, to give a smaller upper-bound of the width of the nets needed.

Training phase: If the net is sufficiently wide, we can observe the over-parametrization phenomenon such that the weight estimate W(t)W(t) at time tt will be sufficiently close to its initialization W(0)W(0), which implies the dynamic kernel H(t)H(t) being sufficiently close to H(0)H(0). Due to the fact H(0)≈Hcts⁡H(0)\approx H^{\operatorname{cts}} argued in initialization phase, we have H(t)≈Hcts⁡H(t)\approx H^{\operatorname{cts}} throughout the algorithm.

Combining both observations, we are able to iteratively show the (nearly) linear convergence property of training the regularized neural net as in following lemma:

∥wr(0)−wr(t)∥2≤ϵW\|w_{r}(0)-w_{r}(t)\|_{2}\leq\epsilon_{W}, ∀r∈[m]\forall r\in[m]

∥H(0)−H(t)∥2≤ϵH′\|H(0)-H(t)\|_{2}\leq\epsilon_{H}^{\prime}

∥unn⁡(t)−u∗∥22≤max⁡{ϵtrain⁡2,e−(κ2Λ0+λ)t/2∥unn⁡(0)−u∗∥22}\|u_{\operatorname{nn}}(t)-u^{*}\|_{2}^{2}\leq\max\{\epsilon_{\operatorname{train}}^{2},e^{-(\kappa^{2}\Lambda_{0}+\lambda)t/2}\|u_{\operatorname{nn}}(0)-u^{*}\|_{2}^{2}\}

Given arbitrary accuracy ϵ∈(0,1)\epsilon\in(0,1), if we choose ϵtrain⁡=ϵ\epsilon_{\operatorname{train}}=\epsilon, T=O~(1κ2Λ0)T=\widetilde{O}(\frac{1}{\kappa^{2}\Lambda_{0}}) and mm sufficiently large in Lemma D.14, then we have ∥unn⁡(t)−u∗∥2≤ϵ\|u_{\operatorname{nn}}(t)-u^{*}\|_{2}\leq\epsilon, indicating the equivalence between training neural network with regularization and neural tangent kernel ridge regression for the training data predictions.

To further argue the equivalence for any given test data xtest⁡x_{\operatorname{test}}, we observe the similarity between the gradient flows of neural tangent kernel ridge regression untk⁡,test⁡(t)u_{\operatorname{ntk},\operatorname{test}}(t) and regularized neural networks unn⁡,test⁡(t)u_{\operatorname{nn},\operatorname{test}}(t) as following:

By choosing the multiplier κ>0\kappa>0 small enough, we can bound the initial difference between these two predictors. Combining with above similarity between gradient flows, we are able to show ∣unn⁡,test⁡(T)−untk⁡,test⁡(T)∣≥ϵ/2|u_{\operatorname{nn},\operatorname{test}}(T)-u_{\operatorname{ntk},\operatorname{test}}(T)|\geq\epsilon/2 for appropriate T>0T>0. Finally, note the linear convergence property of the gradient of the kernel ridge regression, we can prove ∣unn⁡,test⁡(T)−untk⁡,test⁡∗∣≥ϵ|u_{\operatorname{nn},\operatorname{test}}(T)-u^{*}_{\operatorname{ntk},\operatorname{test}}|\geq\epsilon.

Using the similar idea, we can also show the equivalence for test data predictors and the case of leverage score initialization. We refer to the Appendix for a detailed proof sketch and rigorous proof.

Conclusion

In this paper, we generalize the leverage score sampling theory for kernel approximation. We discuss the interesting application of connecting leverage score sampling and training regularized neural networks. We present two theoretical results: 1) the equivalence between the regularized neural nets and kernel ridge regression problems under the classical random Gaussian initialization for both training and test predictors; 2) the new equivalence under the leverage score initialization. We believe this work can be the starting point of future study on the use of leverage score sampling in neural network training.

In the appendix, we present our complete results and rigorous proofs. Section A presents some well-known mathematically results that will be used in our proof. Section B discusses our first equivalence result between training regularized neural network and kernel ridge regression. Section C discusses our generalization result of the leverage score sampling theory. Section D discusses our second equivalence result under leverage score initialization and potential benefits compared to the Gaussian initialization. Section E discusses how to extend our results to a broader class of neural network models.

Appendix

Appendix A Preliminaries

In this section we introduce the probability tools we use in the proof.

We state Chernoff, Hoeffding and Bernstein inequalities.

Let X1,⋯ ,XnX_{1},\cdots,X_{n} denote nn independent bounded variables in [ai,bi][a_{i},b_{i}]. Let X=∑i=1nXiX=\sum_{i=1}^{n}X_{i}, then we have

Let X1,⋯ ,XnX_{1},\cdots,X_{n} be independent zero-mean random variables. Suppose that ∣Xi∣≤M|X_{i}|\leq M almost surely, for all ii. Then, for all positive tt,

We state three inequalities for Gaussian random variables.

Let X∼N(0,σ2)X\sim N(0,\sigma^{2}), that is, the probability density function of XX is given by ϕ(x)=12πσ2e−x22σ2\phi(x)=\frac{1}{\sqrt{2\pi\sigma^{2}}}e^{-\frac{x^{2}}{2\sigma^{2}}}. Then

Let X∼N(μ,σ2)X\sim\mathcal{N}(\mu,\sigma^{2}) be a Gaussian random variable with mean μ\mu and variance σ2\sigma^{2}. Then for all t≥0t\geq 0, we have

Let X∼Xk2X\sim{\cal X}_{k}^{2} be a chi-squared distributed random variable with kk degrees of freedom. Each one has zero mean and σ2\sigma^{2} variance. Then

We state two inequalities for random matrices.

Let M1M_{1} and M2M_{2} be semidefinite upper bounds for the expected squares:

where each RkR_{k} is an independent copy of RR. Then, for all t≥m/n+2L/3nt\geq\sqrt{m/n}+2L/3n,

A.2 Neural tangent kernel and its properties

Let λ=λmin⁡(Hcts⁡)\lambda=\lambda_{\min}(H^{\operatorname{cts}}). If m=Ω(λ−2n2log⁡(n/δ))m=\Omega(\lambda^{-2}n^{2}\log(n/\delta)), we have

hold with probability at least 1−δ1-\delta.

holds with probability at least 1−n2⋅exp⁡(−mR/10)1-n^{2}\cdot\exp(-mR/10).

Appendix B Equivalence between sufficiently wide neural net and kernel ridge regression

In this section, we extend the equivalence result in [JGH18, ADH+19a] to the case with regularization term, where they showed the equivalence between a fully-trained infinitely wide/sufficiently wide neural net and the kernel regression solution using the neural tangent kernel (NTK). Specifically, we prove Theorem 3.6 and Theorem 3.7 in this section.

Section B.1 introduces key notations and standard data assumptions. Section B.2 restates and supplements the definitions introduced in the paper. Section B.3 presents several key lemmas about the gradient flow and linear convergence of neural network and kernel ridge regression predictors, which are crucial to the final proof. Section B.4 provides a brief proof sketch. Section B.5 restates the main equivalence Theorem 3.7 and provides a complete proof following the proof sketch. Section B.6 restates and proves Theorem 3.6 by showing it as a by-product of previous proof.

u∗=lim⁡t→∞untk⁡(t)u^{*}=\lim_{t\rightarrow\infty}u_{\operatorname{ntk}}(t) (See Eq. (24))

utest⁡∗=lim⁡t→∞untk⁡,test⁡(t)u_{\operatorname{test}}^{*}=\lim_{t\rightarrow\infty}u_{\operatorname{ntk},\operatorname{test}}(t) (See Eq. (25))

We made the following assumptions: 1. For each i∈[n]i\in[n], we assume ∣yi∣=O(1)|y_{i}|=O(1). 2. Hcts⁡H^{\operatorname{cts}} is positive definite, i.e., Λ0:=λmin⁡(Hcts⁡)>0\Lambda_{0}:=\lambda_{\min}(H^{\operatorname{cts}})>0. 3. All the training data and test data have Euclidean norm equal to 1.

B.2 Definitions

To establish the equivalence between neural network and kernel ridge regression, we prove the similarity of their gradient flow and initial predictor. Note kernel ridge regression starts at 0 as initialization, so we hope the initialization of neural network also close to zero. Therefore, using the same technique in [ADH+19a], we apply a small multiplier κ>0\kappa>0 to both predictors to bound the different of initialization.

We define a two layer neural networks with rectified linear unit (ReLU) activation as the following form

We denote wr(t),r∈[m]w_{r}(t),r\in[m] as the variable at iteration tt. We denote

as the test data predictor at iteration tt.

We define the neural tangent kernel(NTK) and the feature function corresponding to the neural networks fnn⁡f_{\operatorname{nn}} defined in Definition B.2 as following

as the test data predictor at iteration tt. Note the gradient flow converge the to optimal solution of problem (20) due to the strongly convexity of the problem. We denote

B.3 Gradient, gradient flow, and linear convergence

Denote L(t)=12∥Y−untk⁡(t)∥22+12λ∥β(t)∥22L(t)=\frac{1}{2}\|Y-u_{\operatorname{ntk}}(t)\|_{2}^{2}+\frac{1}{2}\lambda\|\beta(t)\|_{2}^{2}. By the rule of gradient descent, we have

where Φ\Phi is defined in Definition B.4. Thus we have

Note [untk⁡(t)]i=κfntk⁡(β(t),xi)[u_{\operatorname{ntk}}(t)]_{i}=\kappa f_{\operatorname{ntk}}(\beta(t),x_{i}) and [Hcts⁡]:,i=Kntk⁡(xi,X)[H^{\operatorname{cts}}]_{:,i}=\mathsf{K}_{\operatorname{ntk}}(x_{i},X), so writing all the data in a compact form, we have

where the first step follows the chain rule, the second step follows Corollary B.8, the third step uses basic linear algebra, the fourth step follows Eq. (B.3), the fifth step simplifies the expression, and the last step follows the definition of Λ0\Lambda_{0}. Further, since

where the first step calculates the gradient, and the second step follows from Eq. (B.3). Thus, e2(κ2Λ0+λ)t∥untk⁡(t)−u∗∥22e^{2(\kappa^{2}\Lambda_{0}+\lambda)t}\|u_{\operatorname{ntk}}(t)-u^{*}\|_{2}^{2} is non-increasing, which implies

Denote L(t)=12∥Y−unn⁡(t)∥22+12λ∥W(t)∥F2L(t)=\frac{1}{2}\|Y-u_{\operatorname{nn}}(t)\|_{2}^{2}+\frac{1}{2}\lambda\|W(t)\|_{F}^{2}. By the rule of gradient descent, we have

Also note for ReLU activation σ\sigma, we have

where the first step calculates the derivatives, the second step follows basic linear algebra, the third step follows the property of ReLU activation: σ(l)=lσ′(l)\sigma(l)=l\sigma^{\prime}(l), and the last step follows from the definition of fnn⁡f_{\operatorname{nn}}. Thus, we have

where the first step follows from chain rule, the second step follows from Eq. (28), the third step follows from the definition of Kt\mathsf{K}_{t} and Eq. (B.3), and the last step rewrites the formula in a compact form. ∎

Note [unn⁡(t)]i=κfnn⁡(W(t),xi)[u_{\operatorname{nn}}(t)]_{i}=\kappa f_{\operatorname{nn}}(W(t),x_{i}) and [H(t))]:,i=Kt(xi,X)[H(t))]_{:,i}=\mathsf{K}_{t}(x_{i},X), so writing all the data in a compact form, we have

Note by definition, unn⁡,test⁡(t)=κfnn⁡(W(t),xtest⁡)u_{\operatorname{nn},\operatorname{test}}(t)=\kappa f_{\operatorname{nn}}(W(t),x_{\operatorname{test}}), so we have

where the first step follows the chain rule, the second step follows Corollary B.11, the third step uses basic linear algebra, the fourth step follows Eq. (B.3), the fifth step simplifies the expression, and the last step follows the assumption ∥H(t)−Hcts⁡∥≤Λ0/2\|H(t)-H^{\operatorname{cts}}\|\leq\Lambda_{0}/2. ∎

B.4 Proof sketch

Our goal is to show with appropriate width of the neural network and appropriate training iterations, the neural network predictor will be sufficiently close to the neural tangent kernel ridge regression predictor for any test data. We follow similar proof framework of Theorem 3.2 in [ADH+19a]. Given any accuracy ϵ∈(0,1)\epsilon\in(0,1), we divide this proof into following steps:

Firstly, according to the linear convergence property of kernel ridge regression shown in Lemma B.9, we can choose sufficiently large training iterations T>0T>0, so that ∣utest⁡∗−untk⁡,test⁡(T)∣≤ϵ/2|u_{\operatorname{test}}^{*}-u_{\operatorname{ntk},\operatorname{test}}(T)|\leq\epsilon/2, as shown in Lemma B.13.

Once fix training iteration TT as in step 1, we bound ∣unn⁡,test⁡(T)−untk⁡,test⁡(T)∣≤ϵ/2|u_{\operatorname{nn},\operatorname{test}}(T)-u_{\operatorname{ntk},\operatorname{test}}(T)|\leq\epsilon/2 by showing the following:

Due to the similarity of the the gradient flow of neural network training and neural tangent kernel ridge regression, we can reduce the task of bounding the prediction perturbation at time TT, i.e., ∣unn⁡,test⁡(T)−untk⁡,test⁡(T)∣|u_{\operatorname{nn},\operatorname{test}}(T)-u_{\operatorname{ntk},\operatorname{test}}(T)|, back to bounding

the initialization perturbation ∣unn⁡,test⁡(0)−untk⁡,test⁡(0)∣|u_{\operatorname{nn},\operatorname{test}}(0)-u_{\operatorname{ntk},\operatorname{test}}(0)| and

kernel perturbation ∥H(t)−Hcts⁡∥\|H(t)-H^{\operatorname{cts}}\|, ∥Kntk⁡(xtest⁡,X)−Kt(xtest⁡,X)∥2\|\mathsf{K}_{\operatorname{ntk}}(x_{\operatorname{test}},X)-\mathsf{K}_{t}(x_{\operatorname{test}},X)\|_{2}, as shown in Lemma B.14.

According to concentration results, we can bound the initialization perturbation ∣unn⁡,test⁡(0)−untk⁡,test⁡(0)∣|u_{\operatorname{nn},\operatorname{test}}(0)-u_{\operatorname{ntk},\operatorname{test}}(0)| small enough by choosing sufficiently small κ∈(0,1)\kappa\in(0,1), as shown in Lemma B.20.

We characterize the over-parametrization property of the neural network by inductively show that we can bound kernel perturbation ∥H(t)−Hcts⁡∥\|H(t)-H^{\operatorname{cts}}\|, ∥Kntk⁡(xtest⁡,X)−Kt(xtest⁡,X)∥2\|\mathsf{K}_{\operatorname{ntk}}(x_{\operatorname{test}},X)-\mathsf{K}_{t}(x_{\operatorname{test}},X)\|_{2} small enough by choosing network width m>0m>0 large enough, as shown in Lemma B.21.

Lastly, we combine the results of step 1 and 2 using triangle inequality, to show the equivalence between training neural network with regularization and neural tangent kernel ridge regression, i.e., ∣unn⁡,test⁡(T)−utest⁡∗∣≤ϵ|u_{\operatorname{nn},\operatorname{test}}(T)-u_{\operatorname{test}}^{*}|\leq\epsilon, as shown in Theorem B.28.

B.5 Equivalence between training net with regularization and kernel ridge regression for test data prediction

In this section, we prove Theorem 3.7 following the proof sketch in Section B.4.

In this section, we give an upper bound for ∣untk⁡,test⁡(T)−utest⁡∗∣|u_{\operatorname{ntk},\operatorname{test}}(T)-u_{\operatorname{test}}^{*}|.

where O~(⋅)\widetilde{O}(\cdot) here hides poly⁡log⁡(n/(ϵΛ0))\operatorname{poly}\log(n/(\epsilon\Lambda_{0})).

Due to the linear convergence of kernel ridge regression, i.e.,

where the last step follows from β(0)=0\beta(0)=0 and ∥β∗∥2=poly⁡(κ,n,1/Λ0)\|\beta^{*}\|_{2}=\operatorname{poly}(\kappa,n,1/\Lambda_{0}).

Note κ∈(0,1)\kappa\in(0,1). Thus, by picking T=O~(1κ2Λ0)T=\widetilde{O}(\frac{1}{\kappa^{2}\Lambda_{0}}), we have

where O~(⋅)\widetilde{O}(\cdot) here hides poly⁡log⁡(n/(ϵΛ0))\operatorname{poly}\log(n/(\epsilon\Lambda_{0})).∎

The goal of this section is to prove Lemma B.14, which reduces the problem of bounding prediction perturbation to the problem of bounding initialization perturbation and kernel perturbation.

∥unn⁡(0)∥2≤nϵinit⁡\|u_{\operatorname{nn}}(0)\|_{2}\leq\sqrt{n}\epsilon_{\operatorname{init}} and ∣unn⁡,test⁡(0)∣≤ϵinit⁡|u_{\operatorname{nn},\operatorname{test}}(0)|\leq\epsilon_{\operatorname{init}}

∥Kntk⁡(xtest⁡,X)−Kt(xtest⁡,X)∥2≤ϵK\|\mathsf{K}_{\operatorname{ntk}}(x_{\operatorname{test}},X)-\mathsf{K}_{t}(x_{\operatorname{test}},X)\|_{2}\leq\epsilon_{K}

∥H(t)−Hcts⁡∥≤ϵH\|H(t)-H^{\operatorname{cts}}\|\leq\epsilon_{H}

Combining results from Lemma B.15, Claim B.16. B.17, B.18, we complete the proof. We have

where the first step follows from Lemma B.15, the second step follows from Claim B.16, B.17 and B.18, and the last step simplifies the expression. ∎

To prove Lemma B.14, we first bound ∣unn⁡,test⁡(T)−untk⁡,test⁡(T)∣|u_{\operatorname{nn},\operatorname{test}}(T)-u_{\operatorname{ntk},\operatorname{test}}(T)| by three terms in Lemma B.15, then we bound each term individually in Claim B.16, Claim B.17, and Claim B.18.

Follow the same notation as Lemma B.14, we have

where the first step follows from the definition of integral, the second step follows from the triangle inequality. Note by Corollary B.8, B.11, their gradient flow are given by

where the first step follows from Eq. (32) and Eq. (33), the second step rewrites the formula. Note the term −λ(unn⁡,test⁡(t)−untk⁡,test⁡(t))-\lambda(u_{\operatorname{nn},\operatorname{test}}(t)-u_{\operatorname{ntk},\operatorname{test}}(t)) will only make

Now let us bound these three terms AA, BB and CC one by one. We claim

Note untk⁡,test⁡(0)=0u_{\operatorname{ntk},\operatorname{test}}(0)=0, so by assumption we have

where the first step follows from the triangle inequality, the second step follows from Eq. (36), the third step calculates the integration, and the last step follows from the fact untk⁡(0)=0u_{\operatorname{ntk}}(0)=0. Thus, we have

where the first step follows from Eq. (36), the second step follows from Eq. (B.5.2) and definition of ϵK\epsilon_{K}. ∎

where the first step follows from the definition of CC, and the second step follows the Cauchy-Schwartz inequality.

To bound term max⁡t∈[0,T]∥untk⁡(t)−unn⁡(t)∥2\max_{t\in[0,T]}\|u_{\operatorname{ntk}}(t)-u_{\operatorname{nn}}(t)\|_{2}, notice that for any t∈[0,T]t\in[0,T], we have

where the first step follows the triangle inequality, and the second step follows the assumption. Further,

where the first step follows from Eq. (B.5.2), the second step follows from Eq. (40), the third step follows from triangle inequality, the fourth step follows from the condition ∥H(τ)−Hcts⁡∥≤ϵH\|H(\tau)-H^{\operatorname{cts}}\|\leq\epsilon_{H} for all τ≤T\tau\leq T and the triangle inequality, the fifth step follows from the linear convergence of ∥untk⁡(τ)−u∗∥2\|u_{\operatorname{ntk}}(\tau)-u^{*}\|_{2} as in Lemma B.9, the sixth step follows the fact untk⁡(0)=0u_{\operatorname{ntk}}(0)=0, and the last step calculates the maximum. Therefore,

Given final accuracy ϵ\epsilon, to ensure ∣unn⁡,test⁡(T)−untk⁡,test⁡(T)∣≤ϵ|u_{\operatorname{nn},\operatorname{test}}(T)-u_{\operatorname{ntk},\operatorname{test}}(T)|\leq\epsilon, we need to choose κ>0\kappa>0 small enough to make ϵinit⁡=O(ϵ)\epsilon_{\operatorname{init}}=O(\epsilon) and choose width m>0m>0 large enough to make ϵH\epsilon_{H} and ϵtest⁡\epsilon_{\operatorname{test}} both O(ϵ)O(\epsilon). And we discuss these two tasks one by one in the following sections.

B.5.3 Upper bounding initialization perturbation

In this section, we bound ϵinit⁡\epsilon_{\operatorname{init}} to our wanted accuracy ϵ\epsilon by picking κ\kappa large enough. We prove Lemma B.20.

Further, given any accuracy ϵ∈(0,1)\epsilon\in(0,1), if κ=O~(ϵ(Λ0+λ)/n)\kappa=\widetilde{O}(\epsilon(\Lambda_{0}+\lambda)/n), let ϵinit⁡=ϵ(Λ0+λ)/n\epsilon_{\operatorname{init}}=\epsilon(\Lambda_{0}+\lambda)/n, we have

hold with probability 1−δ1-\delta, where O~(⋅)\widetilde{O}(\cdot) hides the poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

Since wr(0)∼N(0,Id)w_{r}(0)\sim\mathcal{N}(0,I_{d}), so wr(0)⊤xtest⁡∼N(0,∥xtest⁡∥2)w_{r}(0)^{\top}x_{\operatorname{test}}\sim N(0,\|x_{\operatorname{test}}\|_{2}). Note ∥xtest⁡∥2≤1\|x_{\operatorname{test}}\|_{2}\leq 1, by Gaussian tail bounds Lemma A.5, we have with probability 1−δ/(2m)1-\delta/(2m):

Since unn⁡,test⁡(0)=1n∑Zru_{\operatorname{nn},\operatorname{test}}(0)=\frac{1}{\sqrt{n}}\sum Z_{r}, by combining Eq. (42), (43) and union bound over all r∈[m]r\in[m], we have with probability 1−δ1-\delta:

Further, note [unn⁡(0)]i=κfnn⁡(W(0),xi)[u_{\operatorname{nn}}(0)]_{i}=\kappa f_{\operatorname{nn}}(W(0),x_{i}) and unn⁡,test⁡(0)=κfnn⁡(W(0),xtest⁡)u_{\operatorname{nn},\operatorname{test}}(0)=\kappa f_{\operatorname{nn}}(W(0),x_{\operatorname{test}}). Thus, by choosing κ=O~(ϵ(Λ0+λ)/n)\kappa=\widetilde{O}(\epsilon(\Lambda_{0}+\lambda)/n), taking the union bound over all training and test data, we have

hold with probability 1−δ1-\delta, where O~(⋅)\widetilde{O}(\cdot) hides the poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})). ∎

B.5.4 Upper bounding kernel perturbation

In this section, we try to bound kernel perturbation by induction. We want to prove Lemma B.21, which also helps to show the equivalence for training data prediction as shown in Section B.6.

1. ∥wr(0)−wr(t)∥2≤ϵW\|w_{r}(0)-w_{r}(t)\|_{2}\leq\epsilon_{W}, ∀r∈[m]\forall r\in[m]

2. ∥H(0)−H(t)∥2≤ϵH′\|H(0)-H(t)\|_{2}\leq\epsilon_{H}^{\prime}

4. ∥K0(xtest⁡,X)−Kt(xtest⁡,X)∥2≤ϵK′\|\mathsf{K}_{0}(x_{\operatorname{test}},X)-\mathsf{K}_{t}(x_{\operatorname{test}},X)\|_{2}\leq\epsilon_{K}^{\prime}

Further, ϵW≤O~(ϵλ02n2)\epsilon_{W}\leq\widetilde{O}(\frac{\epsilon\lambda_{0}^{2}}{n^{2}}), ϵH′≤O~(ϵλ02n)\epsilon_{H}^{\prime}\leq\widetilde{O}(\frac{\epsilon\lambda_{0}^{2}}{n}) and ϵK′≤O~(ϵλ02n1.5)\epsilon_{K}^{\prime}\leq\widetilde{O}(\frac{\epsilon\lambda_{0}^{2}}{n^{1.5}}). Here O~(⋅)\widetilde{O}(\cdot) hides the poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

We first state some concentration results for the random initialization that can help us prove the lemma.

By lemma A.6, with probability at least 1−δ1-\delta,

holds with probability at least 1−δ1-\delta. Note by definition,

holds for any training data xix_{i}. By Hoeffding inequality, we have for any t>0t>0,

Setting t=(2mlog⁡(2n/δ))1/2t=(\frac{2}{m}\log{(2n/\delta)})^{1/2}, we can apply union bound on all training data xix_{i} to get with probability at least 1−δ1-\delta, for all i∈[n]i\in[n],

holds with probability at least 1−δ1-\delta. Using union bound over above three events, we finish the proof. ∎

Now conditioning on Eq. (44), (45), (46) holds, We show all the four conclusions in Lemma B.21 holds using induction.

Note the base case when t=0t=0 trivially holds. Now assuming Lemma B.21 holds before time t∈[0,T]t\in[0,T], we argue that it also holds at time tt. To do so, Lemmas B.23, B.24, B.25 argue these conclusions one by one.

where the first step follows triangle inequality, the second step follows Eq. (B.5.4), and the last step follows the definition of ϵW\epsilon_{W} as Eq. (48). ∎

holds with probability 1−n2⋅exp⁡(−mϵW/10)1-n^{2}\cdot\exp{(-m\epsilon_{W}/10)}.

Directly applying Lemma A.10, we finish the proof. ∎

Fix ϵH′>0\epsilon_{H}^{\prime}>0 independent of tt. If for all τ<t\tau<t

holds for all τ<t\tau<t. Denote ϵH=ϵH′+4n(log⁡(n/δ)/m)1/2\epsilon_{H}=\epsilon_{H}^{\prime}+4n(\log{(n/\delta)}/m)^{1/2}, we have ∥H(τ)−Hcts⁡∥≤ϵH≤Λ0/2\|H(\tau)-H^{\operatorname{cts}}\|\leq\epsilon_{H}\leq\Lambda_{0}/2, which satisfies the condition of Lemma B.12. Thus, for any τ<t\tau<t, we have

where the first step follows from Lemma B.12, the second step follows from Eq. (B.5.4). Now let us discuss two cases:

Case 1. If for all τ<t\tau<t, ∥unn⁡(τ)−u∗∥2≥ϵtrain⁡\|u_{\operatorname{nn}}(\tau)-u^{*}\|_{2}\geq\epsilon_{\operatorname{train}} always holds, we want to argue that

Note by assumption (51) and (52), we have

holds for any τ<t\tau<t. Thus, plugging into (B.5.4),

Case 2. If there exist τ‾<t\overline{\tau}<t, such that ∥unn⁡(τ‾)−u∗∥2<ϵtrain⁡\|u_{\operatorname{nn}}(\overline{\tau})-u^{*}\|_{2}<\epsilon_{\operatorname{train}}, we want to argue that ∥unn⁡(t)−u∗∥2<ϵtrain⁡\|u_{\operatorname{nn}}(t)-u^{*}\|_{2}<\epsilon_{\operatorname{train}}. Note by assumption (51) and (52), we have

holds for τ=τ‾\tau=\overline{\tau}, which implies e(κ2Λ0+λ)τ(∥unn⁡(τ)−u∗∥22−ϵtrain⁡2)e^{(\kappa^{2}\Lambda_{0}+\lambda)\tau}(\|u_{\operatorname{nn}}(\tau)-u^{*}\|_{2}^{2}-\epsilon_{\operatorname{train}}^{2}) is non-increasing at τ=τ‾\tau=\overline{\tau}. Since ∥unn⁡(τ‾)−u∗∥22−ϵtrain⁡2<0\|u_{\operatorname{nn}}(\overline{\tau})-u^{*}\|_{2}^{2}-\epsilon_{\operatorname{train}}^{2}<0, by induction, e(κ2Λ0+λ)τ(∥unn⁡(τ)−u∗∥22−ϵtrain⁡2)e^{(\kappa^{2}\Lambda_{0}+\lambda)\tau}(\|u_{\operatorname{nn}}(\tau)-u^{*}\|_{2}^{2}-\epsilon_{\operatorname{train}}^{2}) being non-increasing and ∥unn⁡(τ)−u∗∥22−ϵtrain⁡2<0\|u_{\operatorname{nn}}(\tau)-u^{*}\|_{2}^{2}-\epsilon_{\operatorname{train}}^{2}<0 holds for all τ‾≤τ≤t\overline{\tau}\leq\tau\leq t, which implies

Fix ϵW∈(0,1)\epsilon_{W}\in(0,1) independent of tt. If ∀r∈[m]\forall r\in[m], we have

holds with probability at least 1−n⋅exp⁡(−mϵW/10)1-n\cdot\exp{(-m\epsilon_{W}/10)}.

Recall the definition of K0\mathsf{K}_{0} and Kt\mathsf{K}_{t}

Fix i∈[n]i\in[n], by Bernstein inequality (Lemma A.3), we have for any t>0t>0,

Note by definition ϵK′=2nϵW\epsilon_{K}^{\prime}=2\sqrt{n}\epsilon_{W}, so we finish the proof. ∎

Now we summarize all the conditions need to be satisfied so that the induction works as in Table 1.

where the first step follows from the definition of u∗u^{*}, the second step follows from Cauchy-Schwartz inequality, the third step follows from Y=O(n)Y=O(\sqrt{n}), and the last step follows from the choice of the parameters.

Further, with probability 1−δ1-\delta, we have

Thus, we have ∥unn⁡(0)−u∗∥2=O~(n)\|u_{\operatorname{nn}}(0)-u^{*}\|_{2}=\widetilde{O}(\sqrt{n}).

Now, by direct calculation, we have all the induction conditions satisfied with high probability. Note the failure probability only comes from Lemma B.20, B.22, B.24, B.26, which only depend on the initialization. By union bound over these failure events, we have all four conclusions in Lemma B.21 holds with high probability, which completes the proof.

where O~(⋅)\widetilde{O}(\cdot) hides poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

By Lemma B.20, we can choose ϵinit⁡=ϵ(Λ0)/n\epsilon_{\operatorname{init}}=\epsilon(\Lambda_{0})/n.

where the first step follows from triangle inequality, the second step follows from Lemma B.22, and the last step follows from Lemma B.21. Thus, we can choose ϵK=ϵΛ02n1.5\epsilon_{K}=\frac{\epsilon\Lambda_{0}^{2}}{n^{1.5}}.

where the first step follows from triangle inequality, the second step follows from Lemma B.22, and the last step follows from Lemma B.21. Thus, we can choose ϵH=ϵΛ02n\epsilon_{H}=\frac{\epsilon\Lambda_{0}^{2}}{n}.

B.5.6 Main result for test data prediction equivalence

In this section, we restate and prove Theorem 3.7.

Here O~(⋅)\widetilde{O}(\cdot) hides poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

It follows from combining results of bounding ∥unn⁡,test⁡(T)−untk⁡,test⁡(T)∥2≤ϵ/2\|u_{\operatorname{nn},\operatorname{test}}(T)-u_{\operatorname{ntk},\operatorname{test}}(T)\|_{2}\leq\epsilon/2 as shown in Lemma B.27 and ∥untk⁡,test⁡(T)−utest⁡∗∥2≤ϵ/2\|u_{\operatorname{ntk},\operatorname{test}}(T)-u_{\operatorname{test}}^{*}\|_{2}\leq\epsilon/2 as shown in Lemma B.13 using triangle inequality. ∎

B.6 Equivalence between training net with regularization and kernel ridge regression for training data prediction

In this section, we restate and proof Theorem 3.6.

Note the proof of equivalence results for the test data in previous sections automatically gives us an equivalence results of the prediction for training data. Specifically, the third conclusion in Lemma B.21 characterizes the training prediction unn⁡(t)u_{\operatorname{nn}}(t) throughout the training process. Thus, we have the following theorem characterize the equivalence between training net with regularization and kernel ridge regression for the training data.

Given any accuracy ϵ∈(0,1/10)\epsilon\in(0,1/10) and failure probability δ∈(0,1/10)\delta\in(0,1/10), if κ=1\kappa=1, T=O~(1Λ0)T=\widetilde{O}(\frac{1}{\Lambda_{0}}), network width m≥O~(n4dλ04ϵ)m\geq\widetilde{O}(\frac{n^{4}d}{\lambda_{0}^{4}\epsilon}) and regularization parameter λ≤O~(1m)\lambda\leq\widetilde{O}(\frac{1}{\sqrt{m}}), then with probability at least 1−δ1-\delta over the random initialization, we have

Here O~(⋅)\widetilde{O}(\cdot) hides poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

Let κ=1\kappa=1, T=O~(1Λ0)T=\widetilde{O}(\frac{1}{\Lambda_{0}}), λ≤O~(1m)\lambda\leq\widetilde{O}(\frac{1}{\sqrt{m}}), m≥O~(n4dλ04ϵ)m\geq\widetilde{O}(\frac{n^{4}d}{\lambda_{0}^{4}\epsilon}) and ϵtrain⁡=ϵ\epsilon_{\operatorname{train}}=\epsilon in Lemma B.21. We can see all the conditions in Table 1 hold. Thus, the third conclusion in Lemma B.21 holds. So with probability 1−δ1-\delta, we have

where the first step follows from Lemma B.21, the second step follows from κ=1\kappa=1 and ϵtrain⁡=ϵ\epsilon_{\operatorname{train}}=\epsilon, the last step follows from T=O~(1Λ0)T=\widetilde{O}(\frac{1}{\Lambda_{0}}) and ∥unn⁡(0)−u∗∥22≤n\|u_{\operatorname{nn}}(0)-u^{*}\|_{2}^{2}\leq n with high probability. ∎

Appendix C Generalization result of leverage score sampling for approximating kernels

In this section, we generalize the result of Lemma 8 in [AKM+17] for a more broad class of kernels and feature vectors. Specifically, we prove Theorem 3.3.

Section C.1 introduces the related kernel and random features, we also restate Definition 3.1 and 3.2 for leverage score sampling and random features in this section. Section C.2 restates and proves our main result Theorem 3.3.

If w1,⋯ ,wmw_{1},\cdots,w_{m} are drawn according to p(⋅)p(\cdot), then

If ww are drawn according to p(⋅)p(\cdot), then

If w1,⋯ ,wmw_{1},\cdots,w_{m} are drawn according to p(⋅)p(\cdot), then

If w1,⋯ ,wmw_{1},\cdots,w_{m} are drawn according to q(⋅)q(\cdot), then

If ww are drawn according to q(⋅)q(\cdot), then

If w1,⋯ ,wmw_{1},\cdots,w_{m} are drawn according to q(⋅)q(\cdot), then

Let qλ(w)q_{\lambda}(w) denote the leverage score defined in Definition C.4. Let sλ(K)s_{\lambda}(K) denote the statistical dimension defined in Definition C.5. We define the leverage score sampling distribution as

C.2 Main result

holds with probability at least 1−δ1-\delta.

To prove the theorem, we follow the same proof framework as Lemma 8 in [AKM+17].

Let K+λIn=V⊤Σ2VK+\lambda I_{n}=V^{\top}\Sigma^{2}V be an eigenvalue decomposition of K+λInK+\lambda I_{n}. Note that Eq. (59) is equivalent to

Multiplying Σ−1V\Sigma^{-1}V on the left and V⊤Σ−1V^{\top}\Sigma^{-1} on the left for both sides of Eq. (60), it suffices to show that

holds with probability at least 1−δ1-\delta. Let

where the first step follows from the definition of YrY_{r}, the second step follows the linearity of expectation, the third step calculations the expectation, and the last step follows Eq. (57).

where the first step follows from the definition of YrY_{r}, the second step follows from basic linear algebra, and the last step follows from Eq. (58).

holds with probability at least 1−δ1-\delta.

where the first step follows from ∥A∥≤tr⁡[A]\|A\|\leq\operatorname{tr}[A] for any positive semidefinite matrix, the second step follows tr⁡[AB]=tr⁡[BA]\operatorname{tr}[AB]=\operatorname{tr}[BA], the third step follows from the definition of V,ΣV,\Sigma, the fourth step follows from the definition of leverage score qλ(⋅)q_{\lambda}(\cdot) as defined in Definition C.4, and the last step follows from the condition q~λ(w)≥qλ(w)\widetilde{q}_{\lambda}(w)\geq q_{\lambda}(w).

where the first step follows from the definition of YrY_{r}, the second step follows from the definition of V,ΣV,\Sigma, the third step follows from ∥A∥≤tr⁡[A]\|A\|\leq\operatorname{tr}[A] for any positive semidefinite matrix, the fourth step follows from the definition of leverage score qλ(⋅)q_{\lambda}(\cdot) as defined in Definition C.4, the fifth step follows from the definition of YrY_{r}, the sixth step follows from the definition of q‾λ(⋅)\overline{q}_{\lambda}(\cdot), and the last step follows from the condition q~λ(w)≥qλ(w)\widetilde{q}_{\lambda}(w)\geq q_{\lambda}(w).

Thus, let λ1≥λ2≥⋯≥λn\lambda_{1}\geq\lambda_{2}\geq\cdots\geq\lambda_{n} be the eigenvalues of KK, we have

where the first step follows from Lemma A.8, the second step follows from the definition of DD and sλ(K)=tr⁡[(K+λIn)−1K]=∑inλi/(λi+λ)=tr⁡[D]s_{\lambda}(K)=\operatorname{tr}[(K+\lambda I_{n})^{-1}K]=\sum_{i}^{n}\lambda_{i}/(\lambda_{i}+\lambda)=\operatorname{tr}[D], the third step follows the condition λ∈(0,∥K∥)\lambda\in(0,\|K\|), the fourth step follows the condition ϵ∈(0,1/2)\epsilon\in(0,1/2), and the last step follows from the bound on mm. ∎

In this section, we connected the neural network theory with the leverage score sampling theory by showing a new equivalence result between training reweighed neural network with regularization under leverage score initialization and corresponding neural tangent kernel ridge regression. Specifically, we prove Theorem D.21. Due to the similarity of the results to Section B, we present this section in the same framework.

Section D.1 introduces new notations and states the standard data assumptions again. Section D.2 restates and supplements the definitions in the paper. Section D.3 presents the key lemmas about the leverage score initialization and related properties, which are crucial to the proof. Section D.4 provides a brief proof sketch. Section D.5 restates and proves the main result Theorem D.21 following the proof sketch.

Here, we list the locations where definitions and theorems in the paper are restated. Definition 3.8 is restated in Definition D.2. Theorem 3.9 is restated in Theorem D.21.

u‾∗=lim⁡t→∞u‾ntk⁡(t)\overline{u}^{*}=\lim_{t\rightarrow\infty}\overline{u}_{\operatorname{ntk}}(t) (See Eq. (70))

u‾test⁡∗=lim⁡t→∞u‾ntk⁡,test⁡(t)\overline{u}_{\operatorname{test}}^{*}=\lim_{t\rightarrow\infty}\overline{u}_{\operatorname{ntk},\operatorname{test}}(t) (See Eq. (71))

We made the following assumptions: 1. For each i∈[n]i\in[n], we assume ∣yi∣=O(1)|y_{i}|=O(1). 2. Hcts⁡H^{\operatorname{cts}} is positive definite, i.e., Λ0:=λmin⁡(Hcts⁡)>0\Lambda_{0}:=\lambda_{\min}(H^{\operatorname{cts}})>0. 3. All the training data and test data have Euclidean norm equal to 1.

D.2 Definitions

as the test data predictor at iteration tt.

as the test data predictor at iteration tt. Note the gradient flow converge the to optimal solution of problem (66) due to the strongly convexity of the problem. We denote

D.3 Leverage score sampling, gradient flow, and linear convergence

Recall in the main body we connect the leverage score sampling theory and convergence theory of the neural network training by observing

and corresponding probability density function

where c1=O(1n)c_{1}=O(\frac{1}{n}) and c2=O(1Λ0)c_{2}=O(\frac{1}{\Lambda_{0}}).

where the first step follows from Hcts⁡⪰Λ0InH^{\operatorname{cts}}\succeq\Lambda_{0}I_{n}, the second step follows from the definition of Φ\Phi, the third step follows from the linearity of trace operator, the fourth step follows from tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB)=\operatorname{tr}(BA), the fifth step follows from the definition of ϕ\phi, and the last step follows from ∥xi∥2=1\|x_{i}\|_{2}=1 and σ′(⋅)≤1\sigma^{\prime}(\cdot)\leq 1.

Similarly, note Hcts⁡⪯nInH^{\operatorname{cts}}\preceq nI_{n}, we have

Let H‾(t)\overline{H}(t), Hcts⁡H^{\operatorname{cts}} be the kernel defined as in Definition D.3 and Definition B.4. Let Λ0>0\Lambda_{0}>0 be defined as in Definition B.4. Let p(⋅)p(\cdot) denotes the probability density function for Gaussian N(0,Id)\mathcal{N}(0,I_{d}). Let q(⋅)q(\cdot) denotes the leverage sampling distribution with respect to p(⋅)p(\cdot), H‾(0)\overline{H}(0) and λ\lambda defined in Definition C.6. Let Δ∈(0,1/4)\Delta\in(0,1/4). Then we have

By choosing m≥O~(Δ−2sλ(Hcts⁡)m\geq\widetilde{O}(\Delta^{-2}s_{\lambda}(H^{\operatorname{cts}}), with probability at least 1−δ1-\delta,

Further, if λ≤Λ0\lambda\leq\Lambda_{0}, we have with probability at least 1−δ1-\delta,

Here O~(⋅)\widetilde{O}(\cdot) hides poly⁡log⁡(sλ(H‾(0))/δ)\operatorname{poly}\log(s_{\lambda}(\overline{H}(0))/\delta).

where the first step follows from the definition of H‾(0)\overline{H}(0), the second step follows the definition of Φ‾\overline{\Phi}, the third step calculates the expectation, and the last step follows the definition of Hcts⁡H^{\operatorname{cts}}.

Also, by applying Theorem C.7 directly, we have with probability at least 1−δ1-\delta,

if m≥O~(Δ−2sλ(H‾(0))m\geq\widetilde{O}(\Delta^{-2}s_{\lambda}(\overline{H}(0)).

Denote L(t)=12∥Y−u‾ntk⁡(t)∥22+12λ∥β(t)∥22L(t)=\frac{1}{2}\|Y-\overline{u}_{\operatorname{ntk}}(t)\|_{2}^{2}+\frac{1}{2}\lambda\|\beta(t)\|_{2}^{2}. By the rule of gradient descent, we have

Note [u‾ntk⁡(t)]i=κf‾ntk⁡(β(t),xi)[\overline{u}_{\operatorname{ntk}}(t)]_{i}=\kappa\overline{f}_{\operatorname{ntk}}(\beta(t),x_{i}) and [H‾(0)]:,i=K‾0(xi,X)[\overline{H}(0)]_{:,i}=\overline{\mathsf{K}}_{0}(x_{i},X), so writing all the data in a compact form, we have

where the first step follows the chain rule, the second step follows Corollary D.8, the third step uses basic linear algebra, the fourth step follows Eq. (D.3), the fifth step simplifies the expression, and the last step follows from Lemma D.6. Further, since

where the first step calculates the gradient, and the second step follows from Eq. (D.3). Thus, e(κ2Λ0+λ)t∥u‾ntk⁡(t)−u‾∗∥22e^{(\kappa^{2}\Lambda_{0}+\lambda)t}\|\overline{u}_{\operatorname{ntk}}(t)-\overline{u}^{*}\|_{2}^{2} is non-increasing, which implies

Denote L(t)=12∥Y−u‾nn⁡(t)∥22+12λ∥W(t)∥F2L(t)=\frac{1}{2}\|Y-\overline{u}_{\operatorname{nn}}(t)\|_{2}^{2}+\frac{1}{2}\lambda\|W(t)\|_{F}^{2}. By the rule of gradient descent, we have

Also note for ReLU activation σ\sigma, we have

where the first step calculates the derivatives, the second step follows basic linear algebra, the third step follows the property of ReLU activation: σ(l)=lσ′(l)\sigma(l)=l\sigma^{\prime}(l), and the last step follows from the definition of f‾nn⁡\overline{f}_{\operatorname{nn}}. Thus, we have

where the first step follows from chain rule, the second step follows from Eq. (75), the third step follows from the definition of K‾t\overline{\mathsf{K}}_{t} and Eq. (D.3), and the last step rewrites the formula in a compact form. ∎

Note [u‾nn⁡(t)]i=κf‾nn⁡(W(t),xi)[\overline{u}_{\operatorname{nn}}(t)]_{i}=\kappa\overline{f}_{\operatorname{nn}}(W(t),x_{i}) and [H‾(t))]:,i=K‾t(xi,X)[\overline{H}(t))]_{:,i}=\overline{\mathsf{K}}_{t}(x_{i},X), so writing all the data in a compact form, we have

Note by definition, u‾nn⁡,test⁡(t)=κf‾nn⁡(W(t),xtest⁡)\overline{u}_{\operatorname{nn},\operatorname{test}}(t)=\kappa\overline{f}_{\operatorname{nn}}(W(t),x_{\operatorname{test}}), so we have

where the first step follows the chain rule, the second step follows Corollary D.11, the third step uses basic linear algebra, the fourth step follows Eq. (D.3), the fifth step simplifies the expression, and the last step follows the assumption ∥H‾(t)−H‾(0))∥≤Λ0/4\|\overline{H}(t)-\overline{H}(0))\|\leq\Lambda_{0}/4 and the fact ∥H‾(0))∥≤Λ0/2\|\overline{H}(0))\|\leq\Lambda_{0}/2. ∎

D.4 Proof sketch

We introduce a new kernel ridge regression problem with respect to H‾(0)\overline{H}(0) to decouple the prediction perturbation resulted from initialization phase and training phase. Specifically, given any accuracy ϵ∈(0,1)\epsilon\in(0,1), we divide this proof into following steps:

Firstly, we bound the prediction perturbation resulted from initialization phase ∥u∗−u‾∗∥2≤ϵ/2\|u^{*}-\overline{u}^{*}\|_{2}\leq\epsilon/2 by applying the leverage score sampling theory, as shown in Lemma D.13.

Then we use the similar idea as section B to bound the prediction perturbation resulted from training phase ∥u‾nn⁡(T)−u‾∗∥2≤ϵ/2\|\overline{u}_{\operatorname{nn}}(T)-\overline{u}^{*}\|_{2}\leq\epsilon/2 by showing the over-parametrization and convergence property of neural network inductively, as shown in Lemma D.14 and Corollary D.20.

Lastly, we combine the results of step 1 and 2 using triangle inequality to show ∥u‾nn⁡(T)−u∗∥2≤ϵ\|\overline{u}_{\operatorname{nn}}(T)-u^{*}\|_{2}\leq\epsilon, as shown in Theorem D.21.

D.5 Main result

In this section, we prove Theorem D.21 following the above proof sketch.

with probability at least 1−δ1-\delta. Particularly, given arbitrary ϵ∈(0,1)\epsilon\in(0,1), if m≥O~(nϵΛ0)m\geq\widetilde{O}(\frac{n}{\epsilon\Lambda_{0}}) and λ≤O~(1m)\lambda\leq\widetilde{O}(\frac{1}{\sqrt{m}}), we have

Here O~(⋅)\widetilde{O}(\cdot) hides poly⁡log⁡(sλ(Hcts⁡)/δ)\operatorname{poly}\log(s_{\lambda}(H^{\operatorname{cts}})/\delta).

By Lemma D.6, if m≥O~(Δ−2sλ(Hcts⁡)m\geq\widetilde{O}(\Delta^{-2}s_{\lambda}(H^{\operatorname{cts}}), we have

where the first step follows from Cauchy-Schwartz inequality, the second step follows from Eq. (78), and the last step follows from the definition of Λ0\Lambda_{0} and ∥Y∥2=O(n)\|Y\|_{2}=O(\sqrt{n}). ∎

1. ∥wr(0)−wr(t)∥2≤ϵW\|w_{r}(0)-w_{r}(t)\|_{2}\leq\epsilon_{W}, ∀r∈[m]\forall r\in[m]

2. ∥H‾(0)−H‾(t)∥2≤ϵH′\|\overline{H}(0)-\overline{H}(t)\|_{2}\leq\epsilon_{H}^{\prime}

Here O~(⋅)\widetilde{O}(\cdot) hides the poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

We first state the following concentration result for the random initialization that can help us prove the lemma.

hold for all r∈[m]r\in[m], where c2=O(n)c_{2}=O(n).

By lemma A.6, if wr(0)∼N(0,In)w_{r}(0)\sim\mathcal{N}(0,I_{n}), then with probability at least 1−δ1-\delta,

Now conditioning on Eq. (44), (45), (46) holds, We show all the four conclusions in Lemma B.21 holds using induction.

which are independent of tt. Here αw,0\alpha_{w,0} are defined in Eq. (79).

Note the base case when t=0t=0 trivially holds. Now assuming Lemma D.14 holds before time t∈[0,T]t\in[0,T], we argue that it also holds at time tt. To do so, Lemmas D.16, D.17, D.19 argue these conclusions one by one.

where the first step follows triangle inequality, the second step follows Eq. (D.5.2), and the last step follows the definition of ϵW\epsilon_{W} as Eq. (80).

holds with probability 1−n2⋅exp⁡(−mϵWc1/10)1-n^{2}\cdot\exp{(-m\epsilon_{W}c_{1}/10)}, where c1=O(1/n)c_{1}=O(1/n).

Directly applying Lemma D.18, we finish the proof. ∎

holds with probability at least 1−n2⋅exp⁡(−mRc1/10)1-n^{2}\cdot\exp(-mRc_{1}/10), where c1=O(1/n)c_{1}=O(1/n).

where the last step follows from for each r,i,jr,i,j, we define

We consider i,ji,j are fixed. We simplify sr,i,js_{r,i,j} to srs_{r}.

Then srs_{r} is a random variable that only depends on w~r\widetilde{w}_{r}. Since {w~r}r=1m\{\widetilde{w}_{r}\}_{r=1}^{m} are independent, {sr}r=1m\{s_{r}\}_{r=1}^{m} are also mutually independent.

where the last step follows from the anti-concentration inequality of Gaussian (Lemma A.4).

If ¬Ai,r\neg A_{i,r} and ¬Aj,r\neg A_{j,r} happen, then

where the last step follows from Lemma D.5 and c1=O(n)c_{1}=O(n). We also have ∣sr∣≤1/c1|s_{r}|\leq 1/c_{1}. So we can apply Bernstein inequality (Lemma A.3) to get for all t>0t>0,

Fix ϵH′>0\epsilon_{H}^{\prime}>0 independent of tt. If for all τ<t\tau<t

Note ∥H‾(τ)−H‾(0)∥≤ϵH≤Λ0/4\|\overline{H}(\tau)-\overline{H}(0)\|\leq\epsilon_{H}\leq\Lambda_{0}/4. By Lemma D.12, for any τ<t\tau<t, we have

where the first step follows from Lemma D.12, the second step follows from definition of ϵH′\epsilon_{H}^{\prime}.

Case 1. If for all τ<t\tau<t, ∥unn⁡(τ)−u∗∥2≥ϵtrain⁡\|u_{\operatorname{nn}}(\tau)-u^{*}\|_{2}\geq\epsilon_{\operatorname{train}} always holds, we want to argue that

holds for any τ<t\tau<t. Thus, plugging into (D.5.2),

Case 2. If there exist τ‾<t\overline{\tau}<t, such that ∥u‾nn⁡(τ‾)−u‾∗∥2<ϵtrain⁡\|\overline{u}_{\operatorname{nn}}(\overline{\tau})-\overline{u}^{*}\|_{2}<\epsilon_{\operatorname{train}}, we want to argue that ∥u‾nn⁡(t)−u‾∗∥2<ϵtrain⁡\|\overline{u}_{\operatorname{nn}}(t)-\overline{u}^{*}\|_{2}<\epsilon_{\operatorname{train}}. Note by assumption (84), we have

holds for τ=τ‾\tau=\overline{\tau}, which implies e(κ2Λ0+λ)τ/2(∥u‾nn⁡(τ)−u‾∗∥22−ϵtrain⁡2)e^{(\kappa^{2}\Lambda_{0}+\lambda)\tau/2}(\|\overline{u}_{\operatorname{nn}}(\tau)-\overline{u}^{*}\|_{2}^{2}-\epsilon_{\operatorname{train}}^{2}) is non-increasing at τ=τ‾\tau=\overline{\tau}. Since ∥u‾nn⁡(τ‾)−u‾∗∥22−ϵtrain⁡2<0\|\overline{u}_{\operatorname{nn}}(\overline{\tau})-\overline{u}^{*}\|_{2}^{2}-\epsilon_{\operatorname{train}}^{2}<0, by induction, e(κ2Λ0+λ)τ/2(∥u‾nn⁡(τ)−u‾∗∥22−ϵtrain⁡2)e^{(\kappa^{2}\Lambda_{0}+\lambda)\tau/2}(\|\overline{u}_{\operatorname{nn}}(\tau)-\overline{u}^{*}\|_{2}^{2}-\epsilon_{\operatorname{train}}^{2}) being non-increasing and ∥u‾nn⁡(τ)−u‾∗∥22−ϵtrain⁡2<0\|\overline{u}_{\operatorname{nn}}(\tau)-\overline{u}^{*}\|_{2}^{2}-\epsilon_{\operatorname{train}}^{2}<0 holds for all τ‾≤τ≤t\overline{\tau}\leq\tau\leq t, which implies

Now we summarize all the conditions need to be satisfied so that the induction works as in Table 3.

Compare Table 1 and Table 3, we can see by picking the same value for the parameters as in Theorem B.29, we have the induction holds, which completes the proof.

Given any accuracy ϵ∈(0,1/10)\epsilon\in(0,1/10) and failure probability δ∈(0,1/10)\delta\in(0,1/10). If κ=1\kappa=1, T=O~(1Λ0)T=\widetilde{O}(\frac{1}{\Lambda_{0}}), network width m≥O~(n4dλ04ϵ)m\geq\widetilde{O}(\frac{n^{4}d}{\lambda_{0}^{4}\epsilon}) and regularization parameter λ≤O~(1m)\lambda\leq\widetilde{O}(\frac{1}{\sqrt{m}}), then with probability at least 1−δ1-\delta,

Here O~(⋅)\widetilde{O}(\cdot) hides the poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

By choosing ϵtrain⁡=ϵ/2\epsilon_{\operatorname{train}}=\epsilon/2 in Lemma D.14, the induction shows

holds for all t≤Tt\leq T. By picking T=O~(1Λ0)T=\widetilde{O}(\frac{1}{\Lambda_{0}}), we have

which implies ∥u‾nn⁡(T)−u‾∗∥22≤max⁡{ϵ2/4,ϵ2/4}=ϵ2/4\|\overline{u}_{\operatorname{nn}}(T)-\overline{u}^{*}\|_{2}^{2}\leq\max\{\epsilon^{2}/4,\epsilon^{2}/4\}=\epsilon^{2}/4. ∎

D.5.3 Main result for equivalence with leverage score sampling initialization

Here O~(⋅)\widetilde{O}(\cdot) hides poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})).

Combining results of Lemma D.13 and Corollary D.20 using triangle inequality, we finish the proof. ∎

Despite our given upper-bound of network width under leverage score sampling is asymptotically the same as the Gaussian initialization, we point out the potential benefits of introducing leverage score sampling to training regularized neural networks.

Note the bound for the width consists of two parts: 1) initialization and 2) training. Part 1, requires the width to be large enough, so that the initialized dynamic kernels H(0)H(0) and H‾(0)\overline{H}(0) are close enough to NTK by concentration, see Lem B.20 and D.13. Part 2, requires the width to be large enough, so that the dynamic kernels H(t)H(t) and H‾(t)\overline{H}(t) are close enough to the NTK during the training by the over-parameterization property, see Lem B.21 and D.14. Leverage score sampling optimizes the bound for part 1 while keeping the bound for part 2 the same. The current state-of-art analysis gives a tighter bound in part 2, so the final bound for width is the same for both cases. If analysis for part 2 can be improved and part 1 dominates, then initializing using leverage score will be beneficial in terms of the width needed.

Appendix E Extension to other neural network models

In previous sections, we discuss a simple neural network model: 2-layer ReLu neural network with first layer trained. We remark that our results can be naturally extended to multi-layer ReLU deep neural networks with all parameters training together.

Note the core of the connection between regularized NNs and KRR is to show the similarity between their gradient flows, as shown in Corollary B.8 and Corollary B.11: their gradient flow are given by

Now consider the case of training multi-layer ReLu neural network with regularization. We claim above similarity between the gradient flows of NN and KRR still holds as long as we scale up the network width by the number of layers trained: as 1) the similarity of the first term −κ2K(xtest⁡,X)⊤(u(t)−Y)-\kappa^{2}\mathsf{K}(x_{\operatorname{test}},X)^{\top}(u(t)-Y) has already been shown in previous literature [ADH+19a, AZLS19a], and 2) the similarity of the second term −λutest⁡(t)-\lambda u_{\operatorname{test}}(t) comes from the piece-wise linearity property of deep ReLu neural network with respect to all training parameters. In the common case where we train all the parameters together, the equivalence still holds as long as we scale up the network width by the number of layers, as shown in the following theorem:

Here we omit poly⁡log⁡(n/(ϵδΛ0))\operatorname{poly}\log(n/(\epsilon\delta\Lambda_{0})) factors.

The results under leverage score sampling can be argued in the same way.

We also remark that it is possible to extend our results further to the model of convolutional neural network (CNN) by making use the convolutional neural tangent kernel (CNTK) discussed in [ADH+19a], and to the case using stochastic gradient descent in training rather than gradient descent. However, these discussion require more detailed proof and is out of the scope of this work.

References