Linearly convergent stochastic heavy ball method for minimizing generalization error
Nicolas Loizou, Peter Richtárik
Introduction
In this paper we study the stochastic optimization problem:
In , the authors consider solving (1) via stochastic gradient descent (SGD)
where is a fixed stepsize and is sampled afresh in each iteration from . It is shown that, SGD converges to an which satisfies
where is the starting point. It was observed that, surprisingly, SGD is in this setting equivalent to the stochastic (pseudo)-Newton method, and the stochastic proximal point method, and that it converges at a linear rate despite the following obstacles: is not necessarily strongly convex, (1) is not a finite-sum problem, and a fixed stepsize is used.
In this paper we take an alternative route, and develop a stochastic variant of the heavy ball method for solving the stochastic optimization problem (1). Applied to (1), the classical heavy ball method of Polyak , with constant stepsize and constant momentum parameter , takes the form
This method introduces the momentum term into the gradient descent method to achieve acceleration.
Our stochastic variant of the heavy ball method, which we henceforth simply refer to by the name stochastic heavy ball method (SHB), replaces the (costly) computation of the gradient by an unbiased estimator of the gradient (“stochastic gradient”) which is hopefully much cheaper to compute:
2 Related Work
Stochastic variants of heavy ball method have been employed widely in practice, especially in the area of deep learning . Despite the popularity of the method both in convex and non-convex optimization its convergence properties are not very well understood. Recent papers that provide complexity analysis of SHB (in different setting than ours) include and . In the authors analyzed SHB for general Lipshitz continuous convex objective functions (with bounded variance) and proved the sublinear rate . In , a complexity analysis is provided for the case of quadratic strongly convex smooth coercive functions. A sublinear convergence rate , where , was proved. In contrast to our results, where we assume fixed stepsize , both papers analyze SHB with diminishing stepsizes. For our problem, variance reduction methods like SVRG , S2GD , mS2GD , SAG and SAGA are not necessary. To the best of our knowledge, our work provides the first linear convergence rate for SHB in any setting.
Convergence Results
In this section we state our convergence results for SHB.
satisfy . Let be the projection of onto . Then
where and . Moreover, .
In the above theorem we obtain global linear rate. To the best of our knowledge, this is the first time that linear rate is established for a stochastic variant of the heavy ball method in any setting. All existing results are sublinear.
If we choose , then the condition is satisfied for all
If , SHB reduces to the “basic method” in (SGD with constant stepsize). In this special case, , which is the rate established in . Hence, our result is more general.
Let be the rate as a function of . Note that since , we have
Clearly, the lower bound on is an increasing function of . Also, for any the rate is always inferior to that of SGD (). It is an open problem whether one can prove a strictly better rate for SHB than for SGD.
2 Cesaro average: sublinear rate without exactness assumption
In this section we present convergence results for function values computed at the Cesaro average of all past iterates. Again, our results are global in nature. To the best of our knowledge, an analysis of the Cesaro average for the SHB with rate was not established before for any class of functions. Moreover, the result holds without the exactness assumption.
Choose and let be the random iterates produced by SHB, where the momentum parameter and relaxation parameter (stepsize) satisfy . Let be any vector satisfying . If we let , then
3 L1𝐿1L1 convergence: accelerated linear rate
In this section we show that by a proper combination of the stepsize parameter and the momentum parameter the proposed algorithm enjoys accelerated linear convergence rate with respect to the expected iterates.
If we choose and , then
and the iteration complexity becomes .
If we choose and , then
and the iteration complexity becomes
Note that the convergence factor is precisely equal to the value of the momentum parameter.
Experiments
This is a randomized Kaczmarz method (RK) with momentum. Note that for and this reduces to the celebrated Randomized Kaczmarz method (RK) of Strohmer and Vershynin . In Figure 1, RK with momentum is tested for several values of the momentum parameters and fixed stepsize . For the evaluation we use both the relative error measure and the function suboptimality . The starting point is chosen as . For the horizontal axis we use either the number of iterations or the wall-clock time measured using the tic-toc Julia function. It is clear that in this setting the addition of momentum parameter is beneficial and leads to faster convergence.