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 hh, which writes:

for all x∈dom h,y∈int dom hx\in{\rm dom}\ h,y\in{\rm int}\ {\rm dom}\ h. We make the following blanket assumptions on hh throughout the article, which guarantee well-posedness of the update (2).

has a unique solution, which lies in int C{\rm int}\ C.

The standard SGD algorithm corresponds to the case where h=12∥⋅∥2h=\frac{1}{2}\|\cdot\|^{2}. However, a different choice of hh might better fit the geometry of the set CC 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 hh.

The function ff is said to be LL-relatively smooth and μ\mu-relatively strongly convex with respect to hh if it is differentiable and for all x,y∈int dom hx,y\in{\rm int}\ {\rm dom}\ h,

where DfD_{f} is defined similarly to (3). Note that if μ=0\mu=0, the left-hand side inequality reduces to assuming convexity of ff. Similarly, if h=12∥⋅∥2h=\frac{1}{2}\|\cdot\|^{2}, then Dh(x,y)=12∥x−y∥2D_{h}(x,y)=\frac{1}{2}\|x-y\|^{2}, 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: μ∇2h(x,y)⪯∇2f(x)⪯L∇2h(x)\mu\nabla^{2}h(x,y)\preceq\nabla^{2}f(x)\preceq L\nabla^{2}h(x). Throughout the article, we will generally write μf/h\mu_{f/h} and Lf/hL_{f/h} 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 hh, 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 CC 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 h(x)=−∑i=1dlog⁡(x(i)){h(x)=-\sum_{i=1}^{d}\log(x^{(i)})}, 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 hh approximates ff 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, hh is chosen as the objective function on a smaller portion of the dataset of size nprecn_{\rm prec} (e.g., the dataset of the server), which improves the conditioning by a factor of up to nprecn_{\rm prec} 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 gtg_{t} 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 gt=∇f(xt)g_{t}=\nabla f(x_{t}), 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 ∥a+b∥2≤2(∥a∥2+∥b∥2)\|a+b\|^{2}\leq 2(\|a\|^{2}+\|b\|^{2}) 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 hh and Lipschitz continuity of ∇2h∗\nabla^{2}h^{*}), 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 ff 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 hh 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 ff 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 x,y∈int dom hx,y\in{\rm int}\ {\rm dom}\ h, we have Dh(x,y)=Dh∗(∇h(y),∇h(x))D_{h}(x,y)=D_{h^{*}}(\nabla h(y),\nabla h(x)).

See, e.g., Bauschke and Borwein (1997, Thm 3.7.) for the proof. Using duality, we prove the following key lemma:

Let x+x^{+} be such that ∇h(x+)=∇h(x)−g\nabla h(x^{+})=\nabla h(x)-g, and similarly define x1+x^{+}_{1} and x2+x^{+}_{2} from g1g_{1} and g2g_{2}. Then, if g=g1+g22g=\frac{g_{1}+g_{2}}{2}, we obtain:

Lemma 2 can be adapted for any g=(1−α)g1+αg2g=(1-\alpha)g_{1}+\alpha g_{2} with α∈\alpha\in. In the Euclidean case h=∥⋅∥2h=\|\cdot\|^{2}, we recover ∥g1+g22∥2≤12(∥g1∥2+∥g2∥2)\|\frac{g_{1}+g_{2}}{2}\|^{2}\leq\frac{1}{2}\left(\|g_{1}\|^{2}+\|g_{2}\|^{2}\right). We now generalize the cocoercivity of the gradients (Nesterov, 2003, Eq. 2.1.7) to the relatively smooth case:

If a convex function ff is relatively LL-smooth w.r.t to hh, then for any η≤1L\eta\leq\frac{1}{L},

2 Variance definition

for some zt∈[∇h(xt)−2η∇fξt(x⋆),∇h(xt)]z_{t}\in[\nabla h(x_{t})-2\eta\nabla f_{\xi_{t}}(x^{\star}),\nabla h(x_{t})].

The assumption that the stochastic gradients are actual gradients of stochastic functions which are themselves smooth with respect to hh 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 gt=∇if(xt)g_{t}=\nabla_{i}f(x_{t}), with i∈{1,⋯ ,d}i\in\{1,\cdots,d\}. 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 t≥0t\geq 0, where gtg_{t} is the stochastic gradient estimate and xˉt+1\bar{x}_{t+1} is the output of the (theoretical) Bregman gradient step taken with the true gradient, that is, ∇h(xˉt+1)=∇h(xt)−ηt∇f(xt)\nabla h(\bar{x}_{t+1})=\nabla h(x_{t})-\eta_{t}\nabla f(x_{t}). Thus, their condition can be written:

so that σ2\sigma^{2} bounds at each step the distance (in the Bregman sense) between xt+1x_{t+1} and xˉt+1\bar{x}_{t+1}, 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 hh is μh\mu_{h}-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 ∇f(x⋆)=0\nabla f(x^{\star})=0):

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 ff is Lf/hL_{f/h}-smooth and μf/h\mu_{f/h}-strongly convex relative to hh with μf/h>0\mu_{f/h}>0, and Assumptions 1 and 2 hold, then for η≤1/(2Lf/h){\eta\leq 1/(2L_{f/h})}, 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 Dh(xt,xt+1)≤12[D1+D2]D_{h}(x_{t},x_{t+1})\leq\frac{1}{2}\left[D_{1}+D_{2}\right]. We use Lemma 3 (Bregman co-coercivity) to write:

In the interpolation setting (when ∇fξt(x⋆)=0\nabla f_{\xi_{t}}(x^{\star})=0 for all ξt\xi_{t}), we have that σ2=0\sigma^{2}=0. Theorem 1 thus proves linear convergence in this case. For instance, when solving objectives of the form DKL(Ax,b)D_{\rm KL}(Ax,b) (which has applications in optimal transport (Mishchenko, 2019)) or DKL(b,Ax)D_{\rm KL}(b,Ax) (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 zz such that Az=bAz=b.

When ff is convex (μf/h=0\mu_{f/h}=0), Theorem 1 can be adapted to obtain a 1/T1/T decrease of the error up to a noise region.

Under the same assumptions as Theorem 1, if μ=0\mu=0, 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 Df(x⋆,xt)D_{f}(x^{\star},x_{t}) instead of Df(xt,x⋆)D_{f}(x_{t},x^{\star}), 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 min⁡tDf(x⋆,xt)\min_{t}D_{f}(x^{\star},x_{t}), meaning that there is at least one xtx_{t} 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 Dh(xt,xt+1)D_{h}(x_{t},x_{t+1}) in the same way as when μ>0\mu>0, which yields:

Averaging over tt and dividing by η\eta leads to (13). ∎

The simplicity of the proof and the generality of our technical lemmas also allow us to provide convergence results when ff is not convex:

If ff is Lf/hL_{f/h}-smooth relatively to hh and Assumptions 1 and 2 hold, then for η≤1/(2Lf/h){\eta\leq 1/(2L_{f/h})}, the iterates produced by Bregman stochastic gradient (2) satisfy

Variance reduction

The difference with Section 3 is that we now assume that ff is a finite sum, which is required for variance reduction. We also assume that the minimizer x⋆x^{\star} belongs to int C{\rm int}\ C, so that ∇f(x⋆)=0\nabla f(x^{\star})=0. The case where x⋆x^{\star} lies on the border of CC is more delicate, as hh 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 DhD_{h}.

Such structural assumptions appear to be essential for analyzing Bregman-type methods that use information provided by gradients of past iterates. The function GG models the fact that the Bregman divergence Dh∗(x+v,x)D_{h^{*}}(x+v,x) is not homogeneous nor invariant to translation in xx in general (except for the Euclidean case where it is equal to ∥v∥2/2\|v\|^{2}/2). 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 GG 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 GG can be chosen small enough. We first state the general Theorem 4 (convergence proof for Algorithm 1), and then detail how GG can be bounded in several interesting cases.

For t≥0t\geq 0 and step-sizes ηt>0\eta_{t}>0, define Ht=1n∑i=1nDfi(ϕit,x⋆)H_{t}=\frac{1}{n}\sum_{i=1}^{n}D_{f_{i}}(\phi_{i}^{t},x^{\star}), and the potential ψt\psi_{t} as follows:

First note that by convexity of hh and of the fif_{i}, ψt≥0\psi_{t}\geq 0 for all tt. Our goal in this section is to show that {ψt}t≥0\{\psi_{t}\}_{t\geq 0} converges to at a given speed. Indeed, since Dh(x⋆,xt)≤ψtD_{h}(x^{\star},x_{t})\leq\psi_{t}, this implies (as in Section 3) that xtx_{t} converges to x⋆x^{\star} at the same rate. To ease notations, we define

Assume that Algorithm 1 is run with a step size sequence {ηt}t≥0\{\eta_{t}\}_{t\geq 0} satisfying ηt=1/(8Lf/hGt)\eta_{t}=1/(8L_{f/h}G_{t}) for every t≥0t\geq 0, with GtG_{t} decreasing in tt and such that for all j∈{1,⋯ ,n}j\in\{1,\cdots,n\}:

Then, under Assumptions 1 and 3, the potential ψt\psi_{t} satisfies

In the convex case (μf/h=0\mu_{f/h}=0), we obtain that

Similarly to BSGD, we apply Lemma 4 (Appendix A), which yields

Lemmas 1 and 2 yield Dh(xt,xt+1)≤(D1+D2)/2D_{h}(x_{t},x_{t+1})\leq(D_{1}+D_{2})/2, 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 −Ht/n-H_{t}/n term to control the excess term from bounding Dh(xt,xt+1)D_{h}(x_{t},x_{t+1}). In the end, we obtain:

If we choose ηt≤1/(8Lf/hGt)\eta_{t}\leq 1/(8L_{f/h}G_{t}) then the last term is positive and 1−4ηtLf/hGt≥1/21-4\eta_{t}L_{f/h}G_{t}\geq 1/2. If μf/h>0\mu_{f/h}>0 then we use the relative strong convexity of ff to obtain that the right hand side is proportional to ψt\psi_{t}, thus leading to a linear convergence rate. Otherwise, we obtain a telescopic sum, leading to the 1/T1/T rate of Equation (19). ∎

Note that the monotonicity of ηt\eta_{t} (through GtG_{t}) is a technical condition to ensure that the Lyapunov is non-increasing. Otherwise, ψt\psi_{t} could blow up even though xt+1x_{t+1} is very close to xtx_{t}, simply because ηt\eta_{t} shrinks. It could be replaced by the condition that ηt\eta_{t} does not vary too much (not more than a factor 1−O(1/n)1-O(1/n)), which achieves the same goal. The rest of this section is devoted to shong that non-trivial GtG_{t} can be chosen in many cases, thus leading to strong convergence guarantees. In particular, the rate recovers that of Euclidean SAGA in case hh is a quadratic form.

If ∇2h\nabla^{2}h is constant (hh is quadratic), then Assumption 3 is satisfied with G=1G=1, so that

where κf/h=Lf/h/μf/h\kappa_{f/h}=L_{f/h}/\mu_{f/h} is the relative condition number.

If hh is not quadratic, but f∗f^{*} and h∗h^{*} are regular with respect to a norm, then strong guarantees can also be obtained:

If h∗h^{*} is μh−1\mu_{h}^{-1}-smooth and f∗f^{*} is Lf−1L_{f}^{-1}-strongly convex with respect to a norm ∥⋅∥2\|\cdot\|^{2}, then the stepsize can be chosen constant as ηt=μh8Lf\eta_{t}=\frac{\mu_{h}}{8L_{f}}, and

Note that following Kakade et al. (2009), having h∗h^{*} be μh−1\mu_{h}^{-1}-smooth is equivalent to having hh be μh\mu_{h} 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 μh−1\mu_{h}^{-1} when bounding Dh∗D_{h^{*}} by the norm, and a factor LfL_{f} when bounding the norm by Df∗D_{f^{*}}. It is also possible to directly use Assumption 3, but in this case the LfL_{f} factor is replaced by Lf/hLhL_{f/h}L_{h}, which is an upper bound on LfL_{f}, and may thus be slightly looser. ∎

Note that Corollary 1 is actually a consequence of Corollary 2, since μh=1\mu_{h}=1 and Lf=Lf/hL_{f}=L_{f/h} if DhD_{h} is a norm itself. Otherwise, the constant GtG_{t} is chosen in a rather pessimistic way, and depends on the difference between directly bounding DfD_{f} by DhD_{h} (in which case we pay a factor Lf/hL_{f/h}), or going through a norm ∥⋅∥\|\cdot\| in the middle (in which we case we pay Lf/μh≥Lf/hL_{f}/\mu_{h}\geq L_{f/h}).

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 Dh∗(x+v,x)D_{h^{*}}(x+v,x) is approximated by 12∥v∥∇2h∗(x∗)2\frac{1}{2}\|v\|^{2}_{\nabla^{2}h^{*}(x^{*})} for small enough vv, and xx close enough to x∗x^{*}. This is indeed what happens under enough regularity assumptions on hh.

If hh is LhL_{h}-smooth and the Hessian ∇2h∗\nabla^{2}h^{*} is MM-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 int C{\rm int}\ C, as soon as hh is C3C^{3} on int C{\rm int}\ C. We now explicit a possible explicit choice for GtG_{t} in this setting.

Assume that hh is LhL_{h}-smooth, μh\mu_{h}-strongly convex and that the Hessian ∇2h∗\nabla^{2}h^{*} is MM-smooth. Then, there exists an explicit constant CC such that if Algorithm 1 is run with a step size ηt=1/(8Lf/hGt){\eta_{t}=1/(8L_{f/h}G_{t})} with GtG_{t} decreasing and satisfying

where lim⁡t→∞Gt=1\lim_{t\rightarrow\infty}G_{t}=1, or, more precisely,

The explicit expression for the constant CC is provided in Appendix B along with the proof. Although the result involves smoothness constants of hh which can be large in the relatively-smooth setting, this dependence disappears asymptotically. Hence, after some time tt, which we can roughly estimate using Equation (26), we obtain that Gt=O(1)G_{t}=O(1). Thus, we reach the same kind of convergence rate as in the ideal quadratic case, which depends only on the relative condition number κf/h\kappa_{f/h}, but with more general functions hh, and thus possibly much better conditioning. Besides, the order of magnitude required for GtG_{t} 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 GtG_{t} that can be evaluated throughout training (since the constant CC 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 ηt\eta_{t} 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 (μf/h=0\mu_{f/h}=0), whereas the second one corresponds to the relatively strongly convex case (μf/h>0\mu_{f/h}>0). 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 55 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 hh is taken as the same logistic regression objective as for the global objective ff, but on a much smaller dataset of size nprec=1000n_{\rm prec}=1000 and with an added regularization cprec=10−5c_{\rm prec}=10^{-5}. 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 λ=10−5\lambda=10^{-5}, and there are n=100n=100 nodes with N=1000N=1000 samples each. A fixed learning rate is used, and the best one is selected selected among [0.025,0.05,0.1,0.25,0.5,1.][0.025,0.05,0.1,0.25,0.5,1.]. BGD uses η=0.5\eta=0.5 while SAGA and BSGD use η=0.05\eta=0.05. 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 nn 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 ff is smoother than the least smooth fif_{i}), 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 GtG_{t} 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 hh is nicely behaved (quadratic or Lipschitz Hessian). We also prove that these fast rates can be obtained for more general functions hh 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 GtG_{t} can be high) and finding better reference functions hh 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 x+x^{+} be such that ∇h(x+)=∇h(x)−g\nabla h(x^{+})=\nabla h(x)-g, and similarly define x1+x^{+}_{1} and x2+x^{+}_{2} from g1g_{1} and g2g_{2}. Then, if g=g1+g22g=\frac{g_{1}+g_{2}}{2}, 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 Vt(x)=ηtgt⊤x+Dh(x,xt)V_{t}(x)=\eta_{t}g_{t}^{\top}x+D_{h}(x,x_{t}). Since xt+1x_{t+1} is defined as arg⁡min⁡xVt(x)\arg\min_{x}V_{t}(x) and by Assumption 1, we have xt+1∈int Cx_{t+1}\in{\rm int}\ C then ∇Vt(xt+1)=0\nabla V_{t}(x_{t+1})=0 and so:

since ∇2Vt=∇2h\nabla^{2}V_{t}=\nabla^{2}h. This writes:

Combining Equations (29), (30) and (31), we obtain:

If a convex function ff is relatively LL-smooth w.r.t to hh, then for any η≤1L\eta\leq\frac{1}{L},

Let y∈int dom hy\in{\rm int}\ {\rm dom}\ h and consider the function gyg_{y} defined by

for x∈Cx\in C. gyg_{y} is nonnegative, convex and relatively LL-smooth with respect to hh, since it has the same Hessian than ff. Therefore, for η∈(0,1L]\eta\in(0,\frac{1}{L}] the relative smoothness inequality (4) implies that for every u∈int dom hu\in{\rm int}\ {\rm dom}\ h we have Dgy(u,x)≤1ηDh(u,x)D_{g_{y}}(u,x)\leq\frac{1}{\eta}D_{h}(u,x), that is

The right-hand side Qy(u,x)Q_{y}(u,x) is a convex function of uu and is minimized for a point u+u^{+} such that

and the result follows from the fact that ∇gy(x)=∇f(x)−∇f(y)\nabla g_{y}(x)=\nabla f(x)-\nabla f(y). ∎

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 Dh(xt,xt+1)≤(D1+D2)/2D_{h}(x_{t},x_{t+1})\leq(D_{1}+D_{2})/2, with

Using the gain function with the fact that ηt≤1/Lf/h\eta_{t}\leq 1/L_{f/h} and Lemma 3, we have

Note that we can pull the GtG_{t} term out of the expectation over the choice of ii since GtG_{t} holds for all ii. For bounding D2D_{2}, Lemma 5 with V=−2ηt(∇fi(x⋆)−∇fi(ϕit))V=-2\eta_{t}(\nabla f_{i}(x^{\star})-\nabla f_{i}(\phi_{i}^{t})) leads to

Recall that Ht=1n∑j=1nDfj(ϕjt,x⋆)H_{t}=\frac{1}{n}\sum_{j=1}^{n}D_{f_{j}}(\phi_{j}^{t},x^{\star}). Plugging the expressions for D1D_{1} and D2D_{2} into Equation (37), we obtain:

Following Hofmann et al. (2015), we write:

Indeed, ϕjt+1=ϕjt\phi_{j}^{t+1}=\phi_{j}^{t} with probability 1−1/n1-1/n, and ϕit+1=xt\phi_{i}^{t+1}=x_{t} with probability 1/n1/n. Therefore, we can use the −Ht/n-H_{t}/n term to control the excess term from bounding Dh(xt,xt+1)D_{h}(x_{t},x_{t+1}). In the end, using that GtG_{t} is decreasing and so ηt\eta_{t} is increasing, we obtain the following recursion:

If we choose ηt≤1/(8Lf/hGt)\eta_{t}\leq 1/(8L_{f/h}G_{t}) then the last term is positive and 1−4ηtLf/hGt≥1/21-4\eta_{t}L_{f/h}G_{t}\geq 1/2, so that using the relative strong convexity of ff leads to:

The result can then be obtained by chaining this inequality. If μf/h=0\mu_{f/h}=0 then we start back from Equation (B.2), use that Df(x⋆,xt)≥0D_{f}(x^{\star},x_{t})\geq 0 and the same fact that 1−4ηtLf/hGt≥1/21-4\eta_{t}L_{f/h}G_{t}\geq 1/2 to obtain:

The result is obtained by averaging over TT, since the right hand side yields a telescopic sum, leading to the 1/T1/T rate of Equation (19). ∎

B.3 Lipschitz-Hessian setting

In this section, we add the additional assumption that hh is LhL_{h}-smooth, and that the Hessian ∇2h∗\nabla^{2}h^{*} is MM-smooth in the operator norm, that is

If hh is LhL_{h}-smooth and the Hessian ∇2h∗\nabla^{2}h^{*} is MM-smooth, then the gain function can be chosen as:

Using the fact that is hh is LhL_{h}-smooth, h∗h^{*} is 1/Lh1/L_{h}-strongly convex and hence ∥v∥2≤2LhDh∗(y+v,y)\|v\|^{2}\leq 2L_{h}D_{h^{*}}(y+v,y), leading to

Assume that hh is LhL_{h}-smooth and the Hessian ∇2h∗\nabla^{2}h^{*} is MM-smooth. Then, there exists an explicit constant CC such that if Algorithm 1 is run with a step size ηt=1/(8Lf/hGt)\eta_{t}=1/(8L_{f/h}G_{t}) with GtG_{t} decreasing in tt and satisfying

where lim⁡t→∞Gt=1\lim_{t\rightarrow\infty}G_{t}=1, or, more precisely,

Using the gain function from Proposition 1, to satisfy the assumptions of Theorem 4 it is sufficient to choose GtG_{t} such that

As the quantities involving ∇fit(x⋆)\nabla f_{i_{t}}(x^{\star}) are unknown, we provide an uper estimate. We can proceed in the following way, using the fact that, due to relative regularity, fif_{i} is also smooth with constant LhLf/hL_{h}L_{f/h}, and ff is strongly convex with constant μhμf/h\mu_{h}\mu_{f/h}:

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 GtG_{t}, Theorem 4 applies and the convergence rate (44) holds. It remains to prove the estimate for the convergence rate of GtG_{t} towards 1. To this end, we show that it is upper bounded by O(1+ψt1/2)\mathcal{O}(1+\psi_{t}^{1/2}) since

Since we imposed a safeguard such that Gt≥Lf/hLhμhG_{t}\geq\frac{L_{f/h}L_{h}}{\mu_{h}}, the convergence rate of ψt\psi_{t} is bounded by

as stated by Corollary 2. Indeed, the assumptions are verified as h∗h^{*} is 1/μh1/\mu_{h}-smooth and f∗f^{*} is 1/Lf1/L_{f}-strongly convex with Lf=LhLf/hL_{f}=L_{h}L_{f/h}. This worst-case estimate for ψt\psi_{t}, along with the majorization (47), gives the resulting rate for GtG_{t}. ∎

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 pp, 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 ϕit\phi_{i_{t}} when iti_{t} is picked, the algorithm chooses only one common ϕt\phi_{t} to perform variance reduction, and this common ϕt\phi_{t} is updated with probability pp 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 {ηt}t≥0\{\eta_{t}\}_{t\geq 0} satisfying ηt=1/(8Lf/hGt)\eta_{t}=1/(8L_{f/h}G_{t}) for every t≥0t\geq 0, with GtG_{t} decreasing in tt and such that for all j∈{1,⋯ ,n}j\in\{1,\cdots,n\}:

Then, under Assumptions 1 and 3, the potential ψt=Dh(x⋆,xt)+ηt2pDf(ϕt,x⋆)\psi_{t}=D_{h}(x^{\star},x_{t})+\frac{\eta_{t}}{2p}D_{f}(\phi_{t},x^{\star}) satisfies

In the convex case (μf/h=0\mu_{f/h}=0), we obtain that

As explained before Theorem 5, the only thing that changes between BSAGA and BSVRG is that a global ϕt\phi_{t} is used instead of separate ϕit\phi_{i}^{t}, and that it is update with probability pp at the end of each iteration (instead of updating ϕitt\phi_{i_{t}}^{t} at time tt for SAGA). Thus, all the derivations performed for BSAGA hold for BSVRG if we replace ϕit\phi_{i}^{t} with ϕt\phi_{t} for all ii. The only equation that needs to be adapted is Equation (41), since it relies on the way the ϕit\phi_{i}^{t} are updated. Yet, in the case of BSVRG, it writes:

which is the same as for BSAGA but with pp instead of 1/n1/n. Therefore, the conclusions are unchanged if we replace nn by 1/p1/p whenever it appears in the bounds. Similar convergence guarantees hold when ϕt\phi_{t} is updated every fixed number of steps TT, 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 x∗x^{*} 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 ff is relatively smooth with respect to the log-barrier reference function

with constant ∑j=1nbj/n\sum_{j=1}^{n}b_{j}/n. This constant can be quite conservative when AA is a sparse matrix, and so we prove a better estimate by leveraging this structure. For j∈{1…n}j\in\{1\dots n\}, we denote SjS_{j} the support of the jj-th column of AA, that is

The Poisson objective function defined in (51) is relatively LL-smooth w.r.t the log-barrier for

Applying the Jensen inequality to the function t↦t2t\mapsto t^{2} and weights wij=Aijxj/(Ai⊤x)w_{ij}=A_{ij}x_{j}/(A_{i}^{\top}x) yields

where we used the fact that wij∈w_{ij}\in if i∈Sji\in S_{j}, and wij=0w_{ij}=0 otherwise. ∎

The relative Lipschitz constant provided by Proposition 2 can be considerably smaller than ∑j=1nbj/n\sum_{j=1}^{n}b_{j}/n when AA 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 AA corresponds to the discrete Radon transform, which is the cross-sectional projection of the original image xx along different projection angles θ1,…,θn\theta_{1},\dots,\theta_{n} (Figure 3(b)). That is, the objective writes

where bθi,Aθib_{\theta_{i}},A_{\theta_{i}} correspond to the observation and projection matrix along the angle θi\theta_{i}. For stochastic algorithms, the formulation (53) naturally yields a finite-sum structure: we thus take fi(x)=DKL(bθi,Aθix)f_{i}(x)=D_{\rm KL}(b_{\theta_{i}},A_{\theta_{i}}x) for i=1…ni=1\dots n.

We corrupt the sinogram with Poisson inverse noise, and apply our algorithms. We use n=360n=360 projection angles, and the image dimension is d=1002d=100^{2}. As the matrix AA 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 55 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 ii is:

where yi,j∈{−1,1}y_{i,j}\in\{-1,1\} is the label associated with aj(i)a_{j}^{(i)}, the jj-th sample of node ii. We use a regularization parameter of λ=10−5\lambda=10^{-5}, and the size of the local datasets is equal to N=1000N=1000. 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 cprec=10−5c_{\rm prec}=10^{-5}. Tuning cprecc_{\rm prec} in order to obtain the fastest algorithms is hard in general, as detailed in Hendrikx et al. (2020b) (in which it is denoted as μ\mu). One strategy is to choose cprecc_{\rm prec} of order 1/nprec1/n_{\rm prec} (in our case nprec=N=1000n_{\rm prec}=N=1000), and then decrease it as long as BGD is stable. Our chosen value (10−510^{-5}) is smaller than that of Hendrikx et al. (2020b) for this problem (10−410^{-4}), in which they used a rougher cprec=c/nprecc_{\rm prec}=c/n_{\rm prec} criterion with varying nprecn_{\rm prec}, and a larger step-size η=1\eta=1 for BGD (which is the same as DANE). Besides, we see that SPAG is slightly unstable in our example, and increasing cprecc_{\rm prec} would help with that. In this case, theory gives that Lf/h≈1L_{f/h}\approx 1. Yet, when cprec≈λc_{\rm prec}\approx\lambda, this step-size usually has to be chosen a bit smaller. Therefore, we choose in our case η=0.5\eta=0.5 for BGD and SPAG, and η=0.05\eta=0.05 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 ff) versus the stochastic one (max relative smoothness of the fif_{i}).

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 (10−610^{-6}). 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.