Gradient Descent Provably Optimizes Over-parameterized Neural Networks

Simon S. Du, Xiyu Zhai, Barnabas Poczos, Aarti Singh

Introduction

Neural networks trained by first order methods have achieved a remarkable impact on many applications, but their theoretical properties are still mysteries. One of the empirical observation is even though the optimization objective function is non-convex and non-smooth, randomly initialized first order methods like stochastic gradient descent can still find a global minimum. Surprisingly, this property is not correlated with labels. In Zhang et al. (2016), authors replaced the true labels with randomly generated labels, but still found randomly initialized first order methods can always achieve zero training loss.

A widely believed explanation on why a neural network can fit all training labels is that the neural network is over-parameterized. For example, Wide ResNet (Zagoruyko and Komodakis, ) uses 100x parameters than the number of training data. Thus there must exist one such neural network of this architecture that can fit all training data. However, the existence does not imply why the network found by a randomly initialized first order method can fit all the data. The objective function is neither smooth nor convex, which makes traditional analysis technique from convex optimization not useful in this setting. To our knowledge, only the convergence to a stationary point is known (Davis et al., 2018).

In this paper we demystify this surprising phenomenon on two-layer neural networks with rectified linear unit (ReLU) activation. Formally, we consider a neural network of the following form.

We focus on the empirical risk minimization problem with a quadratic loss. Given a training data set {(xi,yi)}i=1n\left\{(\mathbf{x}_{i},y_{i})\right\}_{i=1}^{n}, we want to minimize

Our main focus of this paper is to analyze the following procedure. We fix the second layer and apply gradient descent (GD) to optimize the first layerIn Section 3.2, we also extend our technique to analyze the setting where we train both layers jointly.

where η>0\eta>0 is the step size. Here the gradient formula for each weight vector is Note ReLU is not continuously differentiable. One can view ∂L(W)∂wr\frac{\partial L(\mathbf{W})}{\partial\mathbf{w}_{r}} as a convenient notation for the right hand side of (4) and this is the update rule used in practice.

Though this is only a shallow fully connected neural network, the objective function is still non-smooth and non-convex due to the use of ReLU activation function. We remark that if one fixes the first layer and only optimizes the output layer, then the problem becomes a convex and smooth one. If mm is large enough, one can show the global minimum has zero training loss (Nguyen and Hein, 2018). Though for both cases (fixing the first layer and fixing the output layer), gradient descent achieves zero training loss, the learned prediction functions are different. Even for this simple function, why randomly initialized first order method can achieve zero training error is not known. Many previous works have tried to answer this question or similar ones. Attempts include landscape analysis (Soudry and Carmon, 2016), partial differential equations (Mei et al., ), analysis of the dynamics of the algorithm (Li and Yuan, 2017), optimal transport theory (Chizat and Bach, 2018), to name a few. These results often make strong assumptions on the labels and input distributions or do not imply why randomly initialized first order method can achieve zero training loss. See Section 2 for detailed comparisons between our result and previous ones.

In this paper, we rigorously prove that as long as no two inputs are parallel and mm is large enough, with randomly initialized a\mathbf{a} and W(0)\mathbf{W}(0), gradient descent achieves zero training loss at a linear convergence rate, i.e., it finds a solution W(K)\mathbf{W}(K) with L(W(K))≤ϵL(\mathbf{W}(K))\leq\epsilon in K=O(log⁡(1/ϵ))K=O(\log\left(1/\epsilon\right)) iterations.Here we omit the polynomial dependency on nn and other data-dependent quantities. Thus, our theoretical result not only shows the global convergence but also gives a quantitative convergence rate in terms of the desired accuracy.

Comparison with Previous Results

In this section, we survey an incomplete list of previous attempts in analyzing why first order methods can find a global minimum.

A popular way to analyze non-convex optimization problems is to identify whether the optimization landscape has some good geometric properties. Recently, researchers found if the objective function is smooth and satisfies (1) all local minima are global and (2) for every saddle point, there exists a negative curvature, then the noise-injected (stochastic) gradient descent (Jin et al., 2017; Ge et al., 2015; Du et al., 2017a) can find a global minimum in polynomial time. This algorithmic finding encouraged researchers to study whether the deep neural networks also admit these properties.

For the objective function defined in Equation (2), some partial results were obtained. Soudry and Carmon (2016) showed if md≥nmd\geq n, then at every differentiable local minimum, the training error is zero. However, since the objective is non-smooth, it is hard to show gradient descent convergences to a differentiable local minimum. Xie et al. (2017) studied the same problem and related the loss to the gradient norm through the least singular value of the “extended feature matrix” D\mathbf{D} at the stationary points. However, they did not prove the convergence rate of the gradient norm. Interestingly, our analysis relies on the Gram matrix which is DD⊤\mathbf{D}\mathbf{D}^{\top}.

Landscape analyses of ReLU activated neural networks for other settings have also been studied in many previous works (Ge et al., 2017; Safran and Shamir, 2016; Zhou and Liang, 2017; Freeman and Bruna, 2016; Hardt and Ma, 2016; Nguyen and Hein, 2018). These works establish favorable landscape properties but none of them implies that gradient descent converges to a global minimizer of the empirical risk. More recently, some negative results have also been discovered (Safran and Shamir, 2018; Yun et al., 2018a) and new procedures have been proposed to test local optimality and escape strict saddle points at non-differentiable points (Yun et al., 2018b). However, the new procedures cannot find global minima as well. For other activation functions, some previous works showed the landscape does have the desired geometric properties (Du and Lee, 2018; Soltanolkotabi et al., 2018; Nguyen and Hein, 2017; Kawaguchi, 2016; Haeffele and Vidal, 2015; Andoni et al., 2014; Venturi et al., 2018; Yun et al., 2018a). However, it is unclear how to extend their analyses to our setting.

Another way to prove convergence result is to analyze the dynamics of first order methods directly. Our paper also belongs to this category. Many previous works assumed (1) the input distribution is Gaussian and (2) the label is generated according to a planted neural network. Based on these two (unrealistic) conditions, it can be shown that randomly initialized (stochastic) gradient descent can learn a ReLU (Tian, 2017; Soltanolkotabi, 2017), a single convolutional filter (Brutzkus and Globerson, 2017), a convolutional neural network with one filter and one output layer (Du et al., 2018b) and residual network with small spectral norm weight matrix (Li and Yuan, 2017).Since these work assume the label is realizable, converging to global minimum is equivalent to recovering the underlying model. Beyond Gaussian input distribution, Du et al. (2017b) showed for learning a convolutional filter, the Gaussian input distribution assumption can be relaxed but they still required the label is generated from an underlying true filter. Comparing with these work, our paper does not try to recover the underlying true neural network. Instead, we focus on providing theoretical justification on why randomly initialized gradient descent can achieve zero training loss, which is what we can observe and verify in practice.

Jacot et al. (2018) established an asymptotic result showing for the multilayer fully-connected neural network with a smooth activation function, if every layer’s weight matrix is infinitely wide, then for finite training time, the convergence of gradient descent can be characterized by a kernel. Our proof technique relies on a Gram matrix which is the kernel matrix in their paper. Our paper focuses on the two-layer neural network with ReLU activation function (non-smooth) and we are able to prove the Gram matrix is stable for infinite training time.

Chizat and Bach (2018) used optimal transport theory to analyze continuous time gradient descent on over-parameterized models. They required the second layer to be infinitely wide and their results on ReLU activated neural network is only at the formal level. Mei et al. analyzed SGD for optimizing the population loss and showed the dynamics can be captured by a partial differential equation in the suitable scaling limit. They listed some specific examples on input distributions including mixture of Gaussians. However, it is still unclear whether this framework can explain why first order methods can minimize the empirical risk. Daniely (2017) built connection between 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. Again this work does not imply why first order methods can achieve zero training loss.

Continuous Time Analysis

In this section, we present our result for gradient flow, i.e., gradient descent with infinitesimal step size. The analysis of gradient flow is a stepping stone towards understanding discrete algorithms and this is the main topic of recent work (Arora et al., 2018; Du et al., 2018a). In the next section, we will modify the proof and give a quantitative bound for gradient descent with positive step size. Formally, we consider the ordinary differential equationStrictly speaking, this should be differential inclusion (Davis et al., 2018) defined by:

H∞\mathbf{H}^{\infty} is the Gram matrix induced by the ReLU activation function and the random initialization. Later we will show that during the training, though the Gram matrix may change (c.f. Equation (6)), it is still close to H∞\mathbf{H}^{\infty}. Furthermore, as will be apparent in the proof (c.f. Equation (7)), H∞\mathbf{H}^{\infty} is the fundamental quantity that determines the convergence rate. Interestingly, various properties of this H∞\mathbf{H}^{\infty} matrix has been studied in previous works (Xie et al., 2017; Tsuchida et al., 2017). Now to justify this assumption, the following theorem shows if no two inputs are parallel the least eigenvalue is strictly positive.

If for any i≠ji\neq j, xi∦xj\mathbf{x}_{i}\not\parallel\mathbf{x}_{j}, then λ0>0\lambda_{0}>0.

Note for most real world datasets, no two inputs are parallel, so our assumption holds in general. Now we are ready to state our main theorem in this section.

Our first step is to calculate the dynamics of each prediction.

where H(t)\mathbf{H}(t) is an n×nn\times n matrix with (i,j)(i,j)-th entry

With this H(t)\mathbf{H}(t) matrix, we can write the dynamics of predictions in a compact way:

Note Equation (7) completely describes the dynamics of the predictions. In the rest of this section, we will show (1) at initialization ∥H(0)−H∞∥2\left\|\mathbf{H}(0)-\mathbf{H}^{\infty}\right\|_{2} is O(1/m)O(\sqrt{1/m}) and (2) for all t>0t>0, ∥H(t)−H(0)∥2\left\|\mathbf{H}(t)-\mathbf{H}(0)\right\|_{2} is O(1/m)O(\sqrt{1/m}). Therefore, according to Equation (7), as m→∞m\rightarrow\infty, the dynamics of the predictions are characterized by H∞\mathbf{H}^{\infty}. This is the main reason we believe H∞\mathbf{H}^{\infty} is the fundamental quantity that describes this optimization process.

H(t)\mathbf{H}(t) is a time-dependent symmetric matrix. We first analyze its property when t=0t=0. The following lemma shows if mm is large then H(0)\mathbf{H}(0) has a lower bounded least eigenvalue with high probability. The proof is by the standard concentration bound so we defer it to the appendix.

If m=Ω(n2λ02log⁡(nδ))m=\Omega\left(\frac{n^{2}}{\lambda_{0}^{2}}\log\left(\frac{n}{\delta}\right)\right), we have with probability at least 1−δ1-\delta, ∥H(0)−H∞∥2≤λ04\left\|\mathbf{H}(0)-\mathbf{H}^{\infty}\right\|_{2}\leq\frac{\lambda_{0}}{4} and λmin⁡(H(0))≥34λ0\lambda_{\min}(\mathbf{H}(0))\geq\frac{3}{4}\lambda_{0}.

Our second step is to show H(t)\mathbf{H}(t) is stable in terms of W(t)\mathbf{W}(t). Formally, the following lemma shows for any W\mathbf{W} close to W(0)\mathbf{W}(0), the induced Gram matrix H\mathbf{H} is close to H(0)\mathbf{H}(0) and has a lower bounded least eigenvalue.

satisfies ∥H−H(0)∥2<λ04\left\|\mathbf{H}-\mathbf{H}(0)\right\|_{2}<\frac{\lambda_{0}}{4} and λmin⁡(H)>λ02\lambda_{\min}\left(\mathbf{H}\right)>\frac{\lambda_{0}}{2}.

This lemma plays a crucial role in our analysis so we give the proof below.

Note this event happens if and only if ∣wr(0)⊤xi∣<R\left|\mathbf{w}_{r}(0)^{\top}\mathbf{x}_{i}\right|<R. Recall wr(0)∼N(0,I)\mathbf{w}_{r}(0)\sim N(\mathbf{0},\mathbf{I}). By anti-concentration inequality of Gaussian, we have P(Air)=Pz∼N(0,1)(∣z∣<R)≤2R2π.P(A_{ir})=P_{z\sim N(0,1)}\left(\left|z\right|<R\right)\leq\frac{2R}{\sqrt{2\pi}}. Therefore, for any set of weight vectors w1,…,wm\mathbf{w}_{1},\ldots,\mathbf{w}_{m} that satisfy the assumption in the lemma, we can bound the entry-wise deviation on their induced matrix H\mathbf{H}: for any (i,j)∈[n]×[n](i,j)\in[n]\times[n]

Lastly, we lower bound the smallest eigenvalue by plugging in RR

The next lemma shows two facts if the least eigenvalue of H(t)\mathbf{H}(t) is lower bounded. First, the loss converges to at a linear convergence rate. Second, wr(t)\mathbf{w}_{r}(t) is close to the initialization for every r∈[m]r\in[m]. This lemma clearly demonstrates the power of over-parameterization.

Suppose for 0≤s≤t0\leq s\leq t, λmin⁡(H(s))≥λ02\lambda_{\min}\left(\mathbf{H}(s)\right)\geq\frac{\lambda_{0}}{2}. Then we have ∥y−u(t)∥22≤exp⁡(−λ0t)∥y−u(0)∥22\left\|\mathbf{y}-\mathbf{u}(t)\right\|_{2}^{2}\leq\exp(-\lambda_{0}t)\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}^{2} and for any r∈[m]r\in[m], ∥wr(t)−wr(0)∥2≤n∥y−u(0)∥2mλ0≜R′.\left\|\mathbf{w}_{r}(t)-\mathbf{w}_{r}(0)\right\|_{2}\leq\frac{\sqrt{n}\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}}{\sqrt{m}\lambda_{0}}\triangleq R^{\prime}.

Proof of Lemma 3.3 Recall we can write the dynamics of predictions as ddtu(t)=H(y−u(t)).\frac{d}{dt}\mathbf{u}(t)=\mathbf{H}(\mathbf{y}-\mathbf{u}(t)). We can calculate the loss function dynamics

Thus we have ddt(exp⁡(λ0t)∥y−u(t)∥22)≤0\frac{d}{dt}\left(\exp(\lambda_{0}t)\left\|\mathbf{y}-\mathbf{u}(t)\right\|_{2}^{2}\right)\leq 0 and exp⁡(λ0t)∥y−u(t)∥22\exp(\lambda_{0}t)\left\|\mathbf{y}-\mathbf{u}(t)\right\|_{2}^{2} is a decreasing function with respect to tt. Using this fact we can bound the loss

Therefore, u(t)→y\mathbf{u}(t)\rightarrow\mathbf{y} exponentially fast. Now we bound the gradient norm. Recall for 0≤s≤t0\leq s\leq t,

Integrating the gradient, we can bound the distance from the initialization

The next lemma shows if R′<RR^{\prime}<R, the conditions in Lemma 3.2 and 3.3 hold for all t≥0t\geq 0. The proof is by contradiction and we defer it to appendix.

If R′<RR^{\prime}<R, we have for all t≥0t\geq 0, λmin⁡(H(t))≥12λ0\lambda_{\min}\mathbf{(H}(t))\geq\frac{1}{2}\lambda_{0}, for all r∈[m]r\in[m], ∥wr(t)−wr(0)∥2≤R′\left\|\mathbf{w}_{r}(t)-\mathbf{w}_{r}(0)\right\|_{2}\leq R^{\prime} and ∥y−u(t)∥22≤exp⁡(−λ0t)∥y−u(0)∥22\left\|\mathbf{y}-\mathbf{u}(t)\right\|_{2}^{2}\leq\exp(-\lambda_{0}t)\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}^{2}.

Thus it is sufficient to show R′<RR^{\prime}<R which is equivalent to m=Ω(n5∥y−u(0)∥22λ04δ2).m=\Omega\left(\frac{n^{5}\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}^{2}}{\lambda_{0}^{4}\delta^{2}}\right). We bound

Thus by Markov’s inequality, we have with probability at least 1−δ1-\delta, ∥y−u(0)∥22=O(nδ)\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}^{2}=O(\frac{n}{\delta}). Plugging in this bound we prove the theorem. ∎

2 Jointly Training Both Layers

In this subsection, we showcase our proof technique can be applied to analyze the convergence of gradient flow for jointly training both layers. Formally, we consider the ordinary differential equation defined by:

for r=1,…,mr=1,\ldots,m. The following theorem shows using gradient flow to jointly train both layers, we can still enjoy linear convergence rate towards zero loss.

Theorem 3.3 shows under the same assumptions as in Theorem 3.2, we can achieve the same convergence rate as that of only training the first layer. The proof of Theorem 3.3 relies on the same arguments as the proof of Theorem 3.2. Again we consider the dynamics of the predictions and this dynamics is characterized by a Gram matrix. We can show for all t>0t>0, this Gram matrix is close to the Gram matrix at the initialization phase. We refer readers to appendix for the full proof.

Discrete Time Analysis

In this section, we show randomly initialized gradient descent with a constant positive step size converges to the global minimum at a linear rate. We first present our main theorem.

Theorem 4.1 shows even though the objective function is non-smooth and non-convex, gradient descent with a constant step size still enjoys a linear convergence rate. Our assumptions on the least eigenvalue and the number of hidden nodes are exactly the same as the theorem for gradient flow.

We prove Theorem 4.1 by induction. Our induction hypothesis is just the following convergence rate of the empirical loss.

At the kk-th iteration, we have ∥y−u(k)∥22≤(1−ηλ02)k∥y−u(0)∥22.\left\|\mathbf{y}-\mathbf{u}(k)\right\|_{2}^{2}\leq(1-\frac{\eta\lambda_{0}}{2})^{k}\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}^{2}.

A directly corollary of this condition is the following bound of deviation from the initialization. The proof is similar to that of Lemma 3.3 so we defer it to appendix.

If Condition 4.1 holds for k′=0,…,kk^{\prime}=0,\ldots,k, then we have for every r∈[m]r\in[m]

Now we show Condition 4.1 holds for every k=0,1,…k=0,1,\ldots. For the base case k=0k=0, by definition Condition 4.1 holds. Suppose for k′=0,…,kk^{\prime}=0,\ldots,k, Condition 4.1 holds and we want to show Condition 4.1 holds for k′=k+1k^{\prime}=k+1.

Our strategy is similar to the proof of Theorem 3.2. We define the event

With probability at least 1−δ1-\delta over the initialization, we have ∑i=1n∣Si⊥∣≤CmnRδ\sum_{i=1}^{n}\left|S_{i}^{\perp}\right|\leq\frac{CmnR}{\delta} for some positive constant C>0C>0.

Next, we calculate the difference of predictions between two consecutive iterations, analogue to dui(t)dt\frac{du_{i}(t)}{dt} term in Section 3.

Here we divide the right hand side into two parts. I1iI_{1}^{i} accounts for terms that the pattern does not change and I2iI_{2}^{i} accounts for terms that pattern may change.

We view I2iI_{2}^{i} as a perturbation and bound its magnitude. Because ReLU is a 11-Lipschitz function and ∣ar∣=1\left|a_{r}\right|=1, we have

Similar to the classical analysis of gradient descent, we also need bound the quadratic term.

With these estimates at hand, we are ready to prove the induction hypothesis.

The third equality we used the decomposition of u(k+1)−u(k)\mathbf{u}(k+1)-\mathbf{u}(k). The first inequality we used the Lemma 3.2, the bound on the step size, the bound on I2\mathbf{I}_{2}, the bound on ∥H(k)⊥∥2\left\|\mathbf{H}(k)^{\perp}\right\|_{2} and the bound on ∥u(k+1)−u(k)∥22\left\|\mathbf{u}(k+1)-\mathbf{u}(k)\right\|_{2}^{2}. The last inequality we used the bound of the step size and the bound of RR. Therefore Condition 4.1 holds for k′=k+1k^{\prime}=k+1. Now by induction, we prove Theorem 4.1. ∎

Experiments

In this section, we use synthetic data to corroborate our theoretical findings. We use the initialization and training procedure described in Section 1. For all experiments, we run 100100 epochs of gradient descent and use a fixed step size. We uniformly generate n=1000n=1000 data points from a d=1000d=1000 dimensional unit sphere and generate labels from a one-dimensional standard Gaussian distribution.

Figure 1(a) shows as mm becomes larger, we have better convergence rate. We believe the reason is as mm becomes larger, H(t)\mathbf{H}(t) matrix becomes more stable, and thus has larger least eigenvalue. Figure 1(b) and Figure 1(c) show as mm becomes larger, the percentiles of pattern changes and the maximum distance from the initialization become smaller. These empirical findings are consistent with our theoretical results.

Conclusion and Discussion

In this paper we show with over-parameterization, gradient descent provable converges to the global minimum of the empirical loss at a linear convergence rate. The key proof idea is to show the over-parameterization makes Gram matrix remain positive definite for all iterations, which in turn guarantees the linear convergence. Here we list some future directions.

First, we believe our approach can be generalized to deep neural networks. We elaborate the main idea here for gradient flow. Consider a deep neural network of the form

Similar to Equation (5), we can calculate

Note for every h∈[H]h\in[H], G(h)\mathbf{G}^{(h)} is a Gram matrix and thus it is positive semidefinite. If ∑h=1HG(h)(t)\sum_{h=1}^{H}\mathbf{G}^{(h)}(t) has a lower bounded least eigenvalue for all tt, then similar to Section 3, gradient flow converges to zero training loss at a linear convergence rate. Based on our observations in Remark 3.1, we conjecture that if mm is large enough, ∑h=1HG(h)(0)\sum_{h=1}^{H}\mathbf{G}^{(h)}(0) is close to a fixed matrix ∑h=1HG∞(h)\sum_{h=1}^{H}\mathbf{G}^{(h)}_{\infty} and ∑h=1HG(h)(t)\sum_{h=1}^{H}\mathbf{G}^{(h)}(t) is close its initialization ∑h=1HG(h)(0)\sum_{h=1}^{H}\mathbf{G}^{(h)}(0) for all t>0t>0. Therefore, using the same arguments as we used in Section 3, as long as ∑h=1HG∞(h)\sum_{h=1}^{H}\mathbf{G}^{(h)}_{\infty} has a lower bounded least eigenvalue, gradient flow converges to zero training loss at a linear convergence rate.

Second, we believe the number of hidden nodes mm required can be reduced. For example, previous work (Soudry and Carmon, 2016) showed m≥ndm\geq\frac{n}{d} is enough to make all differentiable local minima global. In our setting, using advanced tools from probability and matrix perturbation theory to analyze H(t)\mathbf{H}(t), we may be able to tighten the bound.

Lastly, in our paper, we used the empirical loss as a potential function to measure the progress. If we use another potential function, we may be able to prove the convergence rates of accelerated methods. This technique has been exploited in Wilson et al. (2016) for analyzing convex optimization. It would be interesting to bring their idea to analyze other first order methods for optimizing neural networks.

This research was partly funded by AFRL grant FA8750-17-2-0212 and DARPA D17AP00001. We thank Wei Hu, Jason D. Lee and Ruosong Wang for useful discussions.

References

Appendix A Technical Proofs for Section 3

If for any i≠ji\neq j, xi∦xj\mathbf{x}_{i}\not\parallel\mathbf{x}_{j}, then for any i∈[m]i\in[m], Di⊄⋃j≠iDjD_{i}\not\subset\bigcup\limits_{j\neq i}D_{j}.

Now for a fixed i∈[n]i\in[n], since Di⊄⋃j≠iDjD_{i}\not\subset\bigcup\limits_{j\neq i}D_{j}, we can choose z∈Di∖⋃j≠iDj\mathbf{z}\in D_{i}\setminus\bigcup\limits_{j\neq i}D_{j}. Note Dj,j≠iD_{j},j\neq i are closed sets. We can pick r0>0r_{0}>0 small enough such that B(z,r)∩Dj=∅,∀j≠i,r≤r0.B(\mathbf{z},r)\cap D_{j}=\emptyset,\forall j\neq i,r\leq r_{0}. Let B(z,r)=Br+⊔Br−B(\mathbf{z},r)=B_{r}^{+}\sqcup B_{r}^{-} where

For j≠ij\neq i, ϕ(xj)(w)\phi(\mathbf{x}_{j})(\mathbf{w}) is continuous in a neighborhood of z\mathbf{z}, then for any ϵ>0\epsilon>0 there is a small enough r>0r>0 such that

Therefore, as r→0+r\rightarrow 0+, by continuity, we have

For w∈Br−\mathbf{w}\in B^{-}_{r} and xi\mathbf{x}_{i}, we know (ϕ(xi))(w)=0(\phi(\mathbf{x}_{i}))(\mathbf{w})=0. Then we have

Now recall ∑iαiϕ(xi)≡0\sum_{i}\alpha_{i}\phi(\mathbf{x}_{i})\equiv 0. Using Equation (9), (10) and (11), we have

Since xi≠0\mathbf{x}_{i}\neq 0, we must have αi=0\alpha_{i}=0. We complete the proof. ∎

Let μ\mu be the canonical Lebesgue measure on DiD_{i}. We have ∑j≠iμ(Di∩Dj)=0\sum_{j\neq i}\mu(D_{i}\cap D_{j})=0 because Di∩DjD_{i}\cap D_{j} is a hyperplane in DiD_{i}. Now we bound

For every fixed (i,j)(i,j) pair, Hij(0)\mathbf{H}_{ij}(0) is an average of independent random variables. Therefore, by Hoeffding inequality, we have with probability 1−δ′1-\delta^{\prime},

Setting δ′=n2δ\delta^{\prime}=n^{2}\delta and applying union bound over (i,j)(i,j) pairs, we have for every (i,j)(i,j) pair with probability at least 1−δ1-\delta

Thus if m=Ω(n2log⁡(n/δ)λ02)m=\Omega\left(\frac{n^{2}\log(n/\delta)}{\lambda_{0}^{2}}\right) we have the desired result. ∎

Suppose the conclusion does not hold at time tt. If there exists r∈[m]r\in[m], ∥wr(t)−wr(0)∥≥R′\left\|\mathbf{w}_{r}(t)-\mathbf{w}_{r}(0)\right\|\geq R^{\prime} or ∥y−u(t)∥22>exp⁡(−λ0t)∥y−u(0)∥22\left\|\mathbf{y}-\mathbf{u}(t)\right\|_{2}^{2}>\exp(-\lambda_{0}t)\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}^{2}, then by Lemma 3.3 we know there exists s≤ts\leq t such that λmin⁡(H(s))<12λ0\lambda_{\min}(\mathbf{H}(s))<\frac{1}{2}\lambda_{0}. By Lemma 3.2 we know there exists

Thus at t0t_{0}, there exists r∈[m]r\in[m], ∥wr(t0)−wr(0)∥22=R\left\|\mathbf{w}_{r}(t_{0})-\mathbf{w}_{r}(0)\right\|_{2}^{2}=R. Now by Lemma 3.2, we know H(t0)≥12λ0\mathbf{H}(t_{0})\geq\frac{1}{2}\lambda_{0} for t′≤t0t^{\prime}\leq t_{0}. However, by Lemma 3.3, we know ∥wr(t0)−wr(0)∥2<R′<R\left\|\mathbf{w}_{r}(t_{0})-\mathbf{w}_{r}(0)\right\|_{2}<R^{\prime}<R. Contradiction.

For the other case, at time tt, λmin⁡(H(t))<12λ0\lambda_{\min}(\mathbf{H}(t))<\frac{1}{2}\lambda_{0} we know there exists

The rest of the proof is the same as the previous case. ∎

In this section we show using gradient flow to jointly train both the first layer and the output layer we can still achieve training loss. We follow the same approach we used in Section 3. Recall the gradient for a\mathbf{a}.

We compute the dynamics of an individual prediction.

Recall we have found a convenient expression for the first term.

First use the same concentration arguments as in Lemma 3.1, we can show λmin⁡(H(0))≥3λ04\lambda_{\min}(\mathbf{H}(0))\geq\frac{3\lambda_{0}}{4} with 1−δ1-\delta probability over the initialization. In the following, our arguments will base on that λmin⁡(H(0))≥3λ04\lambda_{\min}(\mathbf{H}(0))\geq\frac{3\lambda_{0}}{4}.

The following lemma shows as long as H(t)\mathbf{H}(t) has lower bounded least eigenvalue, gradient flow enjoys a linear convergence rate. The proof is analogue to the first part of the proof of Lemma 3.3.

If for 0≤s≤t0\leq s\leq t, λmin⁡(H(s))≥λ02\lambda_{\min}(\mathbf{H}(s))\geq\frac{\lambda_{0}}{2}, we have ∥y−u(t)∥22≤exp⁡(−λ0t)∥y−u(0)∥22\left\|\mathbf{y}-\mathbf{u}(t)\right\|_{2}^{2}\leq\exp(-\lambda_{0}t)\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}^{2}.

We can calculate the loss function dynamics

where in the first inequality we use the fact that G(t)\mathbf{G}(t) is Gram matrix thus it is positive.In the proof, we have not take the advantage of G(t)\mathbf{G}(t) being a positive semidefinite matrix. Note if G(t)\mathbf{G}(t) is strictly positive definite, we can achieve faster convergence rate. Thus we have ddt(exp⁡(λ0t)∥y−u(t)∥22)≤0\frac{d}{dt}\left(\exp(\lambda_{0}t)\left\|\mathbf{y}-\mathbf{u}(t)\right\|_{2}^{2}\right)\leq 0 and exp⁡(λ0t)∥y−u(t)∥22\exp(\lambda_{0}t)\left\|\mathbf{y}-\mathbf{u}(t)\right\|_{2}^{2} is a decreasing function with respect to tt. Using this fact we can bound the loss

We continue to follow the analysis in Section 3. For convenience, we define

The first lemma characterizes how the perturbation in a\mathbf{a} and W\mathbf{W} affect the Gram matrix.

satisfies ∥H−H(0)∥2≤λ04\left\|\mathbf{H}-\mathbf{H}(0)\right\|_{2}\leq\frac{\lambda_{0}}{4} and λmin⁡(H)>λ02\lambda_{\min}\left(\mathbf{H}\right)>\frac{\lambda_{0}}{2}.

Using the same analysis for Lemma 3.3, we know ∥H′−H(0)∥2≤4n2Rw2πδ.\left\|\mathbf{H}^{\prime}-\mathbf{H}(0)\right\|_{2}\leq\frac{4n^{2}R_{w}}{\sqrt{2\pi}\delta}. Now we bound H−H′\mathbf{H}-\mathbf{H}^{\prime}. For fixed (i,j)∈[n]×[n](i,j)\in[n]\times[n], we have

Therefore, we have ∥H−H′∥2≤∑(i,j)∈[n]×[n]∣Hij−Hij′∣≤2n2Ra.\left\|\mathbf{H}-\mathbf{H}^{\prime}\right\|_{2}\leq\sum_{(i,j)\in[n]\times[n]}\left|\mathbf{H}_{ij}-\mathbf{H}_{ij}^{\prime}\right|\leq 2n^{2}R_{a}. Combing these two inequalities we have ∥H−H(0)∥2≤4n2Rw2πδ+2n2Ra≤λ04.\left\|\mathbf{H}-\mathbf{H}(0)\right\|_{2}\leq\frac{4n^{2}R_{w}}{\sqrt{2\pi}\delta}+2n^{2}R_{a}\leq\frac{\lambda_{0}}{4}. ∎

Suppose for 0≤s≤t0\leq s\leq t, λmin⁡(H(s))≥λ02\lambda_{\min}\left(\mathbf{H}(s)\right)\geq\frac{\lambda_{0}}{2} and ∣ar(s)−ar(0)∣≤Ra\left|\mathbf{a}_{r}(s)-\mathbf{a}_{r}(0)\right|\leq R_{a}. Then we have ∥wr(t)−wr(0)∥2≤Rw′\left\|\mathbf{w}_{r}(t)-\mathbf{w}_{r}(0)\right\|_{2}\leq R^{\prime}_{w}.

We bound the gradient. Recall for 0≤s≤t0\leq s\leq t,

Integrating the gradient and using Lemma A.2, we can bound the distance from the initialization

With probability at least 1−δ1-\delta over initialization, the following holds. Suppose for 0≤s≤t0\leq s\leq t, λmin⁡(H(s))≥λ02\lambda_{\min}\left(\mathbf{H}(s)\right)\geq\frac{\lambda_{0}}{2} and ∥wr(s)−wr(0)∥2≤Rw\left\|\mathbf{w}_{r}(s)-\mathbf{w}_{r}(0)\right\|_{2}\leq R_{w}. Then we have ∣a(t)−ar(0)∣≤Ra′\left|a(t)-a_{r}(0)\right|\leq R^{\prime}_{a} for all r∈[m]r\in[m].

Note for any i∈[n]i\in[n] and r∈[m]r\in[m], wr(0)⊤xi∼N(0,1)\mathbf{w}_{r}(0)^{\top}\mathbf{x}_{i}\sim N(0,1). Therefore applying Gaussian tail bound and union bound we have with probability at least 1−δ1-\delta, for all i∈[n]i\in[n] and r∈[m]r\in[m], ∣wr(0)⊤xi∣≤3log⁡(mnδ)\left|\mathbf{w}_{r}(0)^{\top}\mathbf{x}_{i}\right|\leq 3\sqrt{\log\left(\frac{mn}{\delta}\right)}. Now we bound the gradient. Recall for 0≤s≤t0\leq s\leq t,

Integrating the gradient, we can bound the distance from the initialization

If Rw′<RwR_{w}^{\prime}<R_{w} and Ra′<RaR_{a}^{\prime}<R_{a}, we have for all t≥0t\geq 0, λmin⁡(H(t))≥12λ0\lambda_{\min}\mathbf{(H}(t))\geq\frac{1}{2}\lambda_{0}, for all r∈[m]r\in[m], ∥wr(t)−wr(0)∥2≤Rw′\left\|\mathbf{w}_{r}(t)-\mathbf{w}_{r}(0)\right\|_{2}\leq R_{w}^{\prime}, ∣ar(t)−ar(0)∣≤Ra′\left|a_{r}(t)-a_{r}(0)\right|\leq R_{a}^{\prime} and ∥y−u(t)∥22≤exp⁡(−λ0t)∥y−u(0)∥22\left\|\mathbf{y}-\mathbf{u}(t)\right\|_{2}^{2}\leq\exp(-\lambda_{0}t)\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}^{2}.

We prove by contradiction. Let t>0t>0 be the smallest time that the conclusion does not hold. Then either λmin⁡(H(t))<λ02\lambda_{\min}(\mathbf{H}(t))<\frac{\lambda_{0}}{2} or there exists r∈[m]r\in[m], ∥wr(t)−wr(0)∥2≤Rw′\left\|\mathbf{w}_{r}(t)-\mathbf{w}_{r}(0)\right\|_{2}\leq R_{w}^{\prime} or there exists r∈[m]r\in[m], ∣ar−ar(0)∣≤Ra′\left|a_{r}-a_{r}(0)\right|\leq R_{a}^{\prime}. If λmin⁡(H(t))<λ02\lambda_{\min}(\mathbf{H}(t))<\frac{\lambda_{0}}{2}, by Lemma A.3, we know there exists s<ts<t such that either there exists r∈[m]r\in[m], ∥wr(s)−wr(0)∥2≤Rw\left\|\mathbf{w}_{r}(s)-\mathbf{w}_{r}(0)\right\|_{2}\leq R_{w} or there exists r∈[m]r\in[m], ∣ar(s)−ar(0)∣≤Ra\left|a_{r}(s)-a_{r}(0)\right|\leq R_{a}. However, since Rw′<RwR_{w}^{\prime}<R_{w} and Ra′<RaR_{a}^{\prime}<R_{a}. This contradicts with the minimality of tt. If there exists r∈[m]r\in[m], ∥wr−wr(0)∥2≤Rw′\left\|\mathbf{w}_{r}-\mathbf{w}_{r}(0)\right\|_{2}\leq R_{w}^{\prime}, then by Lemma A.4, we know there exists s<ts<t such that r∈[m]r\in[m], ∣ar(s)−ar(0)∣≤Ra\left|a_{r}(s)-a_{r}(0)\right|\leq R_{a} or λmin⁡(H(s))<λ02\lambda_{\min}(\mathbf{H}(s))<\frac{\lambda_{0}}{2}. However, since Rw′<RwR_{w}^{\prime}<R_{w} and Ra′<RaR_{a}^{\prime}<R_{a}. This contradicts with the minimality of tt. The last case is similar for which we can simply apply Lemma A.5. ∎

Based on Lemma A.2, we only need to ensure Rw′<RwR_{w}^{\prime}<R_{w} and Ra<Ra′R_{a}<R_{a}^{\prime}. By the proof in Section 3, we know with probability at least δ\delta, ∥y−u(0)∥2≤Cnδ\left\|\mathbf{y}-\mathbf{u}(0)\right\|_{2}\leq\frac{C\sqrt{n}}{\delta} for some large constant CC. Note our section on mm in Theorem 3.3 suffices to ensure Rw′<RwR_{w}^{\prime}<R_{w} and Ra<Ra′R_{a}<R_{a}^{\prime}. We now complete the proof.

Appendix B Technical Proofs for Section 4

We use the norm of gradient to bound this distance.

Thus by Markov’s inequality, we have with probability at least 1−δ1-\delta

for some large positive constant C>0C>0. ∎