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 nn data points, and the neural network has HH layers with width mm. 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 mm on sample size nn, we utilize a smooth activation (e.g. smooth ReLU). For example, our results specialized to depth H=1H=1 improve upon (Du et al., 2018b) in the required amount of overparametrization from m=Ω(n6)m=\Omega\left(n^{6}\right) to m=Ω(n4)m=\Omega\left(n^{4}\right). 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 m≳n30H30log⁡21ϵm\gtrsim n^{30}H^{30}\log^{2}\frac{1}{\epsilon} and for this paper’s Theorem 6.1 is m≳n4H2m\gtrsim n^{4}H^{2}.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 mm that does not depend on the desired accuracy ϵ\epsilon. 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 T≳n6H2log⁡1ϵT\gtrsim n^{6}H^{2}\log\frac{1}{\epsilon} and of Theorem 6.1 is T≳n2log⁡1ϵT\gtrsim n^{2}\log\frac{1}{\epsilon}.

For fully-connected networks, Allen-Zhu et al. (2018c) requires width m≳n30H30log⁡21ϵm\gtrsim n^{30}H^{30}\log^{2}\frac{1}{\epsilon} and iteration complexity T≳n6H2log⁡1ϵT\gtrsim n^{6}H^{2}\log\frac{1}{\epsilon}. Theorem 5.1 requires width m≳n42O(H)m\gtrsim n^{4}2^{O(H)} and iteration complexity T≳n22O(H)log⁡1ϵT\gtrsim n^{2}2^{O(H)}\log\frac{1}{\epsilon}. The primary difference is for very deep fully-connected networks, Allen-Zhu et al. (2018c) has milder dependence on HH, but worse dependence on nn. Commonly used fully-connected networks such as VGG are not extremely deep (H=16H=16), yet the dataset size such as ImageNet (n∼106n\sim 10^{6}) 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 [n]={1,2,…,n}[n]=\{1,2,\ldots,n\}. We use N(0,I)N(\mathbf{0},\mathbf{I}) to denote the standard Gaussian distribution. For a matrix A\mathbf{A}, we use Aij\mathbf{A}_{ij} to denote its (i,j)(i,j)-th entry. We will also use Ai,:\mathbf{A}_{i,:} to denote the ii-th row vector of A\mathbf{A} and define Ai,j:k=(Ai,j,Ai,j+1,⋯ ,Ai,k)\mathbf{A}_{i,j:k}=(\mathbf{A}_{i,j},\mathbf{A}_{i,j+1},\cdots,\mathbf{A}_{i,k}) as part of the vector. Similarly A:,i\mathbf{A}_{:,i} is the ii-th column vector and Aj:k,i\mathbf{A}_{j:k,i} is a part of ii-th column vector. For a vector v\mathbf{v}, we use ∥v∥2\left\|\mathbf{v}\right\|_{2} to denote the Euclidean norm. For a matrix A\mathbf{A} we use ∥A∥F\left\|\mathbf{A}\right\|_{F} to denote the Frobenius norm and ∥A∥2\left\|\mathbf{A}\right\|_{2} to denote the operator norm. If a matrix A\mathbf{A} is positive semi-definite, we use λmin⁡(A)\lambda_{\min}(\mathbf{A}) to denote its smallest eigenvalue. We use ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle to denote the standard Euclidean inner product between two vectors or matrices. We let O(⋅)O(\cdot) and Ω(⋅)\Omega\left(\cdot\right) denote standard Big-O and Big-Omega notations, only hiding constants. In this paper we will use CC and cc to denote constants. The specific value can be different from line to line.

2 Activation Function

We use σ(⋅)\sigma\left(\cdot\right) to denote the activation function. In this paper we impose some technical conditions on the activation function. The guiding example is softplus: σ(z)=log⁡(1+exp⁡(z))\sigma\left(z\right)=\log(1+\exp(z)).

These two conditions will be used to show the stability of the training process. Note for softplus both Lipschitz constant and smoothness constant are 11. In this paper, we view all activation function related parameters as constants.

σ(⋅)\sigma\left(\cdot\right) 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 {xi}i=1n\left\{\mathbf{x}_{i}\right\}_{i=1}^{n} are the training inputs, {yi}i=1n\left\{y_{i}\right\}_{i=1}^{n} are the labels, θ\mathbf{\theta} is the parameter we optimize over and ff 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 0<cres<10<c_{res}<1 is a small constant. Note here we use a cresHm\frac{c_{res}}{H\sqrt{m}} scaling. This scaling plays an important role in guaranteeing the width per layer only needs to scale polynomially with HH. 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 x:,0(h−1)=x:,p+1(h−1)=0\mathbf{x}^{(h-1)}_{:,0}=\mathbf{x}^{(h-1)}_{:,p+1}=\mathbf{0}, i.e., zero-padding. Note this operator has the property

Note here we use the similar scaling O(1Hm)O(\frac{1}{H\sqrt{m}}) 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 h∈[H]h\in[H], each entry is sampled from a standard Gaussian distribution, Wij(h)∼N(0,1)\mathbf{W}_{ij}^{(h)}\sim N(0,1) and each entry of the output layer a\mathbf{a} is also sampled from N(0,1)N(0,1). In this paper, we train all layers by gradient descent, for k=1,2,…,k=1,2,\ldots, and h∈[H]h\in[H]

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 kk-th iteration is

For this linear dynamics, using standard analysis technique for power method, one can show {y−u(k)}k=0∞\left\{\mathbf{y}-\mathbf{u}(k)\right\}_{k=0}^{\infty} converges to 0\mathbf{0} where the rate is determined by the least eigenvalue of H∞\mathbf{H}^{\infty} and the step size η\eta.

We leverage this insight to our deep neural network setting. Again we consider the sequence {y−u(k)}k=0∞\{\mathbf{y}-\mathbf{u}(k)\}_{k=0}^{\infty}, 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 G(H)(k)\mathbf{G}^{(H)}(k) is close to K(H)\mathbf{K}^{(H)}, we have two steps. First, we show in the initialization phase G(H)(0)\mathbf{G}^{(H)}(0) is close to K(H)\mathbf{K}^{(H)}. Second, we show during training G(H)(k)\mathbf{G}^{(H)}(k) is close to G(H)(0)\mathbf{G}^{(H)}(0) for k=1,2,…k=1,2,\ldots. Below we give overviews of these two steps.

Unlike (Du et al., 2018b) in which they showed H(0)\mathbf{H}(0) is close to H∞\mathbf{H}^{\infty} via a simple concentration inequality, showing G(H)(0)\mathbf{G}^{(H)}(0) is close to K(H)\mathbf{K}^{(H)} requires more subtle calculations. First, as will be clear in the following sections, K(H)\mathbf{K}^{(H)} is a recursively defined matrix. Therefore, we need to analyze how the perturbation (due to randomness of initialization and finite mm) from lower layers propagates to the HH-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 ∥G(1)(0)−K(1)∥2≤E1\left\|\mathbf{G}^{(1)}(0)-\mathbf{K}^{(1)}\right\|_{2}\leq\mathcal{E}_{1} in the first layer. This perturbation propagates to the HH-th layer admits the form

Therefore, we need to have E1≤12O(H)\mathcal{E}_{1}\leq\frac{1}{2^{O(H)}} and this makes mm have exponential dependency on HH.We not mean to imply that fully-connected networks necessarily depend exponentially on HH, 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 G(H)(k)\mathbf{G}^{(H)}(k) is close to G(H)(0)\mathbf{G}^{(H)}(0) for k=0,1,…k=0,1,\ldots. Note G(H)\mathbf{G}^{(H)} depends on weight matrices from all layers, so to establish that G(H)(k)\mathbf{G}^{(H)}(k) is close to G(H)(0)\mathbf{G}^{(H)}(0), we need to show W(h)(k)−W(h)(0)\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0) is small for all h∈[H]h\in[H] and a(k)−a(0)\mathbf{a}(k)-\mathbf{a}(0) 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., ∥W(1)(k)−W(1)(0)∥2,∞\left\|\mathbf{W}^{(1)}(k)-\mathbf{W}^{(1)}(0)\right\|_{2,\infty} is small for k=0,1,…k=0,1,\ldots. 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 K(H)\mathbf{K}^{(H)}.

The Gram matrix K(H)\mathbf{K}^{(H)} is recursively defined as follows, for (i,j)∈[n]×[n](i,j)\in[n]\times[n], and h=1,…,H−1h=1,\ldots,H-1

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 λmin⁡(K(H))\lambda_{\min}\left(\mathbf{K}^{(H)}\right) is strictly positive. We remark that if H=1H=1, then K(H)\mathbf{K}^{(H)} 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 i∈[n]i\in[n], ∥xi∥2=1\left\|\mathbf{x}_{i}\right\|_{2}=1, ∣yi∣=O(1)\left|y_{i}\right|=O(1) and the number of hidden nodes per layer

where K(H)\mathbf{K}^{(H)} is defined in Equation (7). If we set the step size

then with probability at least 1−δ1-\delta over the random initialization the loss, for k=1,2,…k=1,2,\ldots, the loss at each iteration satisfies

Note the requirement of mm 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 η\eta and λmin⁡(K(H))\lambda_{\min}\left(\mathbf{K}^{(H)}\right), similar to (Du et al., 2018b). Here we require η=O(λmin⁡(K(H))n22O(H))\eta=O\left(\frac{\lambda_{\min}\left(\mathbf{K}^{(H)}\right)}{n^{2}2^{O(H)}}\right). When H=1H=1, this requirement is the same as the one used in (Du et al., 2018b). However, for deep fully-connected neural network, we require η\eta to be exponentially small in terms of number of layers. The reason is similar to that we require mm 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 K(H)\mathbf{K}^{(H)} is recursively defined as follows, for (i,j)∈[n]×[n](i,j)\in[n]\times[n] and h=2,…,H−1h=2,\ldots,H-1:

Comparing K(H)\mathbf{K}^{(H)} of the ResNet and the one of the fully-connect neural network, the definition of K(H)\mathbf{K}^{(H)} also depends on a series of {b(h)}h=1H−1\{\mathbf{b}^{(h)}\}_{h=1}^{H-1}. 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 λmin⁡(K(H))\lambda_{\min}\left(\mathbf{K}^{(H)}\right) is strictly positive. Furthermore, λmin⁡(K(H))\lambda_{\min}\left(\mathbf{K}^{(H)}\right) does not depend inversely exponentially in HH.

Now we are ready to state our main theorem for ResNet.

Assume for all i∈[n]i\in[n], ∥xi∥2=1\left\|\mathbf{x}_{i}\right\|_{2}=1, ∣yi∣=O(1)\left|y_{i}\right|=O(1) and the number of hidden nodes per layer

If we set the step size η=O(λmin⁡(K(H))H2n2)\eta=O\left(\frac{\lambda_{\min}\left(\mathbf{K}^{(H)}\right)H^{2}}{n^{2}}\right), then with probability at least 1−δ1-\delta over the random initialization we have for k=1,2,…k=1,2,\ldots

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 nn and HH. Note the amount of over-parameterization depends on λmin⁡(K(H))\lambda_{\min}\left(\mathbf{K}^{(H)}\right) which is the smallest eigenvalue of the HH-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 mm has 44 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 K(H)\mathbf{K}^{(H)} for this architecture.

The Gram matrix K(H)\mathbf{K}^{(H)} is recursively defined as follows, for (i,j)∈[n]×[n](i,j)\in[n]\times[n], (l,r)∈[p]×[p](l,r)\in[p]\times[p] and h=2,…,H−1h=2,\ldots,H-1,

where u\mathbf{u} and v\mathbf{v} are both random row vectors and D_{l}^{(h)}\triangleq\{s:\mathbf{x}^{(h-1)}_{:,s}\in\text{thel^{th}patch}\}.

Note here Kij(h)\mathbf{K}_{ij}^{(h)} has dimension p×pp\times p for h=0,…,H−1h=0,\ldots,H-1 and Kij,lr\mathbf{K}_{ij,lr} denotes the (l,r)(l,r)-th entry.

Now we state our main convergence theorem for the convolutional ResNet.

Assume for all i∈[n]i\in[n], ∥xi∥F=1\left\|\mathbf{x}_{i}\right\|_{F}=1, ∣yi∣=O(1)\left|y_{i}\right|=O(1) 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 mm 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 nn. 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 2(y−u(k))⊤(u(k+1)−u(k))>∥u(k+1)−u(k)∥222\left(\mathbf{y}-\mathbf{u}(k)\right)^{\top}\left(\mathbf{u}(k+1)-\mathbf{u}(k)\right)>\left\|\mathbf{u}(k+1)-\mathbf{u}(k)\right\|_{2}^{2}, the loss decreases. Note both terms involves u(k+1)−u(k)\mathbf{u}(k+1)-\mathbf{u}(k), which we will carefully analyze. To simplify notations, we define

We look one coordinate of u(k+1)−u(k)\mathbf{u}(k+1)-\mathbf{u}(k).

Denote I1(k)=(I11(k),…,I1n(k))⊤\mathbf{I}_{1}(k)=\left(I_{1}^{1}(k),\ldots,I_{1}^{n}(k)\right)^{\top} and I2(k)=(I21(k),…,I2n(k))⊤\mathbf{I}_{2}(k)=\left(I_{2}^{1}(k),\ldots,I_{2}^{n}(k)\right)^{\top} and so u(k+1)−u(k)=I1(k)+I2(k)\mathbf{u}(k+1)-\mathbf{u}(k)=\mathbf{I}_{1}(k)+\mathbf{I}_{2}(k). We will show the I1(k)\mathbf{I}_{1}(k) term, which is proportional to η\eta, drives the loss function to decrease and the I2(k)\mathbf{I}_{2}(k) term, which is a perturbation term but it is proportional to η2\eta^{2} so it is small. We further unpack the I1i(k)I_{1}^{i}(k) term,

According to Section 4, we will only look at G(H)\mathbf{G}^{(H)} matrix which has the following form

Now we analyze I1(k)\mathbf{I}_{1}(k). We can write I1\mathbf{I}_{1} in a more compact form with G(k)\mathbf{G}(k).

Now recall the progress of loss function in Equation (12):

For the perturbation terms, through standard calculations, we can show both −2(y−u(k))⊤I2(k)-2\left(\mathbf{y}-\mathbf{u}(k)\right)^{\top}\mathbf{I}_{2}(k) and ∥u(k+1)−u(k)∥2\left\|\mathbf{u}(k+1)-\mathbf{u}(k)\right\|_{2} are proportional to η2∥y−u(k)∥22\eta^{2}\left\|\mathbf{y}-\mathbf{u}(k)\right\|_{2}^{2} so if we set η\eta sufficiently small, this term is smaller than ηλmin⁡(G(H)(k))∥y−u(k)∥22\eta\lambda_{\min}\left(\mathbf{G}^{(H)}(k)\right)\left\|\mathbf{y}-\mathbf{u}(k)\right\|_{2}^{2} and thus the loss function decreases with a linear rate.

Therefore, to prove the induction hypothesis, it suffices to prove λmin⁡(G(H)(k))≥λ02\lambda_{\min}\left(\mathbf{G}^{(H)}(k)\right)\geq\frac{\lambda_{0}}{2} for k′=0,…,kk^{\prime}=0,\ldots,k, where λ0\lambda_{0} is independent of mm. 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 ∥G(H)(0)−K(H)(0)∥2≤14λ0\left\|\mathbf{G}^{(H)}(0)-\mathbf{K}^{(H)}(0)\right\|_{2}\leq\frac{1}{4}\lambda_{0}, which implies

Now for the kk-th iteration, by matrix perturbation analysis, we know it is sufficient to show ∥G(H)(k)−G(H)(0)∥2≤14λ0\left\|\mathbf{G}^{(H)}(k)-\mathbf{G}^{(H)}(0)\right\|_{2}\leq\frac{1}{4}\lambda_{0}. To do this, we use a similar approach as in (Du et al., 2018b). We show as long as mm is large enough, every weight matrix is close its initialization in a relative error sense. Ignoring all other parameters except mm, ∥W(h)(k)−W(h)(0)∥F≲1\left\|\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0)\right\|_{F}\lesssim 1, and thus the average per-neuron distance from initialization is ∥W(h)(k)−W(h)(0)∥Fm≲1m\frac{\left\|\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0)\right\|_{F}}{\sqrt{m}}\lesssim\frac{1}{\sqrt{m}} which tends to zero as mm increases. See Lemma B.5 for precise statements with all the dependencies.

This fact in turn shows ∥G(H)(k)−G(H)(0)∥2\left\|\mathbf{G}^{(H)}(k)-\mathbf{G}^{(H)}(0)\right\|_{2} is small. The main difference from (Du et al., 2018b) is that we are considering deep neural networks, and when translating the small deviation, ∥W(h)(k)−W(h)(0)∥F\left\|\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0)\right\|_{F} to ∥G(H)(k)−G(H)(0)∥2\left\|\mathbf{G}^{(H)}(k)-\mathbf{G}^{(H)}(0)\right\|_{2}, 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 HH. On the other hand, for ResNet and convolutional ResNet we show this amplification factor is only polynomial in HH. We further show the width mm 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 h′h^{\prime}-th layer.

Through standard calculation, we can get the expression of Gi,j(H)\mathbf{G}^{(H)}_{i,j} of the following form

We first present a lemma which shows with high probability the feature of each layer is approximately normalized.

If σ(⋅)\sigma(\cdot) is L−L-Lipschitz and m=Ω(nHgC(H)2δ)m=\Omega\left(\frac{nHg_{C}(H)^{2}}{\delta}\right), where C≜cσL(2∣σ(0)∣2π+2L)C\triangleq c_{\sigma}L\left(2\left|\sigma(0)\right|\sqrt{\frac{2}{\pi}}+2L\right), then with probability at least 1−δ1-\delta over random initialization, for every h∈[H]h\in[H] and i∈[n]i\in[n], we have

We follow the proof sketch described in Section A. We first analyze the spectral property of G(H)(0)\mathbf{G}^{(H)}(0) at the initialization phase. The following lemma lower bounds its least eigenvalue. This lemma is a direct consequence of results in Section E.

If m=Ω(n2log⁡(Hn/δ)2O(H)λ02)m=\Omega\left(\frac{n^{2}\log(Hn/\delta)2^{O(H)}}{\lambda_{0}^{2}}\right), 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 h∈[H]h\in[H], ∥W(h)(0)∥2≤cw,0m\left\|\mathbf{W}^{(h)}(0)\right\|_{2}\leq c_{w,0}\sqrt{m}, ∥x(h)(0)∥2≤cx,0\left\|\mathbf{x}^{(h)}(0)\right\|_{2}\leq c_{x,0} and ∥W(h)(k)−W(h)(0)∥F≤mR\left\|\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0)\right\|_{F}\leq\sqrt{m}R for some constant cw,0,cx,0>0c_{w,0},c_{x,0}>0 and R≤cw,0R\leq c_{w,0}. If σ(⋅)\sigma(\cdot) is L−L-Lipschitz, we have

where cx=2cσLcw,0c_{x}=2\sqrt{c_{\sigma}}Lc_{w,0}.

Here the assumption of ∥W(h)(0)∥2≤cw,0m\left\|\mathbf{W}^{(h)}(0)\right\|_{2}\leq c_{w,0}\sqrt{m} can be shown using Lemma G.2 and taking union bound over h∈[H]h\in[H], where cw,0c_{w,0} 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 σ(⋅)\sigma(\cdot) is L−L-Lipschitz and β−\beta-smooth. Suppose for h∈[H]h\in[H], ∥W(h)(0)∥2≤cw,0m\left\|\mathbf{W}^{(h)}(0)\right\|_{2}\leq c_{w,0}\sqrt{m}, ∥a(0)∥2≤a2,0m\left\|\mathbf{a}(0)\right\|_{2}\leq a_{2,0}\sqrt{m}, ∥a(0)∥4≤a4,0m1/4\left\|\mathbf{a}(0)\right\|_{4}\leq a_{4,0}m^{1/4} , 1cx,0≤∥x(h)(0)∥2≤cx,0\frac{1}{c_{x,0}}\leq\left\|\mathbf{x}^{(h)}(0)\right\|_{2}\leq c_{x,0}, if ∥W(h)(k)−W(h)(0)∥F,∥a(k)−a(0)∥2≤mR\left\|\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0)\right\|_{F},\left\|\mathbf{a}(k)-\mathbf{a}(0)\right\|_{2}\leq\sqrt{m}R where R≤cgcx(H)−1λ0n−1R\leq cg_{c_{x}}(H)^{-1}\lambda_{0}n^{-1} and R≤cgcx(H)−1R\leq cg_{c_{x}}(H)^{-1} for some small constant cc and cx=2cσLcw,0c_{x}=2\sqrt{c_{\sigma}}Lc_{w,0}, we have

Here the assumption of ∥a(0)∥2≤a2,0m\left\|\mathbf{a}(0)\right\|_{2}\leq a_{2,0}\sqrt{m}, ∥a(0)∥4≤a4,0m1/4\left\|\mathbf{a}(0)\right\|_{4}\leq a_{4,0}m^{1/4} can be easily obtained using standard concentration inequalities, where a2,0a_{2,0} and a4,0a_{4,0} 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 k′=1,…,kk^{\prime}=1,\ldots,k, we have for any s=1,…,k+1s=1,\ldots,k+1

where R′=16cx,0a2,0(cx)Hn∥y−u(0)∥2λ0m≤cgcx(H)−1R^{\prime}=\frac{16c_{x,0}a_{2,0}\left(c_{x}\right)^{H}\sqrt{n}\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}}{\lambda_{0}\sqrt{m}}\leq cg_{c_{x}}(H)^{-1} for some small constant cc with cx=max⁡{2cσLcw,0,1}c_{x}=\max\{2\sqrt{c_{\sigma}}Lc_{w,0},1\} and Q′(s)=4cx,0a2,0(cx)Hn∥y−u(s)∥2Q^{\prime}(s)=4c_{x,0}a_{2,0}\left(c_{x}\right)^{H}\sqrt{n}\left\|\mathbf{y}-\mathbf{u}(s)\right\|_{2}

Now we proceed to analyze the perturbation terms.

If Condition A.1 holds for k′=1,…,kk^{\prime}=1,\ldots,k, suppose η≤cλ0(n2H2(cx)3Hg2cx(H))−1\eta\leq c\lambda_{0}\left(n^{2}H^{2}(c_{x})^{3H}g_{2c_{x}}(H)\right)^{-1} for some small constant cc, we have

If Condition A.1 holds for k′=1,…,kk^{\prime}=1,\ldots,k, suppose η≤cλ0(n2H2(cx)2Hg2cx(H))−1\eta\leq c\lambda_{0}\left(n^{2}H^{2}(c_{x})^{2H}g_{2c_{x}}(H)\right)^{-1} for some small constant cc, then we have ∥u(k+1)−u(k)∥22≤18ηλ0∥y−u(k)∥22\left\|\mathbf{u}(k+1)-\mathbf{u}(k)\right\|_{2}^{2}\leq\frac{1}{8}\eta\lambda_{0}\left\|\mathbf{y}-\mathbf{u}(k)\right\|_{2}^{2}.

We now proceed with the proof of Theorem 5.1. By induction, we assume Condition A.1 for all k′<kk^{\prime}<k. Using Lemma B.5, this establishes

By Lemma B.4, this establishes λmin⁡(G(H)(k))≥λ02\lambda_{\min}(\mathbf{G}^{(H)}(k))\geq\frac{\lambda_{0}}{2}.

With these estimates in hand, we are ready to prove the induction hypothesis of Condition A.1.

The first inequality drops the positive terms (y−u(k))⊤∑h∈[H+1],h≠HG(h)(k)(y−u(k))\left(\mathbf{y}-\mathbf{u}(k)\right)^{\top}\sum_{h\in[H+1],h\neq H}\mathbf{G}^{(h)}(k)\left(\mathbf{y}-\mathbf{u}(k)\right). The second inequality uses the argument above that establishes λmin⁡(G(H)(k))≥λ02\lambda_{\min}(\mathbf{G}^{(H)}(k))\geq\frac{\lambda_{0}}{2}. The third inequality uses Lemmas B.6 and B.7.

We will bound ∥xi(h)(0)∥2\left\|\mathbf{x}_{i}^{(h)}(0)\right\|_{2} by induction on layers. The induction hypothesis is that with probability at least 1−(h−1)δnH1-(h-1)\frac{\delta}{nH} over W(1)(0),…,W(h−1)(0)\mathbf{W}^{(1)}(0),\ldots,\mathbf{W}^{(h-1)}(0), for every 1≤h′≤h−11\leq h^{\prime}\leq h-1, 12≤1−gC(h′)2gC(H)≤∥xi(h′)(0)∥2≤1+gC(h′)2gC(H)≤2\frac{1}{2}\leq 1-\frac{g_{C}(h^{\prime})}{2g_{C}(H)}\leq\left\|\mathbf{x}_{i}^{(h^{\prime})}(0)\right\|_{2}\leq 1+\frac{g_{C}(h^{\prime})}{2g_{C}(H)}\leq 2. Note that it is true for h=1h=1. We calculate the expectation of ∥xi(h)(0)∥22\left\|\mathbf{x}_{i}^{(h)}(0)\right\|_{2}^{2} over the randomness from W(h)(0)\mathbf{W}^{(h)}(0). Recall

Note that σ(⋅)\sigma(\cdot) is L−L-Lipschitz, for any 12≤α≤2\frac{1}{2}\leq\alpha\leq 2, we have

where C≜cσL(2∣σ(0)∣2π+2L)C\triangleq c_{\sigma}L\left(2\left|\sigma(0)\right|\sqrt{\frac{2}{\pi}}+2L\right), which implies

where C2≜σ(0)4+8∣σ(0)∣3L2/π+24σ(0)2L2+64σ(0)L32/π+512L4C_{2}\triangleq\sigma(0)^{4}+8\left|\sigma(0)\right|^{3}L\sqrt{2/\pi}+24\sigma(0)^{2}L^{2}+64\sigma(0)L^{3}\sqrt{2/\pi}+512L^{4} 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 mm, we have with probability 1−δnH1-\frac{\delta}{nH} over W(h)\mathbf{W}^{(h)},

Thus with probability 1−hδnH1-h\frac{\delta}{nH} over W(1),…,W(h)\mathbf{W}^{(1)},\ldots,\mathbf{W}^{(h)},

Using union bounds over [n][n], we prove the lemma. ∎

We prove this lemma by induction. Our induction hypothesis is

For h=0h=0, since the input data is fixed, we know the induction hypothesis holds. Now suppose the induction hypothesis holds for h′=0,…,h−1h^{\prime}=0,\ldots,h-1, we consider h′=hh^{\prime}=h.

Because Frobenius-norm of a matrix is bigger than the operator norm, it is sufficient to bound ∥G(H)(k)−G(H)(0)∥F\left\|\mathbf{G}^{(H)}(k)-\mathbf{G}^{(H)}(0)\right\|_{F}. For simplicity define zi,r(k)=wr(H)(k)⊤xi(H−1)(k)z_{i,r}(k)=\mathbf{w}_{r}^{(H)}(k)^{\top}\mathbf{x}_{i}^{(H-1)}(k), we have

For I1i,jI_{1}^{i,j}, using Lemma B.3, we have

Using the same proof for Lemma B.3, it is easy to see

Plugging in the bound on RR, 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 s′=0s^{\prime}=0. Now suppose it holds for s′=0,…,ss^{\prime}=0,\ldots,s, we consider s′=s+1s^{\prime}=s+1. We have

To bound ∥xi(h−1)(s)∥2\left\|\mathbf{x}_{i}^{(h-1)}(s)\right\|_{2}, we can just apply Lemma B.3 and get

To bound ∥W(k)(s)∥2\left\|\mathbf{W}^{(k)}(s)\right\|_{2}, we use our assumption

Note that ∥J(k)(s)∥2≤L\left\|\mathbf{J}^{(k)}(s)\right\|_{2}\leq L. Plugging in these two bounds back, we obtain

Similar to the proof for Lemma B.5, we have

Let θ(k,s)=θ(k)−sL′(θ(k))\mathbf{\theta}(k,s)=\mathbf{\theta}(k)-sL^{\prime}(\mathbf{\theta}(k)),

Since this holds for all i∈[n]i\in[n], plugging in η\eta and noting that ∥y−u(0)∥2=O(n)\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}=O(\sqrt{n}), we have

Appendix C Proofs for Section 6

For ResNets, G(H)\mathbf{G}^{(H)} has the following form:

Similar to Lemma B.1, we can show with high probability the feature of each layer is approximately normalized.

If σ(⋅)\sigma(\cdot) is L−L-Lipschitz and m=Ω(nδ)m=\Omega\left(\frac{n}{\delta}\right), assuming ∥W(h)(0)∥2≤cw,0m\left\|\mathbf{W}^{(h)}(0)\right\|_{2}\leq c_{w,0}\sqrt{m} for h∈[2,H]h\in[2,H] and cw,0≈2c_{w,0}\approx 2 for Gaussian initialization. We have with probability at least 1−δ1-\delta over random initialization, for every h∈[H]h\in[H] and i∈[n]i\in[n],

for some universal constant cx,0>1c_{x,0}>1 (only depends on σ\sigma).

The following lemma lower bounds G(H)(0)\mathbf{G}^{(H)}(0)’s least eigenvalue. This lemma is a direct consequence of results in Section E.

If m=Ω(n2log⁡(Hn/δ)λ02)m=\Omega\left(\frac{n^{2}\log(Hn/\delta)}{\lambda_{0}^{2}}\right), we have

Next, we characterize how the perturbation on the weight matrices affects the input of each layer.

Suppose σ(⋅)\sigma(\cdot) is LL-Lipschitz and for h∈[H]h\in[H], ∥W(h)(0)∥2≤cw,0m\left\|\mathbf{W}^{(h)}(0)\right\|_{2}\leq c_{w,0}\sqrt{m}, ∥x(h)(0)∥2≤cx,0\left\|\mathbf{x}^{(h)}(0)\right\|_{2}\leq c_{x,0} and ∥W(h)(k)−W(h)(0)∥F≤mR\left\|\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0)\right\|_{F}\leq\sqrt{m}R for some constant cw,0,cx,0>0c_{w,0},c_{x,0}>0 and R≤cw,0R\leq c_{w,0} . Then we have

Next, we characterize how the perturbation on the weight matrices affect G(H)\mathbf{G}^{(H)}.

Suppose σ(⋅)\sigma(\cdot) is differentiable, L−L-Lipschitz and β−\beta-smooth. Using the same notations in Lemma B.4, if ∥W(h)(k)−W(h)(0)∥F,∥a(k)−a(0)∥2≤mR\left\|\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0)\right\|_{F},\left\|\mathbf{a}(k)-\mathbf{a}(0)\right\|_{2}\leq\sqrt{m}R where R≤cλ0H2n−1R\leq c\lambda_{0}H^{2}n^{-1} and R≤cR\leq c for some small constant cc, 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 k′=1,…,kk^{\prime}=1,\ldots,k, we have for any s∈[k+1]s\in[k+1]

where R′=16crescx,0a2,0Le2crescw,0Ln∥y−u(0)∥2Hλ0m<cR^{\prime}=\frac{16c_{res}c_{x,0}a_{2,0}Le^{2c_{res}c_{w,0}L}\sqrt{n}\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}}{H\lambda_{0}\sqrt{m}}<c for some small constant cc and Q′(s)=4crescx,0a2,0Le2crescw,0Ln∥y−u(s)∥2/HQ^{\prime}(s)=4c_{res}c_{x,0}a_{2,0}Le^{2c_{res}c_{w,0}L}\sqrt{n}\left\|\mathbf{y}-\mathbf{u}(s)\right\|_{2}/H.

The next lemma bounds the I2\mathbf{I}_{2} term.

If Condition A.1 holds for k′=1,…,kk^{\prime}=1,\ldots,k and η≤cλ0H2n−2\eta\leq c\lambda_{0}H^{2}n^{-2} for some small constant cc, we have

If Condition A.1 holds for k′=1,…,kk^{\prime}=1,\ldots,k and η≤cλ0H2n−2\eta\leq c\lambda_{0}H^{2}n^{-2} for some small constant cc, we have ∥u(k+1)−u(k)∥22≤18ηλ0∥y−u(k)∥22\left\|\mathbf{u}(k+1)-\mathbf{u}(k)\right\|_{2}^{2}\leq\frac{1}{8}\eta\lambda_{0}\left\|\mathbf{y}-\mathbf{u}(k)\right\|_{2}^{2}.

Now using the same argument as in the proof for multilayer fully connected neural network, we finish our proof for ResNet.

We will bound ∥xi(h)(0)∥2\left\|\mathbf{x}_{i}^{(h)}(0)\right\|_{2} layer by layer. For the first layer, we can calculate

where C2≜σ(0)4+4∣σ(0)∣3L2/π+6σ(0)2L2+8∣σ(0)∣L32/π+32L4C_{2}\triangleq\sigma(0)^{4}+4\left|\sigma(0)\right|^{3}L\sqrt{2/\pi}+6\sigma(0)^{2}L^{2}+8\left|\sigma(0)\right|L^{3}\sqrt{2/\pi}+32L^{4}. We have with probability at least 1−δn1-\frac{\delta}{n},

By definition we have for 2≤h≤H2\leq h\leq H,

Choosing cx,0=2ecrescw,0Lc_{x,0}=2e^{c_{res}c_{w,0}L} and using union bounds over [n][n], we prove the lemma.

We prove this lemma by induction. Our induction hypothesis is

which implies g(1)=cσLRg(1)=\sqrt{c_{\sigma}}LR, for 2≤h≤H2\leq h\leq H, we have

Lastly, simple calculations show g(h)≤(cσL+cx,0cw,0)e2crescw,0LRg(h)\leq\left(\sqrt{c_{\sigma}}L+\frac{c_{x,0}}{c_{w,0}}\right)e^{2c_{res}c_{w,0}L}R.

Similar to the proof of Lemma B.4, we can obtain

For I1i,jI_{1}^{i,j}, using Lemma C.3, we have

where cx≜(cσL+cx,0cw,0)e2crescw,0Lc_{x}\triangleq\left(\sqrt{c_{\sigma}}L+\frac{c_{x,0}}{c_{w,0}}\right)e^{2c_{res}c_{w,0}L}. To bound I2i,jI_{2}^{i,j}, we have

Using the same proof for Lemma C.3, it is easy to see

The bound of I3i,jI_{3}^{i,j} is similar to that in Lemma B.4,

Plugging in the bound on RR, 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 s′=0s^{\prime}=0. Now suppose it holds for s′=0,…,ss^{\prime}=0,\ldots,s, we consider s′=s+1s^{\prime}=s+1. 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 θ(k,s)=θ(k)−sL′(θ(k))\mathbf{\theta}(k,s)=\mathbf{\theta}(k)-sL^{\prime}(\mathbf{\theta}(k)), we have

where cx≜(cσL+cx,0cw,0)e3crescw,0Lc_{x}\triangleq\left(\sqrt{c_{\sigma}}L+\frac{c_{x,0}}{c_{w,0}}\right)e^{3c_{res}c_{w,0}L}. According to Lemma G.1, we have

where we used the bound of η\eta and that ∥y−u(0)∥2=O(n)\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}=O(\sqrt{n}),. ∎

Appendix D Proofs for Section 7

For CNN, denote xi,l=ϕ(xi,l):,l\mathbf{x}_{i,l}=\phi\left(\mathbf{x}_{i,l}\right)_{:,l}, G(H)\mathbf{G}^{(H)} has the following form:

Similar to Lemma B.1, we can show with high probability the feature of each layer is approximately normalized.

If σ(⋅)\sigma(\cdot) is L−L-Lipschitz and m=Ω(p2ncσ,1p2δ)m=\Omega\left(\frac{p^{2}n}{c_{\sigma,\frac{1}{\sqrt{p}}}^{2}\delta}\right), assuming ∥W(h)(0)∥2≤cw,0m\left\|\mathbf{W}^{(h)}(0)\right\|_{2}\leq c_{w,0}\sqrt{m} for h∈[H]h\in[H], we have with probability at least 1−δ1-\delta over random initialization, for every h∈[H]h\in[H] and i∈[n]i\in[n],

The following lemma lower bounds G(H)(0)\mathbf{G}^{(H)}(0)’s least eigenvalue. This lemma is a direct consequence of results in Section E.

If m=Ω(n2p2log⁡(Hn/δ)λ02)m=\Omega\left(\frac{n^{2}p^{2}\log(Hn/\delta)}{\lambda_{0}^{2}}\right), we have

Next, we prove the following lemma which characterizes how the perturbation from weight matrices propagates to the input of each layer.

Suppose σ(⋅)\sigma(\cdot) is L−L-Lipschitz and for h∈[H]h\in[H], ∥W(h)(0)∥2≤cw,0m\left\|\mathbf{W}^{(h)}(0)\right\|_{2}\leq c_{w,0}\sqrt{m}, ∥x(h)(0)∥F≤cx,0\left\|\mathbf{x}^{(h)}(0)\right\|_{F}\leq c_{x,0} and ∥W(h)(k)−W(h)(0)∥F≤mR\left\|\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0)\right\|_{F}\leq\sqrt{m}R for some constant cw,0,cx,0>1c_{w,0},c_{x,0}>1 and R≤cw,0R\leq c_{w,0} . 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 σ(⋅)\sigma(\cdot) is differentaible, L−L-Lipschitz and β−\beta-smooth. Using the same notations in Lemma B.4, if ∥a:,i∥2≤a2,0m\left\|\mathbf{a}_{:,i}\right\|_{2}\leq a_{2,0}\sqrt{m} and ∥a:,i∥4≤a4,0m1/4\left\|\mathbf{a}_{:,i}\right\|_{4}\leq a_{4,0}m^{1/4} for any i∈[p]i\in[p], ∥W(h)(k)−W(h)(0)∥F,∥a(k)−a(0)∥F≤mR\left\|\mathbf{W}^{(h)}(k)-\mathbf{W}^{(h)}(0)\right\|_{F},\left\|\mathbf{a}(k)-\mathbf{a}(0)\right\|_{F}\leq\sqrt{m}R where R≤cλ0H2(n)−1poly(p)−1R\leq c\lambda_{0}H^{2}\left(n\right)^{-1}poly(p)^{-1} for some small constant cc, we have

If Condition A.1 holds for k′=1,…,kk^{\prime}=1,\ldots,k, we have for any s∈[k+1]s\in[k+1]

where R′=16crescx,0Lpqe2crescw,0La2,0qn∥y−u(0)∥2Hλ0m<cR^{\prime}=\frac{16c_{res}c_{x,0}L\sqrt{pq}e^{2c_{res}c_{w,0}La_{2,0}\sqrt{q}}\sqrt{n}\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}}{H\lambda_{0}\sqrt{m}}<c for some small constant cc and

The follow lemma bounds the norm of I2\mathbf{I}_{2}.

If Condition A.1 holds for k′=1,…,kk^{\prime}=1,\ldots,k and η≤cλ0H2n−2poly(1/p)\eta\leq c\lambda_{0}H^{2}n^{-2}poly(1/p) for some small constant cc, we have

If Condition A.1 holds for k′=1,…,kk^{\prime}=1,\ldots,k and η≤cλ0H2n−2poly(1/p)\eta\leq c\lambda_{0}H^{2}n^{-2}poly(1/p) for some small constant cc, we have ∥u(k+1)−u(k)∥22≤18ηλ0∥y−u(k)∥22\left\|\mathbf{u}(k+1)-\mathbf{u}(k)\right\|_{2}^{2}\leq\frac{1}{8}\eta\lambda_{0}\left\|\mathbf{y}-\mathbf{u}(k)\right\|_{2}^{2}.

Now using the same argument as in the proof for multilayer fully connected neural network, we finish our proof for CNN.

We will bound ∥xi(h)(0)∥F\left\|\mathbf{x}_{i}^{(h)}(0)\right\|_{F} layer by layer. For the first layer, we can calculate

where the inequality we use the definition of cσ,1pc_{\sigma,\frac{1}{\sqrt{p}}} and the fact that there must exist l′∈[p]l^{\prime}\in[p] such that ∥xi,l′∥22≥1p1≥1p\left\|\mathbf{x}_{i,l^{\prime}}\right\|_{2}^{2}\geq\frac{1}{p_{1}}\geq\frac{1}{p}. For the variance,

where C2≜σ(0)4+4∣σ(0)∣3L2/π+6σ(0)2L2+8∣σ(0)∣L32/π+32L4C_{2}\triangleq\sigma(0)^{4}+4\left|\sigma(0)\right|^{3}L\sqrt{2/\pi}+6\sigma(0)^{2}L^{2}+8\left|\sigma(0)\right|L^{3}\sqrt{2/\pi}+32L^{4}. We have with probability at least 1−δn1-\frac{\delta}{n},

By defination we have for 2≤h≤H2\leq h\leq H

Choosing cx,0=max⁡{qL2cσcw,02,2cσ,1pcσ}eqcrescw,0Lc_{x,0}=\max\{\sqrt{qL^{2}c_{\sigma}c_{w,0}^{2}},\sqrt{\frac{2c_{\sigma,\frac{1}{\sqrt{p}}}}{c_{\sigma}}}\}e^{\sqrt{q}c_{res}c_{w,0}L} and using union bounds over [n][n], we prove the lemma.

We prove this lemma by induction. Our induction hypothesis is

which implies g(1)=cσLqRg(1)=\sqrt{c_{\sigma}}L\sqrt{q}R, for 2≤h≤H2\leq h\leq H, we have

Lastly, simple calculations show g(h)≤(cσLq+cx,0cw,0)e2cw,0LqcresRg(h)\leq\left(\sqrt{c_{\sigma}}L\sqrt{q}+\frac{c_{x,0}}{c_{w,0}}\right)e^{2c_{w,0}L\sqrt{q}c_{res}}R.

Similar to Lemma C.4, define zi,l,r=(wr(H))⊤xi,l(H−1)z_{i,l,r}=\left(\mathbf{w}_{r}^{(H)}\right)^{\top}\mathbf{x}_{i,l}^{(H-1)}, we have

For I1i,jI_{1}^{i,j}, using Lemma D.3, we have

where cx≜(cσLq+cx,0cw,0)e2crescw,0Lqc_{x}\triangleq\left(\sqrt{c_{\sigma}}L\sqrt{q}+\frac{c_{x,0}}{c_{w,0}}\right)e^{2c_{res}c_{w,0}L\sqrt{q}}. To bound I2i,jI_{2}^{i,j}, we have

Using the same proof for Lemma D.3, it is easy to see

Plugging in the bound on RR, 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 s′=0s^{\prime}=0. Now suppose it holds for s′=0,…,ss^{\prime}=0,\ldots,s, we consider s′=s+1s^{\prime}=s+1. Similar to Lemma B.5, we have

where ∥⋅∥op\left\|\cdot\right\|_{op} denotes the operator norm. Similarly, we have

Let θ(k,s)=θ(k)−sL′(θ(k))\mathbf{\theta}(k,s)=\mathbf{\theta}(k)-sL^{\prime}(\mathbf{\theta}(k)) ,similar to the proof of Lemma B.6, we have

where we used the bound of η\eta and that ∥y−u(0)∥2=O(n)\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}=O(\sqrt{n}). ∎

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 m→∞m\rightarrow\infty, 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 nn 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, p(0)=p(1)=…=p(H)=1p^{(0)}=p^{(1)}=\ldots=p^{(H)}=1. For convolutional neural network, p(h)p^{(h)} is the number of patches of the hh-th layer.

For convolutional neural network, the dimension of W\mathcal{W} is the filter size.

For full-connected neural networks, we take D(h)\mathcal{D}^{(h)} to be the zero mapping. For ResNet and convolutional ResNet, we take D(h)\mathcal{D}^{(h)} to be the identity mapping.

Now we recursively define the output of each layer in this setup. In the following, we use h∈[H]h\in[H] to index layers, i∈[n]i\in[n] to index data points, α,β,γ∈[m]\alpha,\beta,\gamma\in[m] or [d][d] to index channels (for CNN) or weight vectors (for fully connected neural networks or ResNet).

d=1d=1 for fully connected neural network and ResNet and d≥1d\geq 1 for convolutional neural network because dd represents the number of input channels.

We denote Xi(h),[α]\mathbf{X}^{(h),[\alpha]}_{i} an p(h)p^{(h)}-dimensional vector which is the output at (h−1)(h-1)-th layer. We have the following recursive formula

where W(β)(h),(α)\mathbf{W}^{(h),(\alpha)}_{(\beta)} is p(h)×p(h−1)p^{(h)}\times p^{(h-1)} matrix generated according to the following rule

for h=1h=1, W[β](h),(α)\mathbf{W}^{(h),(\alpha)}_{[\beta]} is defined for 1≤α≤m1\leq\alpha\leq m and 1≤β≤d1\leq\beta\leq d; for h>1h>1, W(β)(h),(α)\mathbf{W}^{(h),(\alpha)}_{(\beta)} is defined for 1≤α≤m1\leq\alpha\leq m and 1≤β≤m1\leq\beta\leq m;

the set of random variables {W(β)(h),(α)}h,α,β\{\mathbf{W}^{(h),(\alpha)}_{(\beta)}\}_{h,\alpha,\beta} are independently generated;

for fixed h,α,βh,\alpha,\beta, W(β)(h),(α)∼P(h)\mathbf{W}^{(h),(\alpha)}_{(\beta)}\sim\mathcal{P}^{(h)}.

Choosing ρ(h)(z)\rho^{(h)}(z) to be σ(z)\sigma\left(z\right) and D(h)\mathcal{D}^{(h)} to be the zero mapping, we recover the fully-connected architecture. Choosing ρ(h)(z)\rho^{(h)}(z) to be cresHσ(z)\frac{c_{res}}{H}\sigma\left(z\right) and D(h)\mathcal{D}^{(h)} to be the identity mapping, we recover ResNet architecture.

Note here Xi(h)=xi(h)m\mathbf{X}_{i}^{(h)}=\mathbf{x}_{i}^{(h)}\sqrt{m} for h≥1h\geq 1 and Xi(h)=xi(h)\mathbf{X}_{i}^{(h)}=\mathbf{x}_{i}^{(h)} for h=0h=0 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 (i,j)∈[n]×[n](i,j)\in[n]\times[n], for h=1,…,Hh=1,\ldots,H. The population Gram matrices are defined according to the following formula

Notice that the Gram matrix of the next layer K(h)\mathbf{K}^{(h)} not only depends on the previous layer’s Gram matrix K(h−1)\mathbf{K}^{(h-1)} but also depends on a “bias” term b(h−1)\mathbf{b}^{(h-1)}.

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 mm is needed to ensure the randomly generated Gram matrices is close to the population Gram matrices.

With probability 1−δ1-\delta over the {W(β)(h),(α)}h,α,β\left\{\mathbf{W}_{(\beta)}^{(h),(\alpha)}\right\}_{h,\alpha,\beta}, for any 1≤h≤H−1,1≤i,j≤n,1\leq h\leq H-1,1\leq i,j\leq n,

and any h∈[H−1],∀1≤i≤n,h\in[H-1],\forall 1\leq i\leq n,

The error constant E\mathcal{E} satisfies there exists an absolute constant C>0C>0 such that

where M,B,Λ(h),C(h),A(h),W(h)M,B,\Lambda_{(h)},C_{(h)},A_{(h)},\mathfrak{W}_{(h)} are defined by:

M=1+100max⁡i,j,p,q,h∣W(h)(Kij(h−1))pq∣M=1+100\max_{i,j,p,q,h}|\mathcal{W}^{(h)}(\mathbf{K}^{(h-1)}_{ij})_{pq}|,

A(h)=1+max⁡{∥D(h)∥L∞→L∞,∥D(h)(⋅)D(h)⊤∥L∞→L∞}A_{(h)}=1+\max\left\{\|\mathcal{D}^{(h)}\|_{L^{\infty}\rightarrow L^{\infty}},\|\mathcal{D}^{(h)}(\cdot)\mathcal{D}^{(h)\top}\|_{L^{\infty}\rightarrow L^{\infty}}\right\},

B=1+100max⁡i,p,h∣bip(h)∣B=1+100\max_{i,p,h}|\mathbf{b}^{(h)}_{ip}|,

Λ(h)\Lambda_{(h)} is a constant that only depends on ρ(h)\rho^{(h)},

W(h)=1+∥W(h)∥L∞→L∞\mathfrak{W}_{(h)}=1+\|\mathcal{W}^{(h)}\|_{L^{\infty}\rightarrow L^{\infty}}.

For fully-connected neural networks, we have M=O(1),A(h)=0,B=O(1),C(h)=O(1),Λ(h)=O(1),W(h)=O(1)M=O(1),A_{(h)}=0,B=O(1),C_{(h)}=O(1),\Lambda_{(h)}=O(1),\mathfrak{W}_{(h)}=O(1), so we need m=Ω(n2log⁡(Hn/δ)2O(H)λ02)m=\Omega\left(\frac{n^{2}\log(Hn/\delta)2^{O(H)}}{\lambda_{0}^{2}}\right). For ResNet, we have M=O(1),A(h)=1,B=O(1),C(h)=O(1H),Λ(h)=O(1H),W(h)=O(1)M=O(1),A_{(h)}=1,B=O(1),C_{(h)}=O(\frac{1}{H}),\Lambda_{(h)}=O(\frac{1}{H}),\mathfrak{W}_{(h)}=O(1), so we need m=Ω(n2log⁡(Hn/δ)λ02)m=\Omega\left(\frac{n^{2}\log(Hn/\delta)}{\lambda_{0}^{2}}\right). The convolutional ResNet has the same parameters as ResNet but because the Gram matrix is np×npnp\times np, so we need m=Ω(n2p2log⁡(Hnp/δ)λ02)m=\Omega\left(\frac{n^{2}p^{2}\log(Hnp/\delta)}{\lambda_{0}^{2}}\right).

The proof is by induction. For the base case, h=1h=1, recall

By our generating process of {W(β)(h),(α)}h,α,β\left\{\mathbf{W}_{(\beta)}^{(h),(\alpha)}\right\}_{h,\alpha,\beta}, the collection {Ui(1),(β)}1≤i≤n,1≤β≤m\{\mathbf{U}_{i}^{(1),(\beta)}\}_{1\leq i\leq n,1\leq\beta\leq m} 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 1−δH1-\frac{\delta}{H}, we have

Now we prove the induction step. Define for 1≤h≤H1\leq h\leq H

Now suppose that Equation (18) and (19) hold for 1≤l≤h1\leq l\leq h with probability at least 1−hHδ1-\frac{h}{H}\delta, now we want to show the equations holds for h+1h+1 with probability at least 1−δ/H1-\delta/H conditioned on previous layers satisfying Equation (18) and (19). Let l=h+1l=h+1. recall

Again note that {Ui(l),(β)}1≤i≤n,1≤β≤m\{\mathbf{U}_{i}^{(l),(\beta)}\}_{1\leq i\leq n,1\leq\beta\leq m} 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 1−δ/H1-\delta/H,

which determine how the error propagates through layers.

Putting these estimates together, we have

Recall K(H)\mathbf{K}^{(H)} defined in Equation (7), (8) and (10). Note the definition of K(H)\mathbf{K}^{(H)} is qualitatively different from that of K(h)\mathbf{K}^{(h)} for h=1,…,H−1h=1,\ldots,H-1 because K(H)\mathbf{K}^{(H)} depends on K(H)\mathbf{K}^{(H)} and σ′(⋅)\sigma^{\prime}(\cdot) instead of σ(⋅)\sigma(\cdot). Therefore, we take special care of K(H)\mathbf{K}^{(H)}. Further note K(H)\mathbf{K}^{(H)} 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 ∣K^ij(H−1)−Kij(H−1)∣≤cλ0n2\left|\hat{\mathbf{K}}_{ij}^{(H-1)}-\mathbf{K}_{ij}^{(H-1)}\right|\leq\frac{c\lambda_{0}}{n^{2}} for some small constant c>0c>0. Then if m=Ω(n2log⁡(n/δ)λ02)m=\Omega\left(\frac{n^{2}\log(n/\delta)}{\lambda_{0}^{2}}\right), we have with probability at least 1−δ1-\delta over {wr(H)(0)}r=1m\{\mathbf{w}_{r}^{(H)}(0)\}_{r=1}^{m} and {ar(0)}r=1m\{a_{r}(0)\}_{r=1}^{m}, we have ∥G(H)(0)−K(H)∥op≤λ04\left\|\mathbf{G}^{(H)}(0)-\mathbf{K}^{(H)}\right\|_{op}\leq\frac{\lambda_{0}}{4}.

Recall G(H)\mathbf{G}^{(H)} defined in Equation (13). Based on its expression, it is straightforward to use concentration inequality to show if m=Ω(n2log⁡(n/δ)λ02)m=\Omega\left(\frac{n^{2}\log(n/\delta)}{\lambda_{0}^{2}}\right), we have

Recall Aij(H)=(Kii(H−1)Kij(H−1)Kji(H−1)Kjj(H−1))\mathbf{A}_{ij}^{(H)}=\begin{pmatrix}\mathbf{K}^{(H-1)}_{ii}&\mathbf{K}^{(H-1)}_{ij}\\ \mathbf{K}^{(H-1)}_{ji}&\mathbf{K}^{(H-1)}_{jj}\end{pmatrix} and let A^ij(H)=(K^ii(H−1)K^ij(H−1)K^ji(H−1)K^jj(H−1))\hat{\mathbf{A}}_{ij}^{(H)}=\begin{pmatrix}\hat{\mathbf{K}}^{(H-1)}_{ii}&\hat{\mathbf{K}}^{(H-1)}_{ij}\\ \hat{\mathbf{K}}^{(H-1)}_{ji}&\hat{\mathbf{K}}^{(H-1)}_{jj}\end{pmatrix}.

According to Lemma G.4 (viewing σ′(⋅)\sigma^{\prime}(\cdot) as the σ(⋅)\sigma(\cdot) in Lemma G.4), we know

for some constant C>0C>0. Since cc 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 K(H)\mathbf{K}^{(H)} defined in Equation (8) is strictly positive definite.

Assume σ(⋅)\sigma(\cdot) satisfies Condition 3.2 and for any i,j∈[n],i≠ji,j\in[n],i\neq j, xi∦xj\mathbf{x}_{i}\not\parallel\mathbf{x}_{j}. Then we have λmin⁡(K(H))>0\lambda_{\min}\left(\mathbf{K}^{(H)}\right)>0 where λmin⁡(K(H))\lambda_{\min}\left(\mathbf{K}^{(H)}\right) is defined in Equation (7).

By our assumption on the data point and using Lemma F.1 we know K(1)\mathbf{K}^{(1)} is strictly positive definite.

By letting Z=D1/2U⊤\mathbf{Z}=\mathbf{D}^{1/2}\mathbf{U}^{\top} , where UDU⊤=Kh\mathbf{U}\mathbf{D}\mathbf{U}^{\top}=\mathbf{K}^{h}. We then use Lemma F.1 inductively for (H−2)(H-2) times to conclude K(H−1)\mathbf{K}^{(H-1)} is strictly positive definite. Lastly we use Lemma F.2 to finish the proof. ∎

Assume σ(⋅)\sigma(\cdot) is analytic and not a polynomial function. Consider data Z={zi}i∈[n]Z=\{\mathbf{z}_{i}\}_{i\in[n]} of nn non-parallel points (meaning zi∉span(zj)\mathbf{z}_{i}\notin\text{span}(\mathbf{z}_{j}) for all i≠ji\neq j). Define

The feature map induced by the kernel G\mathbf{G} is given by ϕz(w)=σ(w⊤z)z\phi_{\mathbf{z}}(\mathbf{w})=\sigma(\mathbf{w}^{\top}\mathbf{z})\mathbf{z}. To show that G(Z)\mathbf{G}(Z) is strictly positive definite, we need to show ϕz1(w),…,ϕzn(w)\phi_{\mathbf{z}_{1}}(\mathbf{w}),\ldots,\phi_{\mathbf{z}_{n}}(\mathbf{w}) are linearly independent functions. Assume that there are aia_{i} such that

We wish to show that ai=0a_{i}=0. Differentiating the above equation (n−2)(n-2) times with respect to w\mathbf{w}, we have

Using Lemma G.6, we know {zi⊗(n−1)}i=1n\left\{\mathbf{z}_{i}^{\otimes(n-1)}\right\}_{i=1}^{n} are linearly independent. Therefore, we must have aiσ(n−1)(w⊤zi)=0a_{i}\sigma^{(n-1)}(\mathbf{w}^{\top}\mathbf{z}_{i})=0 for all ii. Now choosing a w\mathbf{w} such that σ(n−1)(w⊤zi)≠0\sigma^{(n-1)}\left(\mathbf{w}^{\top}\mathbf{z}_{i}\right)\neq 0 for all i∈[n]i\in[n] (such w\mathbf{w} exists because of our assumption on σ\sigma), we have ai=0a_{i}=0 for all i∈[n]i\in[n]. ∎

Assume σ(⋅)\sigma(\cdot) is analytic and not a polynomial function. Consider data Z={zi}i∈[n]Z=\{\mathbf{z}_{i}\}_{i\in[n]} of nn non-parallel points (meaning zi∉span(zj)\mathbf{z}_{i}\notin\text{span}(\mathbf{z}_{j}) for all i≠ji\neq j). Define

The feature map induced by the kernel G\mathbf{G} is given by ϕz(w)=σ′(w⊤z)z\phi_{\mathbf{z}}(\mathbf{w})=\sigma^{\prime}(\mathbf{w}^{\top}\mathbf{z})\mathbf{z}. To show that G(Z)\mathbf{G}(Z) is strictly positive definite, we need to show ϕz1(w),…,ϕzn(w)\phi_{\mathbf{z}_{1}}(\mathbf{w}),\ldots,\phi_{\mathbf{z}_{n}}(\mathbf{w}) are linearly independent functions. Assume that there are aia_{i} such that

We wish to show that ai=0a_{i}=0. Differentiating the above equation (n−2)(n-2) times with respect to w\mathbf{w}, we have

Using Lemma G.6, we know {zi⊗(n−1)}i=1n\left\{\mathbf{z}_{i}^{\otimes(n-1)}\right\}_{i=1}^{n} are linearly independent. Therefore, we must have aiσn(w⊤zi)=0a_{i}\sigma^{n}(\mathbf{w}^{\top}\mathbf{z}_{i})=0 for all ii. Now choosing a w\mathbf{w} such that σ(n)(w⊤zi)≠0\sigma^{(n)}\left(\mathbf{w}^{\top}\mathbf{z}_{i}\right)\neq 0 for all i∈[n]i\in[n] (such w\mathbf{w} exists because of our assumption on σ\sigma), we have ai=0a_{i}=0 for all i∈[n]i\in[n]. ∎

In this section we show as long as no two input vectors are parallel, then K(H)\mathbf{K}^{(H)} defined in Equation (8) is strictly positive definite. Furthermore, λmin⁡(K(H))\lambda_{\min}\left(\mathbf{K}^{(H)}\right) does not depend inverse exponentially in HH.

Assume σ(⋅)\sigma(\cdot) satisfies Condition 3.2 and for any i,j∈[n],i≠ji,j\in[n],i\neq j, xi∦xj\mathbf{x}_{i}\not\parallel\mathbf{x}_{j}. Recall that in Equation (8), we define

where cH∼1H2c_{H}\sim\frac{1}{H^{2}}. Then we have λmin⁡(K(H))≥cHκ\lambda_{\min}(\mathbf{K}^{(H)})\geq c_{H}\kappa, where κ\kappa is a constant that only depends on the activation σ\sigma and the input data. In particular, κ\kappa does not depend on the depth.

First note Kii(H−1)∈[1/cx,02,cx,02]\mathbf{K}_{ii}^{(H-1)}\in[1/c_{x,0}^{2},c_{x,0}^{2}] for all HH, 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 λ(K(H−1))≥cHλ(K(0))\lambda(\mathbf{K}^{(H-1)})\geq c_{H}\lambda\left(\mathbf{K}^{(0)}\right).

If D(h)\mathcal{D}^{(h)} 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, D(h)\mathcal{D}^{(h)} is the identity mapping so we have

Appendix G Useful Technical Lemmas

Given a set of matrices {Ai,Bi:i∈[n]}\{\mathbf{A}_{i},\mathbf{B}_{i}:i\in[n]\}, if ∥Ai∥2≤Mi\left\|\mathbf{A}_{i}\right\|_{2}\leq M_{i}, ∥Bi∥2≤Mi\left\|\mathbf{B}_{i}\right\|_{2}\leq M_{i} and ∥Ai−Bi∥F≤αiMi\left\|\mathbf{A}_{i}-\mathbf{B}_{i}\right\|_{F}\leq\alpha_{i}M_{i}, we have

where cw,0>c+1c_{w,0}>\sqrt{c}+1 is a constant.

The lemma is a consequence of well-known deviations bounds concerning the singular values of Gaussian random matrices (Vershynin, 2010)

Choosing t=(cw,0−c−1)mt=\left(c_{w,0}-\sqrt{c}-1\right)\sqrt{m}, we prove the lemma. ∎

for some constant C>0C>0 that depends only on cc and the constants in Condition 3.1.

We compute for any min⁡(a,b)≤α≤max⁡(a,b)\min(a,b)\leq\alpha\leq\max(a,b)

Applying Taylor’s Theorem we finish the proof. ∎

Assume σ(⋅)\sigma\left(\cdot\right) satisfies Condition 3.1. Suppose that there exists some constant c>0c>0 such that A=[a12ρa1b1ρ1a1b1b12]\mathbf{A}=\begin{bmatrix}a_{1}^{2}&\rho a_{1}b_{1}\\ \rho_{1}a_{1}b_{1}&b_{1}^{2}\end{bmatrix}, 1c≤min⁡(a1,b1)\frac{1}{c}\leq\min(a_{1},b_{1}), max⁡(a1,b1)≤c\max(a_{1},b_{1})\leq c, B=[a22ρ2a2b2ρa2b2b22]\mathbf{B}=\begin{bmatrix}a_{2}^{2}&\rho_{2}a_{2}b_{2}\\ \rho a_{2}b_{2}&b_{2}^{2}\end{bmatrix}, 1c≤min⁡(a2,b2)\frac{1}{c}\leq\min(a_{2},b_{2}), max⁡(a2,b2)≤c\max(a_{2},b_{2})\leq c

for some constant C>0C>0 that depends only on cc and the constants in Condition 3.1.

Let A′=[a2ρabρabb2]≻0\mathbf{A}^{\prime}=\begin{bmatrix}a^{2}&\rho ab\\ \rho ab&b^{2}\end{bmatrix}\succ 0 with min⁡(a1,a2)≤a≤max⁡(a1,a2)\min(a_{1},a_{2})\leq a\leq\max(a_{1},a_{2}), min⁡(b1,b2)≤b≤max⁡(b1,b2)\min(b_{1},b_{2})\leq b\leq\max(b_{1},b_{2}) and min⁡(ρ1,ρ2)≤ρ≤max⁡(ρ1,ρ2)\min(\rho_{1},\rho_{2})\leq\rho\leq\max(\rho_{1},\rho 2). We can express

Recall L2={f:∫f(z)e−z2/2dz<∞}{\mathcal{L}^{2}}=\{f:\int f(z)e^{-z^{2}/2}dz<\infty\} is the Gaussian function space. We compute

Note by Condition 3.1 we know there exists BρB_{\rho}, BaB_{a} and BbB_{b} 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 ∇A′F(A′)\nabla_{\mathbf{A}^{\prime}}F(\mathbf{A}^{\prime}). We see that

We can easily verify that ∣∂ρ∂A12′∣≤1/c2|\frac{\partial\rho}{\partial A_{12}^{\prime}}|\leq 1/c^{2}, and so we have

Define Bσ=max⁡(Ba,Bb,Bρ)B_{\sigma}=\max(B_{a},B_{b},B_{\rho}). This establishes ∥∇F(A′)∥F≤2Bσ/c2≤C\|\nabla F(\mathbf{A}^{\prime})\|_{F}\leq 2B_{\sigma}/c^{2}\leq C for some constant C>0C>0. 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 A,B\mathbf{A},\mathbf{B} with 1c≤Aii,Bii≤c\frac{1}{c}\leq\mathbf{A}_{ii},\mathbf{B}_{ii}\leq c for some constant c>0c>0, we have

The result follows by applying Lemma G.3 to all coordiniates and applying Lemma G.4 to all 2×22\times 2 submatrices. ∎

Note by induction hypothesis any size (n−1)(n-1) subset of {vec(v1⊗(n−1)),…,vec(vn⊗(n−1))}\left\{\text{vec}\left(\mathbf{v}_{1}^{\otimes(n-1)}\right),\ldots,\text{vec}\left(\mathbf{v}_{n}^{\otimes(n-1)}\right)\right\} is linearly independent. This implies if αivi,p=0\alpha_{i}\mathbf{v}_{i,p}=0 for some i∈[n]i\in[n] and p∈[d]p\in[d], then we must have αjvj,p=0\alpha_{j}\mathbf{v}_{j,p}=0 for all j∈[n]j\in[n]. Combining this observation with the assumption that every vi\mathbf{v}_{i} is non-zero, there must exist p∈[d]p\in[d] such that vi,p≠0\mathbf{v}_{i,p}\neq 0 for all i∈[n]i\in[n]. Without loss of generality, we assume vi,1≠0\mathbf{v}_{i,1}\neq 0 for all i∈[n]i\in[n].

Next, note if there exists αi=0\alpha_{i}=0, then we have αj=0\alpha_{j}=0 for all j∈[n]j\in[n] because vj,p≠0\mathbf{v}_{j,p}\neq 0 for all j∈[n]j\in[n] and the linear independence induction hypothesis. Therefore from now on we assume αi≠0\alpha_{i}\neq 0 for all i∈[n]i\in[n].

By multiplying the second equation by v1,pv1,1\frac{\mathbf{v}_{1,p}}{\mathbf{v}_{1,1}} and subtracting,

Using the linear independence induction hypothesis, we know for i=2,…,ni=2,\ldots,n:

Note this implies all vi\mathbf{v}_{i}, i∈[n]i\in[n] are on the same line. This contradicts with the non-parallel assumption. ∎