A Comparative Analysis of the Optimization and Generalization Property of Two-layer Neural Network and Random Feature Models Under Gradient Descent Dynamics
Weinan E, Chao Ma, Lei Wu

TL;DR
This paper analyzes the training dynamics and generalization properties of two-layer neural networks and random feature models under gradient descent, revealing exponential convergence and kernel-like behavior.
Contribution
It provides a comprehensive theoretical analysis of gradient descent dynamics for two-layer neural networks, including convergence rates and generalization error estimates.
Findings
Gradient descent achieves exponential convergence to zero training loss.
Neural network functions remain close to kernel methods during training.
Sharp bounds on generalization error are established for various network widths and data sizes.
Abstract
A fairly comprehensive analysis is presented for the gradient descent dynamics for training two-layer neural network models in the situation when the parameters in both layers are updated. General initialization schemes as well as general regimes for the network width and training data size are considered. In the over-parametrized regime, it is shown that gradient descent dynamics can achieve zero training loss exponentially fast regardless of the quality of the labels. In addition, it is proved that throughout the training process the functions represented by the neural network model are uniformly close to that of a kernel method. For general values of the network width and training data size, sharp estimates of the generalization error is established for target functions in the appropriate reproducing kernel Hilbert space.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A Comparative Analysis of Optimization and Generalization Properties of
Two-layer Neural Network and Random Feature Models Under Gradient Descent Dynamics
Weinan E [email protected] Department of Mathematics, Princeton University
Program in Applied and Computational Mathematics, Princeton University
Beijing Institute of Big Data Research
Chao Ma [email protected] Program in Applied and Computational Mathematics, Princeton University
Lei Wu [email protected] Program in Applied and Computational Mathematics, Princeton University
Abstract
A fairly comprehensive analysis is presented for the gradient descent dynamics for training two-layer neural network models in the situation when the parameters in both layers are updated. General initialization schemes as well as general regimes for the network width and training data size are considered. In the over-parametrized regime, it is shown that gradient descent dynamics can achieve zero training loss exponentially fast regardless of the quality of the labels. In addition, it is proved that throughout the training process the functions represented by the neural network model are uniformly close to that of a kernel method. For general values of the network width and training data size, sharp estimates of the generalization error is established for target functions in the appropriate reproducing kernel Hilbert space.
1 Introduction
Optimization and generalization are two central issues in the theoretical analysis of machine learning models. These issues are of special interest for modern neural network models, not only because of their practical success [18, 19], but also because of the fact that these neural network models are often heavily over-parametrized and traditional machine learning theory does not seem to work directly [21, 30]. For this reason, there has been a lot of recent theoretical work centered on these issues [15, 16, 12, 11, 2, 8, 10, 31, 29, 28, 25, 27]. One issue of particular interest is whether the gradient descent (GD) algorithm can produce models that optimize the empirical risk and at the same time generalize well for the population risk. In the case of over-parametrized two-layer neural network models, which will be the focus of this paper, it is generally understood that as a result of the non-degeneracy of the associated Gram matrix [29, 12], optimization can be accomplished using the gradient descent algorithm regardless of the quality of the labels, in spite of the fact that the empirical risk function is non-convex. In this regard, one can say that over-parametrization facilitates optimization.
The situation with generalization is a different story. There has been a lot of interest on the so-called “implicit regularization” effect [21], i.e. by tuning the parameters in the optimization algorithms, one might be able to guide the algorithm to move towards network models that generalize well, without the need to add any explicit regularization terms (see below for a review of the existing literature). But despite these efforts, it is fair to say that the general picture has yet to emerge.
In this paper, we perform a rather thorough analysis of the gradient descent algorithm for training two-layer neural network models. We study the case in which the parameters in both the input and output layers are updated – the case found in practice. In the heavily over-parametrized regime, for general initializations, we prove that the results of [12] still hold, namely, the gradient descent dynamics still converges to a global minimum exponentially fast, regardless of the quality of the labels. However, we also prove that the functions obtained are uniformly close to the ones found in an associated kernel method, with the kernel defined by the initialization.
In the second part of the paper, we study the more general situation when the assumption of over-parametrization is relaxed. We provide sharp estimates for both the empirical and population risks. In particular, we prove that for target functions in the appropriate reproducing kernel Hilbert space (RKHS) [3], the generalization error can be made small if certain early stopping strategy is adopted for the gradient descent algorithm.
Our results imply that under this setting over-parametrized two-layer neural networks are a lot like the kernel methods: They can always fit any set of random labels, but in order to generalize, the target functions have to be in the right RKHS. This should be compared with the optimal generalization error bounds proved in [13] for regularized models.
1.1 Related work
The seminal work of [30] presented both numerical and theoretical evidence that over-parametrized neural networks can fit random labels. Building upon earlier work on the non-degeneracy of some Gram matrices [29], Du et al. went a step further by proving that the GD algorithm can find global minima of the empirical risk for sufficiently over-parametrized two-layer neural networks [12]. This result was extended to multi-layer networks in [11, 2] or a general setting [9]. The related result for infinitely wide neural networks was obtained in [14]. In this paper, we prove a new optimization result (Theorem 3.2) that removes the non-degeneracy assumption of the input data by utilizing the smoothness of the target function. Also the requirement of the network width is significantly relaxed.
The issue of generalization is less clear. [10] established generalization error bounds for solutions produced by the online stochastic gradient descent (SGD) algorithm with early stopping when the target function is in a certain RKHS. Similar results were proved in [20] for the classification problem, in [8] for offline SGD algorithms, and in [1] for GD algorithm. These results are similar to ours, but we do not require the network to be over-parametrized. Moreover, in Theorem 3.3 we show that in this setting neural networks are uniformly close to the random feature models if the network is highly over-parametrized.
More recently in [4], a generalization bound was derived for GD solutions using a data-dependent norm. This norm is bounded if the target function belongs to the appropriate RKHS. However, their error bounds are not strong enough to rule out the possibility of curse of dimensionality. Indeed the results of the present paper do suggest that curse of dimensionality does occur in their setting (see Theorem 3.4).
[14] provided by a heuristic argument that the GD solutions of a infinitely-wide neural network are captured by the so-called neural tangent kernel. In this paper, we provide a rigorous proof of the non-asymptotic version of the result for the two-layer neural network under weaker conditions.
2 Preliminaries
Throughout this paper, we will use the following notation , if is a positive integer. We use and to denote the and Frobenius norms for matrices, respectively. We let , and use to denote the uniform distribution over . We use to indicate that there exists an absolute constant such that , and is similarly defined. If is a function defined on and is a probability distribution on , we let .
2.1 Problem setup
We focus on the regression problem with a training data set given by , i.i.d. samples drawn from a distribution , which is assumed fixed but only known through the samples. In this paper, we assume and . We are interested in fitting the data by a two-layer neural network:
[TABLE]
where and denote all the parameters. Here is the ReLU activation function. We will omit the subscript in the notation for if there is no danger of confusion. In formula (1), we omit the bias term for notational simplicity. The effect of the bias term can be incorporated if we think of as .
The ultimate goal is to minimize the population risk defined by
[TABLE]
But in practice, we can only work with the following empirical risk
[TABLE]
Gradient Descent
We are interested in analyzing the property of the following gradient descent algorithm: where is the learning rate. For simplicity, we will focus on its continuous version, the gradient descent (GD) dynamics:
[TABLE]
Initialization
. We assume that are i.i.d. random variables drawn from , and are i.i.d. random variables drawn from the distribution defined by . Here controls the magnitude of the initialization, and it may depend on , e.g. or . Other initialization schemes can also be considered (e.g. distributions other than , other ways of initializing ). The needed argument does not change much from the ones for this special case.
2.2 Assumption on the input data
With the activation function and the distribution , we can define two positive definite (PD) functions 111We say that a continuous symmetric function is positive definite if and only if for any , the kernel matrix with is positive definite.
[TABLE]
For a fixed training sample, the corresponding normalized kernel matrices are defined by
[TABLE]
Throughout this paper, we make the following assumption on the training set.
Assumption 1**.**
For the given training set , we assume that the smallest eigenvalues of the two kernel matrices defined above are both positive, i.e.
[TABLE]
Let .
Remark 1**.**
Note that . In general, depend on the data set. For any PD functions , the Hilbert-Schmidt integral operator is defined by
[TABLE]
Let denote its -th largest eigenvalue. If are independently drawn from , it was proved in [6] that with high probability and . Using the similar idea, [29] provided lower bounds for based on some geometric discrepancy, which quantifies the uniformity degree of . In this paper, we leave as our basic assumption.
2.3 The random feature model
We introduce the following random feature model [22] as a reference for the two-layer neural network model
[TABLE]
where . Here is fixed at the corresponding initial values for the neural network model, and is not part of the parameters to be trained. The corresponding gradient descent dynamics is given by
[TABLE]
This dynamics is relatively simple since it is linear.
3 Analysis of the over-parameterized case
In this section, we consider the optimization and generalization properties of the GD dynamics in the over-parametrized regime. We introduce two Gram matrices , defined by
[TABLE]
Let and , it is easy to see that
[TABLE]
Since , we have
[TABLE]
3.1 Properties of the initialization
Lemma 1**.**
For any fixed , with probability at least over the random initialization, we have
[TABLE]
where .
The proof of this lemma can be found in Appendix C.
In addition, at the initialization, the Gram matrices satisfy
[TABLE]
In fact, we have
Lemma 2**.**
For , if , we have, with probability at least over the random choice of
[TABLE]
The proof of this lemma is deferred to Appendix D.
3.2 Gradient descent near the initialization
We define a neighborhood of the initialization by
[TABLE]
Using the lemma above, we conclude that for any fixed , with probability at least over the random choices of , we must have
[TABLE]
for all .
For the GD dynamics, we define the exit time of by
[TABLE]
Lemma 3**.**
For any fixed , assume that . Then with probability at least over the random choices of , we have the following holds for any ,
[TABLE]
Proof.
We have
[TABLE]
where the last inequality is due to the fact that . This completes the proof. ∎
We define two quantities:
[TABLE]
The following is the most crucial characterization of the GD dynamics.
Proposition 3.1**.**
For any , assume . Then, with probability at least , we have the following holds for any ,
[TABLE]
Proof.
First, we have
[TABLE]
To facilitate the analysis, we define the following two quantities,
[TABLE]
Using Lemma 3, we have
[TABLE]
Combining the two inequalities above, we get
[TABLE]
Using Lemma 1 and the fact that , we have
[TABLE]
Therefore,
[TABLE]
Inserting the above estimates back to (10), we obtain
[TABLE]
Since , we have
[TABLE]
Therefore we have , which leads to
[TABLE]
∎
The following lemma provides that how and depend on and .
Lemma 4**.**
For any , assume . Let . If , we have
[TABLE]
If , we have
[TABLE]
3.3 Global convergence for arbitrary labels
Proposition 3.1 and Lemma 4 tell us that no matter how large is, we have
[TABLE]
This actually implies that the GD dynamics always stays in , i.e. .
Theorem 3.2**.**
For any , assume . Then with probability at least over the random initialization, we have
[TABLE]
for any .
Proof.
According to Lemma 3, we only need to prove that . Assume .
Let us first consider the Gram matrix . Since is Lipschitz and , we have
[TABLE]
This leads to
[TABLE]
Next we turn to the Gram matrix . Define the event
[TABLE]
Since is ReLU, this event happens only if . By the fact that and is drawn from the uniform distribution over the sphere, we have . Therefore the entry-wise deviation of satisfies,
[TABLE]
where
[TABLE]
Note that . In addition, by Proposition 3.1, we have
[TABLE]
Hence using , we obtain
[TABLE]
By the Markov inequality, with probability we have
[TABLE]
Consequently, with probability we have
[TABLE]
Combining (15) and (17), we get
[TABLE]
where the last inequality comes from Lemma (4). Taking , we get
[TABLE]
The above result contradicts the definition of . Therefore . ∎
Remark 2**.**
Compared with Proposition 3.1, the above theorem imposes a stronger assumption on the network width: . This is due to the lack of continuity of when handling . If is continuous, we can get rid of the dependence on . In addition, it is also possible to remove this assumption for the case when , since in this case the Gram matrix is dominated by .
Remark 3**.**
Theorem 3.2 is closely related to the result of Du et al. [12] where exponential convergence to global minima was first proved for over-parametrized two-layer neural networks. But it improves the result of [12] in two aspects. First, as is done in practice, we allow the parameters in both layers to be updated, while [12] chooses to freeze the parameters in the first layer. Secondly, our analysis does not impose any specific requirement on the scale of the initialization whereas the proof of [12] relies on the specific scaling: .
3.4 Characterization of the whole GD trajectory
In the last subsection, we showed that very wide networks can fit arbitrary labels. In this subsection, we study the functions represented by such networks. We show that for highly over-parametrized two-layer neural networks, the solution of the GD dynamics is uniformly close to the solution for the random feature model starting from the same initial function.
Theorem 3.3**.**
Assume . Denote the solution of GD dynamics for the random feature model by
[TABLE]
where is the solution of GD dynamics (5). For any , assume that . Then with probability at least we have,
[TABLE]
where .
Remark 4**.**
Again the factor in the condition for can be removed if is assumed to be smooth or is assumed to be small (see the remark at the end of Theorem 3.2).
Remark 5**.**
If , the right-hand-side of (18) goes to [math] as . For example, if we take , we have
[TABLE]
Hence this theorem says that the GD trajectory of a very wide network is uniformly close to the GD trajectory of the related kernel method (5).
Proof of Theorem 3.3
We define
[TABLE]
Recall the definition of in Section 3, we know that . For any , let and be two -dimensional vectors defined by
[TABLE]
For GD dynamics (2), define . Then we have,
[TABLE]
For GD dynamics (5) of the random feature model, we define . Then, we have
[TABLE]
[TABLE]
Let
[TABLE]
then we have
[TABLE]
We are now going to bound and .
We first consider . By Theorem (3.1), with probability at least we have
[TABLE]
for any . Therefore, for any , we have
[TABLE]
Hence, by the estimates of in Lemma 1, we have
[TABLE]
Inserting the estimate of in Lemma 4, we get
[TABLE]
Next we turn to estimating . Let . Following (22) and (23), we obtain
[TABLE]
Solving the equation above gives
[TABLE]
Consider the initializations for which . The probability of this event is no less than . For such initializations, we have
[TABLE]
Using Proposition (3.1), we conclude that with probability no less than , the following holds:
[TABLE]
Together with the fact that , we obtain
[TABLE]
In addition, for any , we have . Hence, plugging (3.4) into leads to
[TABLE]
Substituting in the estimates for and , and assuming that , we obtain, for any , with probability no less than ,
[TABLE]
Finally, combining the estimates of and , we conclude that
[TABLE]
holds for any with probability at least . This completes the proof of Theorem 3.3.
3.5 Curse of dimensionality of the implicit regularization
From (24), we have
[TABLE]
where . The second term in the right hand slide of (3.5) lives in the span of fixed basis: .
For any probability distribution over , we define
[TABLE]
For any , define . As shown in [23], is exactly the RKHS with the kernel defined by .
Definition 1** (Barron space).**
The Barron space is defined as the union of , i.e.
[TABLE]
The Barron norm for any is defined by
[TABLE]
To signify the dependence on the target function and data set, we introduce the notation:
[TABLE]
where the right hand side is the GD solution of the random feature model obtained by using the training data with and as the initial parameters. Let . We then have the following theorem.
Theorem 3.4**.**
There exists an absolute constant , such that for any
[TABLE]
Remark 6**.**
Combined Theorem 3.4 with Theorem 3.3, we conclude that for any , if is sufficiently large, then with probability at least we have
[TABLE]
where
[TABLE]
denotes the solution at time of the GD dynamics for the two-layer neural network model. If is sufficiently small (e.g. ), then we see that the curse of dimensionality also holds for the solutions generated by the GD dynamics for the two-layer neural network model. Since this statement holds for all time , no early-stopping strategy is able to fix this curse of dimensionality problem.
In contrast, it has been proved in [13] that an appropriate regularization can avoid this curse of dimensionality problem, i.e. if we denote by the estimator for the regularized model in [13] (see (86) below), then it was shown that for any , with probability at least over the sampling of , the following holds
[TABLE]
The comparison between (40) and (41) provides a quantitative understanding of the insufficiency of using the random feature model to explain the generalization behavior of neural network models.
To prove Theorem 3.4, we need the following lemma, which is proved in [5].
Lemma 5**.**
Let be the Fourier transform of a function defined on . Let . Then, for any fixed functions , we have
[TABLE]
We now prove Theorem 3.4.
Proof.
As is shown in [7, 17], any function can be represented as
[TABLE]
for some and , which means . Hence, . Next, since the training data and the initialization are fixed, we have
[TABLE]
Therefore, by Lemma 5, we obtain
[TABLE]
for some universal constant . ∎
4 Analysis of the general case
In this section, we will relax the requirement of the network width. We will make the following assumption on the target function.
Assumption 2**.**
We assume that the target function admits the following integral representation
[TABLE]
with .
Let be the RKHS induced by . It was shown in [23] that . Thus the assumption above implies that .
The following approximation result is essentially the same as the ones in [23, 24]. Since we are interested in the explicit control for the norm of the solution, we provide a complete proof in Appendix A.
Lemma 6**.**
Assume that the target function satisfies Assumption 2. Then for any , with probability at least over the choice of , there exists such that
[TABLE]
[TABLE]
where is the population risk.
The following generalization bound for the random feature model will be used later.
Lemma 7**.**
For fixed , and any , with probability no less than over the choice of the training data, we have
[TABLE]
for any .
Please see Appendix B for the proof.
4.1 Optimization results
We first show that the gradient descent algorithm can reduce the empirical risk to . Here we will assume . This assumption is not used in the next subsection, except for Corollary 4.3.
Theorem 4.1**.**
Take for some absolute constant . Assume that the target function satisfies Assumption 2, and . Then, for any , with probability no less than we have
[TABLE]
for any , where is a constant depending on , and .
The next three lemmas give bounds on the changes of the parameters.
Lemma 8**.**
Let , and be a fixed constant. Then there exists constant depending on , such that for any ,
[TABLE]
and
[TABLE]
Proof.
By the gradient descent dynamics, we have
[TABLE]
Since and , we have
[TABLE]
If , since and , we have
[TABLE]
with . Hence, we have
[TABLE]
For , consider a more refined estimate
[TABLE]
Plugging in the above estimate for , we obtain
[TABLE]
∎
Lemma 9**.**
Let , , and assume . Then, for any , with probability no less than , we have for any ,
[TABLE]
where is a constant.
Proof.
For , consider the Lyapunov function
[TABLE]
Since is convex with respect to , we have , which implies . Hence we have
[TABLE]
Since , we obtain
[TABLE]
By Lemma 6 and Lemma 7, when , with probability no less than , we have
[TABLE]
Therefore we have
[TABLE]
Let , we get
[TABLE]
∎
Lemma 10**.**
Under the assumptions of Lemmas 8 and 9, for any , we have
[TABLE]
for some constant .
Proof.
Note that
[TABLE]
Multiplying on both sides of (60), we get
[TABLE]
Using the estimates in Lemmas 8 and 9, we obtain
[TABLE]
∎
Proof of Theorem 4.1
Let , then we have
[TABLE]
By Cauchy-Schwartz, we have
[TABLE]
[TABLE]
For , from Lemma 6, with probability , there exists that satisfies (44). Thus we have
[TABLE]
By Lemma 7, we can bound as follows,
[TABLE]
For , consider the Lyapunov function
[TABLE]
Since is convex with respect to , we have , which implies . Hence we have
[TABLE]
Combining all the estimates above, we conclude that for any , with probability larger than , we have
[TABLE]
For the estimate on , by Lemma 6, we have . To bound , we have
[TABLE]
Together with the estimates in Lemmas 8, 9 and 10, and without loss of generality assuming that , we obtain
[TABLE]
for , and some constant (we can choose ).
If we assume and take , then we can take and obtain
[TABLE]
for some constant . Moreover, since is non-increasing, . Hence for any , we have
[TABLE]
for some constant . Combining (73) and (74), we complete the proof for all .
4.2 Generalization results
The following theorem provides an upper bound for the population error of GD solutions at any time . It tells that one can use early stopping to reach the optimal error in the absence of over-parametrization.
Theorem 4.2**.**
Take for some constant . Assume that the target function satisfies Assumption 2, and . Fix any positive constant . Then for , with probability no less than we have, for
[TABLE]
where is a constant depending only on , , and .
As a consequence, we have the following early-stopping results.
Corollary 4.3** (Early-stopping solution).**
Assume that . Let . Under the condition of Theorem 4.2, we have
[TABLE]
Remark 7**.**
From these results we conclude that for target functions in a certain RKHS, with high probability the gradient descent dynamics can find a solution with good generalization properties in a short time. Compared to the long-term analysis in the last section, this theorem does not require to be very large. It works in the “mildly over-parameterized” regime.
The following Corollary provides a more detailed study of the balance between , and to achieve best rates for .
Corollary 4.4**.**
Assume for some . Then, if , take , we have
[TABLE]
If , take , we have
[TABLE]
Proof.
Let and . We assume , then
[TABLE]
Expand the right hand side of (75), we obtain
[TABLE]
For each , we are going to find the corresponding for which the maximum value among all the terms at the right hand side of (80) is minimized. When , we have . Thus the second term is larger than any other terms. Hence, we only have to consider the case when . In this interval, we only need to compare the terms with powers , , and and neglect all other terms. The desired results are then obtained by comparing the second term with the other three terms. ∎
Now we prove Theorem 4.2.
Proof.
Similar to (63), we have
[TABLE]
Here is the distribution of input data . For the first two terms in (81), we have the same estimates as in (64) and (65). For , we have
[TABLE]
The right hand side of (82) has one more term than (66), and additional term can be bounded as
[TABLE]
Hence, for any , with probability larger than , we have
[TABLE]
Using the estimates of , , , , and derived in the previous lemmas, and assuming that , we obtain
[TABLE]
In (4.2), the constant can be chosen as .
∎
5 Numerical experiments
In this section, we present some numerical results to illustrate our theoretical analysis.
5.1 Fitting random labels
The first experiment studies the convergence of GD dynamics for over-parametrized two-layer neural networks with different initializations. We uniformly sample from , and for each we specify a label , which is uniformly drawn from . In the experiments, we choose , and network width . Six initializations of different magnitudes are tested. Figure 1 shows the training curves.
We see that the GD algorithm for the neural network models converges exponentially fast for all initializations considered, even for the case when . This is consistent with the results of Theorem 3.2.
5.2 Learning the one-neuron function
The next experiment compares the GD dynamics of two-layer neural networks and random feature models. We consider the target function with . The training set is given by , with independently drawn from .
We first choose to build the training set, and then use the gradient descent algorithm with learning rate to train two-layer neural network and random feature models. We initialize the models using . In addition, new samples are drawn to evaluate the test error. Figure 2 shows the training and test error curves of the two models of three widths: . We see that, when the width is very small, the GD algorithm for the random feature model does not converge, while it does converge for the neural network model and the resulting model does generalize. This is likely due to the special target function we have chosen here. For the intermediate width (), the GD algorithm for both models converges, and it converges faster for the neural network model than for the random feature model. The test accuracy is slightly better for the resulting neural network model (but not as good as for the case when ). When , the behavior of the GD algorithm for two models is almost the same.
Finally, we study the generalization properties of neural network models of different width. We train two-layer neural networks of different width until the training error is below . Then we measure the test error. We compare the test error with that of the regularized model proposed in [13]:
[TABLE]
where
[TABLE]
The results are showed in Figure 3. One sees that when the width is small, the test error is small for both methods. However, when the width becomes very large, the un-regularized neural network model does not generalized well. In other words, implicit regularization fails.
The above results are consistent with the theoretical lower bound (40), which states that learning with GD suffers from the curse of dimensionality for functions in Barron space. Here the one-neuron function serves as a specific example. Intuitively, the one-neuron target function only relies on the specific direction . However the basis are uniformly drawn from . In high dimension, we know for any uniformly drawn from . Therefore, it is not surprising to see that learning with uniform features suffers from the curse of dimensionality.
6 Conclusion
To put things into perspective, let us first recall some results from [13].
One can define a space of functions called the Barron space. The Barron space is the union of all RKHS with kernels defined by
[TABLE]
with respect to all probability distributions . 2. 2.
For regularized models with a suitably crafted regularization term, optimal generalization error estimates (i.e. rates that are comparable to the Monte Carlo rates) can be established for all target functions in the Barron space.
In the present paper, we have shown that for over-parametrized two-layer neural networks without explicit regularization, the gradient descent algorithm is sufficient for the purpose of optimization. But to obtain dimension-independent error rates for generalization, one has to require that the target function be in the RKHS with a kernel defined by the initialization. In other words, given a target function in the Barron space, in order for implicit regularization to work, one has to know beforehand the kernel function for that target function and use that kernel function to initialize the GD algorithm. This requirement is certainly impractical. In the absence of such a knowledge, one should expect to encounter the curse of dimensionality for general target functions in Barron space, as is proved in this paper.
We have also studied the case with general network width. Our results point to the same direction as for the over-parametrized regime although in the general case, one has to rely on early stopping to obtain good generalization error bounds. Our analysis does not rule out completely the possibility that in some scaling regimes of , the GD algorithm for two-layer neural network models may have better generalization properties than that of the related kernel method.
Our analysis was carried out under special circumstances, e.g. with a particular choice of and a very special domain for the input. While it is certainly possible to extend this analysis to more general settings, we feel that the value of such an analysis is limited since our main message is a negative one: Without explicit regularization, the generalization properties of two-layer neural networks are likely to be no better than that of the kernel method.
From a technical viewpoint, our analysis was facilitated greatly by the fact that the dynamics of the ’s is much slower than that of the ’s, as a consequence of the smallness of . As a result, the ’s are effectively frozen in the GD dynamics. While this is the same setup as the ones used in practice, one can also imagine putting out an explicit scaling factor to account for the smallness of , e.g.
[TABLE]
as in [28, 25, 27]. In this case, the separation of time scales is no longer valid and one can potentially obtain a very different picture. While this is certainly an interesting avenue to pursue, so far there are no results concerning the effect of implicit regularization in such a setting.
Acknowledgement: The work presented here is supported in part by a gift to Princeton University from iFlytek and the ONR grant N00014-13-1-0338.
Appendix A Proof of Lemma 6
Proof.
For any , let , where is the function defined in Assumption 2. Let
[TABLE]
Then we have . Now, consider
[TABLE]
then if is different from at only one , we have
[TABLE]
Hence, by McDiarmid’s inequality, for any , with probability no less than , we have
[TABLE]
On the other hand,
[TABLE]
Therefore, we have
[TABLE]
Finally, by Assumption 2, . ∎
Appendix B Proof of Lemma 7
For any , let . We can bound the Rademacher complexity of as follows.
[TABLE]
Next, let . Since for any , by the Cauchy-Schwartz inequality, . Hence we can bound the Rademacher complexity of by
[TABLE]
using that is Lipschitz continuous with Lipschitz constant bounded by . Therefore, for any , with probability larger than , we have
[TABLE]
for any with .
Finally, for any integer , let and . Then, with probability larger than
[TABLE]
we have that (96) holds for all . Given any , we can find a such that , which means
[TABLE]
This completes the proof.
Appendix C Proof of Lemma 1
Proof.
Define . By the standard Rademacher complexity bound (see Theorem 26.5 of [26]), we have, with probability at least ,
[TABLE]
Moreover, since is Lipschitz continuous, by applying the contraction property of Rademacher complexity (see Lemma 26.9 of [26]) we have
[TABLE]
where the last inequality follows from the Lemma 26.10 of [26]. Thus with probability , we have that for any ,
[TABLE]
Thus . ∎
Appendix D Proof of Lemma 2
Proof.
For a given , define events
[TABLE]
Hoeffding’s inequality gives us that
[TABLE]
Thus with probability at least , we have
[TABLE]
Using Weyl’s Theorem, we have
[TABLE]
Taking , we complete the proof. ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Zeyuan Allen-Zhu, Yuanzhi Li, and Yingyu Liang. Learning and generalization in overparameterized neural networks, going beyond two layers. ar Xiv preprint ar Xiv:1811.04918 , 2018.
- 2[2] Zeyuan Allen-Zhu, Yuanzhi Li, and Zhao Song. A convergence theory for deep learning via over-parameterization. ar Xiv preprint ar Xiv:1811.03962 , 2018.
- 3[3] Nachman Aronszajn. Theory of reproducing kernels. Transactions of the American mathematical society , 68(3):337–404, 1950.
- 4[4] Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, and Ruosong Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. ar Xiv preprint ar Xiv:1901.08584 , 2019.
- 5[5] Andrew R. Barron. Universal approximation bounds for superpositions of a sigmoidal function. IEEE Transactions on Information theory , 39(3):930–945, 1993.
- 6[6] Mikio L Braun. Accurate error bounds for the eigenvalues of the kernel matrix. Journal of Machine Learning Research , 7(Nov):2303–2328, 2006.
- 7[7] Leo Breiman. Hinging hyperplanes for regression, classification, and function approximation. IEEE Transactions on Information Theory , 39(3):999–1013, 1993.
- 8[8] Yuan Cao and Quanquan Gu. A generalization theory of gradient descent for learning over-parameterized deep Re LU networks. ar Xiv preprint ar Xiv:1902.01384 , 2019.
