Why Random Reshuffling Beats Stochastic Gradient Descent
Mert Gürbüzbalaban, Asuman Ozdaglar, Pablo Parrilo
Introduction: First-order incremental methods
We consider the following unconstrained optimization problem where the objective function is the sum of a large number of component functions:
where is a stepsize with the convention that .
Intuitively, it is clear that slow progress can be obtained if the functions that are processed consecutively have gradients close to zero. Indeed, the performance of IG is known to be pretty sensitive to the order functions are processed [6, Example 2.1.3]. If there is a favorable order (defined as a permutation of ) that can be obtained by exploiting problem-specific knowledge, the method can be updated to process the functions with this order instead with the iterations:
However, in general a favorable order is not known in advance, and a common approach is choosing the indices of functions to process as independent and uniformly distributed samples from the set . This way no particular order is favored, making the method less vulnerable to particularly bad orders. This approach amounts to at each iteration sampling the function indices with replacement from the set and is called the Stochastic Gradient Descent (SGD) method, a.k.a. Robbins-Monro algorithm . SGD is strongly related to the classical field of stochastic approximation . Recently it has received a lot of attention due to its applicability to large-scale problems and became popular especially in machine learning applications (see e.g. ).
An alternative popular approach that works well in practice is following a mixed approach between SGD and IG, sampling the functions randomly but not allowing repetitions, that is sampling the component functions at each iteration without-replacement, or equivalently picking a random order at each cycle. Specifically, at each cycle , we draw a permutation of independently and uniformly at random over the set of all permutations
and process the functions with this order:
where is a stepsize. We set as before and refer to as the outer iterates. This method is called the Random Reshuffling (RR) method [6, Section 2.1] and will be the focus of this paper.
Motivation and summary of contributions
Without-replacement sampling schemes are often easier to implement efficiently compared to with-replacement sampling schemes, guarantee that every point in the data set is touched at least once, and often have better practical performance than their with-replacement counterparts . For instance, Bottou empirically compares SGD and RR methods and finds that RR converges with a rate close to whereas SGD is much slower achieving its min-max lower bound of for strongly convex objective functions . Many other papers listed above report a similar empirical behavior. This discrepancy in rate between RR and SGD is not only observed for large but also for small (as we illustrate in Example 3.2), and understanding it theoretically has been a long-standing open problem .
To our knowledge, the only existing theoretical analysis for RR is given by a recent paper of Recht and Ré which focuses on least mean squared optimization and formulates a conjecture that would prove that the expected convergence rate of RR is faster than that of SGD. Given arbitrary positive-definite matrices of dimension , the conjecture says that products of any matrices chosen from this set of matrices satisfy a non-commutative arithmetic-geometric mean inequality for every positive integer and every . This conjecture has been proven only in some special cases (for , for and when is a multiple of 3 and ). Recht and Ré also analyze a special case of (1) (that arises when is a quadratic function where is a column vector that is randomly generated according to a random model and is a scalar) and show that after a fixed amount of iterations, the upper bounds on the expected mean square error using without-replacement sampling is smaller than that of with-replacement sampling with high probability on most models of (probabilities are taken with respect to the random data generation model). Despite these advances, there has been a lack of convergence theory for RR that characterizes its convergence rate and explains its fast performance. Analyzing algorithms based on without-replacement sampling such as RR is more difficult than with-replacement based approaches such as SGD. The reason is that the underlying independence assumption for the with-replacement sampling allows a tractable analysis with classical martingale convergence theory , whereas without-replacement sampling introduces correlations and dependencies among the sampled gradients and iterates that are harder to analyze . The aim of our paper is to fill this theoretical gap for the case when the objective function in (1) is strongly convex and develop a novel algorithm that can accelerate the convergence further. We next summarize our contributions.
We first consider the case when the component functions are quadratics. Building on the recent convergence rate results for the cyclic IG in , we first present a key result (Theorem 20) that provides an upper bound for the distance from the optimal solution of the iterates generated by an incremental method that processes component functions with an arbitrary fixed order and uses a stepsize for . This upper bound decays at rate and depends on the strong convexity constant of the sum function and an order dependent parameter given by a weighted average of Hessian matrices where the weights are given by the sum of the component gradients processed up to that point according to the given order. We use this result to show that the distance to the optimal solution of the iterates generated by RR algorithm with stepsize , for all , converges to 0 at rate in expectation (where the expectation is over the random sequence of iterates). However, we show that achieving the rate involves adapting the stepsize to the strong convexity constant of the sum function.
We then consider the -suffix averages of the iterates generated by RR for some (which is obtained by averaging the last iterates at iteration ) and show that with a stepsize for and , they converge almost surely at rate to the optimal solution. We provide an explicit characterization of the asymptotic rate constant in terms of the averaging parameter , the stepsize parameters and and the Hessian matrices and the gradients of the component functions at the optimal solution (parts and of Theorem 3). Using strong convexity, this implies an almost sure convergence rate in the suboptimality of the objective value. Our analysis views RR as a gradient descent method with random gradient errors. The analysis of RR is complicated by the fact that the cumulative gradient error over cycles are dependent. A key step in our proof is to decouple the cycle gradient error into a term independent over cycles and another term that scales as . This allows us to use strong law of large numbers for a properly weighted average of the cycle error gradient sequence (where the weights depend on the stepsize) and show almost sure convergence of the -suffix averaged iterates. Another key component of our analysis is to adapt the Polyak-Ruppert averaging techniques developed for SGD to RR.
We also provide a high probability convergence rate estimate for the distance of -suffix averages to the optimal solution that consists of two terms, with the first term corresponding to a decay of a “bias” term (where bias is defined as the expected value of the cycle gradient errors of RR which may be non-zero) and the second term representing a decay for (and decay for ); see part of Theorem 3 . These results are obtained by martingale concentration techniques. We use the characterization of the bias to estimate it with a term that can be computed during the RR iterations. We show that subtracting the estimated bias from the averaged RR iterates accelerates the convergence rate further, leaving only the second error term of decay in the iterates (part of Theorem 3). Based on this result, we propose a new algorithm which we call the De-biased Random Reshuffling (DRR) method that can accelerate the asymptotic convergence rate of RR in the suboptimality of the function values from to .
Finally, in Theorem 4 we show that our results in Theorem 3 extend to the more general case when component functions are smooth (twice continuously differentiable) under a Lipschitz assumption on the Hessian, which allows us to control the second order term in a Taylor expansion of the gradient.
Outline: The outline of the paper is as follows. In Section 3, we introduce our approach for analyzing RR, present Polyak-Ruppert averaging and give a motivating example. Section 4 focuses on the case when component functions are quadratics. We first present a convergence rate estimate for IG with a fixed arbitrary order. We then focus on RR and study convergence of averaged iterates to the optimal solution. Section 5 extends our results to smooth functions. Section 6 proposes the DRR algorithm that can accelerate RR further. Finally, we conclude with a summary of our work in Section 7. Some of the technical lemmas required in the details of the proofs are deferred to Sections A, B and C of the Appendix.
Notation: We study the point-wise dominance of stochastic sequences by deterministic sequences and use the following notation. Let be a stochastic real-valued sequence (where can be thought as the source of randomness) and be a real-valued deterministic sequence. We write where and are independent of (Note that the requirement is that this inequality holds for all , not just for almost all ). When is non-negative for every , given another deterministic positive sequence , we also introduce the inequality version of this definition: where depends on but is independent of . When is deterministic, these definitions reduce to the standard definitions of and for deterministic sequences. For random , the only difference is that we require the constants to be independent of the choice of . For example, if is uniformly distributed over $x_{k}={\cal O}(1)\|\cdot\|$ denotes the vector or matrix 2-norm (maximum singular value).
Preliminaries
We consider solving problem (1) with RR method with iterations given in (5). Throughout we assume the following:
Note that this assumption is on the sum function , it does not require the convexity of the individual component functions . A consequence of this assumption is that there exists a unique optimal solution to (1) which we denote by . Another consequence is that the Hessian at the optimal solution is invertible since
where is the identity matrix.
To analyze RR, we view it as a gradient method with random gradient errors and rewrite the outer iterations (5) as
is the cumulative gradient errors associated with the cycle . This approach is similar to the analysis of SGD, where one writes each (inner) iteration as a gradient method with error. The key difference that simplifies the analysis of SGD is the fact that the iteration gradient errors at the current iterate are independent (because of independent identically distributed sampling of component function indices) allowing use of martingale central limit theorems to obtain convergence and rate results (see e.g. ). In contrast, for RR, not only are the iteration gradient errors dependent (because of sampling a random order at cycle coupling indices and for ), but also the cycle gradient errors and for cycles are dependent as they both depend on the history of the iterates. This necessitates a different line of attack for the convergence analysis of RR.There is some literature that analyzes SGD under correlated noise [21, Ch. 6], but the noise needs to have a special structure (such as a mixing property) which does not seem to be applicable to the analysis of RR.
A key idea in our analysis is to use a recent upper bound for the convergence rate of cyclic incremental gradient method (see ), which can be generalized to hold for any fixed deterministic order. This bound implies an almost sure upper bound (in fact one that holds for all sample paths) on the distance of the outer iterates generated by RR from the optimal solution denoted by (see Section 4.1). Crucially, this result implies an upper bound in expected distance which is asymptotically times smaller than the almost sure guarantees on the distance of the iterates.
In analyzing RR, we will also consider the average of the outer iterate sequence given byIt is well known that computing this (moving) average can be done efficiently in a dynamic manner by storing a vector of length . We also consider averaging only the most recent iterates, i.e. at iteration , averaging the last iterates for some constant :
The generated sequence is referred to as the -suffix average of the sequence . For SGD, it was shown that -suffix averaging with leads to better performance then averaging (which corresponds to the case by definition), improving the convergence rate in the suboptimality of the function value from to . This is in line with our results in Section 4 which show faster rate for the case. The parameter can be thought as a measure of how much memory one uses during the averaging process. We define the -suffix average of the stepsize in a similar way:
We will obtain our strongest convergence results (in the almost sure sense and with a similar dependence as the expected guarantees) for averaged iterate sequences with “large step sizes”, a technique known as Polyak-Ruppert averaging, which has been used in achieving optimal rates for SGD in a robust manner as explained next.
SGD has a long history going back to the seminal paper of Robbins and Monro . It has been analyzed under different assumptions extensively in the stochastic approximation literature (see e.g. ). For stochastic convex optimization, it has been shown that SGD has a min-max lower bound of . One way of achieving this optimal rate is to use a stepsize where is a positive scalar adjusted properly to the strong convexity constant of the objective function but this requires the knowledge or the estimate of an accurate lower bound on the strong convexity constant. If a lower bound is not known or cannot be estimated accurately, the convergence can be potentially slow [25, Section 2.1]. Polyak-Ruppert averaging is a technique that allows to get the optimal rate in an asymptotically efficient manner without the need to adjust to the strong convexity constant. It relies on using a larger stepsize (with an arbitrary positive constant and ) that decays slower than but then taking the time average of the iterates to filter out the undesired oscillations arising due to the larger steps .IG shows similar properties to SGD in terms of the robustness of the stepsize rules . The convergence rate (in ) is only robust to the strong convexity constant of the objective for but not for . We will later show that the same technique allows us to get almost sure guarantees for the averaged iterates without the need to tune the stepsize to the strong convexity constant (see Theorems 3 and 4).
2 A motivating example
Before presenting our convergence analysis, we consider a simple example that highlights the difference in convergence mechanisms of SGD and RR and gives intuition on why RR is faster than SGD asymptotically.
with and . The outer RR iterates satisfy
where the cycle gradient errors are given by
Plugging in the identities , obtained from (11) and the inner update formula (5), we obtain
where satisfying
In contrast, SGD starting from an initial point leads to the iterations
where is an independent and identically distributed (i.i.d.) random variable with a uniform distribution over the index set and the gradient error is given by
We also observe that the cycle gradient error given by (13) consists of the sum of two terms: The first term is and is independent over the cycles as the permutations are independent and identically distributed whereas the second term is of smaller (second) order as . We will show later in Lemma B.4 that such a decomposition can be obtained more generally when component functions are quadratics or they are smooth functions and will be a key step in the proof of Theorem 3.
Figure 1 compares the RR and SGD algorithms with averaging in terms of the histogram of the error (distance of the averaged iterates to the optimal solution ). In other words, we compare the approximation errors and where where is the averaged SGD iterates after cycles (or equivalently inner iterations). For a fair comparison, both algorithms are run with the same parameters using cycles over sample paths created for the Example (3.2) where . The left panel in Figure 1 compares the histograms of and and shows that the approximation error for RR is typically much smaller compared to that of SGD suggesting RR has a faster convergence rate. The top panel on the right illustrates that the scaled approximation error is concentrated around its mean (marked by the red line) suggesting convergence rate almost surely for the averaged RR iterates. On the other hand, the bottom panel on the right shows that the distribution of is approximately a standard normal distribution as predicted by the theory , illustrating the convergence rate of the averaged SGD iterates to the optimal solution in distribution. In Section 4, we will develop the first convergence theory for RR, establishing the convergence rate we observe in the numerical experiments and show that converges almost surely to a point for which we provide an explicit formula.
Quadratic component functions
where . It follows from the triangle inequality that has Lipschitz gradients with Lipschitz constant at most
Moreover, Assumption 3.1 implies that the Hessian matrix of the sum satisfies
Our convergence analysis of RR builds on a recent upper bound for convergence rate of (deterministic) cyclic IG method (see ), which can be generalized to hold for any fixed permutation of . This result implies an upper bound (for all sample paths) on the distance to the optimal solution of the iterates generated by RR, which is presented next.
where is the strong convexity constant of the sum function and
This theorem provides an upper bound on the rate with a rate constant that depends on the order . Note that the best rate that IG with a fixed order can attain in terms of upper bounds is and requires a stepsize with (see also for the lower bound of for IG under some conditions). We next provide some upper bounds on . We define
Using for each , it follows from the triangle inequality that
where is the Lipschitz constant of the gradient of defined by (17). By replacing by in Theorem 20 one can get an upper bound on the worst-case convergence rate that applies to any choice of fixed order . Using a similar argument along the lines of the proof of Theorem 20 on the convergence rate of IG, it is straightforward to show that RR never performs any slower than this worst-case convergence rate which is the subject of the next result. The idea is to bound the stochastic sequence from above point-wise. The proof is a simple exercise and is omitted due to space considerations.
Under the setting of Theorem 20, if is sampled uniformly at each cycle instead of being kept fixed, then
with probability one where is deterministic and is defined by (22).
Corollary 4.1 provides a simple worst-case upper bound on the rate, however the rate constant is pessimistic and can be thought as a worst-case performance measure that holds for every sample path. One way to get better constants is to consider convergence in expectation, a weaker notion of convergence compared to almost sure convergence. In the next theorem, we show that can be improved to a typically much smaller constant where
can be thought as a measure of average performance over the choice of random permutations.
where the expectation is taken over the sequence of iterates, is defined by (26).
A consequence of Lemma B.3 proved in the Appendix is that
It is also natural to ask what would happen to the rate constants and to the rate if one would take stepsize and apply (Polyak-Ruppert) averaging to the RR iterates, especially given the fact that stepsize used in averaging does not require adjustment of the parameter to the strong convexity level. More generally, one could consider -suffix averaging. In the next section, we show that for the averaged RR iterates, similar upper bounds in (27) hold not only in expectation but also in probability. Another benefit of averaging is that it leads to not only upper bounds but also lower bounds which can then be leveraged to accelerate RR further as we will show in Section 6.
2 Convergence rate with averaging
The following theorem characterizes the rate of convergence of the averages of iterates generated by RR. Part and of this theorem show that -suffix averages of the RR iterates converge at rate to the optimal solution almost surely with a stepsize for . By gradient Lipschitzness, this translates into a rate of for the suboptimality of the objective value. The result is based on decoupling the cycle gradient errors into a term independent over the cycles and another term that becomes negligible in the limit. Part is a high-probability convergence rate estimate for the approximation error . The approximation error consists of two terms, the first term which we call the “bias” term is deterministic and decays like . It comes from the expected value of the independent part of the gradient cycle errors which may be different than zero. The second part is on the order of for (and when ) and it is based on the Azuma-Hoeffding inequality for martingale concentration. Finally, part is on estimating the bias term with another quantity . It shows that by subtracting the estimated bias from the averaged iterates, we can approximate the optimal solution up to an error in distances or equivalently up to an error in the suboptimality of the objective value. In Section 6, this result will be fundamental for Algorithm 1 that accelerates the convergence of RR from to with high probability in the suboptimality of the objective value.
Let be a quadratic function of the form
For any , the -suffix averaged stepsize defined in (9) satisfies
where is given by (29), i.e., the normalized error converges to the constant vector almost surely where is the Hessian matrix at the optimal solution and is given by (29). Then, from part ,
Hence, the -suffix averaged iterates converge to the optimal solution with rate almost surely.
With probability at least , we have
is deterministic, is given by and is the averaged stepsize defined in (9). The constants hidden by depend only on and .
where is the averaged stepsize defined in (9). Then, It follows from part that with probability at least ,
As the stepsize sequence is monotonically decreasing, we have the bounds
Dividing each term by , after a straightforward integration we obtain
Taking the -suffix averages of both sides of (7), we obtain
As is a quadratic, the first order Taylor series for the gradient of is exact:
Therefore, (35) becomes which is equivalent to
and can be interpreted as the (-suffix) averaged gradient error sequence normalized by the (-suffix) averaged stepsize sequence . Since is invertible by the strong convexity of (see (6)), we can rewrite (37) as
where we used the inequality implied by (6) and Lemma B.2 from the appendix to provide an upper bound for the second term in the first equality. Note that, as a consequence of Lemma B.2, notation above hides a constant that depends only on the parameters and also when . Then, dividing both sides of (39) by , taking limits as goes to infinity, using part on the asymptotic behavior of and the fact that a.s. from Lemma B.4, we obtain the claimed result.
By parts and of Lemma B.4 from the appendix that relates the gradient error sequence to a sequence of i.i.d. variables , for ,
We first give a proof for , the proof for the remaining case will be similar. Assume . Plugging and (40) into (39), we obtain
where is defined by (33) and we used in the last step the fact that for
where is the Riemann-Zeta function. We now study the asymptotic behavior of the last summation term in (41) by introducing the process , where and with the convention that . Equipped with this definition, (41) becomes
The random variables are independent, centered and have an identical distribution up to the scaling factor . Therefore, is a sum of centered random variables satisfying:
where we used (70) in the last inequality (see also Lemma B.3). Then, by the Azuma-Hoeffding inequality, for every ,
where as is square-summable (see (42)). Note that depends only on and the stepsize parameters and . It is easy to see that selecting makes the right-hand side . Therefore for any , with probability at least ,
which if inserted into the expression (43) completes the proof for the case. For case, the same line of reasoning applies except that we replace with and we can improve the term in the expression (43) to , this is justified by (39). Then, this leads to
where is the -suffix cumulative sum (cumulative sum of the last terms) of the sequence . Then using (45), with probability at least ,
Plugging this high probability bound into (46), we conclude.
By Lemma B.1, we have . Therefore,
for any . As a consequence,
where in the second equality we use the fact that implied by part .
Extension to smooth component functions
Extending our results to more general smooth functions requires obtaining similar bounds for the cycle gradient errors which depend on the gradients and Hessian matrices of the component functions along the inner iterates. In order to be able to control the change of gradients and Hessian matrices along the iterates, we introduce the following assumption which has also been used to analyze SGD .
Under this assumption, by the triangle inequality, is also Lipschitz with constant When the component functions are quadratics, we have the special case with . We will now see how this assumption makes it possible to control the change of gradients of the component functions. Smooth functions with Lipschitz Hessians are quadratic-like in the sense that the first-order Taylor approximation to the gradient of is almost affine (with a quadratic term controlled by the parameter ) satisfying
(see e.g. [18, Section 1.3]) The analysis of Theorem 3 (and Lemma B.4 it builds upon) considers the case (see e.g. (36) and (48)) applying a first-order Taylor approximation to the gradient of the component functions at where by Lemma B.1. Therefore, when , an extra correction term needs to be added to the analysis. However, we show in the next theorem that this correction term does not cause a slow down in the convergence rate (in terms of dependency in ) compared to the quadratic case because the -suffix averages of this correction term decays like .This is due to the fact that the sequence is summable when .
We will also need one more technical assumption that appeared in a number of papers in the literature for analyzing incremental methods to rule out the case that the iterates diverge to infinity. In particular, this assumption is made in for generalizing Theorem 20 on the rate of deterministic IG from quadratic functions to general smooth functions which we will be referring to.
Equipped with these two assumptions, all the results of Theorem 3 extend naturally with minor modifications. In particular, (which is a constant Hessian matrix in the setting of Theorem 3) needs to be replaced by or depending on the context.
Consider the RR iterations given by (5) with stepsize where and . Suppose that Assumptions 3.1, 5.1 and 5.2 hold. Then the following statements are true:
For any , where is the Hessian matrix at the optimal solution, is defined by (30) and
With probability at least , we have
is deterministic. The constants hidden by depend only on and .
Then, It follows from part that with probability at least ,
The proof techniques of Theorem 3 applies directly except that the Taylor approximation for the gradients of the component functions will have an extra term compared to the proof of Theorem 3 (see also (49)). Also, instead of Lemmas B.2 and B.4 that apply to only quadratic functions, their extensions Lemmas C.3 and C.4 given in the appendix are used in the proof. For the sake of completeness, besides these changes, we also give an overview of the main modifications required for each part of the proof:
The expression (36) for the gradient should be modified to include an extra error term of the form
By Lemma C.2, therefore the sequence is summable and if averaged decays like without degrading the convergence rate except possibly the constants hidden by .
The same proof applies by invoking Lemma C.4 in lieu of Lemma B.4.
Instead of Lemma B.1, we use Lemma C.2. The expression (48) on the difference of gradients needs to be adjusted as
The right-hand side is still by an application of Lemma C.2 therefore the rest of the proof applies.
An RR algorithm with bias removal
The bias removal of the DRR algorithm requires an matrix inversion which requires arithmetic operations (if there is more structure on the Hessian of such as low-rankness or sparsity this could be improved to ), but accelerates the convergence with high-probability. For small or moderate , this could be done efficiently and incrementally processing the functions one at a time; however for large this may be impractical or infeasible limiting the applicability of this method. Nevertheless, the expensive matrix inversion step does not need to be done at every cycle, it suffices to do it only once at the end of the last cycle. Figure 3 compares the performance of SGD, RR and DRR methods in terms of the histogram of the distance to the optimal solution (left panel) and suboptimality of the objective function (right panel) on a randomly generated quadratic example with a dense Hessian matrix with parameters , . For a fair comparison, we run all the algorithms with the same amount of CPU time. In particular, in Figure 3 we run DRR for 0.5 seconds including the bias correction step, and run RR and SGD for the same amount of time. We observe that SGD is consistently performing the worst, whereas DRR leads often to a better solution than RR both in terms of distances to the optimal solution and suboptimality. Figure 3 repeats the experiment with 5 seconds, we see a clearer separation between the histograms of the RR method and the De-biased RR method. We see similar results when we run the algorithms for different amount of times. These results show that the asymptotic performance would get better if one removes the bias term and typically we need more cycles for the bias correction term to be effective. The results also illustrate the results of Theorem 3 and 4 on the biasedness of the RR iterations in the sense that asymptotically an improvement can be obtained by subtracting the bias.
Conclusion
We analyzed the random reshuffling (RR) method for minimizing a finite sum of convex component functions. When the objective function is strongly convex and the component functions are smooth, averaged RR iterates converge at rate to the optimal solution almost surely (which translates into a rate of in the suboptimality of the objective value) for a diminishing stepsize with . This is faster than SGD’s rate. Viewing RR as a gradient descent method with random gradient errors, this result builds on first showing that gradient errors satisfying and then relating the gradient error sequence to an i.i.d sequence to which martingale theory is applicable. Note that the gradient errors in SGD are larger with a variance, which leads to a less accurate gradient descent direction. Beyond RR and SGD comparison, these results also give insight into the fast convergence properties of without-replacement sampling strategies compared to with-replacement sampling strategies.
After characterizing the convergence rate of RR, we look into second-order terms in the asymptotic expansion of the averaged RR iterates and obtain high probability bounds. We use these bounds to develop a new method that can accelerate the convergence rate of RR to with high probability. Finally, we show that the rate can also be achieved in expectation (which is a weaker notion of convergence with respect to convergence with high probability) for the case by adjusting the stepsize to the strong convexity constant of the objective properly.
Appendix A Proof of Theorem 2
Following the analysis of , we could write
where is defined by (20) with . Plugging this into (54),
Taking norm squares of both sides in (A), taking conditional expectations and using the fact that is bounded (see (23)), we obtain
It follows from Cauchy-Schwartz that for any
Plugging these bounds back into (56), using the lower bound (6) on the Hessian and invoking the tower property of the expectations:
Plugging in , it follows from Chung’s lemma [15, Lemma 4.2] that,
Next we choose to get the best upper bound above. This is done by choosing for and choosing for which yields
Appendix B Technical lemmas for the proof of Theorem 3
The first lemma is on characterizing what is the worst-case distance of the all the inner iterates of RR to the optimal solution . This quantity we want to upper bound is a random variable, but the upper bounds we obtain are deterministic holding for every sample path. This lemma is based on Corollary 4.1 and uses the fact that the distance between the inner iterates are on the order of the stepsize.
Under the conditions of Theorem 3 we have where hides a constant that depends only on and .
where hides a constant that depends only on and . We have also for any and ,
where we used the -Lipschitzness of the gradient of where is given by 17. Using (59) and applying this inequality inductively for we conclude. ∎
The second lemma is on characterizing how fast on average the outer iterates move (if normalized by the stepsize) after a cycle of the RR algorithm. This is clearly related to the magnitude of the gradients seen by the iterates and is fundamental for establishing the convergence rate of the averaged RR iterates in Theorem 3.
Under the conditions of Theorem 3, consider the sequence
Then, I_{q,k}=\begin{cases}{\cal O}\big{(}\frac{\log k}{k}\big{)}&\mbox{if}\quad q=1,\\ {\cal O}\big{(}\frac{1}{k}\big{)}&\mbox{if}\quad 0<q<1.\end{cases} In the former case, hides a constant that depends only on and . In the latter case, the same dependency on the constants occurs except that the dependency on can be removed.
Next, we investigate the asymptotic behavior of the terms on the right-hand side. A consequence of Corollary 4.1 and the inequality 22 is that
where the second part follows from (62) with similar constants for the term. As the sequence is monotonically decreasing, for any we have the bounds
Note that when this bound grows with logarithmically whereas for it does not grow with . Then, combining (64), (65) and (66) we obtain
Let be a random permutation of sampled uniformly over the set of all permutations defined by (4) and be the vector defined by (20) that depends on . Then,
where we used the fact that by the first order optimality condition. Then, by taking the expectation of (69), we obtain
Under the conditions of Theorem 3, the following statements are true:
where is the gradient error defined by (8), hides a constant that depends only on and and
is a sequence of i.i.d. variables where the function is defined by (20).
For any , a.s. where
As component functions are quadratics, (8) becomes
Then an application of Lemma B.1 proves directly the desired result.
We introduce the normalized gradient error sequence . By part , where is a sequence of i.i.d. variables. By the strong law of large numbers, we have
where the last equality is by the definition of . Therefore,
where we used the fact that the second term is negligible as . As the average of the sequence converges almost surely, one can show that this implies almost sure convergence of a weighted average of the sequence as well as long as weights satisfy certain conditions as . In particular, as the sequence is monotonically decreasing and is non-summable, by [14, Theorem 1],
This completes the proof for . For , by the definition of , we can write where the non-negative weights satisfy
As both and go to a.s. by (73), it follows that
as well for any . This completes the proof.
This is a direct consequence of the triangle inequality applied to the definition (69) with and .
Appendix C Techical Lemmas for the proof of Theorem 4
We first state the following result from which extends Corollary 4.1 from quadratics to smooth functions.
where the right-hand side is a deterministic sequence, and is defined by (21).
The proof of Corollary 4.1 is based on Theorem 20 from . This theorem admit an extension to smooth functions with Lipschitz gradients to (see ), therefore by the same reasoning along the lines of Corollary 4.1 the result follows. ∎
Under the conditions of Theorem 4, all the conclusions of Lemma B.1 remain valid.
The proof of Lemma B.1 applies identically except that instead of Corollary 4.1 we use its extension Corollary C.1. ∎
Under the conditions of Theorem 4, all the conclusions of Lemma B.2 remain valid.
The proof of Lemma B.2 applies identically with the only difference that the bound on is obtained from Corollary C.1 instead of Corollary 4.1. ∎
Under the conditions of Theorem 4, the following statements are true:
where hides a constant that depends only on and and
For any , with probability one where
For part , first we express using the Taylor expansion and the Hessian Lipschitzness as
which implies directly Equation (74). The rest of the proof for parts and is similar to the proof of Lemma B.4 and is omitted. ∎