A Convergence Analysis of Gradient Descent for Deep Linear Neural Networks
Sanjeev Arora, Nadav Cohen, Noah Golowich, Wei Hu
Introduction
Deep learning builds upon the mysterious ability of gradient-based optimization methods to solve related non-convex problems. Immense efforts are underway to mathematically analyze this phenomenon. The prominent landscape approach focuses on special properties of critical points (i.e. points where the gradient of the objective function vanishes) that will imply convergence to global optimum. Several papers (e.g. Ge et al. (2015); Lee et al. (2016)) have shown that (given certain smoothness properties) it suffices for critical points to meet the following two conditions: (i) no poor local minima — every local minimum is close in its objective value to a global minimum; and (ii) strict saddle property — every critical point that is not a local minimum has at least one negative eigenvalue to its Hessian. While condition (i) does not always hold (cf. Safran and Shamir (2018)), it has been established for various simple settings (e.g. Soudry and Carmon (2016); Kawaguchi (2016)). Condition (ii) on the other hand seems less plausible, and is in fact provably false for models with three or more layers (cf. Kawaguchi (2016)), i.e. for deep networks. It has only been established for problems involving shallow (two layer) models, e.g. matrix factorization (Ge et al. (2016); Du et al. (2018a)). The landscape approach as currently construed thus suffers from inherent limitations in proving convergence to global minimum for deep networks.
A potential path to circumvent this obstacle lies in realizing that landscape properties matter only in the vicinity of trajectories that can be taken by the optimizer, which may be a negligible portion of the overall parameter space. Several papers (e.g. Saxe et al. (2014); Arora et al. (2018)) have taken this trajectory-based approach, primarily in the context of linear neural networks — fully-connected neural networks with linear activation. Linear networks are trivial from a representational perspective, but not so in terms of optimization — they lead to non-convex training problems with multiple minima and saddle points. Through a mix of theory and experiments, Arora et al. (2018) argued that such non-convexities may in fact be beneficial for gradient descent, in the sense that sometimes, adding (redundant) linear layers to a classic linear prediction model can accelerate the optimization. This phenomenon challenges the holistic landscape view, by which convex problems are always preferable to non-convex ones.
Gradient Descent for Deep Linear Neural Networks
We denote by the Euclidean norm of a vector , and by the Frobenius norm of a matrix .
Note that the notation is consistent with that of Equation (2), as a network with depth precisely reduces to a (directly parameterized) linear model.
We focus on studying the process of training a deep linear neural network by gradient descent, i.e. of tackling the optimization problem in Equation (3) by iteratively applying the following updates:
where is a configurable learning rate. In the case of depth , the training problem in Equation (3) is smooth and strongly convex, thus it is known (cf. Boyd and Vandenberghe (2004)) that with proper choice of , gradient descent converges to global minimum at a linear rate. In contrast, for any depth greater than , Equation (3) comprises a fundamentally non-convex program, and the convergence properties of gradient descent are highly non-trivial. Apart from the case (shallow network), one cannot hope to prove convergence via landscape arguments, as the strict saddle property is provably violated (see Section 1). We will see in Section 3 that a direct analysis of the trajectories taken by gradient descent can succeed in this arena, providing a guarantee for linear rate convergence to global minimum.
Convergence Analysis
In this section we establish convergence of gradient descent for deep linear neural networks (Equations (4) and (3)) by directly analyzing the trajectories taken by the algorithm. We begin in Subsection 3.1 with a presentation of two concepts central to our analysis: approximate balancedness and deficiency margin. These facilitate our main convergence theorem, delivered in Subsection 3.2. We conclude in Subsection 3.3 by deriving a convergence guarantee that holds with constant probability over a random initialization.
In our context, the notion of approximate balancedness is formally defined as follows:
Note that in the case of -balancedness, i.e. , , all matrices share the same set of non-zero singular values. Moreover, as shown in the proof of Theorem 1 in Arora et al. (2018), this set is obtained by taking the -th root of each non-zero singular value in the end-to-end matrix . We will establish approximate versions of these facts for -balancedness with , and admit their usage by showing that if the weights of a linear neural network are initialized to be approximately balanced, they will remain that way throughout the iterations of gradient descent. The condition of approximate balancedness at initialization is trivially met in the special case of linear residual networks ( and ). Moreover, as Claim 2 in Appendix B shows, for a given , the customary initialization via random Gaussian distribution with mean zero leads to approximate balancedness with high probability if the standard deviation is sufficiently small.
The second concept we introduce — deficiency margin — refers to how far a ball around the target is from containing rank-deficient (i.e. low rank) matrices.
The term “deficiency margin” alludes to the fact that if Equation (6) holds, every matrix whose distance from is no greater than that of , has singular values -bounded away from zero:
Suppose has deficiency margin with respect to . Then, any matrix (of same size as and ) for which satisfies .
Our proof relies on the inequality — see Appendix D.1. ∎
We will show that if the weights are initialized such that (they are approximately balanced and) the end-to-end matrix has deficiency margin with respect to the target , convergence of gradient descent to global minimum is guaranteed. In fact, a deficiency margin implies that all critical points in the respective sublevel set (set of points with smaller loss value) are global minima. This however is far from sufficient for proving convergence, as sublevel sets are unbounded, and the loss landscape over them is non-convex and non-smooth. Indeed, we show in Appendix C that deficiency margin alone is not enough to ensure convergence — without approximate balancedness, the lack of smoothness can cause divergence. Moreover, the convergence will outpace a particular rate that gets faster when grows larger. This suggests that from a theoretical perspective, it is advantageous to initialize a linear neural network such that the end-to-end matrix has a large deficiency margin with respect to the target. Claim 3 in Appendix B provides information on how likely deficiency margins are in the case of a single output model (scalar regression) subject to customary zero-centered Gaussian initialization. It shows in particular that if the standard deviation of the initialization is sufficiently small, the probability of a deficiency margin being met is close to ; on the other hand, for this deficiency margin to have considerable magnitude, a non-negligible standard deviation is required.
Taking into account the need for both approximate balancedness and deficiency margin at initialization, we observe a delicate trade-off under the common setting of Gaussian perturbations around zero: if the standard deviation is small, it is likely that weights be highly balanced and a deficiency margin be met; however overly small standard deviation will render high magnitude for the deficiency margin improbable, and therefore fast convergence is less likely to happen; on the opposite end, large standard deviation jeopardizes both balancedness and deficiency margin, putting the entire convergence at risk. This trade-off is reminiscent of empirical phenomena in deep learning, by which small initialization can bring forth efficient convergence, while if exceedingly small, rate of convergence may plummet (“vanishing gradient problem”), and if made large, divergence becomes inevitable (“exploding gradient problem”). The common resolution of residual connections (He et al., 2016) is analogous in our context to linear residual networks, which ensure perfect balancedness, and allow large deficiency margin if the target is not too far from identity.
2 Main Theorem
Using approximate balancedness (Definition 1) and deficiency margin (Definition 2), we present our main theorem — a guarantee for linear convergence to global minimum:
Assume that gradient descent is initialized such that the end-to-end matrix has deficiency margin with respect to the target , and the weights are -balanced with \delta=c^{2}\big{/}\big{(}256\cdot{N}^{3}\cdot\left\|\Phi\right\|_{F}^{2(N-1)/N}\big{)}. Suppose also that the learning rate meets:
The assumptions made in Theorem 1 — approximate balancedness and deficiency margin at initialization — are both necessary, in the sense that violating any one of them may lead to convergence failure. We demonstrate this in Appendix C. In the special case of linear residual networks (uniform dimensions and identity initialization), a sufficient condition for the assumptions to be met is that the target matrix have (Frobenius) distance less than from identity. This strengthens one of the central results in Bartlett et al. (2018) (see Section 5). For a setting of random near-zero initialization, we present in Subsection 3.3 a scheme that, when the output dimension is (scalar regression), ensures assumptions are satisfied (and therefore gradient descent efficiently converges to global minimum) with constant probability. It is an open problem to fully analyze gradient descent under the common initialization scheme of zero-centered Gaussian perturbations applied to each layer independently. We treat this scenario in Appendix B, providing quantitative results concerning the likelihood of each assumption (approximate balancedness or deficiency margin) being met individually. However the question of how likely it is that both assumptions be met simultaneously, and how that depends on the standard deviation of the Gaussian, is left for future work.
An additional point to make is that Theorem 1 poses a structural limitation on the linear neural network. Namely, it requires the dimension of each hidden layer () to be greater than or equal to the minimum between those of the input () and output (). Indeed, in order for the initial end-to-end matrix to have deficiency margin , it must (by Claim 1) have full rank, and this is only possible if there is no intermediate dimension smaller than . We make no other assumptions on network architecture (depth, input/output/hidden dimensions).
2.2 Proof
The cornerstone upon which Theorem 1 rests is the following lemma, showing non-trivial descent whenever is bounded away from zero:
Under the conditions of Theorem 1, we have that for every : Note that the term below stands for the gradient of — a convex loss over (directly parameterized) linear models (Equation (2)) — at the point — the end-to-end matrix of the network at iteration . It is therefore (see Equation (5)) non-zero anywhere but at a global minimum.
We prove the lemma here for the idealized setting of perfect initial balancedness ():
and infinitesimally small learning rate () — gradient flow:
where is a continuous time index, and dot symbol (in ) signifies derivative with respect to time. The complete proof, for the realistic case of approximate balancedness and discrete updates (), is similar but much more involved, and appears in Appendix D.2.
We will see that a stronger version of Equation (10) holds, namely, one without the factor (which only appears due to discretization).
By (Theorem and Claim in) Arora et al. (2018), the weights remain balanced throughout the entire optimization, and that implies the end-to-end matrix moves according to the following differential equation:
where , for an arbitrary matrix , stands for vectorization in column-first order, and is a positive semidefinite matrix whose eigenvalues are all greater than or equal to . Taking the derivative of with respect to time, we obtain the sought-after Equation (10) (with no factor):
The first transition here (equality) is an application of the chain rule; the second (equality) plugs in Equation (11); the third (inequality) results from the fact that the eigenvalues of the symmetric matrix are no smaller than (recall that stands for Euclidean norm); and the last (equality) is trivial — for any matrix . ∎
With Lemma 1 established, the proof of Theorem 1 readily follows:
Since the coefficients are necessarily non-negative (otherwise would contradict non-negativity of ), we may unroll the inequalities, obtaining:
Now, this in particular means that for every :
Deficiency margin of along with Claim 1 thus imply \sigma_{min}\big{(}W_{1:N}(t^{\prime})\big{)}\geq{c}, which when inserted back into Equation (12) yields, for every :
is obviously non-negative, and it is also no greater than (otherwise would contradict non-negativity of ). We may therefore incorporate the inequality 1-\eta\cdot{c}^{2(N-1)/N}\leq\exp\big{(}-\eta\cdot{c}^{2(N-1)/N}\big{)} into Equation (13):
from which it follows that if:
3 Balanced Initialization
We define the following procedure, balanced initialization, which assigns weights randomly while ensuring perfect balancedness:
Set , where the symbol “” stands for equality up to zero-valued padding. These assignments can be accomplished since . By design and , — these properties are actually all we need in Theorem 2, and step (iii) in Procedure 1 can be replaced by any assignment that meets them.
The concept of balanced initialization, together with Theorem 1, leads to a guarantee for linear convergence (applicable to output dimension — scalar regression) that holds with constant probability over the randomness in initialization:
For any constant , there are constants As shown in the proof of the theorem (Appendix D.3), can take on any pair of values for which: (i) ; and (ii) \big{(}1-2\exp(-d_{0}^{\prime}/16)\big{)}\big{(}3-4F(2/\sqrt{a/2})\big{)}\geq 2p, where stands for the cumulative distribution function of the standard normal distribution. For example, if , it suffices to take any . We note that condition (i) here () serves solely for simplification of expressions in the theorem. such that the following holds. Assume , and that the weights are subject to balanced initialization (Procedure 1) such that the entries in are independent zero-centered Gaussian perturbations with standard deviation . Suppose also that we run gradient descent with learning rate \eta\leq(s^{2}d_{0})^{4-2/N}\big{/}\big{(}10^{5}N^{3}\|\Phi\|_{2}^{10-6/N}\big{)}. Then, with probability at least over the random initialization, we have that for every and:
Experiments
Balanced initialization (Procedure 1) possesses theoretical advantages compared with the customary layer-wise independent scheme — it allowed us to derive a convergence guarantee that holds with constant probability over the randomness of initialization (Theorem 2). In this section we present empirical evidence suggesting that initializing with balancedness may be beneficial in practice as well. For conciseness, some of the details behind our implementation are deferred to Appendix E.
In addition to a three layer network, we also evaluated a deeper, eight layer model (with hidden widths identical to the former — , ). In particular, using the same experimental protocol as above, we measured convergence time under different choices of standard deviation for the initialization. Figure 1(a) displays the result of this test alongside that of the three layer model. As the figure shows, transitioning from three layers to eight aggravated the instability with respect to initialization — there is now a narrow band of standard deviations that lead to convergence in reasonable time, and outside of this band convergence is extremely slow, to the point where it does not take place within the duration we allowed ( iterations). From the perspective of our analysis, a possible explanation for the aggravation is as follows: under layer-wise independent initialization, the magnitude of the end-to-end matrix depends on the standard deviation in a manner that is exponential in depth, thus for large depths the range of standard deviations that lead to moderately sized (as required for a deficiency margin) is limited, and within this range, there may not be many standard deviations small enough to ensure approximate balancedness. The procedure of balanced initialization (Procedure 1) circumvents these difficulties — it assigns directly (no exponential dependence on depth), and distributes its content between the individual weights in a perfectly balanced fashion. Rerunning the experiment of Figure 1(a) with this initialization replacing the customary layer-wise scheme (using same experimental protocol), we obtained the results shown in Figure 1(b) — both the original three layer network, and the deeper eight layer model, converged quickly under virtually all standard deviations tried.
As a final experiment, we evaluated the effect of balanced initialization in a setting that involves non-linear activation, softmax-cross-entropy loss and stochastic optimization (factors not accounted for by our analysis). For this purpose, we turned to the MNIST tutorial built into TensorFlow (Abadi et al., 2016), https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/tutorials/mnist which comprises a fully-connected neural network with two hidden layers (width followed by ) and ReLU activation (Nair and Hinton, 2010), trained through stochastic gradient descent (over softmax-cross-entropy loss) with batch size , initialized via customary layer-wise independent Gaussian perturbations centered at zero. While keeping the learning rate at its default value , we varied the standard deviation of initialization, and for each value measured the training loss after epochs. As opposed to the dataset used in our experiments with linear networks, measuring the training loss with MNIST is non-trivial computationally (involves passing through examples). Therefore, rather than continuously polling training loss until it reaches a certain threshold, in this experiment we chose to evaluate speed of convergence by measuring the training loss once after a predetermined number of iterations. We then replaced the original (layer-wise independent) initialization with a balanced initialization based on Gaussian perturbations centered at zero (latter was implemented per Procedure 1, disregarding non-linear activation), and repeated the process. The results of this experiment are shown in Figure 1(d). Although our theoretical analysis does not cover non-linear activation, softmax-cross-entropy loss or stochasticity in optimization, its conclusion of balanced initialization leading to improved (faster and more stable) convergence carried over to such setting.
Related Work
Theoretical study of gradient-based optimization in deep learning is a highly active area of research. As discussed in Section 1, a popular approach is to show that the objective landscape admits the properties of no poor local minima and strict saddle, which, by Ge et al. (2015); Lee et al. (2016); Panageas and Piliouras (2017), ensure convergence to global minimum. Many works, both classic (e.g. Baldi and Hornik (1989)) and recent (e.g. Choromanska et al. (2015); Kawaguchi (2016); Hardt and Ma (2016); Soudry and Carmon (2016); Haeffele and Vidal (2017); Nguyen and Hein (2017); Safran and Shamir (2018); Nguyen and Hein (2018); Laurent and Brecht (2018)), have focused on the validity of these properties in different deep learning settings. Nonetheless, to our knowledge, the success of landscape-driven analyses in formally proving convergence to global minimum for a gradient-based algorithm, has thus far been limited to shallow (two layer) models only (e.g. Ge et al. (2016); Du and Lee (2018); Du et al. (2018a)).
An alternative to the landscape approach is a direct analysis of the trajectories taken by the optimizer. Various papers (e.g. Brutzkus and Globerson (2017); Li and Yuan (2017); Zhong et al. (2017); Tian (2017); Brutzkus et al. (2018); Li et al. (2018); Du et al. (2018c; b); Liao et al. (2018)) have recently adopted this strategy, but their analyses only apply to shallow models. In the context of linear neural networks, deep (three or more layer) models have also been treated — cf. Saxe et al. (2014) and Arora et al. (2018), from which we draw certain technical ideas for proving Lemma 1. However these treatments all apply to gradient flow (gradient descent with infinitesimally small learning rate), and thus do not formally address the question of computational efficiency.
Conclusion
For deep linear neural networks, we have rigorously proven convergence of gradient descent to global minima, at a linear rate, provided that the initial weight matrices are approximately balanced and the initial end-to-end matrix has positive deficiency margin. The result applies to networks with arbitrary depth, and any configuration of input/output/hidden dimensions that supports full rank, i.e. in which no hidden layer has dimension smaller than both the input and output.
Our assumptions on initialization — approximate balancedness and deficiency margin — are both necessary, in the sense that violating any one of them may lead to convergence failure, as we demonstrated explicitly. Moreover, for networks with output dimension (scalar regression), we have shown that a balanced initialization, i.e. a random choice of the end-to-end matrix followed by a balanced partition across all layers, leads assumptions to be met, and thus convergence to take place, with constant probability. Rigorously proving efficient convergence with significant probability under customary layer-wise independent initialization remains an open problem. The recent work of Shamir (2018) suggests that this may not be possible, as at least in some settings, the number of iterations required for convergence is exponential in depth with overwhelming probability. This negative result, a theoretical manifestation of the “vanishing gradient problem”, is circumvented by balanced initialization. Through simple experiments we have shown that the latter can lead to favorable convergence in deep learning practice, as it does in theory. Further investigation of balanced initialization, including development of variants for convolutional layers, is regarded as a promising direction for future research.
The analysis in this paper uncovers special properties of the optimization landscape in the vicinity of gradient descent trajectories. We expect similar ideas to prove useful in further study of gradient descent on non-convex objectives, including training losses of deep non-linear neural networks.
This work is supported by NSF, ONR, Simons Foundation, Schmidt Foundation, Mozilla Research, Amazon Research, DARPA and SRC. Nadav Cohen is a member of the Zuckerman Israeli Postdoctoral Scholars Program, and supported by Schmidt Foundation.
References
References
Appendix
By definition, when data is whitened, is equal to identity, yielding:
where does not depend on . Hence we arrive at Equation (1).
Appendix B Approximate Balancedness and Deficiency Margin Under Customary Initialization
Two assumptions concerning initialization facilitate our main convergence result (Theorem 1): (i) the initial weights are approximately balanced (see Definition 1); and (ii) the initial end-to-end matrix has positive deficiency margin with respect to the target (see Definition 2). The current appendix studies the likelihood of these assumptions being met under customary initialization of random (layer-wise independent) Gaussian perturbations centered at zero.
For approximate balancedness we have the following claim, which shows that it becomes more and more likely the smaller the standard deviation of initialization is:
In terms of deficiency margin, the claim below treats the case of a single output model (scalar regression), and shows that if the standard deviation of initialization is sufficiently small, with probability close to , a deficiency margin will be met. However, for this deficiency margin to meet a chosen threshold , the standard deviation need be sufficiently large.
Appendix C Convergence Failures
In this appendix we show that the assumptions on initialization facilitating our main convergence result (Theorem 1) — approximate balancedness and deficiency margin — are both necessary, by demonstrating cases where violating each of them leads to convergence failure. This accords with widely observed empirical phenomena, by which successful optimization in deep learning crucially depends on careful initialization (cf. Sutskever et al. (2013)).
Claim 4 below shows For simplicity of presentation, the claim treats the case of even depth and uniform dimension across all layers. It can easily be extended to account for arbitrary depth and input/output/hidden dimensions. that if one omits from Theorem 1 the assumption of approximate balancedness at initialization, no choice of learning rate can guarantee convergence:
In terms of deficiency margin, we provide (by adapting Theorem 4 in Bartlett et al. (2018)) a different, somewhat stronger result — there exist settings where initialization violates the assumption of deficiency margin, and despite being perfectly balanced, leads to convergence failure, for any choice of learning rate: This statement becomes trivial if one allows initialization at a suboptimal stationary point, e.g. . Claim 5 rules out such trivialities by considering only non-stationary initializations.
Appendix D Deferred Proofs
To simplify the presentation we will oftentimes use as an alternative (shortened) notation for — the end-to-end matrix of a linear neural network. We will also use as shorthand for — the loss associated with a (directly parameterized) linear model, i.e. . Therefore, in the context of gradient descent training a linear neural network, the following expressions all represent the loss at iteration :
where we define and for completeness.
where is the element in the -th row and -th column of .
Recall that for any matrices and of compatible sizes , and that the Frobenius norm of a matrix is always lower bounded by its largest singular value (Horn and Johnson (1990)). Using these facts, we have:
D.2 Proof of Lemma 1
To prove Lemma 1, we will in fact prove a stronger result, Lemma 2 below, which states that for each iteration , in addition to (9) being satisfied, certain other properties are also satisfied, namely: (i) the weight matrices are -balanced, and (ii) have bounded spectral norms.
For , .
If , then for ,
For , .
First we observe that Lemma 1 is an immediate consequence of Lemma 2.
Notice that condition of Lemma 2 for each immediately establishes the conclusion of Lemma 1 at time step . ∎
We next prove some preliminary lemmas which will aid us in the proof of Lemma 2. The first is a matrix inequality that follows from Lidskii’s theorem. For a matrix , let denote the rectangular diagonal matrix of the same size, whose diagonal elements are the singular values of arranged in non-increasing order (starting from the position).
For any two matrices of the same size, and .
.
Since and are both symmetric positive semi-definite matrices, their singular values are equal to their eigenvalues. Moreover, the singular values of are simply its diagonal elements and the singular values of are simply the diagonal elements of . Thus by Lemma 3 we get that . Since the Frobenius norm is unitarily invariant, , and by the triangle inequality it follows that
Lemma 5 below states that if are approximately balanced matrices, i.e. has small Frobenius norm for , then we can bound the Frobenius distance between and (as well as between and ).
and for , . Then, for ,
Moreover, if denotes the minimum singular value of , denotes the minimum singular value of and denotes the minimum singular value of , then
Since the Frobenius norm is invariant to orthogonal transformations, we get that
By Lemma 4, we have that and . We may rewrite the latter of these two inequalities as
For matrices , we have that . Therefore, for , we have that
We now argue that . Note that , verifying the case . To see the general case, since square diagonal matrices commute, we have that
By the triangle inequality, we then have that
By an identical argument (formally, by replacing with ), we get that
(19) and (20) verify (17) and (16), respectively, so it only remains to verify (18).
Let us write the eigendecomposition of with an orthogonal eigenbasis as , where is diagonal with its (non-negative) elements arranged in non-increasing order and is orthogonal. We can write the left hand side of (21) as .
By an identical argument using (20), we get that, in the case that , if denotes the minimum singular value of , then
(Notice that we have used the fact that the nonzero eigenvalues of are the same as the nonzero eigenvalues of .) This completes the proof of (18). ∎
Using Lemma 5, we next show in Lemma 6 that if are approximately balanced, then an upper bound on implies an upper bound on for .
Suppose are real numbers satisfying and . Moreover suppose that the matrices satisfy the following:
For , .
Then for , .
For , let us write the singular value decomposition of as , where the singular values of are decreasing along the main diagonal of . By Lemma 4, we have that for , , which implies that .
Write . By the above we have that for .
Let the singular value decomposition of be denoted by , so that . Then by (17) of Lemma 5 and Lemma 4 (see also (22), where the same argument was used), we have that
Now recall that is chosen so that Suppose for the purpose of contradiction that there is some such that . Then it must be the case that
Next, using (25) and for all ,
Since , we get by combining (23) and (26) that
and since , it follows that , which contradicts (24). It follows that for all , . The conclusion of the lemma then follows from the fact that . ∎
D.2.2 Single-Step Descent
Lemma 7 below states that if certain conditions on are met, the sought-after descent — Equation (9) — will take place at iteration . We will later show (by induction) that the required conditions indeed hold for every , thus the descent persists throughout optimization. The proof of Lemma 7 is essentially a discrete, single-step analogue of the continuous proof for Lemma 1 (covering the case of gradient flow) given in Section 3.
Assume the conditions of Theorem 1. Moreover, suppose that for some , the matrices and the end-to-end matrix satisfy the following properties:
for .
.
for .
.
Then, after applying a gradient descent update (4) we have that
For simplicity write and . We first claim that
Since , for (27) to hold it suffices to have
As the minimum singular value of must be at least , we must have . Since then , it holds that
The second inequality above is trivial, and for the first to hold, since , it suffices to take
which is guaranteed by the definition of in Theorem 1.
Next we continue with the rest of the proof. It follows from (14) thatHere, for matrices such that is defined, we write .
where denotes higher order terms in . We now bound the Frobenius norm of . To do this, note that since , . Then
where the last inequality uses , which is a consequence of (27). Next, by Lemma 5 with ,
Next, by standard properties of tensor product, we have that
Let us write eigenvalue decompositions . Then
where the second inequality follows from (D.2.2). Hence the minimum diagonal element of is at least .
It follows as a result of the above inequalities that if we write , then
where the first inequality follows since is -smooth as a function of . Next, by (29) and (30),
By (27, D.2.2), which bound , respectively, we have that
D.2.3 Proof of Lemma 2
We use induction on , beginning with the base case . Since the weights are -balanced, we get that holds automatically. To establish , note that since has deficiency margin with respect to , we must have , meaning that .
Finally, by , which gives , we have that
To show that the above implies , we use condition and Lemma 6 with and . By the definition of in Theorem 1 and since , we have that
as required by Lemma 6. As and (33) verify the preconditions 1. and 2., respectively, of Lemma 6, it follows that for , , verifying and completing the proof of the base case.
The proof of Lemma 2 follows directly from the following inductive claims.
. To prove this, we use Lemma 7. We verify first that the preconditions hold. First, immediately gives condition 1. of Lemma 7. By , we have that , giving condition 2. of Lemma 7. immediately gives condition 3. of Lemma 7. Finally, by , we have that , so by Claim 1. This verifies condition 4. of Lemma 7. Then Lemma 7 gives that , establishing .
. To prove this, note that for ,
By , . By the triangle inequality it then follows that . Also gives that for , . By Lemma 6 with (so that (34) is satisfied),
In the first inequality above, we have also used the fact that for matrices such that is defined, . (35) gives us .
We next establish . By for , we have that . Using for and summing over gives
Next, by , we have that for . Since has deficiency margin of and by Claim 1, it then follows that for all . Therefore, by summing ,
where (2) follows from the definition of in (7), and the last equality follows from definition of in Theorem 1. By (36), it follows that
. We apply Lemma 6 with and . First, the triangle inequality and give
verifying precondition 2. of Lemma 6. verifies condition 1. of Lemma 6, so for , , giving .
The proof of Lemma 2 then follows by induction on . ∎
D.3 Proof of Theorem 2
Theorem 2 is proven by combining Lemma 8 below, which implies that the balanced initialization is likely to lead to an end-to-end matrix with sufficiently large deficiency margin, with Theorem 1, which establishes convergence.
Then, with probability at least , will have deficiency margin with respect to .
The proof of Lemma 8 is postponed to Appendix D.5, where Lemma 8 will be restated as Lemma 16.
By Lemma 9 with , we have that
We next use Lemma 8, with ; note that since , , as required by the lemma. Lemma 8 then implies that with probability at least
will have deficiency margin with respect to . By the definition of balanced initialization (Procedure 1) are -balanced. Since , our assumption on gives
so that Equation (7) holds with . The conditions of Theorem 1 thus hold with probability at least that given in Equation (38). In such a constant probability event, by Theorem 1 (and the fact that a positive deficiency margin implies ), if we choose
then , meaning that . Moreover, by condition of Lemma 2 and the definition of in Theorem 1, we have, for ,
We now apply Theorem 1 again, verifying its conditions again, this time with the initialization . First note that the end-to-end matrix has deficiency margin as shown above. The learning rate , by Equation (39), satisfies Equation (7) with . Finally, since
for , by Equation (41), the matrices are -balanced with . Iteration thus satisfies the conditions of Theorem 1 with deficiency margin , meaning that for
Recall that this entire analysis holds only with the probability given in Equation (38). As and , for any , there exist such that for , the probability given in Equation (38) is at least . This completes the proof.
In the context of the above proof, we remark that the expressions and converge to their limits of and , respectively, as quite quickly. For instance, to obtain a probability of greater than of the initialization conditions being met, we may take .
D.4 Proof of Claim 2
We first consider the probability of -balancedness holding between any two layers:
Note that for , let be the random variable , so that
Then (43) follows from Markov’s inequality. ∎
Now the proof of Claim 2 follows from a simple union bound:
By (43) of Lemma 10, for each , ,
and the claim follows with . ∎
D.5 Proof of Claim 3
To establish Claim 3, we will use the following low-degree anti-concentration result of Carbery and Wright (2001) (see also Lovett (2010); Meka et al. (2016)):
There is an absolute constant such that the following holds. Suppose that is a multilinear polynomial of variables and of degree . Suppose that are i.i.d. Gaussian. Then, for any :
The below lemma characterizes the norm of the end-to-end matrix following zero-centered Gaussian initialization:
Let , so that is a polynomial of degree in the entries of . Notice that
Next, by Lemma 11, there is an absolute constant such that for any , and any ,
Since for each , it follows that
Next, given , choose , and . Then by (44) and (45) and a union bound, we have that
The result of the lemma then follows by taking . ∎
For , choose any . Then, the area of a -hyperspherical cap of height is at least
In Chudnov (1986), it is shown that the area of a -hyperspherical cap of height is given by , where
Next, by the inequality for ,
where the last inequality follows from the standard estimate for . Also, since for all ,
Therefore, for , by (46) and (47),
where the second inequality has used for all (and where ), and the final inequality uses for . The above chain of inequalities gives us the desired result. ∎
By rescaling, we may assume without loss of generality that , so that . Let denote the intersection of with the open -ball of radius centered at . Let denote the -hyperspherical cap of height r\cdot\big{(}1-2/(\sqrt{ad})\big{)}=r-2/(ad) whose base is orthogonal to the line between and (see Figure 2). Note that , the Haar measure of the portion of intersecting , gives the probability that belongs to the boundary of . By Lemma 14 above (along with rescaling arguments), since , , and therefore with at least this probability.
The calculation of is simply an application of the law of cosines: letting be the angle determining the intersection of and (see Figure 2), note that
Using that , we continue with the proof. Notice the fact that is equivalent to , by the structure of and . Since the probability that lands in is at least , this lower bound applies to landing in as well. Since all have distance at most from , and since , it follows that for any , . Therefore, with probability of at least , has deficiency margin with respect to . ∎
Then, with probability at least , will have deficiency margin with respect to .
By rescaling we may assume that without loss of generality. Then the deficiency margin of is equal to . has a well-defined density, so we can set to be the probability density function of . Since is rotation-invariant, we can integrate over spherical coordinates, giving
where the first inequlaity used Lemma 15 and the fact that the distribution of conditioned on is uniform on . ∎
Then Lemma 16, with , and , implies that with probability at least , has deficiency margin with respect to . But implies that this probability is at least , and from (48),
Next recall the assumption in the hypothesis that . Then the deficiency margin in (49) is at least
D.6 Proof of Claim 4
The target matrices that will be used to prove the claim satisfy . We may assume without loss of generality that , the reason being that if a matrix has deficiency margin with respect to and , it certainly has deficiency margin with respect to .
We first consider the case , so that the target and all matrices are simply real numbers; we will make a slight abuse of notation in identifying matrices with their unique entries. We set . For all choices of , we will set the initializations so that . Then
so that . Then since , the gradient descent updates are given by
where we view as real numbers. This gives
Since and , we have that for . Next, since for , we have that , which implies that , or . Thus for . Similarly, using the same bound and the fact that we get for . In particular, for all , we have that .
We prove the following lemma by induction:
For each , the real numbers all have the same sign and this sign alternates for each integer . Moreover, there are real numbers for such that for , and .
First we claim that we may take and . We have shown above that for all . Next we establish that . If , then
where the inequality follows from by definition of . If , then
where the inequality follows from by definition of .
Now, suppose the statement of Lemma 17 holds for some . Suppose first that are all positive for . Then for all , as , and ,
which establishes that is negative for all . Moreover,
Now set and . Since , we have that
The case that all are negative for is nearly identical, with the same values for in terms of , except all will be positive. This establishes the inductive step and completes the proof of Lemma 17. ∎
By Lemma 17, we have that for all , , thus completing the proof of Claim 4 for the case where all dimensions are equal to 1.
For the general case where for some , we set , and given , we set to be the diagonal matrix where all diagonal entries except the first one are equal to 1, and where the first diagonal entry is given by Equation (51), where is given by Equation (50). It is easily verified that all entries of , , except for the first diagonal element of each matrix, will remain constant for all , and that the first diagonal elements evolve exactly as in the 1-dimensional case presented above. Therefore the loss in the -dimensional case is equal to the loss in the 1-dimensional case, which is always greater than some positive constant. ∎
D.7 Proof of Claim 5
where the last inequality follows since has a negative eigenvalue. To analyze gradient descent we use the following result, which was established in Bartlett et al. (2018):
If are all initialized to identity, is symmetric, is a diagonalization of , and gradient descent is performed with any learning rate, then for each there is a diagonal matrix such that for each .
By Lemma 18, for any choice of learning rate , the end-to-end matrix at time is given by . As long as some diagonal element of is negative, say equal to , then
Appendix E Implementation Details
Below we provide implementation details omitted from our experimental report (Section 4).
The platform used for running the experiments is PyTorch (Paszke et al., 2017). For compliance with our analysis, we applied PCA whitening to the numeric regression dataset from UCI Machine Learning Repository. That is, all instances in the dataset were preprocessed by an affine operator that ensured zero mean and identity covariance matrix. Subsequently, we rescaled labels such that the uncentered cross-covariance matrix (see Section 2) has unit Frobenius norm (this has no effect on optimization other than calibrating learning rate and standard deviation of initialization to their conventional ranges). With the training objective taking the form of Equation (1), we then computed — the global optimum — in accordance with the formula derived in Appendix A. In our experiments with linear neural networks, balanced initialization was implemented with the assignment written in step (iii) of Procedure 1. In the non-linear network experiment, we added, for each , a random orthogonal matrix to the right of , and its transpose to the left of — this assignment maintains the properties required from balanced initialization (see Footnote 7). During all experiments, whenever we applied grid search over learning rate, values between and (in regular logarithmic intervals) were tried.