From Averaging to Acceleration, There is Only a Step-size

Nicolas Flammarion, Francis Bach

Introduction

Many problems in machine learning are naturally cast as convex optimization problems over a Euclidean space; for supervised learning this includes least-squares regression, logistic regression, and the support vector machine. Faced with large amounts of data, practitioners often favor first-order techniques based on gradient descent, leading to algorithms with many cheap iterations. For smooth problems, two extensions of gradient descent have had important theoretical and practical impacts: acceleration and averaging.

Acceleration techniques date back to Nesterov (1983) and have their roots in momentum techniques and conjugate gradient (Polyak, 1987). For convex problems, with an appropriately weighted momentum term which requires to store two iterates, Nesterov (1983) showed that the traditional convergence rate of O(1/n)O(1/n) for the function values after nn iterations of gradient descent goes down to O(1/n2)O(1/n^{2}) for accelerated gradient descent, such a rate being optimal among first-order techniques that can access only sequences of gradients (Nesterov, 2004). Like conjugate gradient methods for solving linear systems, these methods are however more sensitive to noise in the gradients; that is, to preserve their improved convergence rates, significantly less noise may be tolerated (d’Aspremont, 2008; Schmidt et al., 2011; Devolder et al., 2014).

Averaging techniques which consist in replacing the iterates by the average of all iterates have also been thoroughly considered, either because they sometimes lead to simpler proofs, or because they lead to improved behavior. In the noiseless case where gradients are exactly available, they do not improve the convergence rate in the convex case; worse, for strongly-convex problems, they are not linearly convergent while regular gradient descent is. Their main advantage comes with random unbiased gradients, where it has been shown that they lead to better convergence rates than the unaveraged counterparts, in particular because they allow larger step-sizes (Polyak and Juditsky, 1992; Bach and Moulines, 2011). For example, for least-squares regression with stochastic gradients, they lead to convergence rates of O(1/n)O(1/n), even in the non-strongly convex case (Bach and Moulines, 2013).

In this paper, we show that for quadratic problems, both averaging and acceleration are two instances of the same second-order finite difference equation, with different step-sizes. They may thus be analyzed jointly, together with a non-strongly convex version of the heavy-ball method (Polyak, 1987, Section 3.2). In presence of random zero-mean noise on the gradients, this joint analysis allows to design a novel intermediate algorithm that exhibits the good aspects of both acceleration (quick forgetting of initial conditions) and averaging (robustness to noise).

In this paper, we make the following contributions:

We show in Section 2 that accelerated gradient descent, averaged gradient descent and the heavy-ball method for non-strongly-convex problems may be reformulated as constant parameter second-order difference equation algorithms, where stability of the system is equivalent to convergence at rate O(1/n2)O(1/n^{2}).

In Section 3, we provide a detailed analysis of the eigenvalues of the corresponding linear dynamical system, showing various oscillatory and non-oscillatory behaviors, together with a sharp stability result with explicit constants.

In Section 4, we consider the situation where noisy gradients are available, where we extend our general convergence result, which suggests an alternative algorithm (i.e., with different step sizes) that exhibits the good aspects of both averaging and acceleration.

In Section 5, we illustrate our results with simulations on synthetic examples.

Second-Order Iterative Algorithms for Quadratic Functions

In this paper we study second-order iterative algorithms of the form:

By letting ϕn=θn−θ∗\phi_{n}=\theta_{n}-\theta_{*} we then have ϕn+1=Anϕn+Bnϕn−1\phi_{n+1}=A_{n}\phi_{n}+B_{n}\phi_{n-1}, started from ϕ0=ϕ1=θ0−θ∗\phi_{0}=\phi_{1}=\theta_{0}-\theta_{*}. Thus, we restrict our problem to the study of the convergence of an iterative system to .

In connection with accelerated methods, we are interested in algorithms for which f(θn)−f(θ∗)=12⟨ϕn,Hϕn⟩f(\theta_{n})-f(\theta_{*})=\frac{1}{2}\langle\phi_{n},H\phi_{n}\rangle converges to at a speed of O(1/n2)O\left(1/n^{2}\right). Within this context we impose that AnA_{n} and BnB_{n} have the form :

By letting ηn=nϕn=n(θn−θ∗)\eta_{n}=n\phi_{n}=n(\theta_{n}-\theta_{*}), we can now study the simple iterative system with constant terms ηn+1=Aηn+Bηn−1\eta_{n+1}=A\eta_{n}+B\eta_{n-1}, started at η0=0\eta_{0}=0 and η1=θ0−θ∗\eta_{1}=\theta_{0}-\theta_{*}. Showing that the function values remain bounded, we directly have the convergence of f(θn)f(\theta_{n}) to f(θ∗)f(\theta_{*}) at the speed O(1/n2)O\left(1/n^{2}\right). Thus the n-scalability property allows to switch from a convergence problem to a stability problem.

For feasibility concerns the method can only access HH through matrix-vector products. Therefore AA and BB should be polynomials in HH and cc a polynomial in HH times qq, if possible of low degree. The following theorem clarifies the general form of iterative systems which share these three properties (see proof in Appendix B).

Note that our result prevents AnA_{n} and BnB_{n} from being zero, thus requiring the algorithm to strictly be of second order. This illustrates the fact that first-order algorithms as gradient descent do not have the convergence rate in O(1/n2)O(1/n^{2}).

The recursion in Eq. (3) may be written with gradients of ff in multiple ways. In order to preserve the parallel with accelerated techniques, we rewrite it as:

2 Examples

When computing the average online as θn+1=θn+1n+1(ψn+1−θn)\theta_{n+1}=\theta_{n}+\frac{1}{n+1}(\psi_{n+1}-\theta_{n}) and seeing the average as the main iterate, the algorithm becomes (see proof in Appendix B.2):

This corresponds to Eq. (4) with α=0\alpha=0 and β=γ\beta=\gamma.

For smooth optimization the accelerated literature (Nesterov, 2004; Beck and Teboulle, 2009) uses the step-size δn=1−3n+1\delta_{n}=1-\frac{3}{n+1} and their results are not valid for bigger step-size δn\delta_{n}. However δn=1−2n+1\delta_{n}=1-\frac{2}{n+1} is compatible with the framework of Lan (2012) and is more convenient for our set-up. This corresponds to Eq. (4) with α=γ\alpha=\gamma and β=γ\beta=\gamma. Note that accelerated techniques are more generally applicable, e.g., to composite optimization with smooth functions (Nesterov, 2013; Beck and Teboulle, 2009).

when δn=1−2n+1\delta_{n}=1-\frac{2}{n+1}. We note that typically δn\delta_{n} is constant for strongly-convex problems. This corresponds to Eq. (4) with α=γ\alpha=\gamma and β=0\beta=0.

Convergence with Noiseless Gradients

We study the convergence of the iterates defined by: ηn+1=(I−αH)ηn+(I−βH)(ηn−ηn−1)\eta_{n+1}=\left(I-\alpha H\right)\eta_{n}+\left(I-\beta H\right)\left(\eta_{n}-\eta_{n-1}\right). This is a second-order iterative system with constant coefficients that it is standard to cast in a linear framework (see, e.g., Ortega and Rheinboldt, 2000). We may rewrite it as:

Thus Θn=FnΘ0\Theta_{n}=F^{n}\Theta_{0}. Following O’Donoghue and Candes (2013), if we consider an eigenvalue decomposition of HH, i.e., H=PDiag(h)P⊤H=P\text{Diag}(h)P^{\top} with PP an orthogonal matrix and (hi)(h_{i}) the eigenvalues of HH, sorted in decreasing order: hd=L≥hd−1≥⋯≥h2≥h1=μ>0h_{d}=L\geq h_{d-1}\geq\cdots\geq h_{2}\geq h_{1}=\mu>0, then Eq. (3) may be rewritten as:

In this section, we consider a fixed i∈{1,…,d}i\in\{1,\dots,d\} and study the stability in the corresponding eigenspace. This linear dynamical system may be analyzed by studying the eigenvalues of the 2×22\times 2-matrix Fi=(2−(α+β)hiβhi−110)F_{i}=\begin{pmatrix}2-(\alpha+\beta)h_{i}&\beta h_{i}-1\\ 1&0\end{pmatrix}. These eigenvalues are the roots of its characteristic polynomial which is:

To compute the roots of the second-order polynomial, we compute its reduced discriminant:

Depending on the sign of the discriminant Δi\Delta_{i}, there will be two real distinct eigenvalues (Δi>0)\Delta_{i}>0), two complex conjugate eigenvalues (Δi<0)\Delta_{i}<0) or a single real eigenvalue (Δi=0)\Delta_{i}=0).

We will now study the sign of Δi\Delta_{i}. In each different case, we will determine under what conditions on α\alpha and β\beta the modulus of the eigenvalues is less than one, which means that the iterates (ηni)n(\eta^{i}_{n})_{n} remain bounded and the iterates (θn)n(\theta_{n})_{n} converge to θ∗\theta_{*}. We may then compute function values as f(θn)−f(θ∗)=12n2∑i=1d(ηni)2hi=12∑i=1d(ϕni)2hif(\theta_{n})-f(\theta_{\ast})=\frac{1}{2n^{2}}\sum_{i=1}^{d}(\eta_{n}^{i})^{2}h_{i}=\frac{1}{2}\sum_{i=1}^{d}(\phi_{n}^{i})^{2}h_{i}.

The various regimes are summarized in Figure 1: there is a triangle of values of (αhi,βhi)(\alpha h_{i},\beta h_{i}) for which the algorithm remains stable (i.e., the iterates (ηn)n(\eta_{n})_{n} do not diverge), with either complex or real eigenvalues. In the following lemmas (see proof in Appendix C), we provide a detailed analysis that leads to Figure 1.

The discriminant Δi\Delta_{i} is strictly positive and the algorithm is stable if and only if

We then have two real roots ri±=ri±Δir_{i}^{\pm}=r_{i}\pm\sqrt{\Delta_{i}}, with ri=1−(α+β2)hir_{i}=1-(\frac{\alpha+\beta}{2})h_{i}. Moreover, we have:

Therefore, for real eigenvalues, ((ϕni)2hi)n(({\phi_{n}^{i}})^{2}h_{i})_{n} will converge to at a speed of O(1/n2)O(1/n^{2}) however the constant Δi\Delta_{i} may be arbitrarily small (and thus the scaling factor arbitrarily large). Furthermore we have linear convergence if the inequalities in the lemmas are strict.

The discriminant Δi\Delta_{i} is stricly negative and the algorithm is stable if and only if

We then have two complex conjugate eigenvalues: ri±=ri±−1−Δir_{i}^{\pm}=r_{i}\pm\sqrt{-1}\sqrt{-\Delta_{i}}. Moreover, we have:

with ρi=1−βhi\rho_{i}=\sqrt{1-\beta h_{i}}, and ωi\omega_{i} defined through sin⁡(ωi)=−Δi/ρi\sin(\omega_{i})=\sqrt{-\Delta_{i}}/\rho_{i} and cos⁡(ωi)=ri/ρi\cos(\omega_{i})=r_{i}/\rho_{i}.

Therefore, for complex eigenvalues, there is a linear convergence if the inequalities in the lemma are strict. Moreover, ((ϕni)2hi)n(({\phi_{n}^{i}})^{2}h_{i})_{n} oscillates to at a speed of O(1/n2)O(1/n^{2}) even if hih_{i} is arbitrarily small.

When the discriminant goes to zero in the explicit formulas of the real and complex cases, both the denominator and numerator of ((ϕni)2hi)n(({\phi_{n}^{i}})^{2}h_{i})_{n} will go to zero. In the limit case, when the discriminant is equal to zero, we will have a double real eigenvalue. This happens for β=2α/hi−α\beta=2\sqrt{\alpha/h_{i}}-\alpha. Then the eigenvalue is ri=1−αhir_{i}=1-\sqrt{\alpha h_{i}}, and the algorithm is stable for 0<α<4/hi0<\alpha<{4}/{h_{i}}, we then have (ϕni)2hi=hi(ϕ1i)2(1−αhi)2(n−1)({\phi_{n}^{i}})^{2}h_{i}=h_{i}({\phi_{1}^{i}})^{2}(1-\sqrt{\alpha h_{i}})^{2(n-1)}. This can be obtained by letting Δi\Delta_{i} goes to in the real and complex cases (see also Appendix C.3).

To conclude the iterate (ηni)n=(n(θni−θ∗i))n(\eta_{n}^{i})_{n}=(n(\theta_{n}^{i}-\theta_{\ast}^{i}))_{n} will be stable for α∈[0,4/hi]\alpha\in[0,4/h_{i}] and β∈[0,2/hi−α/2]\beta\in[0,2/h_{i}-\alpha/2]. According to the values of α\alpha and β\beta this iterate will have a different behavior. In the complex case, the roots are complex conjugate with magnitude 1−βhi\sqrt{1-\beta h_{i}}. Thus, when β>0\beta>0, (ηni)n(\eta_{n}^{i})_{n} will converge to , oscillating, at rate 1−βhi\sqrt{1-\beta h_{i}}. In the real case, the two roots are real and distinct. However the product of the two roots is equal to 1−βhi\sqrt{1-\beta h_{i}}, thus one will have a higher magnitude and (ηni)n(\eta_{n}^{i})_{n} will converges to at rate higher than in the complex case (as long as α\alpha and β\beta belong to the interior of the stability region).

Finally, for a given quadratic function ff, all the dd iterates (ηni)n(\eta_{n}^{i})_{n} should be bounded, therefore we must have α∈[0,4/L]\alpha\in[0,4/L] and β∈[0,2/L−α/2]\beta\in[0,2/L-\alpha/2]. Then, depending on the value of hih_{i}, some eigenvalues may be complex or real.

2 Classical examples

For particular choices of α\alpha and β\beta, displayed in Figure 1, the eigenvalues are either all real or all complex, as shown in the table below.

Averaged gradient descent loses linear convergence for strongly-convex problems, because ri+=1r_{i}^{+}=1 for all eigensubspaces. Similarly, the heavy ball method is not adaptive to strong convexity because ρi=1\rho_{i}=1. However, accelerated gradient descent, although designed for non-strongly-convex problems, is adaptive because ρi=1−γhi\rho_{i}=\sqrt{1-\gamma h_{i}} depends on hih_{i} while α\alpha and β\beta do not. These last two algorithms have an oscillatory behavior which can be observed in practice and has been already studied (Su et al., 2014).

Note that all the classical methods choose step-sizes α\alpha and β\beta either having all the eigenvalues real either complex; whereas we will see in Section 4, that it is significant to combine both behaviors in presence of noise.

3 General bound

Even if the exact formulas in Lemmas 1 and 2 are computable, they are not easily interpretable. In particular when the two roots become close, the denominator will go to zero, which prevents from bounding them easily. When we further restrict the domain of (α,β)(\alpha,\beta), we can always bound the iterate by the general bound (see proof in Appendix D):

For α≤1/hi\alpha\leq 1/h_{i} and 0≤β≤2/hi−α0\leq\beta\leq 2/h_{i}-\alpha, we have

These bounds are shown by dividing the set of (α,β)(\alpha,\beta) in three regions where we obtain specific bounds. They do not depend on the regime of the eigenvalues (complex or real); this enables us to get the following general bound on the function values, our main result for the deterministic case.

For α≤1/L\alpha\leq 1/L and 0≤β≤2/L−α0\leq\beta\leq 2/L-\alpha:

The first bound ∥θ0−θ∗∥2αn2\frac{{\|\theta_{0}-\theta_{*}\|}^{2}}{\alpha n^{2}} corresponds to the traditional acceleration result, and is only relevant for α>0\alpha>0 (that is, for Nesterov acceleration and the heavy-ball method, but not for averaging). We recover the traditional convergence rate of second-order methods for quadratic functions in the singular case, such as conjugate gradient (Polyak, 1987, Section 6.1).

While the result above focuses on function values, like most results in the non-strongly convex case, the distance to optimum ∥θn−θ∗∥2\|\theta_{n}-\theta_{\ast}\|^{2} typically does not go to zero (although it remains bounded in our situation).

When α=0\alpha=0 (averaged gradient descent), then the second bound 4∥θ0−θ∗∥2(α+β)n\frac{4{\|\theta_{0}-\theta_{*}\|}^{2}}{(\alpha+\beta)n} provides a convergence rate of O(1/n)O(1/n) if no assumption is made regarding the starting point θ0\theta_{0}, while the last bound of Theorem 2 would lead to a bound 8∥H−1/2(θ0−θ∗)∥2(α+β)2n2\frac{{8\|H^{-1/2}(\theta_{0}-\theta_{*})\|}^{2}}{(\alpha+\beta)^{2}n^{2}}, that is a rate of O(1/n2)O(1/n^{2}), only for some starting points.

As shown in Appendix E by exhibiting explicit sequences of quadratic functions, the inverse dependence in αn2\alpha n^{2} and (α+β)n(\alpha+\beta)n in Eq. (10) is not improvable.

Quadratic Optimization with Additive Noise

In many practical situations, the gradient of ff is not available for the recursion in Eq. (4), but only a noisy version. In this paper, we only consider additive uncorrelated noise with finite variance.

For quadratic functions, for the reduced variable ηn=nϕn=n(θn−θ∗)\eta_{n}=n\phi_{n}=n(\theta_{n}-\theta_{\ast}), we get:

Note that algorithms with α≠0\alpha\neq 0 will have an important level of noise because of the term nαεn+1n\alpha\varepsilon_{n+1}. We denote by ξn+1=([nα+β]εn+10)\xi_{n+1}=\begin{pmatrix}[n\alpha+\beta]\varepsilon_{n+1}\\ 0\end{pmatrix} and we now have the recursion:

2 Convergence result

For a quadratic function ff with arbitrarily small eigenvalues and uncorrelated noise with finite covariance, we obtain the following convergence result (see proof in Appendix F); since we will allow the parameters α\alpha and β\beta to depend on the time we stop the algorithm, we introduce the horizon NN:

Although we only provide an upper-bound, the proof technique relies on direct moment computations in each eigensubspace with few inequalities, and we conjecture that the scalings with respect to nn are tight.

For α=0\alpha=0 and β=1/L\beta=1/L (which corresponds to averaged gradient descent), the second bound leads to 4L∥θ0−θ∗∥2N+4tr(C)L\frac{4{L\|\theta_{0}-\theta_{*}\|}^{2}}{N}+\frac{4\mathop{\rm tr}(C)}{L}, which is bounded but not converging to zero. We recover a result from Bach and Moulines (2011, Theorem 1).

For α=β=1/L\alpha=\beta=1/L (which corresponds to Nesterov’s acceleration), the first bound leads to L∥θ0−θ∗∥2N2+(N+1)tr(C)L\frac{{L\|\theta_{0}-\theta_{*}\|}^{2}}{N^{2}}+\frac{(N+1)\mathop{\rm tr}(C)}{L}, and our bound suggests that the algorithm diverges, which we have observed in our experiments in Appendix A.

For α=0\alpha=0 and β=1/LN\beta=1/L\sqrt{N}, the second bound leads to 4L∥θ0−θ∗∥2N+4tr(C)LN\frac{{4L\|\theta_{0}-\theta_{*}\|}^{2}}{\sqrt{N}}+\frac{4\mathop{\rm tr}(C)}{L\sqrt{N}}, and we recover the traditional rate of 1/N1/\sqrt{N} for stochastic gradient in the non-strongly-convex case.

When the values of the bias and the variance are known we can choose α\alpha and β\beta such that the trade-off between the bias and the variance is optimal in our bound, as the following corrollary shows. Note that in the bound below, taking a non zero β\beta enables the bias term to be adaptive to hidden strong-convexity.

For α=min⁡{∥θ0−θ∗∥2trCN3/2,1/L}\alpha=\min\left\{\frac{\|\theta_{0}-\theta_{*}\|}{2\sqrt{\mathop{\rm tr}C}N^{3/2}},1/L\right\} and β∈[0,min⁡{Nα,1/L}]\beta\in[0,\min\{N\alpha,1/L\}], we have:

3 Structured noise and least-square regression

When only the noise total variance tr(C)\mathop{\rm tr}(C) is considered, as shown in Section 4.4, Corollary 2 recover existing (more general) results. Our framework however leads to improved result for structured noise processes frequent in machine learning, in particular in least-squares regression which we now consider but this goes beyond (see, e.g. Bach and Moulines, 2013).

For this particular structured noise we can take advantage of a large β\beta:

For α=0\alpha=0 and β=1/L\beta=1/L (which corresponds to averaged gradient descent), the second bound leads to 4L∥θ0−θ∗∥2N+8tr(CH−1)N\frac{4{L\|\theta_{0}-\theta_{*}\|}^{2}}{N}+\frac{8\mathop{\rm tr}(CH^{-1})}{N}. We recover a result from Bach and Moulines (2013, Theorem 1). Note that when C≼σ2HC\preccurlyeq\sigma^{2}H, tr(CH−1)⩽σ2d\mathop{\rm tr}(CH^{-1})\leqslant\sigma^{2}d.

For α=β=1/L\alpha=\beta=1/L (which corresponds to Nesterov’s acceleration), the first bound leads to L∥θ0−θ∗∥2N2+tr(CH−1)\frac{{L\|\theta_{0}-\theta_{*}\|}^{2}}{N^{2}}+\mathop{\rm tr}(CH^{-1}), which is bounded but not converging to zero (as opposed to the the unstructured noise where the algorithm may diverge).

For α=1/(LNa)\alpha=1/(LN^{a}) with 0≤a≤10\leq a\leq 1 and β=1/L\beta=1/L, the first bound leads to L∥θ0−θ∗∥2N2−a+tr(CH−1)Na\frac{L\|\theta_{0}-\theta_{*}\|^{2}}{N^{2-a}}+\frac{\mathop{\rm tr}(CH^{-1})}{N^{a}}. We thus obtain an explicit bias-variance trade-off by changing the value of aa.

When the values of the bias and the variance are known we can choose α\alpha and β\beta with an optimized trade-off, as the following corrollary shows:

For α=min⁡{∥θ0−θ∗∥Ltr(CH−1)N,1/L}\alpha=\min\left\{\frac{\|\theta_{0}-\theta_{*}\|}{\sqrt{L\mathop{\rm tr}(CH^{-1})}N},1/L\right\} and β=min⁡{Nα,1/L}\beta=\min\left\{N\alpha,1/L\right\} we have:

4 Related work

Several authors (Lan, 2012; Hu et al., 2009; Xiao, 2010) have shown that using a step-size proportional to 1/N3/21/N^{3/2} accelerated methods with noisy gradients lead to the same convergence rate of O\big{(}\frac{L\|\theta_{0}-\theta_{*}\|^{2}}{N^{2}}+\frac{\|\theta_{0}-\theta_{*}\|\sqrt{\mathop{\rm tr}(C)}}{\sqrt{N}}\big{)} than in Corollary 2, for smooth functions. Thus, for unstructured noise, our analysis provides insights in the behavior of second-order algorithms, without improving bounds. We get significant improvements for structured noises.

When the noise is structured as in least-square regression and more generally in linear supervised learning, Bach and Moulines (2011) have shown that using averaged stochastic gradient descent with constant step-size leads to the convergence rate of O\big{(}\frac{L\|\theta_{0}-\theta_{0}\|^{2}}{N}+\frac{\sigma^{2}d}{N}\big{)}. It has been highlighted by Défossez and Bach (2014) that the bias term L∥θ0−θ∗∥2N\frac{L\|\theta_{0}-\theta_{*}\|^{2}}{N} may often be the dominant one in practice. Our result in Corollary 3 leads to an improved bias term in O(1/N2)O(1/N^{2}) with the price of a potentially slightly worse constant in the variance term. However, with optimal constants in Corollary 3, the new algorithm is always an improvement over averaged stochastic gradient descent in all situations. If constants are unknown, we may use α=1/(LNa)\alpha=1/(LN^{a}) with 0≤a≤10\leq a\leq 1 and β=1/L\beta=1/L and we choose aa depending on the emphasis we want to put on bias or variance.

For noisy quadratic problems, the convergence rate nicely decomposes into two terms, a bias term which corresponds to the noiseless problem and the variance term which corresponds to a problem started at θ∗\theta_{\ast}. For each of these two terms, lower bounds are known. For the bias term, if N≤dN\leq d, then the lower bound is, up to constants, L∥θ0−θ∗∥2/N2L\|\theta_{0}-\theta_{\ast}\|^{2}/N^{2} (Nesterov, 2004, Theorem 2.1.7). For the variance term, for the general noisy gradient situation, we show in Appendix H that for N≤dN\leq d, it is (trC)/(LN){(\mathop{\rm tr}C)}/({L\sqrt{N}}), while for least-squares regression, it is σ2d/N\sigma^{2}d/N (Tsybakov, 2003). Thus, for the two situations, we attain the two lower bounds simultaneously for situations where respectively L∥θ0−θ∗∥2≤(trC)/LL\|\theta_{0}-\theta_{\ast}\|^{2}\leq(\mathop{\rm tr}C)/L and L∥θ0−θ∗∥2≤dσ2L\|\theta_{0}-\theta_{\ast}\|^{2}\leq d\sigma^{2}. It remains an open problem to achieve the two minimax terms in all situations.

We also note as shown in Appendix G that in the special case of quadratic functions, the algorithms of Lan (2012); Hu et al. (2009); Xiao (2010) could be unified into our framework (although they have significantly different formulations and justifications in the smooth case).

Experiments

We compare our algorithm to other stochastic accelerated algorithms, that is, AC-SA (Lan, 2012), SAGE (Hu et al., 2009) and Acc-RDA (Xiao, 2010) which are presented in Appendix G. For all these algorithms (and ours) we take the optimal step-sizes defined in these papers. We show results averaged over 10 replications.

We first consider an i.i.d. zero mean noise whose covariance matrix is proportional to HH. We also consider a variant of our algorithm with an any-time step-size function of nn rather than NN (for which we currently have no proof of convergence). In Figure 3, we take into account two different set-ups. In the left plot, the variance dominates the bias (with r=∥θ0−θ∗∥=σr=\|\theta_{0}-\theta_{\ast}\|=\sigma). We see that (a) Acc-GD does not converge to the optimum but does not diverge either, (b) Av-GD and our algorithms achieve the optimal rate of convergence of O(σ2d/n)O(\sigma^{2}d/n), whereas (c) other accelerated algorithms only converge at rate O(1/n)O(1/\sqrt{n}). In the right plot, the bias dominates the variance (r=10r=10 and σ=0.1\sigma=0.1). In this situation our algorithm outperforms all others.

We now see how these algorithms behave for least-squares regressions and the regular (non-homoscedastic) stochastic gradients described in Section 4.3. We consider normally distributed inputs. The covariance matrix HH is the same as before. The outputs are generated from a linear function with homoscedatic noise with a signal-to-noise ratio of σ\sigma. We consider d=20d=20. We show results averaged over 10 replications. In Figure 4, we consider again a situation where the bias dominates (left) and vice versa (right). We see that our algorithm has the same good behavior than in the homoscedastic noise case and we conjecture that our bounds also hold in this situation.

Conclusion

We have provided a joint analysis of averaging and acceleration for non-strongly-convex quadratic functions in a single framework, both with noiseless and noisy gradients. This allows to define a class of algorithms that can benefit simultaneously of the known improvements of averaging and accelerations: faster forgetting of initial conditions (for acceleration), and better robustness to noise when the noise covariance is proportional to the Hessian (for averaging).

Our current analysis of our class of algorithms in Eq. (4), that considers two different affine combinations of previous iterates (instead of one for traditional acceleration), is limited to quadratic functions; an extension of its analysis to all smooth or self-concordant-like functions would widen its applicability. Similarly, an extension to least-squares regression with natural heteroscedastic stochastic gradient, as suggested by our simulations, would be an interesting development.

This work was partially supported by the MSR-Inria Joint Centre and a grant by the European Research Council (SIERRA project 239993). The authors would like to thank Aymeric Dieuleveut for helpful discussions.

References

Appendix A Additional experimental results

In this appendix, we provide additional experimental results to illustrate our theoretical results.

In Figure 5, we minimize a one-dimensional quadratic function f(θ)=12θ2f(\theta)=\frac{1}{2}\theta^{2} for a fixed step-size α=1/10\alpha=1/10 and different step-sizes β\beta. In the left plot, we compare Acc-GD, HB and Av-GD. We see that HB and Acc-GD both oscillate and that Acc-GD leverages strong convexity to converge faster. In the right plot, we compare the behavior of the algorithm for different values of β\beta. We see that the optimal rate is achieved for β=β∗\beta=\beta_{*} defined to be the one for which there is a double coalescent eigenvalue, where the convergence is linear at speed O(1−αL)nO(1-\sqrt{\alpha L})^{n}. When β>β∗\beta>\beta_{*}, we are in the real case and when β<β∗\beta<\beta_{*} the algorithm oscillates to the solution.

Figure 6 shows interactions between different eigenspaces. In the left plot, we optimize a quadratic function of dimension d=2d=2. The first eigenvalue is L=1L=1 and the second is μ=2−8\mu=2^{-8}. For Av-GD the convergence is of order O(1/n)O(1/n) since the problem is “not” strongly convex (i.e., not appearing as strongly convex since nμn\mu remains small). The convergence is at the beginning the same for HB and Acc-GD, with oscillation at speed O(1/n2)O(1/n^{2}), since the small eigenvalue prevents Acc-GD from having a linear convergence. Then for large nn, the convergence becomes linear for Acc-GD, since μn\mu n becomes large. In the right plot, we optimize a quadratic function in dimension d=5d=5 with eigenvalues from 11 to 0.10.1. We show the function values of the projections of the iterates ηn\eta_{n} on the different eigenspaces. We see that high eigenvalues first dominate, but converge quickly to zero, whereas small ones keep oscillating, and converge more slowly.

In Figure 7, we optimize two 2020-dimensional quadratic functions with different eigenvalues with Av-GD, HB and Acc-GD for a fixed step-size γ=1/10\gamma=1/10. In the left plot, the eigenvalues are 1/k21/k^{2} and in the right one, they are 1/k81/k^{8}, for k=1,…,dk=1,\dots,d. We see that in both cases, Av-GD converges at a rate of O(1/n)O(1/n) and HB at a rate of O(1/n2)O(1/n^{2}). For Acc-GD the convergence is linear when μ\mu is large (left plot) and becomes sublinear at a rate of O(1/n2)O(1/n^{2}) when μ\mu becomes small (right plot).

A.2 Noisy convergence with unstructured additive noise

We optimize the same quadratic function, but now with noisy gradients. We compare our algorithm to other stochastic accelerated algorithms, that is, AC-SA [Lan, 2012], SAGE [Hu et al., 2009] and Acc-RDA [Xiao, 2010], which are presented in Appendix G. For all these algorithms (and ours) we take the optimal step-sizes defined in these papers. We plot the results averaged over 10 replications.

We consider in Figure 8 an i.i.d. zero mean noise of variance C=IC=I. We see that all the accelerated algorithms achieve the same precision whereas Av-GD with constant step-size does not converge and Acc-Gd diverges. However SAGE and AC-SA are anytime algorithms and are faster at the beginning since their step-sizes are decreasing and not a constant (with respect to nn) function of the horizon NN.

Appendix B Proofs of Section 2

And in connection with Eq. (16) we can rewrite PP and QQ as:

Thus for n=1n=1, we have pˉ=2\bar{p}=2. Then −n−1n+1qˉ=2nn+1−1=n−1n+1-\frac{n-1}{n+1}\bar{q}=\frac{2n}{n+1}-1=\frac{n-1}{n+1} and qˉ=−1\bar{q}=-1. Therefore

We let Aˉ=−(Pˉ+Qˉ)\bar{A}=-(\bar{P}+\bar{Q}) and Bˉ=Qˉ\bar{B}=\bar{Q} so that we have:

B.2 Av-GD as two steps-algorithm

Appendix C Proof of Section 3

The discriminant Δi\Delta_{i} is strictly positive when \big{(}\frac{\alpha+\beta}{2}\big{)}^{2}h_{i}-\alpha>0. This is always true for α\alpha strictly negative. For α\alpha positive and for hi≠0h_{i}\neq 0, this is true for ∣α+β2∣>α/hi|\frac{\alpha+\beta}{2}|>\sqrt{\alpha/h_{i}} . Thus the discriminant Δi\Delta_{i} is strictly positive for

Then we determine when the modulus of the eigenvalues is less than one (which corresponds to −1≤ri−≤ri+≤1-1\leq r_{i}^{-}\leq r_{i}^{+}\leq 1).

Figure 9 (where we plot all the constraints we have so far) enables to conclude that the discriminant Δi\Delta_{i} is strictly positive and the algorithm is stable when the following three conditions are satisfied:

For any of those α\alpha et β\beta we will have:

Since η0i=0\eta_{0}^{i}=0, c1+c2=0c_{1}+c_{2}=0 and for n=1n=1, c1=η1i/(ri−−ri+)c_{1}=\eta^{i}_{1}/(r_{i}^{-}-r_{i}^{+}); we thus have:

C.2 Proof of Lemma 2

The discriminant Δi\Delta_{i} is strictly negative if and only if \big{(}\frac{\alpha+\beta}{2}\big{)}^{2}h_{i}-\alpha<0. This implies ∣α+β2∣<α/hi|\frac{\alpha+\beta}{2}|<\sqrt{\alpha/h_{i}}. The modulus of the eigenvalues is ∣ri±∣2=1−βhi|r_{i}^{\pm}|^{2}=1-\beta h_{i}. Thus the discriminant Δi\Delta_{i} is strictly negative and the algorithm is stable for

For any of those α\alpha et β\beta we have:

with ρi=1−βhi\rho_{i}=\sqrt{1-\beta h_{i}}, sin⁡(ωi)=−Δi/ρi\sin(\omega_{i})=\sqrt{-\Delta_{i}}/\rho_{i} and cos⁡(ωi)=ri/ρi\cos(\omega_{i})=r_{i}/\rho_{i}. Since η0i=0\eta_{0}^{i}=0, c1=0c_{1}=0 and we have for n=1n=1, c2=η1i/(sin⁡(ωi)ρi)c_{2}=\eta^{i}_{1}/(\sin(\omega_{i})\rho_{i}). Therefore

C.3 Coalescing eigenvalues

When β=2α/hi−α\beta=2\sqrt{\alpha/h_{i}}-\alpha, the discriminant Δi\Delta_{i} is equal to zero and we have a double real eigenvalue:

Thus the algorithm is stable for α<4hi\alpha<\frac{4}{h_{i}}. For any of those α\alpha et β\beta we have:

This gives with η0i=0\eta_{0}^{i}=0, c1=0c_{1}=0 and c2=η1i/rc_{2}=\eta_{1}^{i}/r. Therefore

In the presence of coalescing eigenvalues the convergence is linear if 0<α<4/hi0<\alpha<4/h_{i} and hi>0h_{i}>0, however one might worry about the behavior of ((ϕni)2hi)n(({\phi_{n}^{i}})^{2}h_{i})_{n} when hih_{i} becomes small. Using the bound x2exp⁡(−x)≤1x^{2}\exp(-x)\leq 1 for x≤1x\leq 1, we have for α<4/hi\alpha<4/h_{i}:

Therefore we always have the following bound for α<4/hi\alpha<4/h_{i}:

Appendix D Proof of Theorem 2

We divide the domain of validity of Theorem 2 in three subdomains as explained in Figure 14. On the domain described in Figure 14 we have a first bound on the iterate ηni\eta_{n}^{i}:

For 0≤α≤1/hi0\leq\alpha\leq 1/h_{i} and 1−1−αhi<βhi<1+1−αhi1-\sqrt{1-\alpha h_{i}}<\beta h_{i}<1+\sqrt{1-\alpha h_{i}}, we have:

And on the domain described Figure 14 we also have:

For 0≤α≤1/hi0\leq\alpha\leq 1/h_{i} and β≤α\beta\leq\alpha we have:

These two lemmas enable us to prove the first bound of Theorem 2 since the domain of this theorem is included in the intersection of the two domains of these lemmas as shown in Figure 14.

Then we have the following bound on domain described in Figure 14:

For 0≤α≤2/hi0\leq\alpha\leq 2/h_{i} and 0≤β≤2/hi−α0\leq\beta\leq 2/h_{i}-\alpha, we have:

Since the domain of definition of Theorem 2 is included in the domain of definition of Lemma 5 (as shown in Figure 14), this lemma proves the last two bounds of the theorem.

D.2 Outline of the proofs of the Lemmas

We also prove that G(ηni,ηn−1i)G(\eta^{i}_{n},\eta^{i}_{n-1}) dominates c∥ηni∥2c\|\eta^{i}_{n}\|^{2} when we want to have a bound on ∥ηni∥2\|\eta^{i}_{n}\|^{2} of the form 1cG(η1i,η0i)=1cG(θ0i−θ∗i,0)\frac{1}{c}G(\eta^{i}_{1},\eta^{i}_{0})=\frac{1}{c}G(\theta_{0}^{i}-\theta_{*}^{i},0).

For readability, we remove the index ii and take hi=1h_{i}=1 without loss of generality.

D.3 Proof of Lemma 3

We first consider a quadratic Lyapunov function (ηnηn−1)⊤G1(ηnηn−1)\begin{pmatrix}\eta_{n}\\ \eta_{n-1}\end{pmatrix}^{\top}G_{1}\begin{pmatrix}\eta_{n}\\ \eta_{n-1}\end{pmatrix} with G1=(1α−1α−11−α)G_{1}=\begin{pmatrix}1&\alpha-1\\ \alpha-1&1-\alpha\end{pmatrix}. We note that G1G_{1} is symmetric positive semi-definite for α≤1\alpha\leq 1. We recall Fi=(2−(α+β)β−110)F_{i}=\begin{pmatrix}2-(\alpha+\beta)&\beta-1\\ 1&0\end{pmatrix}.

For the result to be true we need for 0≤α≤10\leq\alpha\leq 1 and 1−1−α<β<1+1−α1-\sqrt{1-\alpha}<\beta<1+\sqrt{1-\alpha} two properties:

This especially shows Eq. (19) for the boundaries of the interval with x=±1−αx=\pm\sqrt{1-\alpha}.

This shows that for 0≤α≤1/hi0\leq\alpha\leq 1/h_{i} and 1−1−αhi<βhi<1+1−αhi1-\sqrt{1-\alpha h_{i}}<\beta h_{i}<1+\sqrt{1-\alpha h_{i}}:

D.4 Proof of Lemma 4

We consider now a second Lyapunov function G2(ηn,ηn−1)=(ηn−rηn−1)2−Δ(ηn−1)2G_{2}(\eta_{n},\eta_{n-1})=(\eta_{n}-r\eta_{n-1})^{2}-\Delta(\eta_{n-1})^{2}. We have:

Where we have used twice r2−Δ=(1−β)r^{2}-\Delta=(1-\beta) and ηn=2rηn−1−(1−β)ηn−2\eta_{n}=2r\eta_{n-1}-(1-\beta)\eta_{n-2}. Moreover G2(ηn,ηn−1)G_{2}(\eta_{n},\eta_{n-1}) can be rewritten as:

Thus for α+β≤2\alpha+\beta\leq 2 and β≤α\beta\leq\alpha we have:

Therefore for α+β≤2/hi\alpha+\beta\leq 2/h_{i} and β≤α\beta\leq\alpha, we have:

D.5 Proof of Lemma 5

Moreover for all u∈u\in and n≥1n\geq 1 we have 1−(1−u)n≤nu1-(1-u)^{n}\leq\sqrt{nu}, since 1−(1−u)n≤11-(1-u)^{n}\leq 1 and 1−(1−u)n=u∑(1−u)k≤nu1-(1-u)^{n}=u\sum(1-u)^{k}\leq nu. Thus

Therefore for 0≤α≤2/hi0\leq\alpha\leq 2/h_{i} and α+β≤2/hi\alpha+\beta\leq 2/h_{i} we have:

Appendix E Lower bound

We have the following lower-bound for the bound shown in Corollary 1, which shows that depending on which of the two terms dominates, we may always find a sequence of functions that makes it tight.

Let L≥0L\geq 0. For all sequences 0≤αn≤1/L0\leq\alpha_{n}\leq 1/L and 0≤βn≤2/L−αn0\leq\beta_{n}\leq 2/L-\alpha_{n}, such that αn+βn=o(nαn)\alpha_{n}+\beta_{n}=o(n\alpha_{n}) there exists a sequence of one-dimensional quadratic functions (fn)n(f_{n})_{n} with second-derivative less than LL such that:

For all sequences 0≤αn≤1/L0\leq\alpha_{n}\leq 1/L and 0≤βn≤2/L−αn0\leq\beta_{n}\leq 2/L-\alpha_{n}, such that nαn=o(αn+βn){n\alpha_{n}}=o({\alpha_{n}+\beta_{n}}), there exists a sequence of one-dimensional quadratic functions (gn)n(g_{n})_{n} with second-derivative less than LL such that:

For the first lower bound we consider 0≤αn≤1/L0\leq\alpha_{n}\leq 1/L and 0≤βn≤2/L−α0\leq\beta_{n}\leq 2/L-\alpha, such that αn+βn=o(nαn)\alpha_{n}+\beta_{n}=o(n\alpha_{n}). We define fn=π2/(4αnn2)f_{n}=\pi^{2}/(4\alpha_{n}n^{2}) and we consider the sequence of quadratic functions fn(θ)=fnθ22f_{n}(\theta)=\frac{f_{n}\theta^{2}}{2}. We consider the iterate (ηn)n(\eta_{n})_{n} defined by our algorithm. We will show that

since βnαnn=o(1)\frac{\beta_{n}}{\alpha_{n}n}=o(1). Also, 1−π2(αn+βn)2(4αnn)2=1+o(1)1-\frac{\pi^{2}(\alpha_{n}+\beta_{n})^{2}}{(4\alpha_{n}n)^{2}}=1+o(1), since αn+βn=o(nαn)\alpha_{n}+\beta_{n}=o(n\alpha_{n}). Moreover

thus ωn=π/(2n)+o(1/n)\omega_{n}={\pi}/(2n)+o(1/n) and sin⁡(nωn)=1+o(1)\sin(n\omega_{n})=1+o(1).

We consider now the situation where the second bound is active. Thus we take sequences (αn)(\alpha_{n}) and (βn)(\beta_{n}), such that nαn=o(αn+βn){n\alpha_{n}}=o({\alpha_{n}+\beta_{n}}). We define gn=2n(αn+βn)+4αn(αn+βn)2g_{n}=\frac{2}{n(\alpha_{n}+\beta_{n})}+\frac{4\alpha_{n}}{(\alpha_{n}+\beta_{n})^{2}} and consider the sequence of quadratic functions gn(θ)=gnθ22g_{n}(\theta)=\frac{g_{n}\theta^{2}}{2}. We will show for the iterate (ηn)(\eta_{n}) defined by our algorithm that:

Thus (nΔn)/gn=(αn+βn2)(n\Delta_{n})/g_{n}=\left(\frac{\alpha_{n}+\beta_{n}}{2}\right) and

Appendix F Proofs of Section 4

We decompose again vectors in an eigenvector basis of HH with ηni=pi⊤ηn\eta_{n}^{i}=p_{i}^{\top}\eta_{n} and εni=pi⊤εn\varepsilon_{n}^{i}=p_{i}^{\top}\varepsilon_{n}:

We denote by ξn+1i=([nα+β]εn+1i0)\xi_{n+1}^{i}=\begin{pmatrix}[n\alpha+\beta]\varepsilon_{n+1}^{i}\\ 0\end{pmatrix} and we have the reduced equation:

Unfortunately FiF_{i} is not Hermitian and this formulation will not be convenient for calculus. Without loss of generality, we assume ri−≠ri+r_{i}^{-}\neq r_{i}^{+} even if it means having ri−−ri+r_{i}^{-}-r_{i}^{+} goes to in the final bound. Let Qi=(ri−ri+11)Q_{i}=\begin{pmatrix}r_{i}^{-}&r_{i}^{+}\\ 1&1\end{pmatrix} be the transfer matrix of FiF_{i}, i.e., Fi=QiDiQi−1F_{i}=Q_{i}D_{i}Q_{i}^{-1} with Di=(ri−00ri+)D_{i}=\begin{pmatrix}r_{i}^{-}&0\\ 0&r_{i}^{+}\end{pmatrix} and Qi−1=1ri−−ri+(1−ri+−1ri−)Q_{i}^{-1}=\frac{1}{r_{i}^{-}-r_{i}^{+}}\begin{pmatrix}1&-r_{i}^{+}\\ -1&r_{i}^{-}\end{pmatrix}. We can reparametrize the problem in the following way:

with now DiD_{i} Hermitian (even diagonal).

Thus it is easier to tackle using standard techniques for stochastic approximation [see, e.g., Polyak and Juditsky, 1992, Bach and Moulines, 2011]:

This is a bias-variance decomposition; the left term only depends on the initial condition and the right term only depends on the noise process.

Moreover we have Θ0i=(ϕ1i/(ri−−ri+)−ϕ1i/(ri−−ri+))\Theta_{0}^{i}=\begin{pmatrix}\phi^{i}_{1}/(r_{i}^{-}-r_{i}^{+})\\ -\phi^{i}_{1}/(r_{i}^{-}-r_{i}^{+})\end{pmatrix}. Thus

This is the bias term we have studied in Section 3.3 which we bound with Theorem 2. The variance term is controlled by the next proposition.

We note that if we restrict β\beta to β≤3/(2hi)−α/2\beta\leq 3/(2h_{i})-\alpha/2, then 4−(α+2β)hi≥14-(\alpha+2\beta)h_{i}\geq 1 and the first bound of Proposition 2 is simplified to 2(αn+β)2αβn2cihi\frac{2(\alpha n+\beta)^{2}}{\alpha\beta n^{2}}\frac{c_{i}}{h_{i}}. This allows to conclude to prove Theorem 4.

F.2 Proof of Corollary 3

We let ν=∥θ0−θ∗∥Ltr(CH−1)\nu=\frac{\|\theta_{0}-\theta_{*}\|}{\sqrt{L\mathop{\rm tr}(CH^{-1})}} and consider three different regimes depending on ν\nu and LL.

If ν<1/L\nu<1/L, we have ν/N<1/L\nu/N<1/L and thus α=ν/N\alpha=\nu/N and β=ν\beta=\nu. Therefore

where we have used L∥θ0−θ∗∥<tr(CH−1)\sqrt{L}\|\theta_{0}-\theta_{*}\|<\sqrt{\mathop{\rm tr}(CH^{-1})} since ν<1/L\nu<1/L.

If ν>1/L\nu>1/L and ν<N/L\nu<N/L, we have α=ν/N\alpha=\nu/N and β=1/L\beta=1/L. Therefore

where we have used L∥θ0−θ∗∥>tr(CH−1)\sqrt{L}\|\theta_{0}-\theta_{*}\|>\sqrt{\mathop{\rm tr}(CH^{-1})} since ν>1/L\nu>1/L.

If ν>N/L\nu>N/L, we have α=1/L\alpha=1/L and β=1/L\beta=1/L. Therefore

where we have used that the real bound in Proposition 2 is in fact in (N−1)α+β(N-1)\alpha+\beta, (see Lemma 6) and that tr(CH−1)<L∥θ0−θ∗∥2N2\mathop{\rm tr}(CH^{-1})<\frac{L\|\theta_{0}-\theta_{*}\|^{2}}{N^{2}} since ν>N/L\nu>N/L.

F.3 Proof of Proposition 2

To prove Proposition 2 we will use Lemmas 6, 7 and 8, that are stated and proved in Section F.3.2.

Thus, by bouding (k−1)α+β(k-1)\alpha+\beta by (n−1)α+β(n-1)\alpha+\beta, we get

Then, we have from Lemma 7 the inequality:

This allows to prove the first part of the bound. The other parts are much simpler and are done in Lemma 8. Thus, adding these bounds gives for α≤1/hi\alpha\leq 1/h_{i} and 0≤β≤2/hi−α0\leq\beta\leq 2/h_{i}-\alpha:

F.3.2 Some technical Lemmas

We first compute an explicit expansion of the noise term as a function of the eigenvalues of the dynamical system.

For all α≤1/hi\alpha\leq 1/h_{i} and 0≤β≤2/hi−α0\leq\beta\leq 2/h_{i}-\alpha we have

We first turn the Euclidean norm into a trace, using that tr[AB]=tr[BA]\mathop{\rm tr}[AB]=\mathop{\rm tr}[BA] for two matrices AA and BB and that tr[x]=x\mathop{\rm tr}[x]=x for a real xx.

And the first part of Eq. (23) is equal to:

because Di=(ri−00ri+)D_{i}=\begin{pmatrix}r_{i}^{-}&0\\ 0&r_{i}^{+}\end{pmatrix} and Mi=(hi1/2hi1/200)M_{i}=\begin{pmatrix}h_{i}^{1/2}&h_{i}^{1/2}\\ 0&0\end{pmatrix}. Therefore:

In the following leamma, we bound a certain sum of powers of the roots.

For all α≤1/hi\alpha\leq 1/h_{i} and 0≤β≤2/hi−α0\leq\beta\leq 2/h_{i}-\alpha we have

We first note that when the two roots become close, the denominator and the numerator will go to zero, which prevents from bounding the numerator easily. We also note that this bound is very tight since the difference between the two terms goes to zero when nn goes to infinity.

We first expand the square of the difference of the powers of the roots and compute their sums.

with I_{n}=\bigg{[}\frac{{r_{i}^{+}}^{2n}}{1-{r_{i}^{+}}^{2}}+\frac{{r_{i}^{-}}^{2n}}{1-{r_{i}^{-}}^{2}}-2\frac{(r_{i}^{+}r_{i}^{-})^{n}}{1-(r_{i}^{+}r_{i}^{-})}\bigg{]}.

This sum is therefore equal to the sum of one term we will compute explicitly and one other term which will go to zero. We have for the first term:

with Jn=In[(ri−)−(ri+)]2J_{n}=\frac{I_{n}}{[(r_{i}^{-})-(r_{i}^{+})]^{2}}.

Then we simplify the first term of this sum using the explicit values of the roots. We recall ri±=ri±Δi=1−α+β2hi±(α+β2)2hi2−αhir_{i}^{\pm}=r_{i}\pm\sqrt{\Delta_{i}}=1-\frac{\alpha+\beta}{2}h_{i}\pm\sqrt{\left(\frac{\alpha+\beta}{2}\right)^{2}h_{i}^{2}-\alpha h_{i}}, therefore

Even if JnJ_{n} will be asymptotically small, we want a non-asymptotic bound, thus we will show that JnJ_{n} is always positive.

and using ri+2+ri−2≥2ri−ri−{r_{i}^{+}}^{2}+{r_{i}^{-}}^{2}\geq 2{r_{i}^{-}}{r_{i}^{-}} we have

and using ri+2+ri−2≤2ri−ri−{r_{i}^{+}}^{2}+{r_{i}^{-}}^{2}\leq 2{r_{i}^{-}}{r_{i}^{-}} we have

However we can also bound roughly Eq. (22) using Theorem 2 since we recall we have ηni=[(ri−)n−k−(ri+)n−k]2(ri−−ri+)2\eta_{n}^{i}=\frac{[(r_{i}^{-})^{n-k}-(r_{i}^{+})^{n-k}]^{2}}{(r_{i}^{-}-r_{i}^{+})^{2}}. This gives us the following lemma which enables to prove the second part of Proposition 2.

For all α≤1/hi\alpha\leq 1/h_{i} and 0≤β≤2/hi−α0\leq\beta\leq 2/h_{i}-\alpha we have

Appendix G Comparison with additional other algorithms

When the objective function ff is quadratic and for correct choices of step-sizes, the AC-SA algorithm of Lan , the SAGE algorithm of Hu et al. and the Accelerated RDA algorithm of Xiao are all equivalent to:

where we use Hnθ+εnH_{n}\theta+\varepsilon_{n} as an unbiased estimate of the gradient and δn\delta_{n} as step-size which values will be specified later.

Lan and Hu et al. only consider bounded cases by projecting their iterates on a bounded space. Xiao deals with the unbounded case and prove the following convergence result:

This result is significantly more general than ours since it is valid for composite optimization and general noise on the gradients.

We now present the different algorithms and show they all share the same form.

G.2 AC-SA

AC-SA algorithm with step size γn\gamma_{n} and βn\beta_{n} and gradient estimate Hn+1θn+εn+1H_{n+1}\theta_{n}+\varepsilon_{n+1} is equivalent to:

Let the initial points x1ag=x1x_{1}^{ag}=x_{1}, and the step-sizes {βn}n≤1\{\beta_{n}\}_{n\leq 1} and {γn}n≤1\{\gamma_{n}\}_{n\leq 1} be given.

Step 1. Set xnmd=βn−1xn+(1−βn−1)xnagx_{n}^{md}=\beta_{n}^{-1}x_{n}+(1-\beta_{n}^{-1})x_{n}^{ag},

Step 3. Set n→n+1n\rightarrow n+1 and go to step 1.

When ff is quadratic we will have G(xnmd,ξn)=Hn+1xnmd−εn+1G(x_{n}^{md},\xi_{n})=H_{n+1}x_{n}^{md}-\varepsilon_{n+1}, thus xn+1=xn−γnHn+1xnmd+γnεn+1x_{n+1}=x_{n}-\gamma_{n}H_{n+1}x_{n}^{md}+\gamma_{n}\varepsilon_{n+1}, and:

These give the result for θn=xnag\theta_{n}=x_{n}^{ag}. ∎

G.3 SAGE

The algorithm SAGE with step-sizes LnL_{n} and αn\alpha_{n} is equivalent to:

Let the initial points x0=z0=0x_{0}=z_{0}=0, and the step-sizes {βn}n≤1\{\beta_{n}\}_{n\leq 1} and {Ln}n≤1\{L_{n}\}_{n\leq 1} be given.

Step 1. Set xn=(1−αn)yn−1+αnzn−1x_{n}=(1-\alpha_{n})y_{n-1}+\alpha_{n}z_{n-1},

Step 3. Set n→n+1n\rightarrow n+1 and go to step 1.

These give the result for θn=yn\theta_{n}=y_{n}. ∎

G.4 Accelerated RDA method

The algorithm AccRDA with step-sizes β\beta and αn\alpha_{n} is equivalent to:

with γn=αnθnL+β\gamma_{n}=\frac{\alpha_{n}\theta_{n}}{L+\beta}.

We recall the general Accelerated RDA method:

Step 1. Set An=An−1+αnA_{n}=A_{n-1}+\alpha_{n} and θn=αnAn\theta_{n}=\frac{\alpha_{n}}{A_{n}}.

Step 2. Compute the query point un=(1−θn)wn−1+θnvn−1u_{n}=(1-\theta_{n})w_{n-1}+\theta_{n}v_{n-1}

Step 5. Set wn=(1−θn)wn−1+θnvnw_{n}=(1-\theta_{n})w_{n-1}+\theta_{n}v_{n}.

Step 6. Set n→n+1n\rightarrow n+1 and go to step 1.

With βn=β\beta_{n}=\beta we have vn=vn−1−αnL+β(Hn+1un+εn+1)]v_{n}=v_{n-1}-\frac{\alpha_{n}}{L+\beta}(H_{n+1}u_{n}+\varepsilon_{n+1})] and

Since vn−1=θn−1−1wn−1−θn−1−1(1−θn−1)wn−2v_{n-1}=\theta_{n-1}^{-1}w_{n-1}-\theta_{n-1}^{-1}(1-\theta_{n-1})w_{n-2}, then

Appendix H Lower bound for stochastic optimization for least-squares

In this section, we show a lower bound for optimization of quadratic functions with noisy access to gradients. We follow very closely the framework of Agarwal et al. and use their notations. The only difference with their Theorem 1 in the different choice of two functions fi+f_{i}^{+} and fi−f_{i}^{-}, which we choose to be:

with a non-increasing sequence (ci)(c_{i}) to be chosen later. The function gαg_{\alpha} that is optimized is thus:

This function is quadratic and its Hessian has eigenvalues equal to 2ci/d2c_{i}/d. Thus, its largest eigenvalue is 2c1/d2c_{1}/d, which we choose equal to LL.

Noisy gradients are obtained by sampling dd independent Bernoulli random variables bib_{i}, i=1,…,di=1,\dots,d, with parameters (12+αiδ)(\frac{1}{2}+\alpha_{i}\delta) and using the gradient of the random function \frac{1}{d}\sum_{i=1}^{d}\big{\{}b_{i}f_{i}^{+}(x)+(1-b_{i})f_{i}^{-}(x)\big{\}}. The variance of the random gradient is equal to

The function gαg_{\alpha} is minimized for x=−αδrx=-\alpha\delta r, and the discrepancy measure between two functions gαg_{\alpha} and gβg_{\beta} is greater than

Since the vectors α,β∈{−1,1}d\alpha,\beta\in\{-1,1\}^{d} are so that their Hamming distance Δ(α,β)⩾d/4\Delta(\alpha,\beta)\geqslant d/4 for α≠β\alpha\neq\beta, we have a discrepancy measure greater than 3cdr2δ216\frac{3c_{d}r^{2}\delta^{2}}{16}. Thus, for a an approximate optimality of ε=cdr2δ238\varepsilon=\frac{c_{d}r^{2}\delta^{2}}{38}, we have, following the proof of Theorem 1 (equation (29)) from Agarwal et al. , for NN iterations of any method that accesses a random gradient, we have:

Thus, for dd large, we get, up to constants, δ2⩾1/N\delta^{2}\geqslant 1/N and thus ε⩾r2cdN\varepsilon\geqslant\frac{r^{2}c_{d}}{N}.

For c1=2Ldc_{1}=2Ld and ci=Ldc_{i}=L\sqrt{d} for the remaining ones, we get (up to constants):

This leads to the desired result for N⩽dN\leqslant d.