Exponential Convergence Time of Gradient Descent for One-Dimensional Deep Linear Neural Networks

Ohad Shamir

Introduction

One of the biggest open problems in theoretical machine learning is to explain why deep artificial neural networks can be efficiently trained in practice, using simple gradient-based methods. Such training requires optimizing complex, highly non-convex objective functions, which seem intractable from a worst-case viewpoint. Over the past few years, much research has been devoted to this question, but it remains largely unanswered.

Trying to understand simpler versions of this question, significant attention has been devoted to linear neural networks, which are predictors mathematically defined as x↦∏i=1kWix\mathbf{x}\mapsto\prod_{i=1}^{k}W_{i}\mathbf{x}, with W1,…,WkW_{1},\ldots,W_{k} being a set of parameter matrices, and kk being the depth parameter (e.g. Saxe et al. 2013; Kawaguchi 2016; Hardt and Ma 2016; Lu and Kawaguchi 2017; Bartlett et al. 2018; Laurent and Brecht 2018). The optimization problem associated with training such networks can be formulated as

for some matrix-valued function ff. Although much simpler than general feedforward neural networks (which involve additional non-linear functions), it is widely believed that Eq. (1) captures important aspects of neural network optimization problems. Moreover, Eq. (1) has a simple algebraic structure, which makes it more amenable to analysis. In particular, it is known that when ff is convex and differentiable, Eq. (1) has no local minima except global ones (see Laurent and Brecht 2018 and references therein). In other words, if an optimization algorithm converges to some local minimum, then it must converge to a global minimum.

In this paper, we consider a simpler special case of Eq. (1), where the matrices W1,…,WkW_{1},\ldots,W_{k} are all scalars:

Before continuing, we emphasize that our results do not imply that gradient-based methods cannot learn deep linear networks in general. What they do imply is that one would need to make additional assumptions or algorithmic modifications to circumvent these negative results: For example, explicitly using the fact that the matrix sizes are larger than 11 – something which is not clear how to do with current analyses – or having a fine-grained dependency on the variance of the random initialization, as further discussed in Sec. 4. Alternatively, our results might be circumvented using other gradient-based algorithms (for example, by adding random noise to the gradient updates or using adaptive step sizes), or other initialization strategies. However, that would not explain why plain gradient descent with standard random initializations is often practically effective on these problems. Overall, we believe our results point to a potential obstacle in understanding the convergence of gradient-based methods for linear networks: At the very least, one would have to rule out one-dimensional layers, or consider algorithms other than plain gradient descent with standard initializations, in order to establish polynomial-time convergence guarantees for deep linear networks.

Finally, we note that our results provide a possibly interesting contrast to the recent work of Arora et al. 2018b, which suggests that increasing depth can sometimes accelerate the optimization process. Here we show that at least in some cases, the opposite occurs: Adding depth can quickly turn a trivial optimization problem into an intractable one for gradient descent.

Preliminaries

Gradient Descent. We consider the standard gradient descent method for unconstrained optimization of functions FF in Euclidean space, which given an initialization point w(1)\mathbf{w}(1), performs repeated iterations of the form w(t+1):=w(t)−η∇F(w(t))\mathbf{w}(t+1):=\mathbf{w}(t)-\eta\nabla F(\mathbf{w}(t)) for t=1,2,…t=1,2,\ldots (where ∇F(⋅)\nabla F(\cdot) is the gradient, and η>0\eta>0 is a step size parameter). For objectives as in Eq. (2), we have ∂∂wjF(w)=f′(∏iwi)∏j≠iwi\frac{\partial}{\partial w_{j}}F(\mathbf{w})=f^{\prime}(\prod_{i}w_{i})\prod_{j\neq i}w_{i}, and gradient descent takes the form

Random Initialization. One of the most common initialization methods for neural networks is Xavier initialization (Glorot and Bengio 2010), which in the setting of Eq. (1) corresponds to choosing each entry of each d×dd\times d matrix WiW_{i} independently from a zero-mean distribution with variance 1/d1/d (usually uniform or Gaussian). This ensures that the variance of the network outputs (with respect to the initialization) is constant irrespective of the network size. Motivated by residual networks, Hardt and Ma 2016 and Bartlett et al. 2018 consider initializing each WiW_{i} independently at II, possibly with some random perturbation. In this paper we denote such an initialization scheme as a near-identity initialization. Since we focus here on the case d=1d=1 as in Eq. (2), Xavier initialization corresponds to choosing each wiw_{i} independently from a zero-mean, unit-variance distribution, and near-identity initialization corresponds to choosing each wiw_{i} close to 11.

Exponential Convergence Time for Gradient Descent

For our negative results, we impose the following mild conditions on the function ff in Eq. (2):

Here, we assume that ff is fixed, and our goal is to study the convergence time of gradient descent on Eq. (2) as a function of the depth kk. Some simple examples satisfying Assumption 1 in the context of machine learning include f(x)=(x+1)2f(x)=(x+1)^{2} and f(x)=log⁡(1+exp⁡(x))f(x)=\log(1+\exp(x)) (e.g., squared loss and logistic loss with respect to the input/output pair (1,−1)(1,-1), respectively). We note that this non-symmetry with respect to positive/negative values is completely arbitrary, and one can prove similar results if their roles are reversed.

We begin with the case of Xavier initialization, where we initialize all coordinates of w\mathbf{w} in Eq. (2) independently from a zero-mean, unit variance distribution. We will consider any distribution which satisfies the following:

w1(1),…,wk(1)w_{1}(1),\ldots,w_{k}(1) are drawn i.i.d. from a zero-mean, unit variance distribution such that

Pr⁡(w1(1)∈[−a,a])≤c1a\Pr(w_{1}(1)\in[-a,a])\leq c_{1}a for all a≥0a\geq 0

where c1,c2>0c_{1},c_{2}>0 are absolute constants independent of kk.

The first part of the assumption is satisfied for any distribution with bounded density. As to the second part, the following lemma shows that it is satisfied for uniform and Gaussian distributions (with an explicit c2c_{2}), and in fact for any non-trivial distribution (with a distribution-dependent c2c_{2} – see also footnote 2):

With such an initialization, we now show that gradient descent is overwhelmingly likely to take at least exponential time to converge:

The following holds for some positive constants c,c′c,c^{\prime} independent of kk: Under Assumptions 1 and 2, if gradient descent is ran with any step size η≤exp⁡(ck)\eta\leq\exp(ck), then with probability at least 1−exp⁡(−Ω(k))1-\exp(-\Omega(k)) over the initialization, the number of iterations required to reach suboptimality less than c′c^{\prime} is at least exp⁡(Ω(k))\exp(\Omega(k)).

In the above, Ω(⋅)\Omega(\cdot) hides dependencies on the absolute constants in the theorem statement and the assumptions. The proof (as well as all other major proofs in this paper) is presented in Sec. 5.

The intuition behind the theorem is quite simple: Under our assumptions, it is easy to show that the product of any Ω(k)\Omega(k) coordinates from w1(1),…,wk(1)w_{1}(1),\ldots,w_{k}(1) is overwhelmingly likely to be exponentially small in kk. Since the derivative of our objective w.r.t. any wjw_{j} has the form f′(∏iwi)∏i≠jwif^{\prime}(\prod_{i}w_{i})\prod_{i\neq j}w_{i}, it follows that the gradient is exponentially small in kk. Moreover, we show that the gradient is exponentially small at any point within a bounded distance from the initialization (which is the main technical challenge of the proof, since the gradient is by no means Lipschitz). As a result, gradient descent will only make exponentially small steps. Assuming we start from a point bounded away from a global minimum, it follows that the number of required iterations must be exponentially large in kk.

We note that the observation that Xavier initialization leads to highly skewed values in deep enough networks is not new (see Saxe et al. 2013; Pennington et al. 2017), and has motivated alternative initializations such as orthogonal initialization It is interesting to note that in our setting, orthogonal initialization amounts to choosing each wiw_{i} in {−1,+1}\{-1,+1\}, which can easily cause non-convergence, e.g. for F(w1,…,wk)=(∏iwi−y)2F(w_{1},\ldots,w_{k})=(\prod_{i}w_{i}-y)^{2} when y∏iwi(1)<0y\prod_{i}w_{i}(1)<0 and small enough step sizes. Our contribution here is to rigorously analyze how this affects the optimization process for our setting.

2 Near-Identity Initialization

We now turn to consider initializations where each wiw_{i} is initialized close to 11. Here, it will be convenient to make deterministic rather than stochastic assumptions on the initialization point (which are satisfied with high probability for reasonable distributions):

For some absolute constants c1,c2,c3>0c_{1},c_{2},c_{3}>0 independent of kk, gradient descent is initialized at a point w(1)\mathbf{w}(1) which satisfies max⁡j∣wj(1)−1∣ ≤ k−c1\max_{j}|w_{j}(1)-1|~\leq~k^{-c_{1}} and c2≤∏iwi(1)≤c3c_{2}\leq\prod_{i}w_{i}(1)\leq c_{3}.

To justify this assumption, note that if w1(1),…,wk(1)w_{1}(1),\ldots,w_{k}(1) are chosen i.i.d. and not in the range of 1±k−c11\pm k^{-c_{1}} for some c1>0c_{1}>0, then their product is likely to explode or vanish with kk.

The following holds for some positive constants c,c′c,c^{\prime} independent of kk: Under Assumptions 1 and 3, if gradient descent is ran with any positive step size η≤c\eta\leq c, then the number of iterations required to reach suboptimality less than c′c^{\prime} is at least exp⁡(Ω(k))\exp(\Omega(k)).

As before, Ω(⋅)\Omega(\cdot) hides dependencies on the absolute constants in the theorem statement, as well as those in the assumptions.

The formal proof appears in Sec. 5. To help explain its intuition, we provide in Figure 1 the actual evolution of wj(t)w_{j}(t) for a typical run of gradient descent, when F(w)=F(w1,…,w7)=12(∏i=17wi+1)2F(\mathbf{w})=F(w_{1},\ldots,w_{7})=\frac{1}{2}(\prod_{i=1}^{7}w_{i}+1)^{2} and we initialize all coordinates reasonably close to 11. Recall that for any wj(t)w_{j}(t), the gradient descent updates take the form

where ∏iwi(1)>0\prod_{i}w_{i}(1)>0. Thus, initially, all parameters wj(t)w_{j}(t) decrease with tt, as to be expected. However, as their value fall to around or below 11, their product decreases rapidly to exp⁡(−Ω(k))\exp(-\Omega(k)). Since the gradient of each wj(t)w_{j}(t) scales as ∏i≠jwi(t)\prod_{i\neq j}w_{i}(t), the magnitude of the gradients becomes very small, and the algorithm makes only slow progress. Eventually, one of the parameters becomes negative, in which case all other parameters start increasing, and the algorithm converges. However, by a careful analysis, the length of the slow middle phase can be shown to be exponential in the depth / number of parameters kk.

3 A Positive Result

We will use the following assumptions on our objective and parameters:

The following hold for some absolute positive constants c1,c2,c3,c4c_{1},c_{2},c_{3},c_{4} independent of kk:

The initialization w1(1),…,wk(1)w_{1}(1),\ldots,w_{k}(1) satisfies the following:

∣wi(1)∣≤c2|w_{i}(1)|\leq c_{2} and ∏iwi(1)>y\prod_{i}w_{i}(1)>y

min⁡j≠j′∣∣wj(1)∣−∣wj′(1)∣∣≥k−c4\min_{j\neq j^{\prime}}\left||w_{j}(1)|-|w_{j^{\prime}}(1)|\right|\geq k^{-c_{4}}

max⁡j,j′∣∏i∉{j,j′}wi(1)∣≤c4\max_{j,j^{\prime}}\left|\prod_{i\notin\{j,j^{\prime}\}}w_{i}(1)\right|\leq c_{4}

The assumptions y<0y<0 and ∏iwi(1)>y\prod_{i}w_{i}(1)>y ensure that the objective satisfies the conditions of our negative results, for both Xavier and near-identity initializations (the other cases can be studied using similar techniques).

Multi-Dimensional Networks

So far, we showed that for one-dimensional linear neural networks, gradient descent can easily require exponentially many iterations (in the depth of the network) to converge. However, these results are specific to the case where the parameter matrix WiW_{i} of each layer is one-dimensional, and do not necessarily extend to higher dimensions. A possibly interesting exception is when F(W1,…,Wk)=∥∏iWi−Y∥F2F(W_{1},\ldots,W_{k})=\|\prod_{i}W_{i}-Y\|_{F}^{2}, and both YY and the initialization W1(1),…,Wk(1)W_{1}(1),\ldots,W_{k}(1) are diagonal matrices. In that case, it is easy to show that the matrices produced by gradient descent remain diagonal, and the objective can be rewritten as a sum of independent one-dimensional problems for which our results would apply. However, this reasoning fails for non-diagonal initializations and target matrices YY.

In this section, we study experimentally whether our theoretical results for one-dimensional networks might also extend to multi-dimensional ones. In particular, we consider the multi-dimensional generalization of the objective function studied earlier:

where W1,…,WkW_{1},\ldots,W_{k} are d×dd\times d square matrices (for d=25d=25), Y=−IY=-I (II being the identity matrix), and ∥⋅∥F\|\cdot\|_{F} is the Frobenius norm. We ran gradient descent on this objective using three initialization strategies:

Xavier initialization: Each entry of each matrix WiW_{i} was initialized independently from a zero-mean Gaussian with variance 1d\frac{1}{d}.

Near-Identity initialization with smaller variance: Each WiW_{i} was initialized as above, except that the variance of each entry in the matrix MM was 1(dk)2\frac{1}{(dk)^{2}}.

For each random initialization strategy, and for depth parameter k∈{2,3,…,8}k\in\{2,3,\ldots,8\} , we ran 50 trials of gradient descent, with a step size Our results did not seem to change significantly by taking other bounded step sizes. of 10−310^{-3}, until either one of the following two stopping conditions occured:

The objective value dropped below 0.10.1 (or equivalently, ∥∏i=1kWi−Y∥F≤1/5\|\prod_{i=1}^{k}W_{i}-Y\|_{F}\leq\sqrt{1/5}, a rather mild requirement).

The number of iterations exceeded 10910^{9} iterations, in which case the algorithm was deemed to have failed to converge (note that from a practical viewpoint, one billion iterations is exceedingly large considering our problem size).

In Figure 2, we plot the mean and standard deviation for the logarithm of the number of iterations required to make the objective value less than 0.10.1 (among the 5050 trials which converged). We also point out the percentage of trials which did not converge, if any.

The figure strongly suggests that using both Xavier initialization and near-identity initialization with small variance, the required runtime scales exponentially with the depth (recall that the yy-axis is in log scale). This indicates that the phenomenon of exponential scaling with depth is not just an artifact of one-dimensional networks, and can also occur in multi-dimensional networks, even with reasonable random initializations. On the flip side, when performing near-identity initialization with a large enough variance, we did not observe such an exponential scaling (as evidenced in the middle plot in the figure). Moreover, based on some additional experiments with other objective functions, it appears that although gradient descent can sometime require exponential time to converge, this phenomenon is not particularly common. A possible explanation to this is that in one dimension, ∏iwi\prod_{i}w_{i} had to change sign, and hence pass through zero (see Figure 1). This brought the iterates to a “flat” region with exponentially small gradients. In contrast, in multiple dimensions, to continuously change ∏iWi\prod_{i}W_{i} from a matrix to some other matrix, it is always possible to go “around” any particular point. Our experiments suggest that gradient descent indeed avoids problematic flat regions in many cases, but not always. Overall, it seems quite possible that for multi-dimensional networks, the exponential runtime dependence on the depth can be avoided under reasonable assumptions – however, some such assumptions would be necessary, and would need to exclude either objectives of the type we studied here, or some of the initializations. For example, such an analysis might need to explicitly separate between one-dimensional and multi-dimensional networks, or between near-identity initialization with variance 1/dk1/dk and with variance 1/(dk)21/(dk)^{2} (which are both polynomially large in d,kd,k), and how to do so with existing analyses is currently unclear.

Proofs

The proof is based on the following two lemmas:

For any fixed jj, by Markov’s inequality and the i.i.d. assumption,

Taking a union bound over all j=1,2,…,kj=1,2,\ldots,k, the result follows. ∎

We claim that it is enough to prove the following:

Indeed, this would imply that for any w\mathbf{w} satisfying the conditions above, and any v\mathbf{v} s.t. ∥v−w∥≤δk−1log⁡(β/α)\|\mathbf{v}-\mathbf{w}\|\leq\frac{\delta}{\sqrt{k-1}}\log(\beta/\alpha), we must have max⁡j∣∏i≠jvi∣≤β\max_{j}\left|\prod_{i\neq j}v_{i}\right|\leq\beta, and therefore ∣∏ivi∣≤β∥v∥∞|\prod_{i}v_{i}|\leq\beta\|\mathbf{v}\|_{\infty}, as well as ∥∇F(v)∥=sup⁡p:∣p∣≤β∥v∥∞∣f′(p)∣⋅∥(∏i≠1vi,…,∏i≠kvi)∥≤sup⁡p:∣p∣≤β∥v∥∞∣f′(p)∣kβ\|\nabla F(\mathbf{v})\|=\sup_{p:|p|\leq\beta\|\mathbf{v}\|_{\infty}}|f^{\prime}(p)|\cdot\|(\prod_{i\neq 1}v_{i},\ldots,\prod_{i\neq k}v_{i})\|\leq\sup_{p:|p|\leq\beta\|\mathbf{v}\|_{\infty}}|f^{\prime}(p)|\sqrt{k}\beta by definition of FF, as required.

To prove Eq. (3), we first state and prove the following auxiliary result:

This statement holds by the following calculation:

where (∗)(*) is due to the fact that log⁡(⋅)\log(\cdot) is 1/z1/z-Lipschitz in [z,∞)[z,\infty), and the assumption that vi≥wi≥0v_{i}\geq w_{i}\geq 0.

Change the sign of every wiw_{i} and viv_{i} to be positive

For any ii such that vi<wiv_{i}<w_{i}, change viv_{i} to equal wiw_{i}.

Drop a coordinate jj which maximizes ∣∏i≠jvi∣|\prod_{i\neq j}v_{i}|.

It is easy to verify that the resulting vectors w′,v′\mathbf{w}^{\prime},\mathbf{v}^{\prime} satisfy the conditions of Eq. (4), and ∥v′−w′∥≤∥v−w∥\|\mathbf{v}^{\prime}-\mathbf{w}^{\prime}\|\leq\|\mathbf{v}-\mathbf{w}\|. Therefore, by Eq. (4), ∥v−w∥≥∥v′−w′∥≥δk−1log⁡(β/α)\|\mathbf{v}-\mathbf{w}\|\geq\|\mathbf{v}^{\prime}-\mathbf{w}^{\prime}\|\geq\frac{\delta}{\sqrt{k-1}}\log(\beta/\alpha) as required. ∎

With these two lemmas in hand, we turn to prove the theorem. By Lemma 2 and Assumption 2, we have

for some fixed constants C,C′>0C,C^{\prime}>0 and any large enough kk. Moreover, again by Assumption 2, it holds for any ii that Pr⁡(∣wi(1)∣≤exp⁡(−Ck))≤O(exp⁡(−Ck))\Pr(|w_{i}(1)|\leq\exp(-Ck))\leq\mathcal{O}(\exp(-Ck)), so by a union bound,

Finally, by Assumption 2, Markov’s inequality and a union bound,

Combining the last three displayed equations with a union bound, and applying Lemma 3 (with α=exp⁡(−2Ck))\alpha=\exp(-2Ck)), β=2α\beta=2\alpha, and δ=exp⁡(−Ck)\delta=\exp(-Ck)), we get the following: With probability at least 1−exp⁡(−C′k)−O(kexp⁡(−Ck))−kexp⁡(−Ck)=1−exp⁡(−Ω(k))1-\exp(-C^{\prime}k)-\mathcal{O}(k\exp(-Ck))-k\exp(-Ck)=1-\exp(-\Omega(k)) over the choice of w(1)\mathbf{w}(1),

∥w(1)∥∞≤exp⁡(Ck)\|\mathbf{w}(1)\|_{\infty}\leq\exp(Ck).

For any v\mathbf{v} at a distance at most exp⁡(−Ck)log⁡(2)k−1\exp(-Ck)\frac{\log(2)}{\sqrt{k-1}} from w(1)\mathbf{w}(1), we have

Since the gradient descent updates are of the form w(t+1)=w(t)−η∇F(w(t))\mathbf{w}(t+1)=\mathbf{w}(t)-\eta\nabla F(\mathbf{w}(t)), and we can assume η≤exp⁡(Ck/2)\eta\leq\exp(Ck/2) by the theorem’s conditions, the number of iterations required to get to a distance larger than exp⁡(−Ck)log⁡(2)k−1\exp(-Ck)\frac{\log(2)}{\sqrt{k-1}} from w(1)\mathbf{w}(1) is at least

which is at least exp⁡(Ω(k))\exp(\Omega(k)) iterations.

As long as we are at a distance smaller than the above, ∣∏ivi∣ ≤ O(exp⁡(−Ck))≤exp⁡(−Ω(k))\left|\prod_{i}v_{i}\right|~\leq~\mathcal{O}(\exp(-Ck))\leq\exp(-\Omega(k)). In particular, ∏ivi≥−1/2\prod_{i}v_{i}\geq-1/2 for large enough kk, so by Assumption 1 and definition of FF, we have that F(v)−inf⁡vF(v)F(\mathbf{v})-\inf_{\mathbf{v}}F(\mathbf{v}) is lower bounded by a constant independent of kk.

Overall, we get that with probability at least 1−exp⁡(−Ω(k))1-\exp(-\Omega(k)), we initialize at some region in which all points are at least Ω(1)\Omega(1) suboptimal, and at least exp⁡(Ω(k))\exp(\Omega(k)) iterations are required to escape it. This immediately implies our theorem.

2 Proof of Thm. 2

We begin with the following auxiliary lemma, and then turn to analyze the dynamics of gradient descent in our setting.

For any positive scalars α,w1,…,wk\alpha,w_{1},\ldots,w_{k} such that min⁡iwi>α\min_{i}w_{i}>\alpha,

Taking the kk-th root and switching sides, the inequality in the lemma is equivalent to proving

Letting ai=wi−αa_{i}=w_{i}-\alpha, and bi=αb_{i}=\alpha for all ii, the above is equivalent to proving that

namely that the sum of the geometric means of two positive sequences (ai)(a_{i}) and (bi)(b_{i}) is at most the geometric mean of their sum (ai+bi)(a_{i}+b_{i}). This follows from the superadditivity of the geometric mean (see Steele 2004) ∎

If min⁡iwi(t)≥C\min_{i}w_{i}(t)\geq C and ∏iwi(t)≤C′\prod_{i}w_{i}(t)\leq C^{\prime} for some positive constants C,C′C,C^{\prime}, then for any j,j′j,j^{\prime},

where C′′C^{\prime\prime} is some constant dependent only on C,C′C,C^{\prime} and the function ff.

By assumption, 0≤∏iwi(t)≤C′0\leq\prod_{i}w_{i}(t)\leq C^{\prime} and max⁡j1wj(t)2≤1C2\max_{j}\frac{1}{w_{j}(t)^{2}}\leq\frac{1}{C^{2}}. Therefore, by our assumptions on ff, the displayed equation above implies that

for some constant C′′>0C^{\prime\prime}>0 dependent on C,C′C,C^{\prime} and ff as required. ∎

Suppose that at some iteration tt, for some constant CC independent of kk, it holds that max⁡iwi(t)≤C\max_{i}w_{i}(t)\leq C and ∏iwi(t)≤β\prod_{i}w_{i}(t)\leq\beta for some β∈(0,C)\beta\in(0,C). Then after at most τ≤1+O(1)⋅β1/k−1ηk\tau\leq 1+\mathcal{O}(1)\cdot\frac{\beta^{1/k-1}}{\eta k} iterations, if min⁡jwj(r)≥1/2\min_{j}w_{j}(r)\geq 1/2 for all r=t,t+1,…,t+τr=t,t+1,\ldots,t+\tau, then

Each wi(r)w_{i}(r) as well as ∏iwi(r)\prod_{i}w_{i}(r) monotonically decrease in r=t,t+1,…,t+τr=t,t+1,\ldots,t+\tau

For all r=t,t+1,…,t+τ−1r=t,t+1,\ldots,t+\tau-1, max⁡j∣wj(r+1)−wj(r)∣≤O(1)⋅ηβ\max_{j}|w_{j}(r+1)-w_{j}(r)|\leq\mathcal{O}(1)\cdot\eta\beta

∏iwi(t+τ)≤β⋅exp⁡(−1)\prod_{i}w_{i}(t+\tau)\leq\beta\cdot\exp(-1).

In the above, O(1)\mathcal{O}(1) hides constants dependent only on CC and the function ff.

If ∏iwi(t)≤β⋅exp⁡(−1)\prod_{i}w_{i}(t)\leq\beta\cdot\exp(-1), we can pick τ=0\tau=0, and the lemma trivially holds. Otherwise, let τ\tau be the smallest (positive) index such that ∏iwi(t)≤β⋅exp⁡(−1)\prod_{i}w_{i}(t)\leq\beta\cdot\exp(-1) (if no such index exists, take τ=∞\tau=\infty, although the arguments below imply that τ\tau must be finite). Since we assume wi(r)w_{i}(r) for all ii are positive, and ff is monotonically increasing,

so wj(r)w_{j}(r) monotonically decreases in rr. Moreover, these are all positive numbers by assumption, so ∏iwi(r)\prod_{i}w_{i}(r) monotonically decreases in rr as well. This shows the first part of the lemma.

As to the second part, the displayed equation above, the fact that wj(r)w_{j}(r) and ∏iwi(r)\prod_{i}w_{i}(r) decrease in rr, and our assumptions on ff imply that for any r<t+τr<t+\tau,

where Θ(1)\Theta(1) hides constants dependent only on ff and CC. As to the third part of the lemma, fix some s<τs<\tau, and repeatedly apply the displayed equation above for r=t,t+1,…,t+sr=t,t+1,\ldots,t+s, to get that that wj(t+s)≤wj(t)−Θ(1)⋅ηβsw_{j}(t+s)\leq w_{j}(t)-\Theta(1)\cdot\eta\beta s (which is still ≥1/2\geq 1/2 by the lemma assumptions). In that case,

where (∗)(*) follows from Lemma 4 and the fact that ∏iwi(t)≤β\prod_{i}w_{i}(t)\leq\beta. The right hand side in turn is at most β⋅exp⁡(−1)\beta\cdot\exp(-1) for any s≥C′β1/k−1/ηks\geq C^{\prime}\beta^{1/k-1}/\eta k for some constant C′C^{\prime}. In particular, if τ>1+C′β1/k−1/ηk\tau>1+C^{\prime}\beta^{1/k-1}/\eta k, then by choosing ss s.t. τ>s≥C′β1/k−1/ηk\tau>s\geq C^{\prime}\beta^{1/k-1}/\eta k, we get that ∏iwi(t+s)≤β⋅exp⁡(−1)\prod_{i}w_{i}(t+s)\leq\beta\cdot\exp(-1) even though s<τs<\tau, which contradicts the definition of τ\tau. Hence τ≤1+C′β1/k−1/ηk\tau\leq 1+C^{\prime}\beta^{1/k-1}/\eta k as stated in the lemma. ∎

Combining Lemma 5 and Lemma 6, we have the following:

For any constants C>0C>0 and index TT, if ∏iwi(1)≤C\prod_{i}w_{i}(1)\leq C and wi(t)≥12w_{i}(t)\geq\frac{1}{2} for all i=1,…,ki=1,\ldots,k and t=1,2,…,Tt=1,2,\ldots,T, then for all such tt,

Each wi(t)w_{i}(t) as well as ∏iwi(t)\prod_{i}w_{i}(t) monotonically decrease in tt.

max⁡j∣wj(t+1)−wj(t)∣≤O(1)⋅η\max_{j}|w_{j}(t+1)-w_{j}(t)|\leq\mathcal{O}(1)\cdot\eta

max⁡j,j′∣wj(t)−wj′(t)∣ ≤ k−Ω(1)+O(1)⋅(η2+ηk)\max_{j,j^{\prime}}|w_{j}(t)-w_{j^{\prime}}(t)|~\leq~k^{-\Omega(1)}+\mathcal{O}(1)\cdot\left(\eta^{2}+\frac{\eta}{k}\right) .

In the above, O(⋅)\mathcal{O}(\cdot) hides constants dependent only on CC and the constants in Assumptions 1 and 3.

The first two parts of the lemma follow from Lemma 6 and the fact that by Assumption 3, wi(1)≤1+k−Ω(1)≤O(1)w_{i}(1)\leq 1+k^{-\Omega(1)}\leq\mathcal{O}(1). As to the last part, define t0≤t1≤…≤tst_{0}\leq t_{1}\leq\ldots\leq t_{s} (where t0=1t_{0}=1) as the first indices ≤T\leq T such that for all r=0,…,sr=0,\ldots,s, ∏iwi(tr)≤(∏iwi(1))exp⁡(−r)\prod_{i}w_{i}(t_{r})\leq(\prod_{i}w_{i}(1))\exp(-r) (where ss is taken to be as large as possible). By Lemma 6, we have the following:

For all r=0,…,s−1r=0,\ldots,s-1, ∣tr+1−tr∣≤1+O(1)⋅exp⁡(−r)1/k−1ηk|t_{r+1}-t_{r}|\leq 1+\mathcal{O}(1)\cdot\frac{\exp(-r)^{1/k-1}}{\eta k} .

∣T−ts∣≤1+O(1)⋅exp⁡(−s)1/k−1ηk|T-t_{s}|\leq 1+\mathcal{O}(1)\cdot\frac{\exp(-s)^{1/k-1}}{\eta k} .

For all r=0,…,s−1r=0,\ldots,s-1 and any tr≤t≤tr+1t_{r}\leq t\leq t_{r+1}, we have ∏iwi(t)≤O(1)⋅exp⁡(−r)\prod_{i}w_{i}(t)\leq\mathcal{O}(1)\cdot\exp(-r).

Combining this with Lemma 5, it follows that for any j,j′j,j^{\prime}, and any r=0,…,s−1r=0,\ldots,s-1,

Repeatedly applying the last two displayed equations, and using Assumption 3, we get that

Since ∣wj(T)2−wj′(T)2∣=∣wj(T)+wj′(T)∣⋅∣wj(T)−wj′(T)∣≥∣wj(T)−wj′(T)∣|w_{j}(T)^{2}-w_{j^{\prime}}(T)^{2}|=|w_{j}(T)+w_{j^{\prime}}(T)|\cdot|w_{j}(T)-w_{j^{\prime}}(T)|\geq|w_{j}(T)-w_{j^{\prime}}(T)| (as we have min⁡iwi(T)≥1/2\min_{i}w_{i}(T)\geq 1/2 by assumption), we get that ∣wj(T)−wj′(T)∣≤k−Ω(1)+O(1)⋅(η2+ηk)|w_{j}(T)-w_{j^{\prime}}(T)|\leq k^{-\Omega(1)}+\mathcal{O}(1)\cdot\left(\eta^{2}+\frac{\eta}{k}\right) as required. ∎

With Lemma 7 in hand, we can now prove the theorem. Let TT be the largest index such that min⁡iwi(t)≥1/2\min_{i}w_{i}(t)\geq 1/2 for all t=1,2,…,Tt=1,2,\ldots,T (and ∞\infty if this holds for all tt). It follows that ∏iwi(t)≥0\prod_{i}w_{i}(t)\geq 0, and therefore, by Assumption 1, F(w(t))−inf⁡wF(w)F(\mathbf{w}(t))-\inf_{\mathbf{w}}F(\mathbf{w}) is at least a constant independent of kk for all t=1,2,…,Tt=1,2,\ldots,T. Thus, to prove the theorem, it is enough to show that if T<∞T<\infty, then T≥exp⁡(Ω(k))T\geq\exp(\Omega(k)).

By Assumption 3 and Lemma 7, we have that w1(1)≥1−k−Ω(1)w_{1}(1)\geq 1-k^{-\Omega(1)}, ∣w1(t+1)−w1(t)∣≤O(1)⋅η|w_{1}(t+1)-w_{1}(t)|\leq\mathcal{O}(1)\cdot\eta, and max⁡j∣wj(t)−w1(t)∣≤k−Ω(1)+O(1)⋅(η2+ηk)\max_{j}|w_{j}(t)-w_{1}(t)|\leq k^{-\Omega(1)}+\mathcal{O}(1)\cdot\left(\eta^{2}+\frac{\eta}{k}\right). On the other hand, if T<∞T<\infty, then min⁡iwi(T+1)<1/2\min_{i}w_{i}(T+1)<1/2. Therefore, if kk is large enough and η\eta is small enough, there exists some iteration t≤Tt\leq T such that wj(t)∈[2/3,3/4]w_{j}(t)\in[2/3,3/4] for all jj. This means that ∏iwi(t)≤(3/4)k=exp⁡(−Ω(k))\prod_{i}w_{i}(t)\leq(3/4)^{k}=\exp(-\Omega(k)). Thus, by Lemma 6 (with β=exp⁡(−Ω(k))\beta=\exp(-\Omega(k)), from iteration tt till iteration TT, each wjw_{j} decreases by at most O(1)⋅ηβ≤exp⁡(−Ω(k))\mathcal{O}(1)\cdot\eta\beta\leq\exp(-\Omega(k)) at each iteration. By assumption, at iteration T+1T+1, there is some wj(T+1)<1/2w_{j}(T+1)<1/2, so we must have T−t≥(2/3−1/2)/exp⁡(−Ω(k))=exp⁡(Ω(k))T-t\geq(2/3-1/2)/\exp(-\Omega(k))=\exp(\Omega(k)) as required.

3 Proof of Thm. 3

To prove the theorem, we first state and prove the following key lemma:

For any initialization w(1)\mathbf{w}(1) and any (σ1,…,σk)∈{−1,+1}k(\sigma_{1},\ldots,\sigma_{k})\in\{-1,+1\}^{k}, let v(1),v(2),…\mathbf{v}(1),\mathbf{v}(2),\ldots denote the iterates produced by gradient descent starting from v(1):=(σ1w1(1),…,σkwk(1))\mathbf{v}(1):=(\sigma_{1}w_{1}(1),\ldots,\sigma_{k}w_{k}(1)), w.r.t. the function

where σ:=∏iσi\sigma:=\prod_{i}\sigma_{i}. Then for any t≥1t\geq 1,

We prove the lemma by induction. The base case (t=1t=1) is immediate from the definitions and the fact that

Assuming that the induction hypothesis holds for tt, and recalling that σ=∏iσi\sigma=\prod_{i}\sigma_{i}, we have for any j∈{1,…,k}j\in\{1,\ldots,k\} that

This establishes the inductive step for t+1t+1, hence proving the lemma. ∎

The lemma implies that for studying the dynamics of gradient descent starting from any initial point (w1(1),…,wk(1))(w_{1}(1),\ldots,w_{k}(1)), we can arbitrarily change the signs of its coordinates, as long as the sign of yy is changed accordingly. In particular, we will assume without loss of generality that all w1(1),…,wk(1)w_{1}(1),\ldots,w_{k}(1) are positive (again, as long as the sign of yy is fixed accordingly). The proof then proceeds as follows:

We will need the following auxiliary lemma:

For any a>0a>0, b≥0b\geq 0, log⁡(a+b)≤log⁡(a)+ba\log(a+b)\leq\log(a)+\frac{b}{a}.

Since log⁡(1+z)≤z\log(1+z)\leq z for all z≥0z\geq 0, we have log⁡(a+b)=log⁡(a(1+b/a))=log⁡(a)+log⁡(1+b/a)≤log⁡(a)+b/a\log(a+b)=\log(a(1+b/a))=\log(a)+\log(1+b/a)\leq\log(a)+b/a. ∎

Fix some γ≥δ>0\gamma\geq\delta>0. Suppose that y>0y>0, and gradient descent on FF is initialized at some w(1)\mathbf{w}(1) such that ∏iwi(1)∈[0,y)\prod_{i}w_{i}(1)\in[0,y), wj∗(1)≥δw_{j^{*}}(1)\geq\delta for some j∗∈arg⁡min⁡iwi(1)j^{*}\in\arg\min_{i}w_{i}(1), and wj(1)≥γw_{j}(1)\geq\gamma for all j≠j∗j\neq j^{*}. Assuming step size η≤δ2/2ky2\eta\leq\delta^{2}/2ky^{2}, we have that F(w(t))≤ϵF(\mathbf{w}(t))\leq\epsilon for any t ≥ log⁡(y2/2ϵ)kδ2γ2(k−2)ηt~\geq~\frac{\log(y^{2}/2\epsilon)}{k\delta^{2}\gamma^{2(k-2)}\eta}.

First, we show that if the step size η\eta is small enough, then gradient descent will remain in W\mathcal{W} forever. For that, it is enough to show that for any w∈W\mathbf{w}\in\mathcal{W}, the update w′:=w−η∇F(w)\mathbf{w}^{\prime}:=\mathbf{w}-\eta\nabla F(\mathbf{w}) produced by gradient descent is in W\mathcal{W} as well. By definition of W\mathcal{W}, it is easily verified that wi′≥wi>0w^{\prime}_{i}\geq w_{i}>0 for all ii, so the only non-trivial condition to verify is that ∏jwj′<y\prod_{j}w^{\prime}_{j}<y. To show this, we note that by Lemma 9,

Thus, to ensure that ∏jwj′<y\prod_{j}w^{\prime}_{j}<y (or equivalently, log⁡(∏jwj′)<log⁡(y)\log(\prod_{j}w^{\prime}_{j})<\log(y)), it is enough to ensure that

By the mean value theorem and the fact that ∏jwj<y\prod_{j}w_{j}<y, the right hand side can be lower bounded by min⁡z∈(0,y]log⁡′(z)=1/y\min_{z\in(0,y]}\log^{\prime}(z)=1/y, so it is enough to require

Having established that gradient descent will remain in W\mathcal{W} forever, we now establish that the objective FF has a 2ky2δ2\frac{2ky^{2}}{\delta^{2}}-Lipschitz gradient on W\mathcal{W}: Indeed, the Hessian of FF at any w∈W\mathbf{w}\in\mathcal{W} can be easily verified to equal

Since w∈W\mathbf{w}\in\mathcal{W}, it follows that magnitude of each entry in the k×kk\times k Hessian is at most y⋅yδ2+y2δ2=2y2/δ2y\cdot\frac{y}{\delta^{2}}+\frac{y^{2}}{\delta^{2}}=2y^{2}/\delta^{2}, and therefore its spectral norm (which is at most the Frobenius norm) can be upper bounded by 2ky2/δ22ky^{2}/\delta^{2}.

The final ingredient we need is that FF satisfies

for any w∈W\mathbf{w}\in\mathcal{W} (this type of inequality is known as the Polyak-Łojasiewicz condition, which ensures linear convergence rates for gradient descent on possibly non-convex functions – see Polyak 1963; Karimi et al. 2016). This follows from ∥∇F(w)∥2\|\nabla F(\mathbf{w})\|^{2}, by definition, being equal to

Collecting these ingredients, we can now perform a standard analysis using the Polyak-Łojasiewicz condition: If we do a gradient step to get from w∈W\mathbf{w}\in\mathcal{W} to w′∈W\mathbf{w}^{\prime}\in\mathcal{W} (i.e. w′:=w−η∇F(w)\mathbf{w}^{\prime}:=\mathbf{w}-\eta\nabla F(\mathbf{w})), and assuming η≤δ2/2ky2\eta\leq\delta^{2}/2ky^{2}, then

Applying this inequality tt times, we get that

Equating the bound above to the target accuracy ϵ\epsilon and solving for tt, the result follows. ∎

3.2 The Case y<0<∏iwi​(1)y<0<\prod_{i}w_{i}(1)

We first state the following auxiliary lemma, which establishes that the gaps between coordinates are monotonically increasing under suitable assumptions.

Fix some coordinate indices j,j′j,j^{\prime} and iteration tt, and suppose that wj(t)≤wj′(t)w_{j}(t)\leq w_{j^{\prime}}(t), min⁡iwi(t)≥0\min_{i}w_{i}(t)\geq 0, and y<0y<0. Then wj′(t)−wj(t) ≤ wj′(t+1)−wj(t+1)w_{j^{\prime}}(t)-w_{j}(t)~\leq~w_{j^{\prime}}(t+1)-w_{j}(t+1).

Dropping the (t)(t) index to simplify notation, we have by definition that wj′(t+1)−wj(t+1)w_{j^{\prime}}(t+1)-w_{j}(t+1) equals

Since y<0y<0 and wi≥0w_{i}\geq 0 for all ii, the above is at least wj′−wj=wj′(t)−wj(t)w_{j^{\prime}}-w_{j}=w_{j^{\prime}}(t)-w_{j}(t) as required. ∎

There exists a unique j∗=arg⁡min⁡iwi(t0)j^{*}=\arg\min_{i}w_{i}(t_{0}), and −O(1)⋅η≤wj∗(t0)≤0-\mathcal{O}(1)\cdot\eta\leq w_{j^{*}}(t_{0})\leq 0.

min⁡j≠j∗wj(t0)≥k−O(1)\min_{j\neq j^{*}}w_{j}(t_{0})\geq k^{-\mathcal{O}(1)}, max⁡j≠j∗wj(t0)≤O(1)\max_{j\neq j^{*}}w_{j}(t_{0})\leq\mathcal{O}(1), and max⁡j∏i∉{j,j∗}wi(t0)≤O(1)\max_{j}\prod_{i\notin\{j,j^{*}\}}w_{i}(t_{0})\leq\mathcal{O}(1).

It is important to note that the constants hidden in the O(⋅)\mathcal{O}(\cdot) notation do not depend on η\eta (although they may depend on CC).

By Lemma 11 and the theorem assumptions, the following holds for all iterations t=1,2,…,Tt=1,2,\ldots,T where min⁡i,t<Twi(t)≥0\min_{i,t<T}w_{i}(t)\geq 0: There exists a unique j∗=arg⁡min⁡iwi(1)j^{*}=\arg\min_{i}w_{i}(1), wj∗(t)w_{j^{*}}(t) remains the unique smallest value among w1(t),…,wk(t)w_{1}(t),\ldots,w_{k}(t), and its distance from any other coordinate (which was initially k−O(1)k^{-\mathcal{O}(1)}) is monotonically increasing in tt. In particular, for any t<Tt<T, min⁡j≠j∗wj(t)≥k−O(1)\min_{j\neq j^{*}}w_{j}(t)\geq k^{-\mathcal{O}(1)}. As a result, recalling that y<0y<0, we have for all t<Tt<T that

It remains to show that wj∗(t0)≥−O(1)⋅ηw_{j^{*}}(t_{0})\geq-\mathcal{O}(1)\cdot\eta, as well as the second bullet in the lemma. To that end, we note that up till iteration t0t_{0}, for any jj, both wj(t)w_{j}(t) and ∏i≠jwi(t)\prod_{i\neq j}w_{i}(t) are monotonically decreasing in tt, and moreover, t0>1t_{0}>1 (since wj∗(t0)≤0w_{j^{*}}(t_{0})\leq 0 and we assume wj∗(1)>0w_{j^{*}}(1)>0). Thus, by Assumption 4,

Using this inequality, we have for any j≠j∗j\neq j^{*}

which is at least k−O(1)k^{-\mathcal{O}(1)} if η≤k−C\eta\leq k^{-C} for some sufficiently large constant CC. Finally, since wj(t)w_{j}(t) for any j≠j∗j\neq j^{*} is positive and monotonically decreasing up to iteration t0t_{0}, we have wj(t0)≤wj(1)≤O(1)w_{j}(t_{0})\leq w_{j}(1)\leq\mathcal{O}(1) and ∏i∉{j,j∗}wi(t0)≤∏i∉{j,j∗}wi(1)≤O(1)\prod_{i\notin\{j,j^{*}\}}w_{i}(t_{0})\leq\prod_{i\notin\{j,j^{*}\}}w_{i}(1)\leq\mathcal{O}(1) by Assumption 4. ∎

min⁡j≠j∗wj(t0+1)≥k−O(1)\min_{j\neq j^{*}}w_{j}(t_{0}+1)\geq k^{-\mathcal{O}(1)} and ∏i≠j∗wi(t0+1)≤O(1)\prod_{i\neq j^{*}}w_{i}(t_{0}+1)\leq\mathcal{O}(1).

By Lemma 12, we have ∏iwi(t0)≤0\prod_{i}w_{i}(t_{0})\leq 0, as well as ∏iwi(t0)=wj∗(t0)⋅wj(t0)⋅∏i∉{j,j∗}wi(t0)≥−O(1)⋅η\prod_{i}w_{i}(t_{0})=w_{j^{*}}(t_{0})\cdot w_{j}(t_{0})\cdot\prod_{i\notin\{j,j^{*}\}}w_{i}(t_{0})\geq-\mathcal{O}(1)\cdot\eta (where jj is arbitrary). This implies that for sufficiently small η\eta, y2≤∏iwi(t0)≤0\frac{y}{2}\leq\prod_{i}w_{i}(t_{0})\leq 0. By definition of the gradient descent update, it follows that wj∗(t0+1)≤wj∗(t0)w_{j^{*}}(t_{0}+1)\leq w_{j^{*}}(t_{0}) and for all j≠j∗j\neq j^{*}, wj(t0+1)≥wj(t0)w_{j}(t_{0}+1)\geq w_{j}(t_{0}), which implies that j∗j^{*} remains the unique coordinate with smallest value as we move from iteration t0t_{0} to iteration t0+1t_{0}+1, as well as min⁡j≠j∗wj(t0+1)≥min⁡j≠j∗wj(t0)≥k−O(1)\min_{j\neq j^{*}}w_{j}(t_{0}+1)\geq\min_{j\neq j^{*}}w_{j}(t_{0})\geq k^{-\mathcal{O}(1)}.

Finally, to prove ∏i≠j∗wi(t0+1)≤O(1)\prod_{i\neq j^{*}}w_{i}(t_{0}+1)\leq\mathcal{O}(1), we have by definition that for any j≠j∗j\neq j^{*},

Using the fact that y2≤∏iwi(t0)≤0\frac{y}{2}\leq\prod_{i}w_{i}(t_{0})\leq 0 as shown earlier, and noting that by Lemma 12, ∣wj∗(t0)∣≤O(1)⋅η|w_{j^{*}}(t_{0})|\leq\mathcal{O}(1)\cdot\eta and ∣∏i∉{j,j∗}wi(t0)∣≤O(1)\left|\prod_{i\notin\{j,j^{*}\}}w_{i}(t_{0})\right|\leq\mathcal{O}(1), it follows from the displayed equation above that wj(t0+1)≤wj(t0)+O(1)⋅η2w_{j}(t_{0}+1)\leq w_{j}(t_{0})+\mathcal{O}(1)\cdot\eta^{2}. Therefore,

Since min⁡j≠j∗wj(t0)≥k−O(1)\min_{j\neq j^{*}}w_{j}(t_{0})\geq k^{-\mathcal{O}(1)} (where the O(1)\mathcal{O}(1) does not depend on η\eta), then by picking η≤k−C\eta\leq k^{-C} for a sufficiently large CC, the above is at most (∏i≠j∗wi(t0))(1+O(1)k)k−1 ≤ (wj(t0)∏i∉{j,j∗}wi(t0))⋅O(1) ≤ O(1)\left(\prod_{i\neq j^{*}}w_{i}(t_{0})\right)\left(1+\frac{\mathcal{O}(1)}{k}\right)^{k-1}~\leq~\left(w_{j}(t_{0})\prod_{i\notin\{j,j^{*}\}}w_{i}(t_{0})\right)\cdot\mathcal{O}(1)~\leq~\mathcal{O}(1), where we used Lemma 12 and where jj is arbitrary. ∎

3.3 Putting Everything Together

As discussed at the beginning of the proof, we can assume w.l.o.g. that w1(1),…,wk(1)w_{1}(1),\ldots,w_{k}(1) are all positive (and in fact, min⁡iwi(1)≥k−O(1)\min_{i}w_{i}(1)\geq k^{-\mathcal{O}(1)} by our assumptions), and only consider the cases y>∏iwi(1)>0y>\prod_{i}w_{i}(1)>0 and y<0<∏iwi(1)y<0<\prod_{i}w_{i}(1).

References