Gradient Descent Finds Global Minima of Deep Neural Networks
Simon S. Du, Jason D. Lee, Haochuan Li, Liwei Wang, Xiyu Zhai
Introduction
One of the mysteries in deep learning is randomly initialized first-order methods like gradient descent achieve zero training loss, even if the labels are arbitrary (Zhang et al., 2016). Over-parameterization is widely believed to be the main reason for this phenomenon as only if the neural network has a sufficiently large capacity, it is possible for this neural network to fit all the training data. For example, Lu et al. (2017) proved that except for a measure zero set, all functions cannot be approximated by ReLU networks with a width less than the input dimension. In practice, many neural network architectures are highly over-parameterized. For example, Wide Residual Networks have 100x parameters than the number of training data (Zagoruyko & Komodakis, 2016).
The second mysterious phenomenon in training deep neural networks is “deeper networks are harder to train.” To solve this problem, He et al. (2016) proposed the deep residual network (ResNet) architecture which enables randomly initialized first order method to train neural networks with an order of magnitude more layers. Theoretically, Hardt & Ma (2016) showed that residual links in linear networks prevent gradient vanishing in a large neighborhood of zero, but for neural networks with non-linear activations, the advantages of using residual connections are not well understood.
In this paper, we demystify these two mysterious phenomena. We consider the setting where there are data points, and the neural network has layers with width . We focus on the least-squares loss and assume the activation function is Lipschitz and smooth. This assumption holds for many activation functions including the soft-plus and sigmoid. Our contributions are summarized below.
Our proof builds on two ideas from previous work on gradient descent for two-layer neural networks. First, we use the observation by (Li & Liang, 2018) that if the neural network is over-parameterized, every weight matrix is close to its initialization. Second, following (Du et al., 2018b), we analyze the dynamics of the predictions whose convergence is determined by the least eigenvalue of the Gram matrix induced by the neural network architecture and to lower bound the least eigenvalue, it is sufficient to bound the distance of each weight matrix from its initialization.
Different from these two works, in analyzing deep neural networks, we need to exploit more structural properties of deep neural networks and develop new techniques for analyzing both the initialization and gradient descent dynamics. In Section 4 we give an overview of our proof technique.
This paper is organized as follows. In Section 2, we discuss related works. In Section 3, we formally state the problem setup. In Section 4, we present our main analysis techniques. In Section 5, we give a warm-up result for the deep fully-connected neural network. In Section 6, we give our main result for the ResNet. In Section 7, we give our main result for the convolutional ResNet. We conclude in Section 8 and defer all proofs to the appendix.
Related Works
Recently, many works try to study the optimization problem in deep learning. Since optimizing a neural network is a non-convex problem, one approach is first to develop a general theory for a class of non-convex problems which satisfy desired geometric properties and then identify that the neural network optimization problem belongs to this class. One promising candidate class is the set of functions that satisfy: a) all local minima are global and b) there exists a negative curvature for every saddle point. For this function class, researchers have shown (perturbed) gradient descent (Jin et al., 2017; Ge et al., 2015; Lee et al., 2016; Du et al., 2017a) can find a global minimum. Many previous works thus try to study the optimization landscape of neural networks with different activation functions (Soudry & Hoffer, 2017; Safran & Shamir, 2018, 2016; Zhou & Liang, 2017; Freeman & Bruna, 2016; Hardt & Ma, 2016; Nguyen & Hein, 2017; Kawaguchi, 2016; Venturi et al., 2018; Soudry & Carmon, 2016; Du & Lee, 2018; Soltanolkotabi et al., 2018; Haeffele & Vidal, 2015). However, even for a three-layer linear network, there exists a saddle point that does not have a negative curvature (Kawaguchi, 2016), so it is unclear whether this geometry-based approach can be used to obtain the global convergence guarantee of first-order methods.
Another way to attack this problem is to study the dynamics of a specific algorithm for a specific neural network architecture. Our paper also belongs to this category. Many previous works put assumptions on the input distribution and assume the label is generated according to a planted neural network. Based on these assumptions, one can obtain global convergence of gradient descent for some shallow neural networks (Tian, 2017; Soltanolkotabi, 2017; Brutzkus & Globerson, 2017; Du et al., 2018a; Li & Yuan, 2017; Du et al., 2017b). Some local convergence results have also been proved (Zhong et al., 2017a, b; Zhang et al., 2018). In comparison, our paper does not try to recover the underlying neural network. Instead, we focus on minimizing the training loss and rigorously prove that randomly initialized gradient descent can achieve zero training loss.
The most related papers are (Li & Liang, 2018; Du et al., 2018b) who observed that when training an over-parametrized two-layer fully-connected neural network, the weights do not change a large amount, which we also use to show the stability of the Gram matrix. They used this observation to obtain the convergence rate of gradient descent on a two-layer over-parameterized neural network for the cross-entropy and least-squares loss. More recently, Allen-Zhu et al. (2018b) generalized ideas from (Li & Liang, 2018) to derive convergence rates of training recurrent neural networks.
Our work extends these previous results in several ways: a) we consider deep networks, b) we generalize to ResNet architectures, and c) we generalize to convolutional networks. To improve the width dependence on sample size , we utilize a smooth activation (e.g. smooth ReLU). For example, our results specialized to depth improve upon (Du et al., 2018b) in the required amount of overparametrization from to . See Theorem 5.1 for the precise statement.
Chizat & Bach (2018b) brought to our attention the paper of Jacot et al. (2018) which proved a similar weight stability phenomenon for deep networks, but only in the asymptotic setting of infinite-width networks and gradient flow run for a finite time. Jacot et al. (2018) do not establish the convergence of gradient flow to a global minimizer. In lieu of their results, our work can be viewed as a generalization of their result to: a) finite width, b) gradient descent as opposed to gradient flow, and c) convergence to a global minimizer.
Mei et al. (2018); Chizat & Bach (2018a); Sirignano & Spiliopoulos (2018); Rotskoff & Vanden-Eijnden (2018); Wei et al. (2018) used optimal transport theory to analyze gradient descent on over-parameterized models. However, their results are limited to two-layer neural networks and may require an exponential amount of over-parametrization.
Daniely (2017) developed the connection between deep neural networks with kernel methods and showed stochastic gradient descent can learn a function that is competitive with the best function in the conjugate kernel space of the network. Andoni et al. (2014) showed that gradient descent can learn networks that are competitive with polynomial classifiers. However, these results do not imply gradient descent can find a global minimum for the empirical loss minimization problem. Our analysis of the Gram matrices at random initialization is closely related to prior work on the analysis of infinite-width networks as Gaussian Processes (Raghu et al., 2016; Matthews et al., 2018; Lee et al., 2017; Schoenholz et al., 2016). Since we require the initialization analysis for three distinct architectures (ResNet, feed-forward, and convolutional ResNet), we re-derive many of these prior results in a unified fashion in Appendix E.
Finally, in concurrent work, Allen-Zhu et al. (2018c) also analyze gradient descent on deep neural networks. The primary difference between the two papers is that we analyze general smooth activations, and Allen-Zhu et al. (2018c) develop specific analysis for ReLU activation. The two papers also differ significantly on their data assumptions. We wish to emphasize a fair comparison is not possible due to the difference in setting and data assumptions. We view the two papers as complementary since they address different neural net architectures.
For ResNet, the primary focus of this manuscript, the required width per layer for Allen-Zhu et al. (2018c) is and for this paper’s Theorem 6.1 is .In all comparisons, we ignore the polynomial dependency on data-dependent parameters which only depends on the input data and the activation function. The two papers use different measures and are not directly comparable. Our paper requires a width that does not depend on the desired accuracy . As a consequence, Theorem 6.1 guarantees the convergence of gradient descent to a global minimizer. The iteration complexity of Allen-Zhu et al. (2018c) is and of Theorem 6.1 is .
For fully-connected networks, Allen-Zhu et al. (2018c) requires width and iteration complexity . Theorem 5.1 requires width and iteration complexity . The primary difference is for very deep fully-connected networks, Allen-Zhu et al. (2018c) has milder dependence on , but worse dependence on . Commonly used fully-connected networks such as VGG are not extremely deep (), yet the dataset size such as ImageNet () is very large.
In a second concurrent work, Zou et al. (2018) also analyzed the convergence of gradient descent on fully-connected networks with ReLU activation. The emphasis is on different loss functions (e.g. hinge loss), so the results are not directly comparable. Both Zou et al. (2018) and Allen-Zhu et al. (2018c) train a subset of the layers, instead of all the layers as in this work, but also analyze stochastic gradient.
Preliminaries
We Let . We use to denote the standard Gaussian distribution. For a matrix , we use to denote its -th entry. We will also use to denote the -th row vector of and define as part of the vector. Similarly is the -th column vector and is a part of -th column vector. For a vector , we use to denote the Euclidean norm. For a matrix we use to denote the Frobenius norm and to denote the operator norm. If a matrix is positive semi-definite, we use to denote its smallest eigenvalue. We use to denote the standard Euclidean inner product between two vectors or matrices. We let and denote standard Big-O and Big-Omega notations, only hiding constants. In this paper we will use and to denote constants. The specific value can be different from line to line.
2 Activation Function
We use to denote the activation function. In this paper we impose some technical conditions on the activation function. The guiding example is softplus: .
These two conditions will be used to show the stability of the training process. Note for softplus both Lipschitz constant and smoothness constant are . In this paper, we view all activation function related parameters as constants.
is analytic and is not a polynomial function.
This assumption is used to guarantee the positive-definiteness of certain Gram matrices which we will define later. Softplus function satisfies this assumption by definition.
3 Problem Setup
In this paper, we focus on the empirical risk minimization problem with the quadratic loss function
where are the training inputs, are the labels, is the parameter we optimize over and is the prediction function, which in our case is a neural network. We consider the following architectures.
ResNetWe will refer to this architecture as ResNet, although this differs by the standard ResNet architecture since the skip-connections at every layer, instead of every two layers. This architecture was previously studied in (Hardt & Ma, 2016). We study this architecture for the ease of presentation and analysis. It is not hard to generalize our analysis to architectures with skip-connections are every two or more layers. : We use the same notations as the multilayer fully connected neural networks. We define the prediction recursively.
where is a small constant. Note here we use a scaling. This scaling plays an important role in guaranteeing the width per layer only needs to scale polynomially with . In practice, the small scaling is enforced by a small initialization of the residual connection (Hardt & Ma, 2016; Zhang et al., 2019), which obtains state-of-the-art performance for deep residual networks. We choose to use an explicit scaling, instead of altering the initialization scheme for notational convenience.
Convolutional ResNet: Lastly, we consider the convolutional ResNet architecture. Again we define the prediction function in a recursive way.
where we let , i.e., zero-padding. Note this operator has the property
Note here we use the similar scaling as ResNet.
To learn the deep neural network, we consider the randomly initialized gradient descent algorithm to find the global minimizer of the empirical loss (1). Specifically, we use the following random initialization scheme. For every level , each entry is sampled from a standard Gaussian distribution, and each entry of the output layer is also sampled from . In this paper, we train all layers by gradient descent, for and
Technique Overview
In this section, we describe our main idea of proving the global convergence of gradient descent. Our proof technique is inspired by Du et al. (2018b) who proposed to study the dynamics of differences between labels and predictions. Here the individual prediction at the -th iteration is
For this linear dynamics, using standard analysis technique for power method, one can show converges to where the rate is determined by the least eigenvalue of and the step size .
We leverage this insight to our deep neural network setting. Again we consider the sequence , which admits the dynamics
While following the similar high-level analysis framework proposed by Du et al. (2018b), analyzing the convergence of gradient descent for deep neural network is significantly more involved and requires new technical tools. To show is close to , we have two steps. First, we show in the initialization phase is close to . Second, we show during training is close to for . Below we give overviews of these two steps.
Unlike (Du et al., 2018b) in which they showed is close to via a simple concentration inequality, showing is close to requires more subtle calculations. First, as will be clear in the following sections, is a recursively defined matrix. Therefore, we need to analyze how the perturbation (due to randomness of initialization and finite ) from lower layers propagates to the -th layer. Second, this perturbation propagation involves non-linear operations due to the activation function. To quantitatively characterize this perturbation propagation dynamics, we use induction and leverage techniques from Malliavin calculus (Malliavin, 1995). We derive a general framework that allows us to analyze the initialization behavior for the fully-connected neural network, ResNet, convolutional ResNet and other potential neural network architectures in a unified way.
One important finding in our analysis is that ResNet architecture makes the “perturbation propagation” more stable. The high level intuition is the following. For fully connected neural network, suppose we have some perturbation in the first layer. This perturbation propagates to the -th layer admits the form
Therefore, we need to have and this makes have exponential dependency on .We not mean to imply that fully-connected networks necessarily depend exponentially on , but simply to illustrate in our analysis why the exponential dependence arises. For specific activations such as ReLU and careful initialization schemes, this exponential dependence may be avoided.
On the other hand, for ResNet the perturbation propagation admits the form
Therefore we do not have the exponential explosion problem for ResNet. We refer readers to Section E for details.
Analysis of Perturbation of During Training
The next step is to show is close to for . Note depends on weight matrices from all layers, so to establish that is close to , we need to show is small for all and is small.
In the two-layer neural network setting (Du et al., 2018b), they are able to show every weight vector of the first layer is close to its initialization, i.e., is small for . While establishing this condition for two-layer neural network is not hard, this condition may not hold for multi-layer neural networks. In this paper, we show instead, the averaged Frobenius norm
Similar to the analysis in the initialization, showing Equation (6) is small is highly involved because again, we need to analyze how the perturbation propagates. We develop a unified proof strategy for the fully-connected neural network, ResNet and convolutional ResNet. Our analysis in this step again sheds light on the benefit of using ResNet architecture for training. The high-level intuition is similar to Equation (5). See Section B, C, and D for details.
Warm Up: Convergence Result of GD for Deep Fully-connected Neural Networks
In this section, as a warm up, we show gradient descent with a constant positive step size converges to the global minimum at a linear rate. As we discussed in Section 4, the convergence rate depends on least eigenvalue of the Gram matrix .
The Gram matrix is recursively defined as follows, for , and
The derivation of this Gram matrix is deferred to Section E. The convergence rate and the amount of over-parameterization depends on the least eigenvalue of this Gram matrix. In Section F.1 we show as long as the input training data is not degenerate, then is strictly positive. We remark that if , then is the same the Gram matrix defined in (Du et al., 2018b).
Now we are ready to state our main convergence result of gradient descent for deep fully-connected neural networks.
Assume for all , , and the number of hidden nodes per layer
where is defined in Equation (7). If we set the step size
then with probability at least over the random initialization the loss, for , the loss at each iteration satisfies
Note the requirement of has three terms. The first term is used to show the Gram matrix is stable during training. The second term is used to guarantee the output in each layer is approximately normalized at the initialization phase. The third term is used to show the perturbation of Gram matrix at the initialization phase is small. See Section B for proofs.
The convergence rate depends step size and , similar to (Du et al., 2018b). Here we require . When , this requirement is the same as the one used in (Du et al., 2018b). However, for deep fully-connected neural network, we require to be exponentially small in terms of number of layers. The reason is similar to that we require to be exponentially large. Again, this will be improved in the next section.
Convergence Result of GD for ResNet
In this section we consider the convergence of gradient descent for training a ResNet. We will focus on how much over-parameterization is needed to ensure the global convergence of gradient descent and compare it with fully-connected neural networks. Again we first define the key Gram matrix whose least eigenvalue will determine the convergence rate.
The Gram matrix is recursively defined as follows, for and :
Comparing of the ResNet and the one of the fully-connect neural network, the definition of also depends on a series of . This dependency is comes from the skip connection block in the ResNet architecture. See Section E. In Section F.2, we show as long as the input training data is not degenerate, then is strictly positive. Furthermore, does not depend inversely exponentially in .
Now we are ready to state our main theorem for ResNet.
Assume for all , , and the number of hidden nodes per layer
If we set the step size , then with probability at least over the random initialization we have for
In sharp contrast to Theorem 5.1, this theorem is fully polynomial in the sense that both the number of neurons and the convergence rate is polynomially in and . Note the amount of over-parameterization depends on which is the smallest eigenvalue of the -th layer’s Gram matrix. The main reason that we do not have any exponential factor here is that the skip connection block makes the overall architecture more stable in both the initialization phase and the training phase.
Note the requirement on has terms. The first two terms are used to show the Gram matrix stable during training. The third term is used to guarantee the output in each layer is approximately normalized at the initialization phase. The fourth term is used to show bound the size of the perturbation of the Gram matrix at the initialization phase. See Section C for details.
Convergence Result of GD for Convolutional ResNet
In this section we generalize the convergence result of gradient descent for ResNet to convolutional ResNet. Again, we focus on how much over-parameterization is needed to ensure the global convergence of gradient descent. Similar to previous sections, we first define the for this architecture.
The Gram matrix is recursively defined as follows, for , and ,
where and are both random row vectors and D_{l}^{(h)}\triangleq\{s:\mathbf{x}^{(h-1)}_{:,s}\in\text{thel^{th}patch}\}.
Note here has dimension for and denotes the -th entry.
Now we state our main convergence theorem for the convolutional ResNet.
Assume for all , , and the number of hidden nodes per layer
Conclusion
In this paper, we show that gradient descent on deep overparametrized networks can obtain zero training loss. Our proof builds on a careful analysis of the random initialization scheme and a perturbation analysis which shows that the Gram matrix is increasingly stable under overparametrization. These techniques allow us to show that every step of gradient descent decreases the loss at a geometric rate.
We list some directions for future research:
The current paper focuses on the training loss, but does not address the test loss. It would be an important problem to show that gradient descent can also find solutions of low test loss. In particular, existing work only demonstrate that gradient descent works under the same situations as kernel methods and random feature methods (Daniely, 2017; Li & Liang, 2018; Allen-Zhu et al., 2018a; Arora et al., 2019). To further investigate of generalization behavior, we believe some algorithm-dependent analyses may be useful (Hardt et al., 2016; Mou et al., 2018; Chen et al., 2018).
The width of the layers is polynomial in all the parameters for the ResNet architecture, but still very large. Realistic networks have number of parameters, not width, a large constant multiple of . We consider improving the analysis to cover commonly utilized networks an important open problem.
The current analysis is for gradient descent, instead of stochastic gradient descent. We believe the analysis can be extended to stochastic gradient, while maintaining the linear convergence rate.
The convergence rate can be potentially improved if the minimum eigenvalue takes into account the contribution of all Gram matrices, but this would considerably complicate the initialization and perturbation analysis.
Acknowledgments
We thank Lijie Chen and Ruosong Wang for useful discussions. SSD acknowledges support from AFRL grant FA8750-17-2-0212 and DARPA D17AP00001. JDL acknowledges support of the ARO under MURI Award W911NF-11-1-0303. This is part of the collaboration between US DOD, UK MOD and UK Engineering and Physical Research Council (EPSRC) under the Multidisciplinary University Research Initiative. HL and LW acknowlege support from National Basic Research Program of China (973 Program) (grant no. 2015CB352502), NSFC (61573026) and BJNSF (L172037). Part of the work is done while SSD was visiting Simons Institute.
References
Appendix A Proof Sketch
Our proof is by induction. Our induction hypothesis is just the following convergence rate of empirical loss.
Note this condition implies the conclusions we want to prove. To prove Condition A.1, we consider one iteration on the loss function.
This equation shows if , the loss decreases. Note both terms involves , which we will carefully analyze. To simplify notations, we define
We look one coordinate of .
Denote and and so . We will show the term, which is proportional to , drives the loss function to decrease and the term, which is a perturbation term but it is proportional to so it is small. We further unpack the term,
According to Section 4, we will only look at matrix which has the following form
Now we analyze . We can write in a more compact form with .
Now recall the progress of loss function in Equation (12):
For the perturbation terms, through standard calculations, we can show both and are proportional to so if we set sufficiently small, this term is smaller than and thus the loss function decreases with a linear rate.
Therefore, to prove the induction hypothesis, it suffices to prove for , where is independent of . To analyze the least eigenvalue, we first look at the initialization. Using assumptions of the population Gram matrix and concentration inequalities, we can show at the beginning , which implies
Now for the -th iteration, by matrix perturbation analysis, we know it is sufficient to show . To do this, we use a similar approach as in (Du et al., 2018b). We show as long as is large enough, every weight matrix is close its initialization in a relative error sense. Ignoring all other parameters except , , and thus the average per-neuron distance from initialization is which tends to zero as increases. See Lemma B.5 for precise statements with all the dependencies.
This fact in turn shows is small. The main difference from (Du et al., 2018b) is that we are considering deep neural networks, and when translating the small deviation, to , there is an amplification factor which depends on the neural network architecture.
For deep fully connected neural networks, we show this amplification factor is exponential in . On the other hand, for ResNet and convolutional ResNet we show this amplification factor is only polynomial in . We further show the width required is proportional to this amplification factor.
Appendix B Proofs for Section 5
We first derive the formula of the gradient for the multilayer fully connected neural network
are the derivative matrices induced by the activation function and
is the output of the -th layer.
Through standard calculation, we can get the expression of of the following form
We first present a lemma which shows with high probability the feature of each layer is approximately normalized.
If is Lipschitz and , where , then with probability at least over random initialization, for every and , we have
We follow the proof sketch described in Section A. We first analyze the spectral property of at the initialization phase. The following lemma lower bounds its least eigenvalue. This lemma is a direct consequence of results in Section E.
If , we have
Now we proceed to analyze the training process. We prove the following lemma which characterizes how the perturbation from weight matrices propagates to the input of each layer. This Lemma is used to prove the subsequent lemmas.
Suppose for every , , and for some constant and . If is Lipschitz, we have
where .
Here the assumption of can be shown using Lemma G.2 and taking union bound over , where is a universal constant. Next, we show with high probability over random initialization, perturbation in weight matrices leads to small perturbation in the Gram matrix.
Suppose is Lipschitz and smooth. Suppose for , , , , , if where and for some small constant and , we have
Here the assumption of , can be easily obtained using standard concentration inequalities, where and are both universal constants. The following lemma shows if the induction holds, we have every weight matrix close to its initialization.
If Condition A.1 holds for , we have for any
where for some small constant with and
Now we proceed to analyze the perturbation terms.
If Condition A.1 holds for , suppose for some small constant , we have
If Condition A.1 holds for , suppose for some small constant , then we have .
We now proceed with the proof of Theorem 5.1. By induction, we assume Condition A.1 for all . Using Lemma B.5, this establishes
By Lemma B.4, this establishes .
With these estimates in hand, we are ready to prove the induction hypothesis of Condition A.1.
The first inequality drops the positive terms . The second inequality uses the argument above that establishes . The third inequality uses Lemmas B.6 and B.7.
We will bound by induction on layers. The induction hypothesis is that with probability at least over , for every , . Note that it is true for . We calculate the expectation of over the randomness from . Recall
Note that is Lipschitz, for any , we have
where , which implies
where and the last inequality we used the formula for the first four absolute moments of Gaussian.
Applying Chebyshev’s inequality and plugging in our assumption on , we have with probability over ,
Thus with probability over ,
Using union bounds over , we prove the lemma. ∎
We prove this lemma by induction. Our induction hypothesis is
For , since the input data is fixed, we know the induction hypothesis holds. Now suppose the induction hypothesis holds for , we consider .
Because Frobenius-norm of a matrix is bigger than the operator norm, it is sufficient to bound . For simplicity define , we have
For , using Lemma B.3, we have
Using the same proof for Lemma B.3, it is easy to see
Plugging in the bound on , we have the desired result.
We will prove this corollary by induction. The induction hypothesis is
First it is easy to see it holds for . Now suppose it holds for , we consider . We have
To bound , we can just apply Lemma B.3 and get
To bound , we use our assumption
Note that . Plugging in these two bounds back, we obtain
Similar to the proof for Lemma B.5, we have
Let ,
Since this holds for all , plugging in and noting that , we have
Appendix C Proofs for Section 6
For ResNets, has the following form:
Similar to Lemma B.1, we can show with high probability the feature of each layer is approximately normalized.
If is Lipschitz and , assuming for and for Gaussian initialization. We have with probability at least over random initialization, for every and ,
for some universal constant (only depends on ).
The following lemma lower bounds ’s least eigenvalue. This lemma is a direct consequence of results in Section E.
If , we have
Next, we characterize how the perturbation on the weight matrices affects the input of each layer.
Suppose is -Lipschitz and for , , and for some constant and . Then we have
Next, we characterize how the perturbation on the weight matrices affect .
Suppose is differentiable, Lipschitz and smooth. Using the same notations in Lemma B.4, if where and for some small constant , we have
We prove Theorem 6.1 by induction. Our induction hypothesis is just the following convergence rate of empirical loss.
A directly corollary of this condition is the following bound of deviation from the initialization. The proof only involves standard calculations so we defer it to appendix.
If Condition A.1 holds for , we have for any
where for some small constant and .
The next lemma bounds the term.
If Condition A.1 holds for and for some small constant , we have
If Condition A.1 holds for and for some small constant , we have .
Now using the same argument as in the proof for multilayer fully connected neural network, we finish our proof for ResNet.
We will bound layer by layer. For the first layer, we can calculate
where . We have with probability at least ,
By definition we have for ,
Choosing and using union bounds over , we prove the lemma.
We prove this lemma by induction. Our induction hypothesis is
which implies , for , we have
Lastly, simple calculations show .
Similar to the proof of Lemma B.4, we can obtain
For , using Lemma C.3, we have
where . To bound , we have
Using the same proof for Lemma C.3, it is easy to see
The bound of is similar to that in Lemma B.4,
Plugging in the bound on , we have the desired result.
We will prove this corollary by induction. The induction hypothesis is
First it is easy to see it holds for . Now suppose it holds for , we consider . Similar to Lemma B.5, we have
Similar to Lemma B.6, we first bound the gradient norm.
We have bounded the RHS in the proof for Lemma C.5, thus
Let , we have
where . According to Lemma G.1, we have
where we used the bound of and that ,. ∎
Appendix D Proofs for Section 7
For CNN, denote , has the following form:
Similar to Lemma B.1, we can show with high probability the feature of each layer is approximately normalized.
If is Lipschitz and , assuming for , we have with probability at least over random initialization, for every and ,
The following lemma lower bounds ’s least eigenvalue. This lemma is a direct consequence of results in Section E.
If , we have
Next, we prove the following lemma which characterizes how the perturbation from weight matrices propagates to the input of each layer.
Suppose is Lipschitz and for , , and for some constant and . Then we have
Next, we show with high probability over random initialization, perturbation in weight matrices leads to small perturbation in the Gram matrix.
Suppose is differentaible, Lipschitz and smooth. Using the same notations in Lemma B.4, if and for any , where for some small constant , we have
If Condition A.1 holds for , we have for any
where for some small constant and
The follow lemma bounds the norm of .
If Condition A.1 holds for and for some small constant , we have
If Condition A.1 holds for and for some small constant , we have .
Now using the same argument as in the proof for multilayer fully connected neural network, we finish our proof for CNN.
We will bound layer by layer. For the first layer, we can calculate
where the inequality we use the definition of and the fact that there must exist such that . For the variance,
where . We have with probability at least ,
By defination we have for
Choosing and using union bounds over , we prove the lemma.
We prove this lemma by induction. Our induction hypothesis is
which implies , for , we have
Lastly, simple calculations show .
Similar to Lemma C.4, define , we have
For , using Lemma D.3, we have
where . To bound , we have
Using the same proof for Lemma D.3, it is easy to see
Plugging in the bound on , we have the desired result. ∎
We will prove this corollary by induction. The induction hypothesis is
First it is easy to see it holds for . Now suppose it holds for , we consider . Similar to Lemma B.5, we have
where denotes the operator norm. Similarly, we have
Let ,similar to the proof of Lemma B.6, we have
where we used the bound of and that . ∎
Appendix E Analysis of Random Initialization
In this section we provide a self-contained framework to analyze the Gram matrix at the initialization phase. There are two main objectives. First, we provide the expression of the Gram matrix as , i.e., the population Gram matrix. Second, we quantitatively study how much over-parameterization is needed to ensure the Gram matrix generated by the random initialization. The bound will depend on number of samples and properties of the activation function. This analysis framework is fully general that it can explain fully connected neural network, ResNet, convolutional neural considered in this paper and other neural network architectures that satisfy the general setup defined below.
We begin with some notations. Suppose that we have a sequence of real vector spaces
For fully-connected neural network and ResNet, . For convolutional neural network, is the number of patches of the -th layer.
For convolutional neural network, the dimension of is the filter size.
For full-connected neural networks, we take to be the zero mapping. For ResNet and convolutional ResNet, we take to be the identity mapping.
Now we recursively define the output of each layer in this setup. In the following, we use to index layers, to index data points, or to index channels (for CNN) or weight vectors (for fully connected neural networks or ResNet).
for fully connected neural network and ResNet and for convolutional neural network because represents the number of input channels.
We denote an -dimensional vector which is the output at -th layer. We have the following recursive formula
where is matrix generated according to the following rule
for , is defined for and ; for , is defined for and ;
the set of random variables are independently generated;
for fixed , .
Choosing to be and to be the zero mapping, we recover the fully-connected architecture. Choosing to be and to be the identity mapping, we recover ResNet architecture.
Note here for and for in the main text. We change the scaling here to simplify the calculation of expectation and the covariance in this section.
With these notations, we first define the population Gram matrices recursively.
We fix , for . The population Gram matrices are defined according to the following formula
Notice that the Gram matrix of the next layer not only depends on the previous layer’s Gram matrix but also depends on a “bias” term .
Given the population Gram matrices defined in Equation (16) and (17), we derive the following quantitative bounds which characterizes how much over-parameterization, i.e., how large is needed to ensure the randomly generated Gram matrices is close to the population Gram matrices.
With probability over the , for any
and any
The error constant satisfies there exists an absolute constant such that
where are defined by:
,
,
,
is a constant that only depends on ,
.
For fully-connected neural networks, we have , so we need . For ResNet, we have , so we need . The convolutional ResNet has the same parameters as ResNet but because the Gram matrix is , so we need .
The proof is by induction. For the base case, , recall
By our generating process of , the collection is a mean-zero Gaussian variable with covariance matrix:
Now we have calculated the expectation. Note since inside the expectation is an average, we can apply standard standard Bernstein bounds and Hoeffding bound and obtain the following concentration inequalities. With probability at least , we have
Now we prove the induction step. Define for
Now suppose that Equation (18) and (19) hold for with probability at least , now we want to show the equations holds for with probability at least conditioned on previous layers satisfying Equation (18) and (19). Let . recall
Again note that is a collection of mean-zero Gaussian variables with covariance matrix:
Now we get the following formula for the expectation:
Same as the base case, applying concentration inequalities, we have with probability at least ,
which determine how the error propagates through layers.
Putting these estimates together, we have
Recall defined in Equation (7), (8) and (10). Note the definition of is qualitatively different from that of for because depends on and instead of . Therefore, we take special care of . Further note for our three architectures have the same form and only differ in scaling and dimension, so we will only prove the bound for the fully-connected architecture. The generalization to ResNet and convolutional ResNet is straightforward.
and suppose for some small constant . Then if , we have with probability at least over and , we have .
Recall defined in Equation (13). Based on its expression, it is straightforward to use concentration inequality to show if , we have
Recall and let .
According to Lemma G.4 (viewing as the in Lemma G.4), we know
for some constant . Since is small enough, we directly have
Combing Theorem E.1, Lemma E.1 and standard matrix perturbation bound directly have Lemma B.2. Similarly we can prove Lemma C.2 and Lemma D.2.
In this section we show as long as no two input vectors are parallel, then defined in Equation (8) is strictly positive definite.
Assume satisfies Condition 3.2 and for any , . Then we have where is defined in Equation (7).
By our assumption on the data point and using Lemma F.1 we know is strictly positive definite.
By letting , where . We then use Lemma F.1 inductively for times to conclude is strictly positive definite. Lastly we use Lemma F.2 to finish the proof. ∎
Assume is analytic and not a polynomial function. Consider data of non-parallel points (meaning for all ). Define
The feature map induced by the kernel is given by . To show that is strictly positive definite, we need to show are linearly independent functions. Assume that there are such that
We wish to show that . Differentiating the above equation times with respect to , we have
Using Lemma G.6, we know are linearly independent. Therefore, we must have for all . Now choosing a such that for all (such exists because of our assumption on ), we have for all . ∎
Assume is analytic and not a polynomial function. Consider data of non-parallel points (meaning for all ). Define
The feature map induced by the kernel is given by . To show that is strictly positive definite, we need to show are linearly independent functions. Assume that there are such that
We wish to show that . Differentiating the above equation times with respect to , we have
Using Lemma G.6, we know are linearly independent. Therefore, we must have for all . Now choosing a such that for all (such exists because of our assumption on ), we have for all . ∎
In this section we show as long as no two input vectors are parallel, then defined in Equation (8) is strictly positive definite. Furthermore, does not depend inverse exponentially in .
Assume satisfies Condition 3.2 and for any , . Recall that in Equation (8), we define
where . Then we have , where is a constant that only depends on the activation and the input data. In particular, does not depend on the depth.
First note for all , so it is in a bounded range that does not depend on the depth (c.f. Lemma C.1). Define a function
By Lemma F.3, we know .
If is the identity mapping defined in Section E, then \lambda\left(\mathbf{K}^{(H)}\right)\geq\min_{(i,j)\in[n]\times[n]}\lambda_{\min}\left(\begin{array}[]{ccc}\mathbf{K}^{(0)}_{ii}&\mathbf{K}^{(0)}_{ij}\\ \mathbf{K}^{(0)}_{ji}&\mathbf{K}^{(0)}_{jj}\\ \end{array}\right).
For ResNet, is the identity mapping so we have
Appendix G Useful Technical Lemmas
Given a set of matrices , if , and , we have
where is a constant.
The lemma is a consequence of well-known deviations bounds concerning the singular values of Gaussian random matrices (Vershynin, 2010)
Choosing , we prove the lemma. ∎
for some constant that depends only on and the constants in Condition 3.1.
We compute for any
Applying Taylor’s Theorem we finish the proof. ∎
Assume satisfies Condition 3.1. Suppose that there exists some constant such that , , , , ,
for some constant that depends only on and the constants in Condition 3.1.
Let with , and . We can express
Recall is the Gaussian function space. We compute
Note by Condition 3.1 we know there exists , and such that \big{|}\frac{dF}{d\rho}\big{|}\leq B_{\rho},\big{|}\frac{dF}{da}\big{|}\leq B_{a}, and \big{|}\frac{dF}{db}\big{|}\leq B_{b}.
Next, we bound . We see that
We can easily verify that , and so we have
Define . This establishes for some constant . Thus by Taylor’s Theorem, we have
With Lemma G.3 and G.4, we can prove the following useful lemma.
Then for any two positive definite matrices with for some constant , we have
The result follows by applying Lemma G.3 to all coordiniates and applying Lemma G.4 to all submatrices. ∎
Note by induction hypothesis any size subset of is linearly independent. This implies if for some and , then we must have for all . Combining this observation with the assumption that every is non-zero, there must exist such that for all . Without loss of generality, we assume for all .
Next, note if there exists , then we have for all because for all and the linear independence induction hypothesis. Therefore from now on we assume for all .
By multiplying the second equation by and subtracting,
Using the linear independence induction hypothesis, we know for :
Note this implies all , are on the same line. This contradicts with the non-parallel assumption. ∎