Natasha: Faster Non-Convex Stochastic Optimization Via Strongly Non-Convex Parameter
Zeyuan Allen-Zhu
Introduction
We study the problem of composite nonconvex minimization:
where each is nonconvex but smooth, and is proper convex, possibly nonsmooth. We are interested in finding a point that is an approximate local minimum of .
The finite-sum structure arises prominently in large-scale machine learning tasks. In particular, when minimizing loss over a training set, each example corresponds to one loss function in the summation. This finite-sum structure allows one to perform stochastic gradient descent with respect to a random .
The so-called proximal term adds more generality to the model. For instance, if is the indicator function of a convex set, then problem (1.1) becomes constraint minimization; if , then we can allow problem (1.1) to perform feature selection. In general, has to be a simple function where the projection operation is efficiently computable. At a first reading of this paper, one can assume for simplicity.
Many nonconvex machine learning problems fall into problem (1.1). Most notably, training deep neural networks and classifications with sigmoid loss correspond to (1.1) where neither or is convex. However, our understanding to this challenging nonconvex problem is very limited.
Let be the smoothness parameter for each , meaning all the eigenvalues of lie in .This definition also applies to functions that are not twice differentiable, see Section LABEL:sec:pre for details. We denote by the bounded nonconvexity parameter of , meaning that Previous authors also refer to this notion as “approximate convex”, “almost convex”, “hypo-convex”, “semi-convex”, or “weakly-convex.” We call it -nonconvex to stress the point that can be as large as (recall any -smooth function is automatically -nonconvex). In our earlier versions of this paper, we have called the “strong nonconvexity” parameter, but were told by some readers that it is a bad notion. We have renamed it since then, but kept the paper title unchanged.
all the eigenvalues of lie in .
We say is of -bounded nonconvexity (or just -nonconvex for short). This parameter should be reminiscent of the strong-convexity parameter for convex optimization, where all the eigenvalues of lie in for some .
We wish to find an -approximate stationary point (a.k.a. critical point) of , that is
a point satisfying
where is the so-called gradient mapping of (see Section LABEL:sec:pre for a formal definition). In the special case of , one has .
Since is of -bounded nonconvexity, at least when , any -approximate stationary point is automatically also an -approximate local minimum— meaning that the Hessian of the output point is approximately positive semidefinite (PSD).
2 Motivations and Remarks
We focus on optimization with bounded nonconvexity because introducing this parameter allows us to perform a more refined study of non-convex optimization. If equals then optimization with -bounded nonconvexity is equivalent to the general non-convex (smooth) optimization. We hope that this encourages a new way to compare nonconvex algorithms.
We focus only on finding stationary points as opposed to local minima, because in recent studies [Allenzhu2017-natasha2, AABHM2016, CarmonDHS2016, Allenzhu2018-sgd3] —see Appendix LABEL:sec:intro:reduction— it is shown that finding -approximate local minima reduces to finding -approximate stationary points in functions of -bounded nonconvexity.
Parameter is often not constant and can be much smaller than . For instance, second-order methods often find -approximate local minima [nesterov2008cubic] and this corresponds to .
3 Known Results
Despite the widespread use of nonconvex models in machine learning and related fields, our understanding to non-convex optimization is still very limited. Until recently, nearly all research papers have been mostly focusing on either or :
If , the accelerated SVRG method [Shalev-Shwartz2015-SDCAwithoutDual, AY2015-univr] finds satisfying , in gradient complexity \widetilde{O}\big{(}n+n^{3/4}\sqrt{L/\varepsilon}\big{)}.We use to hide poly-logarithmic factors in . This result studies convex and is irrelevant to this paper.
If , the SVRG method [AH2016-nonconvex] finds an -approximate stationary point of in gradient complexity .
If , full gradient descent (GD) finds an -approximate stationary point of in gradient complexity .
If , stochastic gradient descent (SGD) finds an -approximate stationary point of in gradient complexity where is the variance of the stochastic gradient.The non-convex convergence rates of GD/SGD are not hard to prove. The rate for GD was recorded in Nesterov2004, and was perhaps first established by Polayk in 1960s. The rate for SGD first dates back to GhadimiLan2013stochastic.
To the best of our knowledge, even if , it is not clear whether SGD, GD, or SVRG can take advantage of .Even when , the task of finding a point with is a non-trivial task, see [Nesterov2012make]. Very recently, it was observed by two independent groups [AABHM2016, CarmonDHS2016] —although implicitly, see Section LABEL:sec:acc— that for minimizing functions of -bounded nonconvexity, one can repeatedly regularize to make it -strongly convex, and then apply the accelerated SVRG method to minimize this regularized function. Under mild assumption , this approach
finds an -approximate stationary point in gradient complexity \widetilde{O}\big{(}\frac{n\sigma+n^{3/4}\sqrt{L\sigma}}{\varepsilon^{2}}\big{)}.
We call this method repeatSVRG in this paper. Unfortunately, repeatSVRG is even slower than the vanilla SVRG for by a factor , see Figure 1a.
4 Our New Results
In this paper, we focus on offline methods which are algorithms that run in gradient complexity polynomial in , but at most quadratically in . For instance, SGD is not offline.
We identify an interesting dichotomy with respect to the spectrum of the nonconvexity parameter . In particular, we showed that if , then our new method Natasha1 finds an -approximate stationary point of in gradient complexity
In other words, together with repeatSVRG, we have improved the (offline) gradient complexity for nonconvex optimization of -bounded nonconvexity to We remark here that this is under mild assumptions for being sufficiently small. For instance, the result of [AABHM2016, CarmonDHS2016] requires . In our result, the term disappears when .
and the first term in the is smaller if and the second term is smaller if . We illustrate our performance improvement in Figure 1a. Our result matches that of SVRG for , and has a simpler analysis.
5 Our Extensions
Mini-Batch Setting. Our result generalizes trivially to the mini-batch stochastic setting, where in each iteration one computes for random choices of index and average them. The stated gradient complexities of Natasha1 and