Estimate Sequences for Stochastic Composite Optimization: Variance Reduction, Acceleration, and Robustness to Noise
Andrei Kulunchakov, Julien Mairal
Introduction
We consider convex composite optimization problems of the form
More specifically, we focus on stochastic objective functions, which are of utmost importance in machine learning, where is an expectation or a finite sum of smooth functions
While the finite-sum setting is obviously a particular case of expectation with a discrete probability distribution, the deterministic nature of the resulting cost function drastically changes performance guarantees. In particular, when an algorithm is only allowed to access unbiased measurements of the objective function and gradient—which we assume is the case when is an expectation—it may be shown that the worst-case convergence rate in expected function value cannot be better than in general, where is the number of iterations Nemirovski et al. (2009); Agarwal et al. (2012). Such a sublinear rate of convergence is notably achieved by stochastic gradient descent (SGD) algorithms or their variants (see Bottou et al., 2018).
Even though this pessimistic result applies to the general stochastic case, linear convergence rates can be obtained for the finite-sum setting Schmidt et al. (2017). Specifically, a large body of work in machine learning has led to many randomized incremental approaches obtaining linear convergence rates, such as SAG Schmidt et al. (2017), SAGA Defazio et al. (2014a), SVRG Johnson and Zhang (2013); Xiao and Zhang (2014), SDCA Shalev-Shwartz and Zhang (2016), MISO Mairal (2015), Katyusha Allen-Zhu (2017), MiG Zhou et al. (2018), SARAH Nguyen et al. (2017), directly accelerated SAGA Zhou (2019) or the method of Lan and Zhou (2018a). For non-convex objectives, recent approaches have also improved known convergence rates for finding first-order stationary points Fang et al. (2018); Paquette et al. (2018); Lei et al. (2017), which is however beyond the scope of our paper. These algorithms have about the same cost per-iteration as the stochastic gradient descent method, since they access only a single or two gradients at each iteration, and they may achieve lower computational complexity than accelerated gradient descent methods Nesterov (1983, 2004, 2013); Beck and Teboulle (2009) in expectation. A common interpretation is to see these algorithms as performing SGD steps with an estimate of the full gradient that has lower variance Xiao and Zhang (2014).
In this paper, we are interested in providing a unified view of stochastic optimization algorithms, but we also want to investigate their robustness to random perturbations. Specifically, we may consider objective functions with an explicit finite-sum structure such as (2) when only noisy estimates of the gradients are available. Such a setting may occur for various reasons. For instance, perturbations may be injected during training in order to achieve better generalization on new test data Srivastava et al. (2014), perform stable feature selection (Meinshausen and Bühlmann, 2010), improve the model robustness Zheng et al. (2016), or for privacy-aware learning (Wainwright et al., 2012).
Each training point indexed by is corrupted by a random perturbation and the resulting function may be written as
The framework we adopt is that of estimate sequences introduced by Nesterov (2004), which consists of building iteratively a quadratic model of the objective. Typically, estimate sequences may be used to analyze the convergence of existing algorithms, but also to design new ones, in particular with acceleration. Our construction is however slightly different than the original one since it is based on stochastic estimates of the gradients, and some classical properties of estimate sequences are satisfied only approximately. We note that estimate sequences have been used before for stochastic optimization (Lu and Xiao, 2015; Devolder, 2011; Lin et al., 2014), but not for the same generic purpose as ours.
Specifically, our paper makes to the following contributions:
We revisit many stochastic optimization algorithms dealing with composite convex problems; we consider variants of incremental methods such as SVRG, SAGA, SDCA, or MISO. We provide a common convergence proof for these methods and show that they can be modified and become adaptive to the strong convexity constant , when only a lower bound is available.
We show that our construction of estimate sequence naturally leads to an accelerated stochastic gradient method for composite optimization as Ghadimi and Lan (2012, 2013); Hu et al. (2009), but simpler as our approach requires to maintain two sequences of iterates instead of three. The resulting complexity in terms of gradient evaluations for -strongly convex objectives is
which has also been achieved by Ghadimi and Lan (2013); Aybat et al. (2019); Cohen et al. (2018). When the objective is convex, but non-strongly convex, we also provide a sublinear convergence rate for finite horizon. Given a budget of iterations, the algorithm returns an iterate such that
which is also optimal for stochastic first-order optimization (Ghadimi and Lan, 2012).
We design a new accelerated algorithm for finite sums based on the SVRG gradient estimator, with complexity, for -strongly convex functions,
When the problem is convex but not strongly convex, given a budget of greater than , the algorithm returns a solution such that
This paper is organized as follows. Section 2 introduces the proposed framework based on stochastic estimate sequences; Section 3 is devoted to the convergence analysis and Section 4 introduces accelerated stochastic optimization algorithms; Section 5 presents various experiments to compare the effectiveness of the proposed approaches, and Section 6 concludes the paper.
We note that a short version of this paper was presented by Kulunchakov and Mairal (2019a) at the International Conference on Machine Learning (ICML) in 2019. This paper extends this previous work by (i) providing complexity results for convex but not strongly convex objectives (), (ii) extending the framework to variants of MISO/Finito/SDCA algorithms, in the context of non-accelerated incremental methods, (iii) providing more experiments with additional baselines and objective functions.
Proposed Framework Based on Stochastic Estimate Sequences
In this section, we present two generic stochastic optimization algorithms to address the composite problem (1). Then, we show their relation to variance-reduction methods.
The iteration (A) is generic and encompasses many existing algorithms, which we review later. Key to our analysis, we are interested in a simple interpretation corresponding to the iterative minimization of strongly convex surrogate functions.
with and is a scalar value that is left unspecified at the moment. Then, it is easy to show that in (A) minimizes the following quadratic function defined for as
where satisfy the system of equations
We note that is a subgradient in . By simply using the definition of the proximal operator (7) and considering first-order optimality conditions, we indeed have that and coincides with the minimizer of . This allows us to write in the generic form
The construction (9) is akin to that of estimate sequences introduced by Nesterov (2004), which are typically used for designing accelerated gradient-based optimization algorithms. In this section, we are however not interested in acceleration, but instead in stochastic optimization and variance reduction. One of the main property of estimate sequences that we will use is their ability do behave asymptotically as a lower bound of the objective function near the optimum. Indeed, we have
Relation with existing algorithms.
The iteration (A) encompasses many approaches such as ISTA (proximal gradient descent), which uses the exact gradient leading to deterministic iterates (Beck and Teboulle, 2009; Nesterov, 2013) or proximal variants of the stochastic gradient descent method to deal with a composite objective (see Lan, 2012, for instance). Of interest for us, the variance-reduced stochastic optimization approaches SVRG (Xiao and Zhang, 2014) and SAGA Defazio et al. (2014a) also follow the iteration (A) but with an unbiased gradient estimator whose variance reduces over time. Specifically, the basic form of these estimators is
2 A Less Classical Iteration with a Different Estimate Sequence
In the previous section, we have interpreted the classical iteration (A) as the iterative minimization of the stochastic surrogate (9). Here, we show that a slightly different construction leads to a new algorithm. To obtain a lower bound, we have indeed used basic properties of the proximal operator to obtain a subgradient and we have exploited the following convexity inequality . Another natural choice to build a lower bound consists then of using directly instead of , leading to the construction
where is assumed to be the minimizer of the composite function , is defined as in Section 2.1, and is a minimizer of . To initialize the recursion, we define then as
with is the minimizer of and is the minimum value of ; is left unspecified since it does not affect the algorithm. Typically, one may choose to be a minimizer of such that . Unlike in the previous section, the surrogates are not quadratic, but they remain -strongly convex. It is also easy to check that the relation (11) still holds.
where is constant and the inequality on the right is due to the strong convexity of .
Relation to existing approaches.
The approach (B) is related to several optimization methods. When the objective is a deterministic finite sum, it is possible to relate the update (B) to the MISO Mairal (2015), and Finito Defazio et al. (2014b) algorithms, even though they were derived from a significantly different point of view. This is also the case of a primal variant of SDCA (Shalev-Shwartz, 2016) For instance, SDCA is a dual coordinate ascent approach, whereas MISO and Finito are explicitly derived from the iterative surrogate minimization we adopt in this paper. As the links between (B) and these previous approaches are not obvious at first sight, we detail them in Appendix B.
3 Gradient Estimators and Algorithms
In this paper, we consider the iterations (A) and (B) with the following gradient estimators.
exact gradient with , when the problem is deterministic and we have an access to the full gradient;
Then, the variables and also involve noisy estimates of the gradients:
The case with non-uniform sampling is slightly different and is described in Algorithm 3; it requires an additional index for updating a variable . The reason for that is to remove a difficulty in the convergence proof, a strategy also adopted by Schmidt et al. (2015) for a variant of SAGA with non-uniform sampling.
SDCA/MISO: To put SAGA, MISO and SDCA under the same umbrella, we introduce a lower bound on the strong convexity constant , and a correcting term involving that appears only when the sampling distribution is not uniform:
It is then possible to show that when is uniform and under the big data condition (used for instanced by Mairal 2015; Defazio et al. 2014b; Schmidt et al. 2017) and with , variant (B) combined with the estimator (15) yields the MISO algorithm, which performs similar updates as a primal variant of SDCA (Shalev-Shwartz, 2016). These links are highlighted in Appendix B.
As we combine different types of iterations and gradient estimators, we recover both known and new algorithms. Specifically, we obtain the following new features:
robustness to noise: we introduce mechanisms to deal with stochastic perturbations and make all these previous approaches robust to noise.
new variants: Whereas SVRG/SAGA were developed with the iterations (A) and MISO in the context of (B), we show that these gradient estimators are both compatible with (A) and (B), leading to new algorithms with similar guarantees.
Convergence Analysis and Robustness
We now present the convergence analysis for iterations (A) or (B). In Section 3.1, we present a generic convergence result. Then, in Section 3.2, we present specific results for the variance-reduction approaches in including strategies to make them robust to stochastic noise. Acceleration is discussed in the next section.
Key to our complexity results, the following proposition gives a first relation between the quantity , the surrogate , and the variance of the gradient estimates.
For either variant (A) or (B), when using the construction of from Sections 2.1 or 2.2, respectively, and assuming , we have for all ,
Proof We first consider the variant (A) and later show how to modify the convergence proofs to accommodate the variant (B).
where the first inequality comes from Lemma 24—it is in fact an equality when considering Algorithm (A)—and the second inequality simply uses the assumption , which yields . Finally, the last inequality uses a classical upper-bound for -smooth functions presented in Lemma 22. Then, after taking expectations,
where we have defined the following quantity
This relation can now be combined with (11) when , and we obtain (16). It is also easy to see that the proof also works with variant (B). The convergence analysis is identical, except that we take to be
and the same result follows. Then, without making further assumption on , we have the following general convergence result, which is a direct consequence of the averaging Lemma 30, inspired by Ghadimi and Lan (2012), and presented in Appendix A.3:
Under the same assumptions as in Proposition 1, we have for all , and either variant (A) or (B),
where . Then, by using the averaging strategy of Lemma 30, for any point (possibly equal to ), we have
Theorem 2 allows us to recover convergence rates for various algorithms. Note that the effect of the averaging strategy is to remove the factor in front of on the left part of (17), thus improving the convergence rate by a factor . Regarding the quantity , we have the following relations
For variant (A), ;
For variant (B), this quantity may be larger and we may simply say that for variant (B), where is a subgradient in . Note that if is chosen to be a minimizer of , then .
In the next section, we will focus on variance reduction mechanisms, which are able to improve the previous convergence rates by better exploiting the structure of the objective. By controlling the variance of the corresponding gradient estimators, we will apply Theorem 2 to obtain convergence rates. Before that, we remark that it is relatively straightforward to use this theorem to recover complexity results for proximal SGD, both for the usual variant (A) or the new one (B). Since these results are classical, we present them in Appendix C. As a sanity check, we note that we recover the optimal noise-dependency (see Nemirovski et al., 2009), both for strongly convex cases, or when .
2 Faster Convergence with Variance Reduction
Stochastic variance-reduced gradient descent algorithms rely on gradient estimates whose variance decreases as fast as the objective function value. Here, we provide a unified proof of convergence for our variants of SVRG, SAGA, and MISO, and we show how to make them robust to stochastic perturbations. Specifically, we consider the minimization of a finite sum of functions as in (3), but, as explained in Section 2, each observation of the gradient is corrupted by a random noise variable. The next proposition extends a proof for SVRG Xiao and Zhang (2014) to stochastic perturbations, and characterizes the variance of .
where the expectation is with respect to the gradient perturbation, and is the sampling distribution. As having the variance to be bounded across the domain of may be a strong assumption, even though classical, we also introduce the quantity
Consider problem (1) when is a finite sum of functions where each is convex and -smooth with . Then, the gradient estimates of the random-SVRG and MISO/SAGA/SDCA strategies defined in Section 2.3 satisfy
where , , and for all and , is equal to without noise—that is
and (with for random-SVRG).
Consider the same setting as Proposition 3. For either variant (A) or (B) with the random-SVRG or SAGA/SDCA/MISO gradient estimators defined in Section 2.3, when using the construction of from Sections 2.1 or 2.2, respectively, and assuming and is non-increasing with , we have for all ,
The proof of the previous proposition is given in Appendix D.2. From the Lyapunov function, we obtain a general convergence result for the variance-reduced stochastic algorithms.
Consider the same setting as Proposition 4, which applies to both variants (A) and (B). Then, by using the averaging strategy of Lemma 30 with any point ,
where . Note that we also have
The proof is given in Appendix D.3. From this generic convergence theorem, we now study particular cases. The first corollary studies the strongly-convex case with constant step size.
Consider the same setting as in Theorem 5, where is -strongly convex, , and . Then, for any point ,
with , , and . Note that and for Algorithm (A), we also have .
Consider the same setting as Theorem 5, where is -strongly convex, , and . Then, for all ,
The proof follows similar steps as the proof of Corollary 6, after noting that we have for all for this particular choice of step size. We are now in shape to study a converging algorithm.
Note that for variant (A).
Accelerated Stochastic Algorithms
We now consider the following iteration, involving an extrapolation sequence , which is a classical mechanism from accelerated first-order algorithms Beck and Teboulle (2009); Nesterov (2013). Given a sequence of step-sizes with for all , and some parameter , we consider the sequences and that satisfy
Consider then the stochastic estimate sequence for
and is in by definition of the proximal operator. As in Section 2, asymptotically becomes a lower bound on since (11) remains satisfied. This time, the iterate does not minimize , and we denote by instead its minimizer, allowing us to write in the canonical form
The first lemma highlights classical relations between the iterates , and the minimizers of the estimate sequences , which also appears in (Nesterov, 2004, p. 78) for constant step sizes . The proof is given in Appendix D.5.
The sequences and produced by Algorithm (C) satisfy for all , with ,
Then, the next lemma is key to prove the convergence of Algorithm (C). Its proof is given in Appendix D.8.
Assuming and are given by Algorithm (C). Then, for all ,
Finally, we obtain the following convergence result.
Under the assumptions of Lemma 10, we have for all ,
where, as before, .
Proof First, the minimizer of the quadratic surrogate may be written as
Then, we characterize the quantity :
By Lemma 10, we can show that the last term is equal to zero, and we are left with
where we used the fact that and .
It remains to choose and to initialize the induction at and we conclude that
which gives us (30) when noticing that .
Next, we specialize the theorem to various practical cases. For the corollaries below, we assume the variances to be upper bounded by .
Assume that is -strongly convex, and choose and with Algorithm (C). Then,
We now show that with decreasing step sizes, we obtain an algorithm with optimal complexity similar to (Ghadimi and Lan, 2013).
The proof is provided in Appendix D.9. We note that despite the “optimal” theoretical complexity, we have observed that Algorithm (C) with the parameters of Corollaries 13 and 14 could be relatively unstable, as shown in Section 5, due to the large radius of the noise region. When is small, such a quantity may be indeed arbitrarily larger than . Instead, we have found a minibatch strategy to be more effective in practice. When using a minibatch of size , the theoretical complexity becomes the same as SGD, given in Corollary 32, but the algorithm enjoys the benefits of easy parallelization.
Assume that is convex. Consider a step-size and run one iteration of Algorithm (A) with a stochastic gradient estimate. Use the resulting point to initialize Algorithm (C) still with constant step size , and choose . Then,
If in addition we choose , then
The proof is given in Appendix D.10. These convergence results are relatively similar to those obtained in Ghadimi and Lan (2013) for a different algorithm and is optimal for convex functions.
2 An Accelerated Algorithm with Variance Reduction
In this section, we show how to combine the previous methodology with variance reduction, and introduce Algorithm 4 based on random-SVRG. Then, we present the convergence analysis, which requires controlling the variance of the estimator in a similar manner to Allen-Zhu (2017), as stated in the next proposition. Note that the estimator does not require storing the seed of the random perturbations, unlike in the previous section.
Consider problem (1) when is a finite sum of functions where each is -smooth with and is -strongly convex. Then, the variance of defined in Algorithm 4 satisfies
The proof is given in Appendix D.11. Then, we extend Lemma 11 that was used in the previous analysis to the variance-reduction setting.
Consider the iterates provided by Algorithm 4 and call . Then,
The proof of this lemma is given in Appendix D.12. With this lemma in hand, we may now state our main convergence result.
Consider the iterates provided by Algorithm 4 and assume that the step sizes satisfy for all . Then,
Proof Following similar steps as in the proof of Theorem 12, we have
and we obtain (33). We may now derive convergence rates of our accelerated SVRG algorithm under various settings. The proofs of the following corollaries, when not straightforward, are given in the appendix. The first corollary simply uses Lemma 27.
With and , the iterates produced by Algorithm 4 satisfy
if ,
The proof is given in Appendix D.13. Next, we study the case when .
Experiments
In this section, we evaluate numerically the approaches introduced in the previous sections.
The scalar is a regularization parameter that acts as a lower bound on the strong convexity constant of the problem. We consider the parameters in our problems, which is of the order of the smallest values that one would try when doing a parameter search, e.g., by cross-validation. For instance, this is empirically observed for the dataset cifar-ckn described below, where a test set is available, allowing us to check that the “optimal” regularization parameter leading to the lowest generalization error is indeed of this order. We also report an experiment with in order to study the effect of the problem conditioning on the method’s performance.
Following Bietti and Mairal (2017); Zheng and Kwok (2018), we consider DropOut perturbations (Srivastava et al., 2014) to illustrate the robustness to noise of the algorithms. DropOut consists of randomly setting to zero each entry of a data point with probability , leading to the optimization problem
where is a binary vector in with i.i.d. Bernoulli entries, and denotes the elementwise multiplication between two vectors. We consider two DropOut regimes, with in , representing small and medium perturbations, respectively.
We consider the following three datasets coming from different scientific fields
alpha is from the Pascal Large Scale Learning Challenge websitehttp://largescale.ml.tu-berlin.de/ and contains points in dimension .
gene consists of gene expression data and the binary labels characterize two different types of breast cancer. This is a small dataset with and .
ckn-cifar is an image classification task where each image from the CIFAR-10 datasethttps://www.cs.toronto.edu/~kriz/cifar.html is represented by using a two-layer unsupervised convolutional neural network (Mairal, 2016). Since CIFAR-10 originally contains 10 different classes, we consider the binary classification task consisting of predicting the class 1 vs. other classes. The dataset contains images and the dimension of the representation is .
2 Evaluation of Algorithms without Perturbations
From these experiments, we obtain the following conclusions:
Acceleration for SVRG is effective on the datasets gene and ckn-cifar except on alpha, where all SVRG-like methods perform already well. This may be due to strong convexity hidden in alpha leading to a regime where acceleration does not occur—that is, when the complexity is , which is independent of the condition number. Note that this algorithm is now implemented in the open-source Cyanure toolbox Mairal (2019)http://julien.mairal.org/cyanure/.
Acceleration is more effective when the problem is badly conditioned. When , acceleration brings several orders of magnitude improvement in complexity.
Accelerated SGD is unstable with the squared hinge loss. During the initial phase with constant step size , the expected primal gap is in a region of radius , which is potentially huge, causing large gradients and instabilities.
Accelerated minibatch SGD performs best among the SGD methods and is competitive with SVRG in the low precision regime. The performance of Adam on these datasets is inconsistent; it performs best among SGD methods on alpha, but is significantly worse on ckn-cifar. Note also that AC-SA performs in general similarly to acc-SGD-d.
3 Evaluation of Algorithms with Perturbations
We now consider the same setting as in the previous section, but we add DropOut perturbations with rate in . As predicted by theory, all approaches with constant step size do not converge. Therefore, we only report the results for decreasing step sizes in Figures 4, 5, and 6. We evaluate the loss function every data passes and we estimate the expectation (36) by drawing random perturbations per data point, resulting in samples. The optimal value is estimated by letting the methods run for epochs and selecting the best point found as a proxy of .
The conclusions of these experiments are the following:
accelerated minibatch SGD performs the best among SGD approaches in general except on alpha where Adam performs best.
accelerated SVRG performs better than SVRG in general, or they achieve the same performance. As in the deterministic case, the gains are typically more important in ill-conditioned cases.
accelerated SVRG performs better than SGD approaches in the low perturbation regime and only on the alpha dataset when . Otherwise, the methods perform similarly.
Discussion
Our work is based on stochastic variants of estimate sequences introduced by Nesterov (1983, 2004). The framework leads naturally to many algorithms with relatively generic proofs of convergence, where convergence is proven at the same time as the algorithm’s design. With iterate averaging techniques inspired by Ghadimi and Lan (2013), we show that a large class of variance-reduction stochastic optimization methods can be made robust to stochastic perturbations. Estimate sequences also naturally lead to several accelerated algorithms, some of them we did not present in this paper. For instance, it is possible to show that replacing in (29) the lower bound by itself—in a similar way as we proceeded to obtain iteration (B) from iteration (A)—also leads to an accelerated algorithm with similar guarantees as (C).
Possibilities offered by estimate sequences are large, but our framework also admits a few limitations, paving the way for future work. In particular, our results are currently limited to Euclidean metrics—meaning that our convergence rates typically depend on quantities involving the Euclidean norm (e.g., strong convexity or -smooth inequalities), and one may expect extensions of our work to other metrics such as Bregman distances. Estimate sequences admit indeed known extensions to such metrics, and can also deal with higher-order smoothness assumptions than Lipschitz continuity of the gradient (Baes, 2009)—e.g., cubic regularization (Nesterov and Polyak, 2006). We leave such directions for the future.
Another limitation we encountered was the inability to propose robust accelerated variants of SAGA, MISO, or SDCA based on our stochastic estimate sequences framework. To address this problem, after the first version of this manuscript was made publicly available, we investigated in (Kulunchakov and Mairal, 2019b) a significantly different approach based on the Catalyst method (Lin et al., 2018), allowing us to accelerate stochastic first-order methods in a generic fashion, at the price of a logarithmic factor in the optimal complexity—in other words, we were able to obtain for SAGA, MISO, and SDCA a complexity close to (5) up to a logarithmic factor in the condition number . We believe that estimate sequences may be useful to obtain the optimal complexity without this logarithmic term, but the construction would be non-trivial and would rely on a different lower bound than the one we used in Section 4.
This work was supported by the ERC grant SOLARIS (number 714381) and by ANR 3IA MIAI@Grenoble Alpes, (ANR-19-P3IA-0003). The authors would like to thank Anatoli Juditsky and the anonymous reviewers for interesting discussions that greatly improved the quality of this manuscript.
A Useful Mathematical Results
The next three lemmas are classical upper and lower bounds for smooth or strongly convex functions Nesterov (2004).
and again according to Theorem 2.1.5 of Nesterov (2004),
A.2 Useful Results to Select Step Sizes
In this section, we present basic mathematical results regarding the choice of step sizes. The proofs of the first two lemmas are trivial by induction.
(constant). Then ;
. Then, ;
. Then, ;
Consider a sequence of weights in . Then,
Consider the same quantities defined in the previous lemma and consider the sequence with , and assume the relation . Then, for all ,
when , then .
when , .
Proof First, we have for all , such that , which leads then to . Besides, and thus . Then, and
which is sufficient to obtain (38). Then, the fact that leads to is trivial, and the fact that yields can be shown by induction. Indeed, the relation is true for and then, assuming the relation is true for , we have for ,
which leads to .
Consider the same quantities defined in Lemma 27 and consider the sequence with , and assume the relation . Then, for all ,
Besides, when , then .
Proof see Lemma 2.2.4 of Nesterov (2004).
A.3 Averaging Strategies
Next, we show a generic convergence result and an appropriate averaging strategy given a recursive relation between quantities acting as Lyapunov function.
Assume that there is a sequence generated by an algorithm that minimizes a convex function , and that there exist non-negative sequences , in , and a scalar such that for all ,
where the expectation is taken with respect to any random parameter used by the algorithm. Then,
For any point , consider the averaging sequence ,
Uniform averaging strategy.
Assume that and consider the average sequence . Then,
Proof Given that , we obtain (39) by simply unrolling the recursion. To analyze the effect of the averaging strategies, divide now (39) by :
Sum from to and notice that we have a telescopic sum:
By exploiting the relation (37), we may then use Jensen’s inequality and we obtain (41).
Consider now the specific case , which yields . Multiply then Eq. (43) by and use Jensen’s inequality; we obtain Eq. (42).
B Relation Between Iteration (B) and MISO/SDCA
In this section, we derive explicit links between the proximal MISO algorithm Lin et al. (2015), a primal version of SDCA Shalev-Shwartz (2016), and iteration (B) when used with the gradient estimator (15) without stochastic perturbations. Under the big data condition , consider indeed , constant step-sizes , , and a uniform sampling distribution ; then, we obtain the following algorithm
with . Then, since , it is easy to show that in fact for all . This is then exactly the proximal MISO algorithm (see Bietti and Mairal, 2017). For the relation between primal variants of SDCA and MISO, see page 4 and Equation (3) of Bietti and Mairal (2017).
C Recovering Classical Results for Proximal SGD
In this section, we present several corollaries of Theorem 2 to recover classical results for proximal variants of the stochastic gradient descent method. Throughout the section, we assume that the gradient estimates have variance bounded by :
Convergence results for the deterministic case can be also recovered naturally from the corollaries. We start by applying Theorem 2 with a constant step-size strategy , which shows convergence to a noise-dominated region of radius . In all the corollaries below, we use the notation from Theorem 2.
Assume that is -strongly convex, choose and with Algorithm (A) or (B). Then, for any point ,
when using the averaging strategy from Theorem 2. Note that for all with equality for Algorithm (A).
Next, we show how to obtain converging algorithms by using decreasing step sizes.
Note that for Algorithm (A).
where the second inequality uses the fact that , and then we use Lemmas 26 and 27. The term on the right is of order whereas the term on the left becomes of the same order or smaller whenever . This leads to the desired iteration complexity. We may now study the case , first with a constant step size. The next corollary consists of simply applying the uniform averaging strategy of Lemma 30 to Proposition 1, noting that for all if and .
Assume that is convex, choose a constant step size with Algorithm (A) or (B) with . Then,
where . Note that for Algorithm (A).
The noise dependency is now illustrated for Algorithm (A) in the next corollary, obtained in a finite horizon setting.
Consider the same setting as in the previous corollary. Assume that we have a budget of iterations for Algorithm (A). Choose a constant step size
Then, with and when using the averaging strategy from Corollary 33,
This corollary is obtained by optimizing the right side of (46) with respect to under the constraint . Considering both cases and , it is easy to check that we have (47) in all cases. Whereas this last result is not a practical one since the step size depends on unknown quantities, it shows that our analysis is nevertheless able to recover the optimal noise-dependency in , (see Nemirovski et al., 2009).
D Proofs of the Main Results
We have now two possibilities to control the quantity related to . First, we may simply upper bound it as follows
Then, since minimizes , we have and thus is a subgradient in . By using as well the convexity inequality , we have
Then, we may combine (50) with (48) and use (49) to obtain (22).
D.2 Proof of Proposition 4
Proof To make the notation more compact, we call
Then, according to Proposition 3, we have
Then, we note that both for the SVRG and SAGA/MISO/SDCA strategies, we have (with for SVRG),
By taking a weighted average, this yields
where the second inequality comes from Lemma 25 and the last one uses similar arguments as in the proof of Proposition 3. Then, we add a quantity on both sides of the relation (51) with some that we will specify later:
and then choose , which yields
Remember that , notice that the sequences and are non-increasing and note that for all . Then,
which immediately yields (23) with the appropriate definition of , and by noting that .
D.3 Proof of Theorem 5
where the first inequality uses Lemma 25, and the second one uses the definition of , whereas the last one uses (49).
D.4 Proof of Corollary 6
Proof First, notice that and that . Then, we apply Theorem 5 and obtain
D.5 Proof of Corollary 8
Then, after taking the expectation with respect to the output of the first stage,
Denote now by the largest index such that and thus . Then, according to Lemma 26, for ,
D.6 Proof of Corollary 9
Then, we consider the main run of the algorithm, and apply Theorem 5, replacing by . With the chosen setup, we have and since , we have , such that (24) becomes
Note that Lemma 26 gives us that for and since according to Lemma 27,
It remains to optimize it over to get the left side of (28).
D.7 Proof of Lemma 10
Proof Let us assume that the relation holds and let us show that it also holds for . Since the estimate sequences are quadratic functions, we have
Then note that and thus, , and
Then, we note that and we are left with
which allows us to conclude that since the relation holds trivially for .
D.8 Proof of Lemma 11
D.9 Proof of Corollary 14
where we use Lemmas 26 and 27. This leads to the desired iteration complexity.
D.10 Proof of Corollary 15
Proof Let us call the point obtained by running on step of iteration (A), which according to Theorem 2 satisfies, with ,
Then, we note that according to Lemma 29, we have
and we apply Theorem 12 to obtain the relation
Optimizing with respect to under the constraint gives (32).
D.11 Proof of Proposition 16
D.12 Proof of Lemma 17
Proof We can show that Lemma 11 still holds and thus,
D.13 Proof of Corollary 20
With the choice of parameters, we have and . We may then apply Theorem 18 where the value of is given by Lemma 26. This yields for ,
D.14 Proof of Corollary 21
Then, we note that such that for , where is the index such that , which gives us . For , we are in a constant step size regime, and we may then use Lemma 29 to obtain
Then, noticing that , we have , and we conclude that
Then, it remains to optimize with respect to , under the constraint , which provides (35).