Stochastic Gradient Descent Optimizes Over-parameterized Deep ReLU Networks
Difan Zou, Yuan Cao, Dongruo Zhou, Quanquan Gu
Introduction
Deep neural networks have achieved great success in many applications like image processing (Krizhevsky et al., 2012), speech recognition (Hinton et al., 2012) and Go games (Silver et al., 2016). However, the reason why deep networks work well in these fields remains a mystery for long time. Different lines of research try to understand the mechanism of deep neural networks from different aspects. For example, a series of work tries to understand how the expressive power of deep neural networks are related to their architecture, including the width of each layer and depth of the network (Telgarsky, 2015, 2016; Lu et al., 2017; Liang and Srikant, 2016; Yarotsky, 2017, 2018; Hanin, 2017; Hanin and Sellke, 2017). These work shows that multi-layer networks with wide layers can approximate arbitrary continuous function.
In this paper, we mainly focus on the optimization perspective of deep neural networks. It is well known that without any additional assumption, even training a shallow neural network is an NP-hard problem (Blum and Rivest, 1989). Researchers have made various assumptions to get a better theoretical understanding of training neural networks, such as Gaussian input assumption (Brutzkus et al., 2017; Du et al., 2017a; Zhong et al., 2017) and independent activation assumption (Choromanska et al., 2015; Kawaguchi, 2016). A recent line of work tries to understand the optimization process of training deep neural networks from two aspects: over-parameterization and random weight initialization. It has been observed that over-parameterization and proper random initialization can help the optimization in training neural networks, and various theoretical results have been established (Safran and Shamir, 2017; Du and Lee, 2018; Arora et al., 2018a; Allen-Zhu et al., 2018c; Du et al., 2018b; Li and Liang, 2018). More specifically, Safran and Shamir (2017) showed that over-parameterization can help reduce the spurious local minima in one-hidden-layer neural networks with Rectified Linear Unit (ReLU) activation function. Du and Lee (2018) showed that with over-parameterization, all local minima in one-hidden-layer networks with quardratic activation function are global minima. Arora et al. (2018b) showed that over-parameterization introduced by depth can accelerate the training process using gradient descent (GD). Allen-Zhu et al. (2018c) showed that with over-parameterization and random weight initialization, both gradient descent and stochastic gradient descent (SGD) can find the global minima of recurrent neural networks.
In this paper, we aim to advance this line of research by studying the optimization properties of gradient-based methods for deep ReLU neural networks. In specific, we consider an -hidden-layer fully-connected neural network with ReLU activation function. Similar to the one-hidden-layer case studied in Li and Liang (2018) and Du et al. (2018b), we study binary classification problem and show that both GD and SGD can achieve global minima of the training loss for any , with the aid of over-parameterization and random initialization. At the core of our analysis is to show that Gaussian random initialization followed by (stochastic) gradient descent generates a sequence of iterates within a small perturbation region centering around the initial weights. In addition, we will show that the empirical loss function of deep ReLU networks has very good local curvature properties inside the perturbation region, which guarantees the global convergence of (stochastic) gradient descent. More specifically, our main contributions are summarized as follows:
We show that with Gaussian random initialization on each layer, when the number of hidden nodes per layer is at least \widetilde{\Omega}\big{(}\text{poly}(n,\phi^{-1},L)\big{)}, GD can achieve zero training error within \widetilde{O}\big{(}\text{poly}(n,\phi^{-1},L)\big{)} iterations, where is the data separation distance, is the number of training examples, and is the number of hidden layers. Our result can be applied to a broad family of loss functions, as opposed to cross entropy loss studied in Li and Liang (2018) and quadratic loss considered in Du et al. (2018b).
We also prove a similar convergence result for SGD. We show that with Gaussian random initialization on each layer, when the number of hidden nodes per layer is at least \widetilde{\Omega}\big{(}\text{poly}(n,\phi^{-1},L)\big{)}, SGD can also achieve zero training error within \widetilde{O}\big{(}\text{poly}(n,\phi^{-1},L)\big{)} iterations.
In terms of data distribution, we only make the so-called data separation assumption, which is more realistic than the assumption on the gram matrix made in Du et al. (2018b). The data separation assumption in this work is similar, but slightly milder, than that in Li and Yuan (2017) in the sense that it holds as long as the data are sampled from a distribution with a constant margin separating different classes.
When we were preparing this manuscript, we were informed that two concurrent work (Allen-Zhu et al., 2018b; Du et al., 2018a) has appeared on-line very recently. Our work bears a similarity to Allen-Zhu et al. (2018b) in the high-level proof idea, which is to extend the results for two-layer ReLU networks in Li and Liang (2018) to deep ReLU networks. However, while Allen-Zhu et al. (2018b) mainly focuses on the regression problems with least square loss, we study the classification problems for a broad class of loss functions based on a milder data distribution assumption. Du et al. (2018a) also studies the regression problem. Compared to their work, our work is based on a different assumption on the training data and is able to deal with the nonsmooth ReLU activation function.
The remainder of this paper is organized as follows: In Section 2, we discuss the literature that are most related to our work. In Section 3, we introduce the problem setup and preliminaries of our work. In Sections 4 and 5, we present our main theoretical results and their proofs respectively. We conclude our work and discuss some future work in Section 6.
Related Work
Due to the huge amount of literature on deep learning theory, we are not able to include all papers in this big vein here. Instead, we review the following three major lines of research, which are most related to our work.
One-hidden-layer neural networks with ground truth parameters Recently a series of work (Tian, 2017; Brutzkus and Globerson, 2017; Li and Yuan, 2017; Du et al., 2017a, b; Zhang et al., 2018) study a specific class of shallow two-layer (one-hidden-layer) neural networks, whose training data are generated by a ground truth network called “teacher network”. This series of work aim to provide recovery guarantee for gradient-based methods to learn the teacher networks based on either the population or empirical loss functions. More specifically, Tian (2017) proved that for two-layer ReLU networks with only one hidden neuron, GD with arbitrary initialization on the population loss is able to recover the hidden teacher network. Brutzkus and Globerson (2017) proved that GD can learn the true parameters of a two-layer network with a convolution filter. Li and Yuan (2017) proved that SGD can recover the underlying parameters of a two-layer residual network in polynomial time. Moreover, Du et al. (2017a, b) proved that both GD and SGD can recover the teacher network of a two-layer CNN with ReLU activation function. Zhang et al. (2018) showed that GD on the empirical loss function can recover the ground truth parameters of one-hidden-layer ReLU networks at a linear rate.
Deep linear networks Beyond shallow one-hidden-layer neural networks, a series of recent work (Hardt and Ma, 2016; Kawaguchi, 2016; Bartlett et al., 2018; Arora et al., 2018a, b) focus on the optimization landscape of deep linear networks. More specifically, Hardt and Ma (2016) showed that deep linear residual networks have no spurious local minima. Kawaguchi (2016) proved that all local minima are global minima in deep linear networks. Arora et al. (2018b) showed that depth can accelerate the optimization of deep linear networks. Bartlett et al. (2018) proved that with identity initialization and proper regularizer, GD can converge to the least square solution on a residual linear network with quadratic loss function, while Arora et al. (2018a) proved the same properties for general deep linear networks.
Generalization bounds for deep neural networks The phenomenon that deep neural networks generalize better than shallow neural networks have been observed in practice for a long time (Langford and Caruana, 2002). Besides classical VC-dimension based results (Vapnik, 2013; Anthony and Bartlett, 2009), a vast literature have recently studied the connection between the generalization performance of deep neural networks and their architectures (Neyshabur et al., 2015, 2017a, 2017b; Bartlett et al., 2017; Golowich et al., 2017; Arora et al., 2018c; Allen-Zhu et al., 2018a). More specifically, Neyshabur et al. (2015) derived Rademacher complexity for a class of norm-constrained feed-forward neural networks with ReLU activation function. Bartlett et al. (2017) derived margin bounds for deep ReLU networks based on Rademacher complexity and covering number. Neyshabur et al. (2017a, b) also derived similar spectrally-normalized margin bounds for deep neural networks with ReLU activation function using PAC-Bayes approach. Golowich et al. (2017) studied size-independent sample complexity of deep neural networks and showed that the sample complexity can be independent of both depth and width under additional assumptions. Arora et al. (2018c) proved generalization bounds via compression-based framework. Allen-Zhu et al. (2018a) showed that an over-parameterized one-hidden-layer neural network can learn a one-hidden-layer neural network with fewer parameters using SGD up to a small generalization error, while similar results also hold for over-parameterized two-hidden-layer neural networks.
Problem Setup and Preliminaries
2 Problem Setup
where is a positive constant. Note that can be .
This assumption holds for a large class of loss functions including hinge loss, cross-entropy loss and exponential loss. It is worthy noting that when and , this reduces to Polyak-Łukojasiewicz (PL) condition (Polyak, 1963).
In addition, we make the following assumptions on the training data.
and for all , where is a constant.
As is shown in the assumption above, the last entry of input is considered to be a constant , which introduces the bias term in the input layer of the network.
For all , if , then for some .
Assumption 3.5 is a weaker version of Assumption 2.1 in Allen-Zhu et al. (2018b), which assumes that every two different data points are separated by a constant. In comparison, Assumption 3.5 only requires that inputs with different labels are separated, which is a much more practical assumption since it holds for all data distributions with margin , while the data separation distance in Allen-Zhu et al. (2018b) is usually dependent on the sample size when the examples are generated independently.
Define , . We assume that .
Assumption 3.6 states that the number of nodes at all layers are of the same order. The constant is not essential and can be replaced with an arbitrary constant greater than or equal to .
3 Optimization Algorithms
In this paper, we consider training a deep neural network with Gaussian initialization followed by gradient descent/stochastic gradient descent.
Gaussian initialization. We say that the weight matrices are generated from Gaussian initialization if each column of is generated independently from the Gaussian distribution for all .
Gradient descent. We consider solving the empirical risk minimization problem (3.4) with gradient descent with Gaussian initialization: let be weight matrices generated from Gaussian initialization, we consider the following gradient descent update rule:
where is the step size (a.k.a., learning rate).
Stochastic gradient descent. We also consider solving (3.4) using stochastic gradient descent with Gaussian initialization. Again, let be generated from Gaussian initialization. At the -th iteration, a minibatch of training examples with batch size is sampled from the training set, and the stochastic gradient is calculated as follows:
The update rule for stochastic gradient descent is then defined as follows:
4 Preliminaries
Here we briefly introduce some useful notations and provide some basic calculations regarding the neural network under our setting.
Output after the -th layer: Given an input , the output of the neural network after the -th layer is
Output of the neural network: The output of the neural network with input is as follows:
where we define and the last equality holds for any .
Gradient of the neural network: The partial gradient of the training loss with respect to is as follows:
Main Theory
In this section, we show that with random Gaussian initialization, over-parameterization helps gradient based algorithms, including gradient descent and stochastic gradient descent, converge to the global minimum, i.e., find some points with arbitrary small training loss.
We provide the following theorem which characterizes the required numbers of hidden nodes and iterations such that the gradient descent can attain the global minimum of the empirical training loss function.
Suppose are generated by Gaussian initialization. Then under Assumptions 3.1-3.6, if set the step size , the number of hidden nodes per layer
then with high probability, gradient descent can find a point such that .
Theorem 4.1 suggests that the required number of hidden nodes and the number of iterations are both polynomial in the number of training examples , and the separation parameter . This is consistent with the recent work on the global convergence in training neural networks (Li and Yuan, 2017; Du et al., 2018b; Allen-Zhu et al., 2018c; Du et al., 2018a; Allen-Zhu et al., 2018b). Moreover, we prove that the dependence on the number of hidden layers is also polynomial, which is similar to Allen-Zhu et al. (2018b) and strictly better than Du et al. (2018a), where the dependence on is proved to be . Regarding different loss functions (depending on and according to Assumption 3.2), the dependence in ranges from to .
Based on the results in Theorem 4.1, we are able to characterize the required number of hidden nodes per layer that gradient descent can find a point with zero training error in the following corollary.
2 Stochastic Gradient Descent
where is a positive constant and .
Suppose are generated by Gaussian random. Then under Assumptions 3.1-3.6 and 4.4, if the step size , the number of hidden nodes per layer satisfies
then with high probability, stochastic gradient descent can find a point such that .
Similar to gradient descent, the following corollary characterizes the required number of hidden nodes per layer that stochastic gradient descent can achieve zero training error.
Theorem 4.5 suggests that, to find the global minimum, both the required number of hidden nodes and the number of iterations for stochastic gradient descent are also polynomial in , and , which matches the result in Allen-Zhu et al. (2018b) for the regression problem. In addition, as it cannot be directly observed in Corollaries 4.3 and 4.6, we remark here that compared with gradient descent, the required numbers of hidden nodes and iterations of stochastic gradient to achieve zero training error is worse by a factor ranging from to . The detailed comparison can be found in the proofs of Theorems 4.1 and 4.5.
Proof of the Main Theory
In this section, we provide the proof of the main theory, including Theorems 4.1 and 4.5. Our proofs for these two theorems can be decomposed into the following five steps:
We prove the basic properties for Gaussian random matrices in Theorem 5.1, which constitutes a basic structure of the neural network after Gaussian random initialization.
Based on Theorem 5.1, we analyze the effect of -perturbations on Gaussian initialized weight matrices within a perturbation region with radius , and show that the neural network enjoys good local curvature properties in Theorem 5.3.
Based on the assumption that all iterates are within the perturbation region centering at with radius , we establish the convergence results in Lemmas 5.4 and 5.6, and derive conditions on the product of iteration number and step size that guarantees convergence.
We show that as long as the product of iteration number and step size is smaller than some quantity , (stochastic) gradient descent with iterations remains in the perturbation region centering around the Gaussian initialization , which justifies the application of Theorem 5.3 to the iterates of (stochastic) gradient descent.
We finalize the proof by ensuring that (stochastic) gradient descent converges before exceeds by setting on the number of hidden nodes in each layer to be large enough.
The following theorem summarizes some high probability results of neural networks with Gaussian random initialization, which is pivotal to establish the subsequent theoretical analyses.
Suppose that are generated by Gaussian initialization. Then under Assumptions 3.4, 3.5 and 3.6, there exist absolute constants such that for any , and positive integer , as long as
and , with probability at least , all the following results hold:
\big{|}\|\mathbf{x}_{l,i}\|_{2}-1\big{|}\leq\overline{C}^{\prime}L\sqrt{\log(nL/\delta)/m},\|\mathbf{W}_{l}\|_{2}\leq\overline{C}^{\prime} for all and .
\big{\|}\|\mathbf{x}_{l,i}\|_{2}^{-1}\mathbf{x}_{l,i}-\|\mathbf{x}_{l,i^{\prime}}\|_{2}^{-1}\mathbf{x}_{l,i^{\prime}}\big{\|}_{2}\geq\phi/2 for all and such that .
for all .
\big{|}\{j\in[m_{l}]:|\langle\mathbf{w}_{l,j},\mathbf{x}_{l-1,i}\rangle|\leq\beta\}\big{|}\leq 2m_{l}^{3/2}\beta for all and .
\big{\|}\mathbf{W}_{l_{2}}^{\top}\big{(}\prod_{r=l_{1}}^{l_{2}-1}\bm{\Sigma}_{r,i}\mathbf{W}_{r}^{\top}\big{)}\big{\|}_{2}\leq\overline{C}^{\prime}L for all and .
\mathbf{v}^{\top}\big{(}\prod_{r=l}^{L}\bm{\Sigma}_{r,i}\mathbf{W}_{r}^{\top}\big{)}\mathbf{a}\leq\overline{C}^{\prime}L\sqrt{s\log(M)} for all , and all with .
Theorem 5.1 summarizes all the properties we need for Gaussian initialization. In the sequel, we always assume that results (i)-(viii) hold for the Gaussian initialization. The parameters and in Theorem 5.1 are introduced to characterize the activation pattern of the ReLU activation functions in each layer. Their values that directly help the final convergence proof is derived during the proof of Theorem 5.3 as and , where is the perturbation level. Therefore, the condition on the rate of given by (5.1) is satisfied under the final assumptions on given in Theorem 4.1 and Theorem 4.5.
We perform -perturbation on the collection of random matrices with perturbation level , which formulates a perturbation region centering at with radius . Let and be two collections of weight matrices. For , denote , be the output of the -th hidden layer of the ReLU network with input and weight matrices and respectively. Define , and
for all . We summarize their properties in the following theorem.
Suppose that are generated via Gaussian initialization, and all results (i)-(viii) in Theorem 5.1 hold. Let , be perturbed weight matrices satisfying , . Then under Assumptions 3.5 and 3.6, there exist absolute constants , such that as long as , the following results hold:
for all .
for all and .
for all and .
\big{|}\{j\in[m_{L}]:\text{there exists }i\in[n]\mbox{ such that }(\widetilde{\bm{\Sigma}}_{L,i}-\bm{\Sigma}_{L,i})_{jj}\neq 0\}\big{|}\leq\overline{C}nL^{4/3}\tau^{2/3}m_{L}.
\big{\|}\prod_{r=l_{1}}^{l_{2}}\widetilde{\bm{\Sigma}}_{r,i}\widetilde{\mathbf{W}}_{r}^{\top}\big{\|}_{2}\leq\overline{C}L for all .
The squared Frobenius norm of the partial gradient with respect to the weight matrix in the last hidden layer has the following lower bound:
where .
The spectral norms of gradients and stochastic gradients at each layer have the following upper bounds:
where , denotes the minibatch size in SGD.
The gradient lower bound provided in (vii) implies that within the perturbation region, the empirical loss function of deep neural network enjoys good local curvature properties, which play an essential role in the convergence proof of (stochastic) gradient descent. The gradient upper bound in (viii) quantifies how much the weight matrices of the neural network would change during (stochastic) gradient descent, which is utilized to guarantee that the weight matrices won’t escape from the perturbation region during the training process.
We organize our proof as the following three steps: (1) we first assume that during gradient descent, each iterate is in the preset perturbation region centering at with radius , and use the results in Theorem 5.3 to establish the convergence guarantee; (2) we prove the upper bound of the number of iteration such that the distance between the iterate and the initial point does not exceed ; (3) we compute the minimum number of hidden nodes such that gradient descent achieves the target accuracy before exceeding the upper bound derived in step (2).
For step (1), the following lemma provides the convergence guarantee of gradient descent while assuming all iterates are in the preset perturbation region, i.e., for all and .
Suppose that are generated via Gaussian initialization, and all results (i)-(viii) in Theorem 5.1 hold. Under Assumptions 3.1-3.6, if for all and with perturbation level , the step size and
when , then gradient descent is able to find a point such that .
The following lemma provides the upper bound of the iteration number such that the distance between the iterate and the initial point does not exceed the perturbation radius .
Suppose that are generated by Gaussian initialization, and all results (i)-(viii) in Theorem 5.1 hold. Then there exist a constant such for all iteration number and step size satisfying , it holds that for all .
Now we are ready to prove Theorem 4.1 based on Lemmas 5.4 and 5.5.
The proof is straightforward. By Lemma 5.5, it suffices to show that the lower bound of derived in Lemma 5.4 is smaller than , where we plug in the assumption that . Therefore, we can derive the following lower bound on the number of hidden nodes per layer, i.e., :
Moreover, the required number of iterations, i.e., can be directly derived by combining the results of in Lemma 5.4 and the choice of the step size , thus we omit the detail here. ∎
2 Proof of Theorem 4.5
Similar to the proof for gradient descent, we first deliver the following lemma which characterizes the convergence of stochastic gradient descent for the training of ReLU network under the assumption that all iterates are in the preset perturbation region.
Suppose that are generated by Gaussian initialization, and all results (i)-(viii) in Theorem 5.1 hold. Under Assumptions 3.1-3.6 and 4.4, if for all and with perturbation level , the step size , and
when , then stochastic gradient descent is able to find a point such that .
The following lemma provides the upper bound of the iteration number such that the distance between the iterate and the initial point does not exceed the perturbation radius .
Suppose that are generated by Gaussian initialization, and all results (i)-(viii) in Theorem 5.1 hold. If the step size , then there exists with rate when and when such that for all iteration number satisfying , with high probability it holds that for all .
Similar to the proof of Theorem 4.1, the minimum required number of hidden nodes per layer can be derived by setting the lower bound of in Lemma 5.6 to be smaller than when or when . Therefore the minimum required number of hidden nodes per layer satisfies
We now proceed to derive the required iteration numbers. By Lemmas 5.6 and 5.7, we can set the step size to be . Then using the bound of derived in Lemma 5.6, we have
Conclusions and Future Work
In this paper, we studied training deep neural networks by gradient descent and stochastic gradient descent. We proved that both gradient descent and stochastic gradient descent can achieve global minima of over-parameterized deep ReLU networks with random initialization, for a general class of loss functions, with only mild assumption on training data. Our theory sheds light on understanding why stochastic gradient descent can train deep neural networks very well in practice, and paves the way to study the optimization dynamics of training more sophisticated deep neural networks.
In the future, we will sharpen the polynomial dependence of our results on those problem-specific parameters.
Acknowledgment
We would like to thank Spencer Frei for helpful comments on the first version of this paper.
Appendix A Proof of Theorem 5.1
In this section we provide the proof of Theorem 5.1. The bound for given by result (i) in Theorem 5.1 follows from standard results for Gaussian random matrices with independent entries (See Corollary 5.35 in Vershynin (2010)). We split the rest results into several lemmas and prove them separately.
We first give the bound for the norms of the outputs of each layer. Intuitively, since the columns of are sampled independently from , given the output of the previous layer , the expectation of is . Moreover, the ReLU activation function truncates roughly half of the entries of to zero, and therefore should be approximately equal to . This leads to Lemma A.1 and Corollary A.2.
Denote by the -th column of . Suppose that for any , are generated independently from . Then there exists an absolute constant such that for any , as long as , with probability at least ,
for all and .
For any fixed , and , condition on we have . Therefore,
Since and condition on , for some absolute constant , by Bernstein inequality (See Proposition 5.16 in Vershynin (2010)), for any we have
Taking union bound over and gives
The inequality above further implies that if , then with probability at least , we have
for any and , where is an absolute constant. This completes the proof. ∎
Under the same conditions as Lemma A.1, with probability at least ,
where , and is an absolute constant.
The result directly follows by Lemma A.1 and induction. ∎
By Corollary A.2, we can see that the norms of the inputs are roughly preserved after passing through layers in the ReLU neural network with properly scaled Gaussian random weights. We now proceed to show (ii) in Theorem 5.1, which states that the inner product of any two samples, although may not be preserved throughout layers, also share a common upper bound based on the Assumption 3.5. The detailed results are given in Lemmas A.3, A.4 and Corollary A.5 below.
For , it follows by direct calculation that . For , integration by parts gives
For function we have the following expansion:
Therefore when for small enough constant , we have
Combining the obtained rates with (A.1) completes the proof. ∎
Suppose that are generated independently from . Let , . For any fixed , if for some small enough absolute constant , then for any , if for some large enough absolute constant , with probability at least ,
for all , .
We first consider any fixed . Suppose that . If we can show that under this condition, with high probability
then the result of the lemma follows by union bound and induction. Denote
Then by assumption we have . Therefore . It follows by direct calculation that
By Lemma A.3 and the assumption that , we have
Condition on and , by Lemma 5.14 in Vershynin (2010) we have
where is an absolute constant. Therefore if , similar to the proof of Lemma A.1, by Bernstein inequality and union bound, with probability at least we have
where is an absolute constant. Therefore with probability at least we have
By union bound and Lemma A.1, if , for some large enough absolute constant and for some small enough absolute constant , then with probability at least we have
Moreover, by Lemma A.1, with probability at least we have
and therefore with probability at least , we have
Applying union bound and induction over completes the proof. ∎
Under the same conditions in Lemma A.4, with probability at least ,
for all , .
It directly follows by Lemma A.4 and the fact that for . ∎
The following lemma gives the bound of . It relies on the fact that half of the entries of are ’s and the other half are ’s.
Suppose that are generated via Gaussian initialization. Then for any , with probability at least , it holds that
for all , where is an absolute constant.
Apparently, we have for some absolute constant . Therefore by Hoeffding’s inequality and Corollary A.2, with probability at least , it holds that
We now prove (iv) in Theorem 5.1, which characterizes the activation pattern of ReLU networks with a parameter . We summarize the result in Lemma A.7.
For any , if for some large enough constant , then with probability at least , for all and .
For fixed and , define . Note that by Corollary A.2, with probability at least we have . Condition on , we have
Then by Bernstein inequality, with probability at least ,
Applying union bound over , and using the assumption that completes the proof. ∎
We now prove (v)-(vii) in Theorem 5.1. These results together characterize the Lipschitz continuity of the gradients. To show these results, we utilize similar proof technique we used in Lemma A.1 and combine the resulting bound with covering number arguments. The details are given in Lemmas A.8, A.9 and A.10.
For any and , define
If for some absolute constant , then with probability at least we have
for all and , where is an absolute constant.
Denote , and
Let , be -nets covering and respectively. Then by Lemma 5.2 in Vershynin (2010), we have
where and . Therefore, similar to the proof of Lemma A.1 and Corollary A.2, with probability at least we have
for all , where is an absolute constant. Therefore by Assumption 3.6 and the assumption that for some absolute constant , with probability at least , we have
where is an absolute constant. Applying union bound over all and all completes the proof. ∎
For any and , If for some absolute constant , then with probability at least , we have
for all and , where is an absolute constant.
then similar to the proof of Lemma A.8, with probability at least ,
for all , where are absolute constants. For any with at most non-zero entries, there exists such that . Therefore, we have
Since is linear and , we have
where is an absolute constant. Applying union bound over all and all completes the proof. ∎
For any and , define
If for some absolute constant , then with probability at least we have
for all and , where is an absolute constant.
Similar to previous proofs, it can be shown that with probability at least ,
for all , where is an absolute constant. Therefore with probability at least , we have
where is an absolute constant. Applying union bound over all and all completes the proof. ∎
We now prove (viii) in Theorem 5.1. In order to prove this result, we first show that the inner products between normalized hidden layer outputs are lower bounded by a constant related to .
The proof follows by direct calculation. By definition, we have
Suppose that are generated via Gaussian initialization. Let , . For any , if for some large enough absolute constant , then with probability at least ,
for all and all .
We prove the result by induction. Suppose that . Then by Lemma A.11, we have
Condition on and , we have
where are absolute constants. Note that we have . Therefore if for some large enough constant , then by Bernstein inequality, union bound and (i), with probability at least we have
Suppose that are generated via Gaussian initialization. Let , . For any , if for some large enough absolute constant , then with probability at least ,
for all and all .
It directly follows by Lemma A.12 and the fact that for . ∎
where is independent of . We define the following two events based on a parameter :
Moreover, by definition, for any we have
Let . By the assumption that , for any , we have
and if , then
By union bound over , we have
where the last equality follows from the fact that conditioning on event , for all , it holds that . We then consider two cases: and , which occur equally likely conditioning on . Therefore we have
For any and , denote , . We now proceed to give lower bound for . By (A), we have
Note that for all , we have and . Therefore, since , we have
Therefore for all and
We have shown that for all . Therefore we have
Since the inequality above holds for any and , taking infimum gives
where and are absolute constants. This completes the proof. ∎
For any given and with , by Lemma A.14, we have
Let . Then by Bernstein inequality and union bound, with probability at least , we have
where are absolute constants. For any , there exists such that
By (A.7) and (A.8), it is clear that with probability at least , for any , there exist at least nodes on layer that satisfy
Appendix B Proof of Theorem 5.3
It is clear that the bound on can be proved trivially, since by triangle inequality we have for some large enough absolute constant . In the following we directly use this result without referring to Theorem 5.3. Similar to the proof of Theorem 5.1, we split the rest results into the following lemmas and prove them separately.
Suppose that are generated via Gaussian initialization, and all results (i)-(viii) in Theorem 5.1 hold. For , let with , be the perturbed matrices. Let , , be diagonal matrices satisfying and for all , and . If for some small enough absolute constant , then
for any , where is an absolute constant.
Therefore, let , , then we have
For the rest of the proof, we denote by the diagonal matrix with absolute values of elements of on the corresponding entries. For each sequence , denote
When for all , then the bound of is given by (v) in Theorem 5.1. For all the other terms in the expansion, we consider sequences of the form , where
By (vii) in Theorem 5.1, there exists an absolute constant such that with different choices of and have the following bounds:
If , , then .
If , , then
Otherwise, .
For any fixed sequence , let
Then by the discussion above we see that the bound of has a term granted by the matrices of the form . In addition, if , then the bound also has a term with power at least . Note that when , we still have for some absolute constant . Therefore,
Suppose that are generated via Gaussian initialization, and all results (i)-(viii) in Theorem 5.1 hold. For , let with , be the perturbed matrices. Let , , be diagonal matrices satisfying and for all , and . If for some small enough absolute constant , then
The proof is similar to the proof of Lemma B.1. Again, let , , then we have
Similar to the proof of Lemma B.1, we denote by the diagonal matrix with absolute values of elements of on the corresponding entries. For each sequence , denote
When for all , then the bound of m_{L}^{-1/2}\mathbf{v}^{\top}\big{(}\prod_{r=l}^{L}\mathbf{A}_{r,i}\big{)}\mathbf{a} is given by (v) in Theorem 5.1. For all the other terms in the expansion, we consider sequences of the form , where
By (vii) in Theorem 5.1, there exists an absolute constant such that with different choices of and have the following bounds:
If , , then .
If , , then
Otherwise, .
Let Then similar to the proof of Lemma B.1, by (vi) in Theorem 5.1 we have
where is an absolute constant, and
Plugging the bounds of and into (B.1) completes the proof. ∎
The following lemma is inspired by a similar result given by Allen-Zhu et al. (2018b).
Suppose that are generated via Gaussian initialization, and all results (i)-(viii) in Theorem 5.1 hold. Let , be two collections of weight matrices satisfying , . Let and be the binary matrices and hidden layer outputs at the -th layer with parameter matrices respectively. Let be the absolute constants in the bounds of \big{\|}\prod_{r=l_{1}}^{l_{2}}\widetilde{\bm{\Sigma}}_{r,i}\widetilde{\mathbf{W}}_{r}^{\top}\big{\|}_{2}, and , given in Lemma B.1 and (i) in Theorem 5.1 respectively. Then it holds that
,
,
for all and , where and .
For all and , we prove the following stronger results:
We prove the results above by induction in . Suppose that for it holds that
We first prove the bounds for the diagonal matrices. Since , it suffices to show that . We show that . Then the same bound for follows from the exact same proof. To show , it suffices to give upper bound for the number of sign changes between vectors and . We characterize their difference as follows:
Note that we have , and , and by definition we have . Therefore
be the set of indices such that the absolute values of the corresponding entries of are bounded by . Denote
For , we directly use the upper bound given by (iv) in Theorem 5.1. We now focus on the upper bound of . It is clear that if the sign of node changes, we must have
Therefore, we have the following upper bound of :
Setting , we obtain
Now, combining bounds above and the inductive assumption on the bounds of , , we show that . For , we define binary matrix as follows:
It then follows by definition that for all , and
Let be the collections of Gaussian initialized and perturbed weight matrices respectively. Define
Then under the same assumptions as Lemma B.3, it holds that
The result directly follows by the bound of given by Lemma B.3. ∎
Suppose that are generated via Gaussian initialization, and all results (i) to (viii) hold. If \|\widetilde{\mathbf{W}}_{l}-\mathbf{W}_{l}\|_{2}\leq\tau=O\big{(}\phi^{3/2}n^{-3}L^{-2}\big{)} for all , then there exists an absolute constant such that
where denotes the output of the network using the perturbed weight matrices. By (viii) in Theorem 5.1, the inequality
holds for at least nodes, where are positive absolute constants. Moreover, we rewrite the gradient as follows:
According to Lemma B.3, the number of nodes satisfying for at least one is at most , where is an absolute constant. For the rest of the nodes in this layer, we have
where is an absolute constant, the first inequality holds since these nodes satisfy for all , the second inequality follows from Lemma B.3 and triangle inequality. Let
If , there exists an absolute constant such that the following bounds hold on the norm of the partial gradient and stochastic partial gradient :
where , denotes the minibatch size.
where the last inequality follows from the fact that . Moreover, we have the following for :
Similarly, regarding the stochastic gradient , we have
Appendix C Proof of Technical Lemmas in Section 5
Consider two positive constants and . For any , the following inequality holds:
Let be generated via Gaussian random initialization. Let be the -th iterate in the gradient descent. Assume all iterates are in the perturbation region centering at with radius , i.e., holds for any and , where is the maximum iteration number. Assume all results in Theorem 5.3 hold, there exist absolute constants , and such that the following upper and lower bounds on hold:
Then we have the following upper bound on ,
where \Delta_{i}^{(k)}=y_{i}\big{(}\widehat{y}_{i}^{(k+1)}-\widehat{y}_{i}^{(k)}\big{)}. By Lemma C.2, we know that there exist constants and such that
Moreover, using the definition of in Lemma C.2, we have
Then, plugging the above result into (C.1) gives
Note that by Lemma B.5, we know that there exists a constant such that
We only take advantage of the gradient of the weight matrix in the last hidden layer to make loss function decrease. Thus, substituting the above inequality into (C.1), we obtain
According to Assumption 3.2, we know that
Note that , we have the following by plugging the above inequality into (C.6)
When , we have the following by Lemma C.1
Then taking telescope sum over and rearranging terms give
Similarly, taking telescope sum and rearranging terms give
Now we need to guarantee that after gradient descent steps the loss function is smaller than the target accuracy . By (iii), we know that the output is in the order of , which implies that the training loss due to the smoothness assumption. Therefore, by (C.1) and (C.9), we require the following in terms of ,
Here we preserve the parameter since it might take on value . When , we can remove the term in (C.13) since it becomes zero. When , we treat it as a constant of order . This completes the proof.
Appendix D Proof of Lemma 5.5
We prove this lemma by induction. Assume the argument holds for any , thus according to (C.6), we have
for any , where is an absolute constant. Moreover, by Lemma B.6, we have
where is an absolute constant. Therefore, we have
it follows that . This completes the proof. ∎
The following three lemmas are necessary to prove Lemma 5.6.
Let be generated via Gaussian random initialization. Let be the -th iterate in the stochastic gradient descent. Assume there exist two constants satisfying and for some small enough absolute constant such that and hold for any and , where is the maximum iteration number. If , there exist absolute constants , and such that the following upper and lower bounds on hold:
where with denotes the set of minibatch for stochastic gradient calculation in the -th iteration, and
where denotes the stochastic partial gradient with respect to .
Regarding random variables satisfying . Let denote a subset of and , the following holds,
Under Assumptions 4.4, with probability at least , there exists an absolute constant such that the output of the stochastic gradient descent, i.e., , satisfies
By Assumption 3.3, can be upper bounded as follows,
where \widetilde{\Delta}_{i}^{(k)}=y_{i}\big{(}\widehat{y}_{i}^{(k+1)}-\widehat{y}_{i}^{(k)}\big{)}. Then taking expectation conditioning on gives
where is an absolute constant. By Lemma D.2, we have
where the last inequality holds since for any . Plugging this into (D.6), we obtain
Combining (D.7) and (D.1) and then plugging into (D.1), we have
where is an absolute constant, and we use the fact that . By Lemma B.5, there exists a positive constant such that
Therefore, after one-step stochastic gradient descent, we have
Similar to the analysis for gradient descent, we have
where we use the fact that . When , rearranging terms and applying Lemma C.1 give
Then we take telescope sum over on both sides, and obtain
Similar to the proof for gradient descent, when , it is easy to show that
Set the step size and plug the results in Lemma D.3 into (D.10), with probability at least , there exists an absolute constant such that
when . Then it requires to set to make the L.H.S. of the above two inequalities be lower bounded by , where is an absolute constant. Moreover, in order to guarantee that , it suffices to set the quantity as follows,
Similar to the proof of Lemma 5.4, by setting or , we are able to complete the proof.
D.2 Proof of Lemma 5.7
when . We tackle these two cases separately.
Case : Then by Lemma D.3, with probability at least , there exists an absolute constant such that the following holds
Combining with (D.16), the following holds with probability at least
Note that , then we can choose the step size such that the second term on the R.H.S. of (D.2) is upper bounded by . Therefore, with probability at least ,
Since we have , and , holds with probability at least .
Case : By Lemma D.3, with probability at least ,
Combining with (D.17), we can set , and thus
holds with probability at least . Therefore, with probability at least , we have
Now we have proved that with probability at least for one particular . Then take union bound, we have for all with probability at least .
Moreover, when , we have
where is an absolute constant. Then we finalize the proof based on two cases: and . When , since
by induction it is easy to show that there exists such that for any and satisfying , it holds that for any , i.e., is in the preset perturbation region with radius . When , we have , where is an absolute constant. Thus, it can be show that for any and satisfying , we have . This completes the proof. ∎
Appendix E Proof of Auxiliary Lemmas
It is simple to verify that function is concave when . Thus we have
E.2 Proof of Lemma C.2
The upper bound of can be derived straightforwardly. By (ii) in Theorem 5.3, we know that there exists a constant such that
By (viii) in Theorem 5.3, we further have
where is an absolute constant. Therefore, it follows that
where we use the fact that .
In what follows we are going to prove the lower bound of . Based on the definition of , we have
where is an absolute constant and the last inequality follows from (viii) in Theorem 5.3 and (E.1). Moreover, according to Lemma (vi), for any vector with , the following holds,
where is an absolute constant. Then let and apply (E.2), we get the following bound of
where is an absolute constant. Then we pay attention to . Using , we have
We now proceed to bound . Based on Lemma B.6 and (E.1), we have
where is an absolute constant. Moreover, note that holds for all , by (ii) in Theorem 5.3, we have
where the last inequality follows from (iii) in Theorem 5.1, and is an absolute constant. Therefore, by Assumption 3.3, we have
Assume and , plugging the above inequality into (E.2), we obtain
where is an absolute constant. Finally, plugging (E.4), (E.2) and (E.7) into (E.2), we have
Let we complete the proof. ∎
E.3 Proof of Lemma D.1
This lemma can be proved by following the same technique for proving Lemma C.2, while we only need to replace the upper bound of with the stochastic gradient based on (viii) in Theorem 5.3. Since the proof technique of this lemma is essentially identical to that of Lemma C.2, we omit the detail here.
E.4 Proof of Lemma D.2
For random variables , we have
where the last equality is due to the fact that . ∎
E.5 Proof of Lemma D.3
We prove this Lemma by two cases: and .
Using the upper bound of provided in Lemma D.1, we have
where and are absolute constant and the last inequality follows from the fact that for any . Dividing by on both sides and applying Lemma C.1,
Then by Azuma’s inequality, we have with probability at least
Case : Similar to (E.8), we can derive the following upper bound on the difference ,
which leads to following by using inequality ,
Then by Azuma’s inequality, we have with probability at least