Fast Stochastic Bregman Gradient Methods: Sharp Analysis and Variance Reduction
Radu-Alexandru Dragomir, Mathieu Even, Hadrien Hendrikx
Introduction
We are interested in solving the minimization problem
Beyond simply adapting the step size, a powerful generalization of SGD consists in refining the geometry and performing instead Bregman gradient (a.k.a mirror) steps as
where the Euclidean distance has been replaced by the Bregman divergence with respect to a reference function , which writes:
for all . We make the following blanket assumptions on throughout the article, which guarantee well-posedness of the update (2).
has a unique solution, which lies in .
The standard SGD algorithm corresponds to the case where . However, a different choice of might better fit the geometry of the set and the curvature of the function, allowing the algorithm to take larger steps in directions where the objective gradient changes slowly. This choice is guided by the notion of relative smoothness and strong convexity, introduced in Bauschke et al. (2017); Lu et al. (2018). Instead of the squared Euclidean norm for standard smoothness, relative regularity is measured with respect to the reference function .
The function is said to be -relatively smooth and -relatively strongly convex with respect to if it is differentiable and for all ,
where is defined similarly to (3). Note that if , the left-hand side inequality reduces to assuming convexity of . Similarly, if , then , and the usual notions of smoothness and strong convexity are recovered. If both functions are two times differentiable, Equation (4) can be turned into an equivalent condition on the Hessians: . Throughout the article, we will generally write and to insist on the relative aspect.
Writing the optimality conditions for the minimization problem of Equation (2), we obtain the following equivalent iteration, which is in the alternative Mirror Descent form (Nemirovsky and Yudin, 1983):
Although these updates have a closed-form solution for many choices of the reference function , they may be harder to perform than standard gradient steps, since they require solving the subproblem defined in (2). Yet, this may be worth doing in some cases to reduce the overall iteration complexity, if the resulting majorization in (4) is much tighter than with the Euclidean distance. Let us list some applications of relative regularity:
Problems with unbounded curvature. Some problems have singularities at some boundary points in where the Hessian grows arbitrarily large. In this situation, smoothness with respect to the Euclidean norm does not hold globally, and standard gradient methods become inefficient as they necessit excessively small step sizes or costly line search procedures. A typical example arises in inverse problems with Poisson noise, which are used in particular for image deblurring (Bertero et al., 2009) or tomographic reconstruction (Kak and Slaney, 2001). In this case, the objective function involves the Kullback-Leibler divergence, which becomes singular as one of its arguments approaches 0. However, by choosing the reference function , one can show that relative smoothness holds globally Bauschke et al. (2017). For more examples, see Lu et al. (2018); Bolte et al. (2018); Nesterov (2019); Mishchenko (2019).
Distributed optimization. When approximates in the sense of (4), Bregman methods can be used to speed up convergence by performing non-uniform preconditioning (Shamir et al., 2014; Reddi et al., 2016; Yuan and Li, 2020; Hendrikx et al., 2020b). Typically, is chosen as the objective function on a smaller portion of the dataset of size (e.g., the dataset of the server), which improves the conditioning by a factor of up to compared to Euclidean methods, while naturally taking advantage of an eventually small effective dimension of the dataset (Even and Massoulié, 2021). In this case, forming the gradient requires communication with the workers (where most of the data is held), and is thus expensive. Although the updates may not have a simple expression, the inner problem of Equation (2) can be solved locally at the server without additional communications. Therefore, Bregman methods allow to drastically reduce the communication cost by reducing the overall iteration complexity.
Despite these applications, there are still many gaps in our understanding of convergence guarantees of Bregman gradient methods. In particular, most existing results focus on the deterministic case , or do not leverage the relative regularity assumptions.
In this work, we develop convergence theorems for Bregman SGD, for which the variance depends on the magnitude of the stochastic gradients at the optimum, and which can thus be much smaller than the one used in Hanzely et al. (2018), in particular for overparametrized models (which verify the interpolation condition that all stochastic gradients are equal to at the optimum). Our analysis relies on the Bregman generalization of a few technical lemmas such as the celebrated inequality (Lemma 2) or the co-coercivity inequality (Lemma 3), which we believe to be of independent interest.
Then, we show that variance-reduction techniques, which are widely used to accelerate traditional Euclidean stochastic methods when the objective has a finite-sum structure (Schmidt et al., 2013; Johnson and Zhang, 2013; Defazio et al., 2014; Allen-Zhu, 2017), can be adapted to the Bregman setting. Although this generally requires stronger regularity assumptions (such as global smoothness of and Lipschitz continuity of ), we show that the asymptotical rate of convergence solely depends on relative regularity constants. The same type of results (asymptotic speedup under additional smoothness assumptions) is observed when applying Nesterov-type acceleration to Bregman gradient methods (Hanzely et al., 2018; Dragomir et al., 2019; Hendrikx et al., 2020b). We provide a summary of the rates proven in this paper in the appendix.
We start by discussing the related work in Section 2. Then, Section 3 presents the results for stochastic gradient descent, along with the main technical lemmas. Section 4 develops a Bregman version of the standard SAGA algorithm (Defazio et al., 2014). Finally, Section 5 illustrates the efficiency of the proposed methods on several applications, including Poisson inverse problems, tomographic reconstruction and distributed optimization.
Related work
The Bregman gradient method was first introduced as the Mirror Descent schemeNote that Mirror Descent and Bregman Gradient refer to the same algorithm, but that Mirror Descent is typically used when is non-smooth, or in the online optimization community, whereas Bregman Gradient is generally preferred when using the relative smoothness assumption. Yet, both names are valid and there are exceptions, for instance Hanzely and Richtárik (2018) use the Mirror Descent terminology although they assume relative smoothness. (Nemirovsky and Yudin, 1983; Beck and Teboulle, 2003) for minimizing convex nonsmooth functions, and enjoyed notable success in online learning Bubeck (2011). More recently, the introduction of relative smoothness (Bauschke et al., 2017; Lu et al., 2018; Bolte et al., 2018) has also brought interest in applying Bregman methods to differentiable objectives. This condition guides the choice of a well-suited reference function which can greatly improve efficiency over standard gradient descent. While the vanilla Bregman descent method yields the same convergence rate as the Euclidean counterpart, subsequent work has focused on obtaining better rates with acceleration schemes (Hanzely et al., 2018). However, lower bounds show that the rates for relatively smooth optimization cannot be accelerated in general (Dragomir et al., 2019), and that additional regularity assumptions are needed. Similar notions of relative regularity have also been investigated for non-differentiable functions, such as relative continuity (Lu, 2019; Antonakopoulos et al., 2019). Zhou et al. (2020) also study non-differentiable functions, but in the online setting and without relative continuity.
Stochastic optimization methods, and in particular SGD, are very efficient when the number of samples is high (Bottou, 2012) and are often referred to as “the workhorse of machine learning”. The problem with SGD is that, in general, it only converges to a neighbourhood of the optimum unless a diminishing step-size is used. Variance reduction can be used to counter this problem, and many variance-reduced methods have been developed, such as SAG (Schmidt et al., 2013), SDCA (Shalev-Shwartz and Zhang, 2013; Shalev-Shwartz, 2016), SVRG (Johnson and Zhang, 2013) or SAGA (Defazio et al., 2014).
Surprisingly, stochastic Bregman gradients algorithms have received less attention. Hanzely and Richtárik (2018); Gao et al. (2020); Hendrikx et al. (2020a) study Bregman coordinate descent methods, and Zhang and He (2018) study the non-convex non-smooth setting. Antonakopoulos et al. (2020) study stochastic algorithms for online optimization, under Riemann-Lipschitz continuity. In contrast, our work focuses on Bregman SGD for relatively-smooth objectives. Hanzely and Richtárik (2018) study the same setting and obtain comparable convergence rates, but with a much looser notion of variance, which we discuss more in details in the next section. This is problematic since their bound on the variance is thus proportional to the magnitude of the gradients along the trajectory, and may thus be very large when far from the optimum if is strongly convex. In contrast, our definition of variance leverages the stochastic gradients at the optimum, which allows us to obtain significant results without bounded gradients and in the interpolation regime (zero gradients at the optimum). In particular, our analysis can be seen as a Bregman generalization of the analysis from Gower et al. (2019). Davis et al. (2018) also analyze a similar setting, but again with more restrictive assumptions on the noise and boundedness of the gradients. Besides, to the best of our knowledge, variance reduction for Bregman stochastic methods was only studied in Shi et al. (2017) in the context of stochastic saddle-point optimization, but without leveraging relative regularity assumptions like we do in this work.
Bregman Stochastic Gradient Descent
We start by introducing a few technical lemmas, which are Bregman analogs to well-known Euclidean results, and which are at the heart of our analysis. All missing proofs can be found in Appendix A.
For , we have .
See, e.g., Bauschke and Borwein (1997, Thm 3.7.) for the proof. Using duality, we prove the following key lemma:
Let be such that , and similarly define and from and . Then, if , we obtain:
Lemma 2 can be adapted for any with . In the Euclidean case , we recover . We now generalize the cocoercivity of the gradients (Nesterov, 2003, Eq. 2.1.7) to the relatively smooth case:
If a convex function is relatively -smooth w.r.t to , then for any ,
2 Variance definition
for some .
The assumption that the stochastic gradients are actual gradients of stochastic functions which are themselves smooth with respect to is rather natural, as already discussed in the introduction. It is at the heart of variance reduction in the finite sum setting (though the sum does not need to be finite in the case of Assumption 2), and is in particular verified when solving (Empirical) Risk minimization problems.
Yet, it prevents the analysis from applying to coordinate descent methods for instance, in which , with . However, in this case, the extra structure can also be leveraged to obtain similar results (Hanzely and Richtárik, 2018; Hendrikx et al., 2020a; Gao et al., 2020).
We now compare our noise assumption with (Hanzely and Richtárik, 2018, Assumption 5.1.), which writes:
for , where is the stochastic gradient estimate and is the output of the (theoretical) Bregman gradient step taken with the true gradient, that is, . Thus, their condition can be written:
so that bounds at each step the distance (in the Bregman sense) between and , the point that would be obtained by the expected (deterministic) gradient update. To illustrate why our assumption is weaker, let us consider the case where is -strongly convex. In this setting, a sufficient condition for (6) to hold is that
while a sufficient condition for our variance definition to hold is (using that ):
3 Convergence results
We now prove the actual convergence theorems for Bregman SGD. To avoid notation clutter, we generally omit with respect to which variable expectations are taken when clear from the context.
If is -smooth and -strongly convex relative to with , and Assumptions 1 and 2 hold, then for , the iterates produced by Bregman stochastic gradient (2) satisfy
By using Lemma 4 from Appendix A, we obtain:
Using Lemma 2, the last term can be bounded as . We use Lemma 3 (Bregman co-coercivity) to write:
In the interpolation setting (when for all ), we have that . Theorem 1 thus proves linear convergence in this case. For instance, when solving objectives of the form (which has applications in optimal transport (Mishchenko, 2019)) or (which has application in deblurring or tomographic reconstruction), then the variance as defined in Hanzely and Richtárik (2018) may be unbounded, whereas the variance as we define it is equal to if there exists such that .
When is convex (), Theorem 1 can be adapted to obtain a decrease of the error up to a noise region.
Under the same assumptions as Theorem 1, if , then
Contrary to the Euclidean case, we do not obtain a guarantee on the average iterate in general. This is because the bound is on the average of instead of , and Bregman divergences are not necessarily convex in their second argument (except for the Euclidean distance and Kullback-Leibler divergence). Therefore, the final bound is obtained on , meaning that there is at least one such that this is true. Note that the nice properties regarding interpolation still hold in this setting.
We start from Lemma 4 and bound the in the same way as when , which yields:
Averaging over and dividing by leads to (13). ∎
The simplicity of the proof and the generality of our technical lemmas also allow us to provide convergence results when is not convex:
If is -smooth relatively to and Assumptions 1 and 2 hold, then for , the iterates produced by Bregman stochastic gradient (2) satisfy
Variance reduction
The difference with Section 3 is that we now assume that is a finite sum, which is required for variance reduction. We also assume that the minimizer belongs to , so that . The case where lies on the border of is more delicate, as might not be differentiable there (e.g., the log-barrier); this would require an involved technical analysis which we leave for future work.
For analyzing the Bregman-SAGA scheme, we first need to introduce, in addition to relative smoothness, an assumption on the regularity of .
Such structural assumptions appear to be essential for analyzing Bregman-type methods that use information provided by gradients of past iterates. The function models the fact that the Bregman divergence is not homogeneous nor invariant to translation in in general (except for the Euclidean case where it is equal to ). Note that such difficulties are also encountered for obtaining accelerated rates with inertial variants of Bregman descent, where similar assumptions are needed Hanzely et al. (2018). This seems unavoidable, as suggested by the lower bound in Dragomir et al. (2019).
Although the gain function is relatively abstract at this point, it plays a key role in defining the step-size, and convergence guarantees similar those of Euclidean SAGA can be obtained provided can be chosen small enough. We first state the general Theorem 4 (convergence proof for Algorithm 1), and then detail how can be bounded in several interesting cases.
For and step-sizes , define , and the potential as follows:
First note that by convexity of and of the , for all . Our goal in this section is to show that converges to at a given speed. Indeed, since , this implies (as in Section 3) that converges to at the same rate. To ease notations, we define
Assume that Algorithm 1 is run with a step size sequence satisfying for every , with decreasing in and such that for all :
Then, under Assumptions 1 and 3, the potential satisfies
In the convex case (), we obtain that
Similarly to BSGD, we apply Lemma 4 (Appendix A), which yields
Lemmas 1 and 2 yield , with
Using Assumption 3 together with Lemma 3, we obtain:
where we used the gain function for translation and rescaling the step size. Following Hofmann et al. (2015), we write:
Therefore, we can use the term to control the excess term from bounding . In the end, we obtain:
If we choose then the last term is positive and . If then we use the relative strong convexity of to obtain that the right hand side is proportional to , thus leading to a linear convergence rate. Otherwise, we obtain a telescopic sum, leading to the rate of Equation (19). ∎
Note that the monotonicity of (through ) is a technical condition to ensure that the Lyapunov is non-increasing. Otherwise, could blow up even though is very close to , simply because shrinks. It could be replaced by the condition that does not vary too much (not more than a factor ), which achieves the same goal. The rest of this section is devoted to shong that non-trivial can be chosen in many cases, thus leading to strong convergence guarantees. In particular, the rate recovers that of Euclidean SAGA in case is a quadratic form.
If is constant ( is quadratic), then Assumption 3 is satisfied with , so that
where is the relative condition number.
If is not quadratic, but and are regular with respect to a norm, then strong guarantees can also be obtained:
If is -smooth and is -strongly convex with respect to a norm , then the stepsize can be chosen constant as , and
Note that following Kakade et al. (2009), having be -smooth is equivalent to having be strongly-convex.
The proof follows the same step as the proof of Theorem 4, but the translation invariance and homogeneity are obtained by comparison with the norm, instead of using Assumption 3. Thus, we pay a factor when bounding by the norm, and a factor when bounding the norm by . It is also possible to directly use Assumption 3, but in this case the factor is replaced by , which is an upper bound on , and may thus be slightly looser. ∎
Note that Corollary 1 is actually a consequence of Corollary 2, since and if is a norm itself. Otherwise, the constant is chosen in a rather pessimistic way, and depends on the difference between directly bounding by (in which case we pay a factor ), or going through a norm in the middle (in which we case we pay ).
As stated at the beginning of this section, one of the problems is that Bregman divergences lack translation invariance and homogeneity. However, as the algorithm converges, one can expect these conditions to hold locally, as is approximated by for small enough , and close enough to . This is indeed what happens under enough regularity assumptions on .
If is -smooth and the Hessian is -smooth, then the gain function can be chosen as:
Note that, even if the regularity conditions of Proposition 1 do not hold globally (such as for problems with unbounded curvature), they are at least valid on every bounded subset of , as soon as is on . We now explicit a possible explicit choice for in this setting.
Assume that is -smooth, -strongly convex and that the Hessian is -smooth. Then, there exists an explicit constant such that if Algorithm 1 is run with a step size with decreasing and satisfying
where , or, more precisely,
The explicit expression for the constant is provided in Appendix B along with the proof. Although the result involves smoothness constants of which can be large in the relatively-smooth setting, this dependence disappears asymptotically. Hence, after some time , which we can roughly estimate using Equation (26), we obtain that . Thus, we reach the same kind of convergence rate as in the ideal quadratic case, which depends only on the relative condition number , but with more general functions , and thus possibly much better conditioning. Besides, the order of magnitude required for can be estimated during the optimization process using Equation (24).
2 Remarks on adaptivity
Assumption 3 highlights the fact that the key difficulty is purely geometric, and that in general we need to make up for the lack of translation invariance and homogeneity of Bregman divergences. Although Corollary 3 gives a criterion for that can be evaluated throughout training (since the constant is explicit), several approximations are required to obtain it, and it may be loose overall. Yet, for the theory to hold, it suffices to have small enough such that:
Experiments
In order to show the effectiveness of our method, we consider the two key settings mentioned in the introduction: problems with unbounded curvature (inverse problems with Poisson noise) and preconditioned distributed optimization. The first setting corresponds to the convex case (), whereas the second one corresponds to the relatively strongly convex case (). We observe that leveraging stochasticity (and, when needed, variance reduction) drastically improves the performance of Bregman methods in both cases. Additional details on the setting (such as the precise formulation of the objective or the relative smoothness constants) are given in Appendix D.
Figure 1(b) considers experiments on the tomographic reconstruction problem on the standard Shepp-Logan phantom (Kak and Slaney, 2001). Due to space limitations, the main text mainly describes the results, but the setting details can be found in Appendix D. The step-size given by theory was rather conservative in this case, so we increased it by a factor of for all Bregman algorithms (and even 10 for BGD). Figure 1(b) shows again that stochastic algorithms drastically outperform BGD. Yet, BSGD quickly reaches a plateau because of the noise. On the other hand, BSAGA enjoys variance reduction and fast convergence to the optimum. In this case, BSAGA is on par with MU, the state-of-the-art algorithm for this problem. This is because of the log barrier that allows relative smoothness to hold, but heavily slows down Bregman algorithms when coordinates are close to . Yet, these results are encouraging and one may hope for even faster convergence of BSAGA for tomographic reconstruction with a tighter reference function.
2 Statistically Preconditioned Distributed Optimization
In this section we consider the problem of solving a distributed optimization problem in which data is distributed among many workers. We closely follow the setting of Hendrikx et al. (2020a), and solve a logistic regression problem for the RCV1 dataset (Lewis et al., 2004). Function is taken as the same logistic regression objective as for the global objective , but on a much smaller dataset of size and with an added regularization . In this case, BGD corresponds to a widely used variant of DANE (Shamir et al., 2014), in which only the server performs the update. The stochastic updates in BSGD are obtained by subsampling a set of workers at each iteration, so that all the nodes do not have to participate in every iteration. Regularization is taken as , and there are nodes with samples each. A fixed learning rate is used, and the best one is selected selected among . BGD uses while SAGA and BSGD use . The x-axis represents the total number of communications (or number of passes over the dataset). Note that at each epoch, BGD communicates once with all workers (one round trip for each worker) whereas BSGD and BSAGA communicate times with one worker sampled uniformly at random each time. Therefore, BSAGA requires much less gradients from the workers to reach a given precision level, yet, it is at the cost of having to solve more local iterations.
Figure 1(c) first shows that BSAGA clearly outperforms BGD. BSGD on the other hand is as fast as BSAGA at the beginning of training, until it hits a variance region at which it saturates. This is consistent with the theory, and is similar to what can be observed in the Euclidean case. An interesting feature is that although the step-size has to be selected smaller than that of gradient descent (which is also the case in the Euclidean setting since is smoother than the least smooth ), choosing a constant step-size is enough to ensure convergence in this case, thus hinting at the fact that the analysis is rather conservative and that does not slow down the algorithm as much as we could have feared when far from the optimum. This is consistent with the results obtained by Hendrikx et al. (2020b) on acceleration.
Conclusion
Throughout the paper, we have (i) given tight convergence guarantees for Bregman SGD that allow to accurately describe its behaviour in the interpolation setting, and (ii) introduced and analyzed Bregman analogs to the standard variance-reduced algorithm SAGA. These convergence results require stronger assumptions on the objective than relative smoothness and strong convexity, but we show that fast rates can be obtained nonetheless when is nicely behaved (quadratic or Lipschitz Hessian). We also prove that these fast rates can be obtained for more general functions after a transient regime. Besides, we show experimentally that variance reduction greatly accelerates Bregman first-order methods for several key applications, including distributed optimization and tomographic reconstruction. In particular, there does not seem to be a slow transient regime in the applications considered, despite the lack of regularity of the objectives. This need for higher order regularity assumptions but great practical performance is consistent with the results obtained for acceleration in the Bregman setting. Better understanding the transient regime (in which can be high) and finding better reference functions for the tomographic reconstruction problem are two promising extensions of our work.
Acknowledgements
RD was supported by an AMX fellowship. RD would like to acknowledge support from the Air Force Office of Scientific Research, Air Force Material Command, USAF, under grant number FA9550-19-1-7026/19IOE033 and FA9550-18-1-0226. HH was funded in part by the French government under management of Agence Nationale de la Recherche as part of the “Investissements d’avenir” program, reference ANR-19-P3IA-0001(PRAIRIE 3IA Institute). HH also acknowledges support from the European Research Council (grant SEQUOIA 724063) and from the MSR-INRIA joint centre.
References
Appendix A Missing proofs for Bregman SGD (Section 3)
Let be such that , and similarly define and from and . Then, if , we obtain:
where the inequality step is obtained by the convexity of the Bregman divergence in its first argument. The final result is obtained by using duality back. ∎
Note that this descent lemma is an equality, and we can then use standard assumptions to bound the different terms.
We start by writing . Since is defined as and by Assumption 1, we have then and so:
since . This writes:
Combining Equations (29), (30) and (31), we obtain:
If a convex function is relatively -smooth w.r.t to , then for any ,
Let and consider the function defined by
for . is nonnegative, convex and relatively -smooth with respect to , since it has the same Hessian than . Therefore, for the relative smoothness inequality (4) implies that for every we have , that is
The right-hand side is a convex function of and is minimized for a point such that
and the result follows from the fact that . ∎
Appendix B Missing proofs for Variance Reduced methods (Section 4)
First, we use the following Bregman counterpart of a standard variance identity (Pfau, 2013), which we prove for completeness.
B.2 Proof of Theorem 4: generic Bregman-SAGA convergence bound
In this subsection, we give a more detailed proof of Theorem 4, and include derivations that had to be skipped in the main text because of space limitations.
Similarly to BSGD, we start by applying Lemma 4 (Appendix A), which yields
Lemmas 1 and 2 yield , with
Using the gain function with the fact that and Lemma 3, we have
Note that we can pull the term out of the expectation over the choice of since holds for all . For bounding , Lemma 5 with leads to
Recall that . Plugging the expressions for and into Equation (37), we obtain:
Following Hofmann et al. (2015), we write:
Indeed, with probability , and with probability . Therefore, we can use the term to control the excess term from bounding . In the end, using that is decreasing and so is increasing, we obtain the following recursion:
If we choose then the last term is positive and , so that using the relative strong convexity of leads to:
The result can then be obtained by chaining this inequality. If then we start back from Equation (B.2), use that and the same fact that to obtain:
The result is obtained by averaging over , since the right hand side yields a telescopic sum, leading to the rate of Equation (19). ∎
B.3 Lipschitz-Hessian setting
In this section, we add the additional assumption that is -smooth, and that the Hessian is -smooth in the operator norm, that is
If is -smooth and the Hessian is -smooth, then the gain function can be chosen as:
Using the fact that is is -smooth, is -strongly convex and hence , leading to
Assume that is -smooth and the Hessian is -smooth. Then, there exists an explicit constant such that if Algorithm 1 is run with a step size with decreasing in and satisfying
where , or, more precisely,
Using the gain function from Proposition 1, to satisfy the assumptions of Theorem 4 it is sufficient to choose such that
As the quantities involving are unknown, we provide an uper estimate. We can proceed in the following way, using the fact that, due to relative regularity, is also smooth with constant , and is strongly convex with constant :
And similarly, we can estimate the second term from
which leads to the following upper estimate of the RHS of Condition (46):
Now, with such choice of , Theorem 4 applies and the convergence rate (44) holds. It remains to prove the estimate for the convergence rate of towards 1. To this end, we show that it is upper bounded by since
Since we imposed a safeguard such that , the convergence rate of is bounded by
as stated by Corollary 2. Indeed, the assumptions are verified as is -smooth and is -strongly convex with . This worst-case estimate for , along with the majorization (47), gives the resulting rate for . ∎
Appendix C Bregman SVRG
We consider in this section the convergence guarantees of Bregman SVRG (BSVRG), which is presented in Algorithm 2. We consider the same variant as Hofmann et al. (2015), in which the full gradient used for variance reduction is recomputed at each step with a small probability , instead of after a fixed number of steps. We study this variant of BSVRG since it is very closely related to BSAGA. The main difference is that instead of updating when is picked, the algorithm chooses only one common to perform variance reduction, and this common is updated with probability at the end of each iteration. Thus, the convergence Theorem for Algorithm 2 closely follows Theorem 4.
Assume that Algorithm 2 is run with a step size sequence satisfying for every , with decreasing in and such that for all :
Then, under Assumptions 1 and 3, the potential satisfies
In the convex case (), we obtain that
As explained before Theorem 5, the only thing that changes between BSAGA and BSVRG is that a global is used instead of separate , and that it is update with probability at the end of each iteration (instead of updating at time for SAGA). Thus, all the derivations performed for BSAGA hold for BSVRG if we replace with for all . The only equation that needs to be adapted is Equation (41), since it relies on the way the are updated. Yet, in the case of BSVRG, it writes:
which is the same as for BSAGA but with instead of . Therefore, the conclusions are unchanged if we replace by whenever it appears in the bounds. Similar convergence guarantees hold when is updated every fixed number of steps , but the proof is substantially more involved since Equation (50) does not hold in such a simple form. ∎
Appendix D Additional details for the experiments
Due to space limitations, some details of the experimental setting are missing from the main text, and we thus present them in this section. Note that all the experiments presented in this paper run in less than an hour on a standard laptop (and usually much less). Our code is also available in supplementary material.
where is the true unknown signal. Inverse problems with Poisson noise arise in various signal processing applications such as astronomy or computerized tomography, see Bertero et al. (2009) and references therein.
As a motivating application of relative smoothness, Bauschke et al. (2017) prove that the Poisson objective is relatively smooth with respect to the log-barrier reference function
with constant . This constant can be quite conservative when is a sparse matrix, and so we prove a better estimate by leveraging this structure. For , we denote the support of the -th column of , that is
The Poisson objective function defined in (51) is relatively -smooth w.r.t the log-barrier for
Applying the Jensen inequality to the function and weights yields
where we used the fact that if , and otherwise. ∎
The relative Lipschitz constant provided by Proposition 2 can be considerably smaller than when is sparse, which is the case in practical applications.
For our numerical experiments, we compare full-batch Bregman gradient descent (BGD), Bregman stochastic gradient descent (BSGD), and the Bregman SAGA scheme described in Algorithm 1. We also implement the Multiplicative Update (MU), also known as Lucy-Richardson or Expectation-Maximization (Shepp and Vardi, 1982), which is the standard baseline for Poisson inverse problems.
Tomographic reconstruction problem.
Computerized tomography (Kak and Slaney, 2001) is the task of reconstructing an object from cross-sectional projections, with fundamental applications to medical imaging. We study a classical synthetic toy problem for this task: the Shepp-Logan phantom (Figure 3(a)). In this setting, the observation matrix corresponds to the discrete Radon transform, which is the cross-sectional projection of the original image along different projection angles (Figure 3(b)). That is, the objective writes
where correspond to the observation and projection matrix along the angle . For stochastic algorithms, the formulation (53) naturally yields a finite-sum structure: we thus take for .
We corrupt the sinogram with Poisson inverse noise, and apply our algorithms. We use projection angles, and the image dimension is . As the matrix has a sparse structure, we use the relative smoothness constant provided by Proposition 2 for a better estimate. The step-size given by theory was rather conservative in this case, so we increased it by a factor of for all Bregman algorithms (and even 10 for BGD).
D.2 Statistically Preconditioned Distributed Optimization
We detail in this section the setting that was used to obtain Figure 1(c). In particular, we use the following logistic regression objective with quadratic regularization, meaning that the function at node is:
where is the label associated with , the -th sample of node . We use a regularization parameter of , and the size of the local datasets is equal to . The local dataset is constructed by shuffling the RCV1 dataset, downloaded from LibSVM, and then assigning a fixed portion to each worker. Then, one node (without loss of generality, node 0) uses its local dataset to construct the preconditioning dataset, so that:
where . Tuning in order to obtain the fastest algorithms is hard in general, as detailed in Hendrikx et al. (2020b) (in which it is denoted as ). One strategy is to choose of order (in our case ), and then decrease it as long as BGD is stable. Our chosen value () is smaller than that of Hendrikx et al. (2020b) for this problem (), in which they used a rougher criterion with varying , and a larger step-size for BGD (which is the same as DANE). Besides, we see that SPAG is slightly unstable in our example, and increasing would help with that. In this case, theory gives that . Yet, when , this step-size usually has to be chosen a bit smaller. Therefore, we choose in our case for BGD and SPAG, and for BSGD and BGD. Note that there is always a constant factor between the maximum step-size for SAGA and that of BGD, and the difference could further be explained by the difference between the batch condition number (relative smoothness of ) versus the stochastic one (max relative smoothness of the ).
We compute the minimum error as the smallest error over all iterations for all algorithms. Then, we subtract it to the running error of an algorithm to get the suboptimality at each step. Following Hendrikx et al. (2020b), local problems are solved using a sparse implementation of SDCA (Shalev-Shwartz, 2016). We warm-start the local problems (initializing on the solution of the previous one), and perform 10 passes over the preconditioning dataset at each step, or until the norm of the gradient of the inner problem is small enough (). The number of inner passes could be reduced further, but then the algorithms started to converge slightly more slowly. This results in an overall computational overhead for the server, since BSAGA and BSGD require to solve many more inner problems, which are not so cheap to compute. Yet, this overhead only affects the server, and the iteration complexity is much lower, meaning that BSAGA is indeed very efficient to reduce the communication complexity of solving distributed empirical risk minimization problems.