Gradient descent aligns the layers of deep linear networks

Ziwei Ji, Matus Telgarsky

Introduction

Efforts to explain the effectiveness of gradient descent in deep learning have uncovered an exciting possibility: it not only finds solutions with low error, but also biases the search for low complexity solutions which generalize well (Zhang et al., 2017; Bartlett et al., 2017; Soudry et al., 2017; Gunasekar et al., 2018).

This paper analyzes the implicit regularization of gradient descent and gradient flow on deep linear networks and linearly separable data. For strictly decreasing losses, the optimum is at infinity, and we establish various alignment phenomena:

For each weight matrix WiW_{i}, the corresponding normalized weight matrix \nicefracWi∥Wi∥F\nicefrac{{W_{i}}}{{\|W_{i}\|_{F}}} asymptotically equals its rank-11 approximation uivi⊤u_{i}v_{i}^{\top}, where the Frobenius norm ∥Wi∥F\|W_{i}\|_{F} satisfies ∥Wi∥F→∞\|W_{i}\|_{F}\to\infty. In other words, \nicefrac∥Wi∥2∥Wi∥F→1\nicefrac{{\|W_{i}\|_{2}}}{{\|W_{i}\|_{F}}}\to 1, and asymptotically only the rank-11 approximation of WiW_{i} contributes to the final predictor, a form of implicit regularization.

Adjacent rank-11 weight matrix approximations are aligned: ∣vi+1⊤ui∣→1|v_{i+1}^{\top}{}u_{i}|\to 1.

Simultaneously, this work proves that the risk is globally optimized: it asymptotes to 0. Alignment and risk convergence are proved simultaneously; the phenomena are coupled within the proofs.

Since the layers align, they can be viewed as a minimum norm solution: they do not “waste norm” on components which are killed off when the layers are multiplied together. Said another way, given data ((xi,yi))i=1n((x_{i},y_{i}))_{i=1}^{n}, the normalized matrices (\nicefracW1∥W1∥F,…,\nicefracWL∥WL∥F)(\nicefrac{{W_{1}}}{{\|W_{1}\|_{F}}},\ldots,\nicefrac{{W_{L}}}{{\|W_{L}\|_{F}}}) asymptotically solve a maximum margin problem which demands all weight matrices be small, not merely their product:

The paper is organized as follows. This introduction continues with related work, notation, and assumptions in Sections 1.1 and 1.2. The analysis of gradient flow is in Section 2, and gradient descent is analyzed in Section 3. The paper closes with future directions in Section 4; a particular highlight is a preliminary experiment on CIFAR-10 which establishes empirically that a form of the alignment phenomenon occurs on the standard nonlinear network AlexNet.

𝑖1v_{i+1} of the subsequent layer is aligned with this uiu_{i}, which in these plots (with principal component axes) corresponds to following a horizontal line. 1.1 Related work On the implicit regularization of gradient descent, Soudry et al. (2017) show that for linear predictors and linearly separable data, the gradient descent iterates converge to the same direction as the maximum margin solution. Ji and Telgarsky (2018) further characterize such an implicit bias for general nonseparable data. Gunasekar et al. (2018) consider gradient descent on fully connected linear networks and linear convolutional networks. In particular, for the exponential loss, assuming the risk is minimized to and the gradients converge in direction, they show that the whole network converges in direction to the maximum margin solution. These two assumptions are on the gradient descent process itself, and specifically the second one might be hard to interpret and justify. Compared with Gunasekar et al. (2018), this paper proves that the risk converges to and the weight matrices align; moreover the proof here proves the properties simultaneously, rather than assuming one and deriving the other. Lastly, Arora et al. (2018) show for deep linear networks (and later Du et al. (2018) for ReLU networks) that gradient flow does not change the difference between squared Frobenius norms of any two layers. We use a few of these tools in our proofs; please see Sections 2 and 3 for details.

For a smooth (nonconvex) function, Lee et al. (2016) show that any strict saddle can be avoided almost surely with small step sizes. If there are only countably many saddle points and they are all strict, and if gradient descent iterates converge, then this implies (almost surely) they converge to a local minimum. In the present work, since there is no finite local minimum, gradient descent will go to infinity and never converge, and thus these results of Lee et al. (2016) do not show that the risk converges to .

There has been a rich literature on linear networks. Saxe et al. (2013) analyze the learning dynamics of deep linear networks, showing that they exhibit some learning patterns similar to nonlinear networks, such as a long plateau followed by a rapid risk drop. Arora et al. (2018) show that depth can help accelerate optimization. On the landscape properties of deep linear networks, Lu and Kawaguchi (2017); Laurent and von Brecht (2017) show that under various structural assumptions, all local optima are global. Zhou and Liang (2018) give a necessary and sufficient characterization of critical points for deep linear networks.

2 Notation, setting, and assumptions

where ηt\eta_{t} is the step size at time tt.

We assume that the initialization of the network is not a critical point and induces a risk no larger than the risk of the trivial linear predictor .

It is natural to require that the initialization is not a critical point, since otherwise gradient flow/descent will never make a progress. The requirement R(W(0))≤R(0)\mathcal{R}\mathinner{\left(W(0)\right)}\leq\mathcal{R}(0) can be easily satisfied, for example, by making W1(0)=0W_{1}(0)=0 and WL(0)⋯W2(0)≠0W_{L}(0)\cdots W_{2}(0)\neq 0. On the other hand, if R(W(0))>R(0)\mathcal{R}\mathinner{\left(W(0)\right)}>\mathcal{R}(0), gradient flow/descent may never minimize the risk to . Proofs of those claims are given in Appendix A.

Results for gradient flow

One key property of gradient flow is that it never increases the risk:

Under Sections 1.2 and 1.2, gradient flow iterates satisfy the following properties:

For any 1≤k≤L1\leq k\leq L, lim⁡t→∞∥Wk∥F=∞\lim_{t\to\infty}\|W_{k}\|_{F}=\infty.

For any 1≤k≤L1\leq k\leq L, letting (uk,vk)(u_{k},v_{k}) denote the first left and right singular vectors of WkW_{k},

Moreover, for any 1≤k<L1\leq k<L, lim⁡t→∞ ⁣∣⟨vk+1,uk⟩∣=1\lim_{t\to\infty}\mathinner{\!\left\lvert\langle v_{k+1},u_{k}\rangle\right\rvert}=1. As a result,

The first lemma shows that for any R>0R>0, the time spent by gradient flow in B(R)B(R) is finite.

Under Section 1.2 and 1.2, for any R>0R>0, there exists a constant ϵ(R)>0\epsilon(R)>0, such that for any t≥1t\geq 1 and any W∈B(R)W\in B(R), ∥∂R/∂W1∥F≥ϵ(R)\|\partial\mathcal{R}/\partial W_{1}\|_{F}\geq\epsilon(R). As a result, gradient flow spends a finite amount of time in B(R)B(R) for any R>0R>0, and max⁡1≤k≤L∥Wk∥F\max_{1\leq k\leq L}\|W_{k}\|_{F} is unbounded.

To proceed, we need the following properties of linear networks from prior work (Arora et al., 2018; Du et al., 2018). For any time t≥0t\geq 0 and any 1≤k<L1\leq k<L,

Taking the trace on both sides of eq. 2.3, we have

In other words, the difference between the squares of Frobenius norms of any two layers remains a constant. Together with Section 2.1, it implies that all ∥Wk∥F\|W_{k}\|_{F} are unbounded.

For 1≤k≤L1\leq k\leq L, let σk\sigma_{k}, uku_{k}, and vkv_{k} denote the first singular value (the 22-norm), the first left singular vector, and the first right singular vector of WkW_{k}, respectively. Furthermore, define

which depends only on the initialization. If for any 1≤k<L1\leq k<L, Wk(0)Wk⊤(0)=Wk+1⊤(0)Wk+1(0)W_{k}(0)W_{k}^{\top}(0)=W_{k+1}^{\top}(0)W_{k+1}(0), then D=0D=0.

The gradient flow iterates satisfy the following properties:

For any 1≤k≤L1\leq k\leq L, ∥Wk∥F2−∥Wk∥22≤D\|W_{k}\|_{F}^{2}-\|W_{k}\|_{2}^{2}\leq D.

For any 1≤k<L1\leq k<L, \langle v_{k+1},u_{k}\rangle^{2}\geq 1-\nicefrac{{\mathinner{\bigl{(}D+\|W_{k+1}(0)\|_{2}^{2}+\|W_{k}(0)\|_{2}^{2}\bigr{)}}}}{{\|W_{k+1}\|_{2}^{2}}}.

The proof is based on eq. 2.3 and eq. 2.4. If Wk(0)Wk⊤(0)=Wk+1⊤(0)Wk+1(0)W_{k}(0)W_{k}^{\top}(0)=W_{k+1}^{\top}(0)W_{k+1}(0), then eq. 2.3 gives that Wk+1W_{k+1} and WkW_{k} have the same singular values, and Wk+1W_{k+1}’s right singular vectors and WkW_{k}’s left singular vectors are the same. If it is true for any two adjacent layers, since WLW_{L} is a row vector, all layers have rank 11. With general initialization, we have similar results when ∥Wk∥F\|W_{k}\|_{F} is large enough so that the initialization is negligible. Careful calculations give the exact results in Section 2.1.

2 Convergence to the maximum margin solution

To get such a strong convergence, we need one more assumption on the data set. Recall that γ=max⁡∥u∥=1min⁡1≤i≤n⟨u,zi⟩>0\gamma=\max_{\|u\|=1}\min_{1\leq i\leq n}\langle u,z_{i}\rangle>0 denotes the maximum margin, and uˉ\bar{u} denotes the unique maximum margin predictor which attains this margin γ\gamma. Those data points ziz_{i} for which ⟨uˉ,zi⟩=γ\langle\bar{u},z_{i}\rangle=\gamma are called support vectors.

With Section 2.2, we can state the main theorem.

Before summarizing the proof, we can simplify both theorems into the following minimum norm property mentioned in the introduction.

Theorem 2.5 relies on two structural lemmas. The first one is based on a similar almost-all argument due to Soudry et al. (2017, Lemma 12). Let S⊂{1,…,n}S\subset\{1,\ldots,n\} denote the set of indices of support vectors.

Under Section 2.2, if the data set is sampled from some density w.r.t. the Lebesgue measure, then with probability 11,

With Section 2.2 and Section 2.2 in hand, we can prove Theorem 2.5. Let Π⊥W1\Pi_{\perp}W_{1} denote the projection of rows of W1W_{1} onto uˉ⊥\bar{u}^{\perp}. Notice that

Results for gradient descent

One key property of gradient flow which is used in the previous proofs is that it never increases the risk, which is not necessarily true for gradient descent. However, for smooth losses (i.e, with Lipschitz continuous derivatives), we can design some decaying step sizes, with which gradient descent never increases the risk, and basically the same results hold as in the gradient flow case. Deferred proofs are given in Appendix C.

Under Section 3, the risk is also a smooth function of WW, if all layers are bounded.

Smoothness ensures that for any W,V∈B(R)W,V\in B(R), R(W)−R(V)≤⟨∇R(V),W−V⟩+\nicefracβ(R)∥W−V∥22\mathcal{R}(W)-\mathcal{R}(V)\leq\langle\nabla\mathcal{R}(V),W-V\rangle+\nicefrac{{\beta(R)\|W-V\|^{2}}}{{2}} (see Bubeck et al. (2015) Lemma 3.4). In particular, if we choose some RR and set a constant step size ηt=1/β(R)\eta_{t}=1/\beta(R), then as long as W(t+1)W(t+1) and W(t)W(t) are both in B(R)B(R),

In other words, the risk does not increase at this step. However, similar to gradient flow, the gradient descent iterate will eventually escape B(R)B(R), which may increase the risk.

Under Section 1.2, 1.2 and 3, suppose gradient descent is run with a constant step size 1/β(R)1/\beta(R). Then there exists a time tt when W(t)∉B(R)W(t)\not\in B(R), in other words, max⁡1≤k≤L∥Wk(t)∥F>R\max_{1\leq k\leq L}\|W_{k}(t)\|_{F}>R.

Fortunately, this issue can be handled by adaptively increasing RR and correspondingly decreasing the step sizes, formalized in the following assumption.

The step size ηt=min⁡{1/β(Rt),1}\eta_{t}=\min\{1/\beta(R_{t}),1\}, where RtR_{t} satisfies W(t)∈B(Rt−1)W(t)\in B(R_{t}-1), and if W(t+1)∈B(Rt−1)W(t+1)\in B(R_{t}-1), Rt+1=RtR_{t+1}=R_{t}.

Section 3 can be satisfied by a line search, which ensures that the gradient descent update is not too aggressive and the boundary RR is increased properly.

With the additional Sections 3 and 3, exactly the same theorems can be proved for gradient descent. We restate them briefly here.

Under Section 1.2, 1.2, 3, and 3, gradient descent satisfies

lim⁡t→∞R(W(t))=0\lim_{t\to\infty}\mathcal{R}\mathinner{\left(W(t)\right)}=0.

For any 1≤k≤L1\leq k\leq L, lim⁡t→∞∥Wk(t)∥F=∞\lim_{t\to\infty}\|W_{k}(t)\|_{F}=\infty.

Proofs of Theorem 3.2 and 3.3 are given in Appendix C, and are basically the same as the gradient flow proofs. The key difference is that an error of ∑t=0∞ηt2∥∇R(W(t))∥2\sum_{t=0}^{\infty}\eta_{t}^{2}\|\nabla\mathcal{R}(W(t))\|^{2} will be introduced in many parts of the proof. However, it is bounded in light of eq. 3.1:

Since all weight matrices go to infinity, such a bounded error does not matter asymptotically, and thus proofs still go through.

Summary and future directions

This paper rigorously proves that, for deep linear networks on linearly separable data, gradient flow and gradient descent minimize the risk to , align adjacent weight matrices, and align the first right singular vector of the first layer to the maximum margin solution determined by the data. There are many potential future directions; a few are as follows.

This paper only proves asymptotic convergence, moreover for adaptive step sizes depending on the current weight matrix norms. A refined analysis with rates for practical step sizes (e.g., constant step sizes) would allow the algorithm to be compared to other methods which also globally optimize this objective, would suggest ways to improve step sizes and initialization, and ideally even exhibit a sensitivity to the network architecture and suggest how it could be improved.

Nonseparable data and nonlinear networks.

Real-world data is generally not linearly separable, but nonlinear deep networks can reliably decrease the risk to 0, even with random labels (Zhang et al., 2017). This seems to suggest that a nonlinear notion of separability is at play; is there some way to adapt the present analysis?

The present analysis is crucially tied to the alignment of weight matrices: alignment and risk are analyzed simultaneously. Motivated by this, consider a preliminary experiment, presented in Figure 3, where stochastic gradient descent was used to minimize the risk of a standard AlexNet on CIFAR-10 (Krizhevsky et al., 2012; Krizhevsky and Hinton, 2009).

Even though there are ReLUs, max-pooling layers, and convolutional layers, the alignment phenomenon is occurring in a reduced form on the dense layers (the last three layers of the network). Specifically, despite these weight matrices having shape (1024,4096)(1024,4096), (4096,4096)(4096,4096), and (4096,10)(4096,10) the key alignment ratios ∥Wi∥2/∥Wi∥F\|W_{i}\|_{2}/\|W_{i}\|_{F} are much larger than their respective lower bounds (1024−1/2,4096−1/2,10−1/2)(1024^{-1/2},4096^{-1/2},10^{-1/2}). Two initializations were tried: default PyTorch initialization, and a Gaussian initialization forcing all initial Frobenius norms to be just 44, which is suggested by the norm preservation property in the analysis and removes noise in the weights.

Acknowledgements

The authors are grateful for support from the NSF under grant IIS-1750051. This grant allowed them to focus on research, and when combined with an NVIDIA GPU grant, led to the creation of their beloved GPU machine DutchCrunch.

References

Appendix A Regarding Section 1.2

Suppose W1(0)=0W_{1}(0)=0 while WL(0)⋯W2(0)≠0W_{L}(0)\cdots W_{2}(0)\neq 0. First of all, WL(0)⋯W1(0)=0W_{L}(0)\cdots W_{1}(0)=0 and thus R(W(0))=R(0)\mathcal{R}\mathinner{\left(W(0)\right)}=\mathcal{R}(0). Moreover,

On the other hand, if R(W(0))>R(0)\mathcal{R}\mathinner{\left(W(0)\right)}>\mathcal{R}(0), gradient flow/descent may never minimize the risk to . For example, suppose the network has two layers, and both the input and output have dimension 11; the network just computes the dot product of two vectors w1w_{1} and w2w_{2}. Consider minimizing R(w1,w2)=exp⁡(−⟨w1,w2⟩)\mathcal{R}(w_{1},w_{2})=\exp\mathinner{\left(-\langle w_{1},w_{2}\rangle\right)}. If w1(0)=−w2(0)≠0w_{1}(0)=-w_{2}(0)\neq 0, then R(w1(0),w2(0))=exp⁡(∥w1∥2)>exp⁡(0)\mathcal{R}\mathinner{\left(w_{1}(0),w_{2}(0)\right)}=\exp\mathinner{\left(\|w_{1}\|^{2}\right)}>\exp(0). It is easy to verify that for any tt, w1(t)=−w2(t)w_{1}(t)=-w_{2}(t), and R(w1(t),w2(t))≥exp⁡(0)>0\mathcal{R}\mathinner{\left(w_{1}(t),w_{2}(t)\right)}\geq\exp(0)>0.

Appendix B Omitted proofs from Section 2

Fix an arbitrary R>0R>0. If the claim is not true, then for any ϵ>0\epsilon>0, there exists some t≥1t\geq 1 such that ∥Wk∥F≤R\|W_{k}\|_{F}\leq R for all kk while  ⁣∥∂R/∂W1∥F2≤ϵ2\mathinner{\!\left\lVert\partial\mathcal{R}/\partial W_{1}\right\rVert}_{F}^{2}\leq\epsilon^{2}, which means

On the other hand, by Section 1.2, d ⁣⁡R(W)/d ⁣⁡t=−∥∇R(W)∥2<0\operatorname{d\!}\mathcal{R}(W)/\operatorname{d\!}t=-\|\nabla\mathcal{R}(W)\|^{2}<0 at t=0t=0. This implies that R(W(1))<R(W(0))\mathcal{R}\mathinner{\left(W(1)\right)}<\mathcal{R}\mathinner{\left(W(0)\right)}, and for any t≥1t\geq 1, R(W(t))≤R(W(1))<R(W(0))≤R(0)\mathcal{R}\mathinner{\left(W(t)\right)}\leq\mathcal{R}\mathinner{\left(W(1)\right)}<\mathcal{R}\mathinner{\left(W(0)\right)}\leq\mathcal{R}(0), which is a contradiction.

Since the risk is always positive, we have

which implies gradient flow only spends a finite amount of time in {W|max⁡1≤k≤L∥Wk∥F≤R}\mathinner{\left\{W\middle|\max_{1\leq k\leq L}\|W_{k}\|_{F}\leq R\right\}}. This directly implies that max⁡1≤k≤L∥Wk∥F\max_{1\leq k\leq L}\|W_{k}\|_{F} is unbounded. ∎

The first claim is true for k=Lk=L since WLW_{L} is a row vector. For any 1≤k<L1\leq k<L, recall that Arora et al. (2018); Du et al. (2018) give the following relation:

Let Ak,k+1=Wk(0)Wk⊤(0)−Wk+1⊤(0)Wk+1(0)A_{k,k+1}=W_{k}(0)W_{k}^{\top}(0)-W_{k+1}^{\top}(0)W_{k+1}(0). By eq. B.1 and the definition of singular vectors and singular values, we have

Moreover, by taking the trace on both sides of eq. B.1, we have

Summing eq. B.2 and eq. B.3 from kk to L−1L-1, we get

Next we prove that singular vectors get aligned. Consider uk⊤Wk+1⊤Wk+1uku_{k}^{\top}W_{k+1}^{\top}W_{k+1}u_{k}. On one hand, similar to eq. B.2, we can get that

On the other hand, it follows from the definition of singular vectors and eq. B.4 that

Combining eq. B.7 and eq. B.8, we finally get

Regarding the last claim, first recall that since the difference between the squares of Frobenius norms of any two layers is a constant, max⁡1≤k≤L∥Wk∥F→∞\max_{1\leq k\leq L}\|W_{k}\|_{F}\to\infty implies ∥Wk∥F→∞\|W_{k}\|_{F}\to\infty for any kk. We further have the following.

Since ∥Wk∥F2−∥Wk∥22≤D\|W_{k}\|_{F}^{2}-\|W_{k}\|_{2}^{2}\leq D, ∥Wk∥2→∞\|W_{k}\|_{2}\to\infty for any kk, and Wk/∥Wk∥F→ukvk⊤W_{k}/\|W_{k}\|_{F}\to u_{k}v_{k}^{\top}.

Since ∥Wk∥2→∞\|W_{k}\|_{2}\to\infty, ∣⟨uk,vk+1⟩∣→1|\langle u_{k},v_{k+1}\rangle|\to 1.

Similar to the proof of Section 2.1, we can show that if ∥Wk∥F→∞\|W_{k}\|_{F}\to\infty,

In other words, there exists some C>0C>0, such that when min⁡1≤k≤L∥Wk∥F>C\min_{1\leq k\leq L}\|W_{k}\|_{F}>C, ∥WL⋯W2∥≥∥Wk∥F⋯∥W2∥F/2>CL/2\|W_{L}\cdots W_{2}\|\geq\|W_{k}\|_{F}\cdots\|W_{2}\|_{F}/2>C^{L}/2.

Section 2.1 shows that gradient flow spends a finite amount of time in {W|max⁡1≤k≤L∥Wk∥F≤R}\mathinner{\left\{W\middle|\max_{1\leq k\leq L}\|W_{k}\|_{F}\leq R\right\}} for any R>0R>0. Since the difference between the squares of Frobenius norms of any two layers is a constant, gradient flow also spends a finite amount of time in {W|min⁡1≤k≤L∥Wk∥F≤C}\mathinner{\left\{W\middle|\min_{1\leq k\leq L}\|W_{k}\|_{F}\leq C\right\}}. Now we have

which is a contradiction. Therefore R(ϵ)→0\mathcal{R}(\epsilon)\to 0. This further implies ∥Wk∥F→∞\|W_{k}\|_{F}\to\infty, since R(W)\mathcal{R}(W) has no finite optimum. Finally, invoking Section 2.1 proves the final claim of Theorem 2.2. ∎

Soudry et al. (2017) Lemma 12 proves that, with probability 11, there are at most dd support vectors, and moreover, the ii-th support vector ziz_{i} has a positive dual variable αi\alpha_{i}, such that ∑i∈Sαizi=uˉ\sum_{i\in S}\alpha_{i}z_{i}=\bar{u}.

Suppose there exists some ξ⊥uˉ\xi\perp\bar{u}, such that max⁡i∈S⟨ξ,zi⟩≤0\max_{i\in S}\langle\xi,z_{i}\rangle\leq 0. Since

we actually have ⟨ξ,zi⟩=0\langle\xi,z_{i}\rangle=0 for all i∈Si\in S. This is impossible under Section 2.2, since the support vectors span the whole space. ∎

The first part can be lower bounded as below (recall that ⟨−w⊥,z⊥′⟩=⟨−w⊥,z′⟩≥α∥w⊥∥\langle-w_{\perp},z^{\prime}_{\perp}\rangle=\langle-w_{\perp},z^{\prime}\rangle\geq\alpha\|w_{\perp}\|)

To bound the second part, first notice that since we assume ⟨w,uˉ⟩≥0\langle w,\bar{u}\rangle\geq 0, for any zz,

The reason is that every data point has margin at least γ\gamma, and thus z−γuˉ−z⊥=cuˉz-\gamma\bar{u}-z_{\perp}=c\bar{u} for some c≥0c\geq 0. Using eq. B.11, we can bound the second part of eq. B.9.

On the third line eq. B.11 is applied. The fourth line applies the property that f(x)=−xe−x≥−1/ef(x)=-xe^{-x}\geq-1/e when x≥0x\geq 0.

Combining eq. B.9, eq. B.10 and eq. B.12, we get

As long as ∥w⊥∥≥(1+ln⁡(n))/α\|w_{\perp}\|\geq(1+\ln(n))/\alpha, ⟨w⊥,∇R(w)⟩≥0\langle w_{\perp},\nabla\mathcal{R}(w)\rangle\geq 0.

The second part of eq. B.13 can be bounded again by eq. B.12. To bound the first part of eq. B.13, first notice that (recall ⟨w,uˉ⟩≥0\langle w,\bar{u}\rangle\geq 0)

Using eq. B.14, and recall that ⟨−w⊥,z⊥′⟩=⟨−w⊥,z′⟩≥α∥w⊥∥≥0\langle-w_{\perp},z^{\prime}_{\perp}\rangle=\langle-w_{\perp},z^{\prime}\rangle\geq\alpha\|w_{\perp}\|\geq 0, we can bound the first part of eq. B.13 as below.

Combining eq. B.13, eq. B.15 and eq. B.12, we get

As long as ∥w⊥∥≥2n/eα\|w_{\perp}\|\geq 2n/e\alpha, ⟨w⊥,∇R(w)⟩≥0\langle w_{\perp},\nabla\mathcal{R}(w)\rangle\geq 0. ∎

Let W1=u1σ1v1⊤+SW_{1}=u_{1}\sigma_{1}v_{1}^{\top}+S. We have ∥S∥2≤σ1,2≤σ1,22≤∥W1∥F2−∥W1∥22≤D\|S\|_{2}\leq\sigma_{1,2}\leq\sqrt{\sigma_{1,2}^{2}}\leq\sqrt{\|W_{1}\|_{F}^{2}-\|W_{1}\|_{2}^{2}}\leq\sqrt{D}, where σ1,2\sigma_{1,2} is the second singular value of W1W_{1} and DD is the constant introduced in Section 2.1. Then

Fix an arbitrary ϵ>0\epsilon>0. By Theorem 2.2, we can find some t0t_{0} large enough such that for any t≥t0t\geq t_{0}:

and thus lim⁡t→∞ ⁣∣⟨v1,uˉ⟩∣=1\lim_{t\to\infty}\mathinner{\!\left\lvert\langle v_{1},\bar{u}\rangle\right\rvert}=1. An application of Theorem 2.2 gives the other part of Theorem 2.5. ∎

On the other hand, if matrices (AL,…,A1)(A_{L},\ldots,A_{1}) are feasible, then

Appendix C Omitted proofs from Section 3

Given W,V∈B(R)W,V\in B(R), we need to show that ∥∇R(W)−∇R(V)∥≤β(R)∥W−V∥\|\nabla\mathcal{R}(W)-\nabla\mathcal{R}(V)\|\leq\beta(R)\|W-V\| for some β(R)\beta(R).

where the last inequality follows from a similar one-by-one replacement procedure as in eq. C.1. Combining eq. C.2 and eq. C.3, we get for R≥1R\geq 1,

The same procedure can be done for other layers, and together

Recall that if W(t),W(t+1)∈B(R)W(t),W(t+1)\in B(R) and ηt=1/β(R)\eta_{t}=1/\beta(R),

Suppose W(t)∈B(R)W(t)\in B(R) for all tt. By Section 1.2 and eq. C.4,

By eq. C.4, gradient descent never increases the risk, and thus for all t≥1t\geq 1, R(W(t))≤R(W(1))<R(W(0))\mathcal{R}\mathinner{\left(W(t)\right)}\leq\mathcal{R}\mathinner{\left(W(1)\right)}<\mathcal{R}\mathinner{\left(W(0)\right)}. In exactly the same way as in the proof of Section 2.1, one can show that there exists some constant ϵ(R)>0\epsilon(R)>0, so that ∥∂R/∂W1(t)∥F≥ϵ(R)\|\partial\mathcal{R}/\partial W_{1}(t)\|_{F}\geq\epsilon(R) for all tt. Invoking eq. C.4 again, we will get

which is a contradiction. Therefore W(t)W(t) must go out of B(R)B(R) at some time. ∎

Next we prove Theorem 3.2 and 3.3. The proofs depend on several lemmas which are similar to the gradient flow ones. The following Appendix C is similar to Section 2.1.

Under Section 1.2, 1.2, 3, and 3, gradient descent ensures that

max⁡1≤k≤L∥Wk(t)∥F\max_{1\leq k\leq L}\|W_{k}(t)\|_{F} is unbounded.

For any R>0R>0, ∑t:W(t)∈B(R)ηt<∞\sum_{t\mathrel{\mathop{\ordinarycolon}}W(t)\in B(R)}\eta_{t}<\infty.

By Section 3, we always have that W(t)∈B(Rt)W(t)\in B(R_{t}). Since β(Rt)=2L2Rt2L−2(β+G)≥RtL−1G\beta(R_{t})=2L^{2}R_{t}^{2L-2}(\beta+G)\geq R_{t}^{L-1}G, we have for any 1≤k≤L1\leq k\leq L,

Moreover, Section 3 shows that Rt→∞R_{t}\to\infty. Since Rt+1=RtR_{t+1}=R_{t} as long as W(t+1)∈B(Rt−1)W(t+1)\in B(R_{t}-1), max⁡1≤k≤L∥Wk(t)∥F\max_{1\leq k\leq L}\|W_{k}(t)\|_{F} is unbounded.

It then follows that for any tt, by Cauchy-Schwarz,

we have ∑t=0∞ηt=∞\sum_{t=0}^{\infty}\eta_{t}=\infty.

Since under Sections 3 and 3 gradient descent never increases the risk, it can be shown in exactly the same as in the proof of Section 2.1 that, for W(t)∈B(R)W(t)\in B(R), ∥∂R/∂W1(t)∥F≥ϵ(R)\|\partial\mathcal{R}/\partial W_{1}(t)\|_{F}\geq\epsilon(R) for some constant ϵ(R)>0\epsilon(R)>0. Invoking eq. C.4 again, we get that ∑t:W(t)∈B(R)ηt<∞\sum_{t\mathrel{\mathop{\ordinarycolon}}W(t)\in B(R)}\eta_{t}<\infty. ∎

The next lemma is an analogy to Section 2.1.

Under Section 1.2 and 3, the gradient descent iterates satisfy the following properties:

For any 1≤k≤L1\leq k\leq L, ∥Wk∥F2−∥Wk∥22≤D+2R(W(0))\|W_{k}\|_{F}^{2}-\|W_{k}\|_{2}^{2}\leq D+2\mathcal{R}\mathinner{\left(W(0)\right)}.

For any 1≤k<L1\leq k<L, ⟨vk+1,uk⟩2≥1−\nicefracD+3R(W(0))+∥Wk+1(0)∥22+∥Wk(0)∥22∥Wk+1∥22\langle v_{k+1},u_{k}\rangle^{2}\geq 1-\nicefrac{{D+3\mathcal{R}\mathinner{\left(W(0)\right)}+\|W_{k+1}(0)\|_{2}^{2}+\|W_{k}(0)\|_{2}^{2}}}{{\|W_{k+1}\|_{2}^{2}}}.

For gradient descent iterates, summing eq. C.6 from to t−1t-1, we get

Still let σk(t)\sigma_{k}(t), uk(t)u_{k}(t) and vk(t)v_{k}(t) denote the first singular value, left singular vector and right singular vector of Wk(t)W_{k}(t). We can then proceed basically in the same way as in the proof of Section 2.1. For example, eq. B.2 becomes

Summing eq. C.9 and eq. C.10 from kk to L−1L-1, and invoke eq. C.8, we get

To prove singular vectors get aligned, we can still proceed in nearly the same way as in the proof of Section 2.1. appendix B becomes

The final claim of Appendix C can be proved in exactly the same way as Section 2.1. ∎

Summing eq. C.10, we know that for any two different layers j>kj>k,

In other words, the difference between the squares of Frobenius norms of any two layers is still bounded.

which is a contradiction. Therefore R(W(t))→0\mathcal{R}\mathinner{\left(W(t)\right)}\to 0, and since it has no finite optimum, ∥Wk∥F→∞\|W_{k}\|_{F}\to\infty. The other results follow from Appendix C. ∎

The proof then goes in almost the same way as the proof of Theorem 2.5. For any ϵ>0\epsilon>0, we can find some large enough time t0t_{0}, such that for any t≥t0t\geq t_{0},

∥W1(t)∥F≥\nicefrac1+2R(W(0))ϵ\|W_{1}(t)\|_{F}\geq\nicefrac{{1+\sqrt{2\mathcal{R}(W(0))}}}{{\epsilon}}.

Suppose at some time t1≥t0t_{1}\geq t_{0}, ∥Π⊥W1(t1)∥F/∥W1(t1)∥F≥ϵ\|\Pi_{\perp}W_{1}(t_{1})\|_{F}/\|W_{1}(t_{1})\|_{F}\geq\epsilon. As long as this still holds, in light of bullet (1) above, eq. C.16 and eq. C.17, ∥Π⊥W1∥F2\|\Pi_{\perp}W_{1}\|_{F}^{2} will increase by at most 2R(W(t1))≤2R(W(0))2\mathcal{R}\mathinner{\left(W(t_{1})\right)}\leq 2\mathcal{R}\mathinner{\left(W(0)\right)}. On the other hand, ∥W1∥F→∞\|W_{1}\|_{F}\to\infty, and thus there exists some t2>t1t_{2}>t_{1} such that ∥Π⊥W1(t2)∥F/∥W1(t2)∥F<ϵ\|\Pi_{\perp}W_{1}(t_{2})\|_{F}/\|W_{1}(t_{2})\|F<\epsilon.

Let t3t_{3} denote the smallest time after t2t_{2} such that ∥Π⊥W1(t3)∥F/∥W1(t3)∥F≥ϵ\|\Pi_{\perp}W_{1}(t_{3})\|_{F}/\|W_{1}(t_{3})\|_{F}\geq\epsilon (if it exists). Recall that ∥W1(t+1)∥F≤∥W1(t)∥F+1\|W_{1}(t+1)\|_{F}\leq\|W_{1}(t)\|_{F}+1 for any t≥0t\geq 0, and ∥W1(t+1)∥F≥∥W1(t)∥F\|W_{1}(t+1)\|_{F}\geq\|W_{1}(t)\|_{F} for any t≥t0t\geq t_{0}, we have

After t3t_{3}, ∥Π⊥W1∥F2\|\Pi_{\perp}W_{1}\|_{F}^{2} will increase by at most 2R(W(0))2\mathcal{R}\mathinner{\left(W(0)\right)}, and thus ∥Π⊥W1∥F\|\Pi_{\perp}W_{1}\|_{F} will increase by at most 2R(W(0))\sqrt{2\mathcal{R}\mathinner{\left(W(0)\right)}}. Therefore, for any t4≥t3t_{4}\geq t_{3}, as long as ∥Π⊥W1(t4)∥F/∥W1(t4)∥F≥ϵ\|\Pi_{\perp}W_{1}(t_{4})\|_{F}/\|W_{1}(t_{4})\|_{F}\geq\epsilon, we have

since ∥W1(t)∥F≥\nicefrac1+2R(W(0))ϵ\|W_{1}(t)\|_{F}\geq\nicefrac{{1+\sqrt{2\mathcal{R}(W(0))}}}{{\epsilon}} after t0t_{0}. In other words,

and thus lim⁡t→∞ ⁣∣⟨v1,uˉ⟩∣=1\lim_{t\to\infty}\mathinner{\!\left\lvert\langle v_{1},\bar{u}\rangle\right\rvert}=1.

The proof is analogous to that of Section 2.2, except using Theorem 3.3 in place of Theorem 2.5. ∎