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 matrix . Let be the -th rows of and the leverage score of the -th row of is . A row’s leverage score measures how important it is in composing the row space of . If a row has a component orthogonal to all other rows, its leverage score is . Removing it would decrease the rank of , completely changing its row space. The coherence of is . If has low coherence, no particular row is especially important. If has high coherence, it contains at least one row whose removal would significantly affect the composition of ’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 -th training example and learn for it a corresponding weight . Prediction for unlabeled inputs, i.e., those not in the training set, is treated by the application of similarity function , called a kernel, between the unlabeled input and each of the training inputs .
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 and , we have . Sufficiently wide neural network requires the width to be at least , where is the number of input data points, is the dimension of input data point, 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 in this setting, instead of constructing the feature map directly from the distribution , we consider the following ridge leveraged distribution:
The leverage score sampling distribution takes the regularization term into consideration and achieves Eq. (2) using the following modified random features vector:
holds with probability at least .
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 be a small multiplierTo establish the training equivalence result, we assign back to the normal case. For the training equivalence result, we pick 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 be the regularization parameter. We initialize the network as and . 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 and failure probability . Let multiplier , number of iterations , network width and the regularization parameter . Then with probability at least over the Gaussian random initialization, we have
Here hides .
We can further show the equivalence between the test data predictors with the help of the multiplier .
Given any accuracy and failure probability . Let multiplier , number of iterations , network width and regularization parameter . Then with probability at least over the Gaussian random initialization, we have
Here hides .
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 , we can define the ridge leverage function with respect to neural tangent kernel 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 and failure probability . Let multiplier , number of iterations , network width and regularization parameter . Then with probability at least over the random leverage score initialization, we have
Here hides .
Overview of techniques
To prove Theorem 3.3, we follow the similar proof framework as Lemma 8 in [AKM+17].
Let be an eigenvalue decomposition of . Then conclusion (5) is equivalent to
holds with probability at least , 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 to , and term (14) is the additive term that can be well controlled if is sufficiently close to . We argue the closeness of as the consequence of the following two observations:
Initialization phase: At the beginning of the training, can be viewed as approximating the neural tangent kernel 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 ). 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 is sufficiently close to .
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 at time will be sufficiently close to its initialization , which implies the dynamic kernel being sufficiently close to . Due to the fact argued in initialization phase, we have 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:
,
Given arbitrary accuracy , if we choose , and sufficiently large in Lemma D.14, then we have , 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 , we observe the similarity between the gradient flows of neural tangent kernel ridge regression and regularized neural networks as following:
By choosing the multiplier small enough, we can bound the initial difference between these two predictors. Combining with above similarity between gradient flows, we are able to show for appropriate . Finally, note the linear convergence property of the gradient of the kernel ridge regression, we can prove .
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 denote independent bounded variables in . Let , then we have
Let be independent zero-mean random variables. Suppose that almost surely, for all . Then, for all positive ,
We state three inequalities for Gaussian random variables.
Let , that is, the probability density function of is given by . Then
Let be a Gaussian random variable with mean and variance . Then for all , we have
Let be a chi-squared distributed random variable with degrees of freedom. Each one has zero mean and variance. Then
We state two inequalities for random matrices.
Let and be semidefinite upper bounds for the expected squares:
where each is an independent copy of . Then, for all ,
A.2 Neural tangent kernel and its properties
Let . If , we have
hold with probability at least .
holds with probability at least .
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.
(See Eq. (24))
(See Eq. (25))
We made the following assumptions: 1. For each , we assume . 2. is positive definite, i.e., . 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 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 as the variable at iteration . We denote
as the test data predictor at iteration .
We define the neural tangent kernel(NTK) and the feature function corresponding to the neural networks defined in Definition B.2 as following
as the test data predictor at iteration . 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 . By the rule of gradient descent, we have
where is defined in Definition B.4. Thus we have
Note and , 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 . Further, since
where the first step calculates the gradient, and the second step follows from Eq. (B.3). Thus, is non-increasing, which implies
Denote . By the rule of gradient descent, we have
Also note for ReLU activation , 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: , and the last step follows from the definition of . 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 and Eq. (B.3), and the last step rewrites the formula in a compact form. ∎
Note and , so writing all the data in a compact form, we have
Note by definition, , 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 . ∎
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 , 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 , so that , as shown in Lemma B.13.
Once fix training iteration as in step 1, we bound 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 , i.e., , back to bounding
the initialization perturbation and
kernel perturbation , , as shown in Lemma B.14.
According to concentration results, we can bound the initialization perturbation small enough by choosing sufficiently small , 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 , small enough by choosing network width 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., , 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 .
where here hides .
Due to the linear convergence of kernel ridge regression, i.e.,
where the last step follows from and .
Note . Thus, by picking , we have
where here hides .∎
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.
and
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 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 will only make
Now let us bound these three terms , and one by one. We claim
Note , 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 . Thus, we have
where the first step follows from Eq. (36), the second step follows from Eq. (B.5.2) and definition of . ∎
where the first step follows from the definition of , and the second step follows the Cauchy-Schwartz inequality.
To bound term , notice that for any , 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 for all and the triangle inequality, the fifth step follows from the linear convergence of as in Lemma B.9, the sixth step follows the fact , and the last step calculates the maximum. Therefore,
Given final accuracy , to ensure , we need to choose small enough to make and choose width large enough to make and both . 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 to our wanted accuracy by picking large enough. We prove Lemma B.20.
Further, given any accuracy , if , let , we have
hold with probability , where hides the .
Since , so . Note , by Gaussian tail bounds Lemma A.5, we have with probability :
Since , by combining Eq. (42), (43) and union bound over all , we have with probability :
Further, note and . Thus, by choosing , taking the union bound over all training and test data, we have
hold with probability , where hides the . ∎
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. ,
2.
4.
Further, , and . Here hides the .
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 ,
holds with probability at least . Note by definition,
holds for any training data . By Hoeffding inequality, we have for any ,
Setting , we can apply union bound on all training data to get with probability at least , for all ,
holds with probability at least . 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 trivially holds. Now assuming Lemma B.21 holds before time , we argue that it also holds at time . 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 as Eq. (48). ∎
holds with probability .
Directly applying Lemma A.10, we finish the proof. ∎
Fix independent of . If for all
holds for all . Denote , we have , which satisfies the condition of Lemma B.12. Thus, for any , 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 , always holds, we want to argue that
Note by assumption (51) and (52), we have
holds for any . Thus, plugging into (B.5.4),
Case 2. If there exist , such that , we want to argue that . Note by assumption (51) and (52), we have
holds for , which implies is non-increasing at . Since , by induction, being non-increasing and holds for all , which implies
Fix independent of . If , we have
holds with probability at least .
Recall the definition of and
Fix , by Bernstein inequality (Lemma A.3), we have for any ,
Note by definition , 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 , the second step follows from Cauchy-Schwartz inequality, the third step follows from , and the last step follows from the choice of the parameters.
Further, with probability , we have
Thus, we have .
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 hides .
By Lemma B.20, we can choose .
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 .
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 .
B.5.6 Main result for test data prediction equivalence
In this section, we restate and prove Theorem 3.7.
Here hides .
It follows from combining results of bounding as shown in Lemma B.27 and 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 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 and failure probability , if , , network width and regularization parameter , then with probability at least over the random initialization, we have
Here hides .
Let , , , and 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 , we have
where the first step follows from Lemma B.21, the second step follows from and , the last step follows from and 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 are drawn according to , then
If are drawn according to , then
If are drawn according to , then
If are drawn according to , then
If are drawn according to , then
If are drawn according to , then
Let denote the leverage score defined in Definition C.4. Let 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 .
To prove the theorem, we follow the same proof framework as Lemma 8 in [AKM+17].
Let be an eigenvalue decomposition of . Note that Eq. (59) is equivalent to
Multiplying on the left and on the left for both sides of Eq. (60), it suffices to show that
holds with probability at least . Let
where the first step follows from the definition of , 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 , the second step follows from basic linear algebra, and the last step follows from Eq. (58).
holds with probability at least .
where the first step follows from for any positive semidefinite matrix, the second step follows , the third step follows from the definition of , the fourth step follows from the definition of leverage score as defined in Definition C.4, and the last step follows from the condition .
where the first step follows from the definition of , the second step follows from the definition of , the third step follows from for any positive semidefinite matrix, the fourth step follows from the definition of leverage score as defined in Definition C.4, the fifth step follows from the definition of , the sixth step follows from the definition of , and the last step follows from the condition .
Thus, let be the eigenvalues of , we have
where the first step follows from Lemma A.8, the second step follows from the definition of and , the third step follows the condition , the fourth step follows the condition , and the last step follows from the bound on . ∎
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.
(See Eq. (70))
(See Eq. (71))
We made the following assumptions: 1. For each , we assume . 2. is positive definite, i.e., . 3. All the training data and test data have Euclidean norm equal to 1.
D.2 Definitions
as the test data predictor at iteration .
as the test data predictor at iteration . 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 and .
where the first step follows from , the second step follows from the definition of , the third step follows from the linearity of trace operator, the fourth step follows from , the fifth step follows from the definition of , and the last step follows from and .
Similarly, note , we have
Let , be the kernel defined as in Definition D.3 and Definition B.4. Let be defined as in Definition B.4. Let denotes the probability density function for Gaussian . Let denotes the leverage sampling distribution with respect to , and defined in Definition C.6. Let . Then we have
By choosing , with probability at least ,
Further, if , we have with probability at least ,
Here hides .
where the first step follows from the definition of , the second step follows the definition of , the third step calculates the expectation, and the last step follows the definition of .
Also, by applying Theorem C.7 directly, we have with probability at least ,
if .
Denote . By the rule of gradient descent, we have
Note and , 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, is non-increasing, which implies
Denote . By the rule of gradient descent, we have
Also note for ReLU activation , 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: , and the last step follows from the definition of . 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 and Eq. (D.3), and the last step rewrites the formula in a compact form. ∎
Note and , so writing all the data in a compact form, we have
Note by definition, , 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 and the fact . ∎
D.4 Proof sketch
We introduce a new kernel ridge regression problem with respect to to decouple the prediction perturbation resulted from initialization phase and training phase. Specifically, given any accuracy , we divide this proof into following steps:
Firstly, we bound the prediction perturbation resulted from initialization phase 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 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 , 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 . Particularly, given arbitrary , if and , we have
Here hides .
By Lemma D.6, if , 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 and . ∎
1. ,
2.
Here hides the .
We first state the following concentration result for the random initialization that can help us prove the lemma.
hold for all , where .
By lemma A.6, if , then with probability at least ,
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 . Here are defined in Eq. (79).
Note the base case when trivially holds. Now assuming Lemma D.14 holds before time , we argue that it also holds at time . 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 as Eq. (80).
holds with probability , where .
Directly applying Lemma D.18, we finish the proof. ∎
holds with probability at least , where .
where the last step follows from for each , we define
We consider are fixed. We simplify to .
Then is a random variable that only depends on . Since are independent, are also mutually independent.
where the last step follows from the anti-concentration inequality of Gaussian (Lemma A.4).
If and happen, then
where the last step follows from Lemma D.5 and . We also have . So we can apply Bernstein inequality (Lemma A.3) to get for all ,
Fix independent of . If for all
Note . By Lemma D.12, for any , we have
where the first step follows from Lemma D.12, the second step follows from definition of .
Case 1. If for all , always holds, we want to argue that
holds for any . Thus, plugging into (D.5.2),
Case 2. If there exist , such that , we want to argue that . Note by assumption (84), we have
holds for , which implies is non-increasing at . Since , by induction, being non-increasing and holds for all , 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 and failure probability . If , , network width and regularization parameter , then with probability at least ,
Here hides the .
By choosing in Lemma D.14, the induction shows
holds for all . By picking , we have
which implies . ∎
D.5.3 Main result for equivalence with leverage score sampling initialization
Here hides .
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 and 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 and 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 has already been shown in previous literature [ADH+19a, AZLS19a], and 2) the similarity of the second term 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 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.