Dual-Free Stochastic Decentralized Optimization with Variance Reduction
Hadrien Hendrikx, Francis Bach, Laurent Massoulié
Introduction
We consider the regularized empirical risk minimization problem distributed on a network of nodes. Each node has a local dataset of size , and the problem thus writes:
where typically corresponds to the loss function for training example of machine , and is the local regularization parameter for node . We assume that each function is convex and -smooth (see, e.g., Nesterov (2013)), and that each function is -smooth. Following Xiao et al. (2019), we denote the stochastic condition number of , and . Similarly, the batch condition number is . It always holds that , but generally , which explains the success of stochastic methods. Indeed, when all Hessians are orthogonal to one another which is rarely the case in practice, especially for a large dataset.
Single-machine stochastic methods. Problem (1) is generally solved using first-order methods. When is large, computing becomes very expensive, and batch methods require iterations, which takes time , to minimize up to precision . In this case, updates using the stochastic gradients , where is selected randomly, can be much more effective (Bottou, 2010). Yet, these updates are noisy and plain stochastic gradient descent (SGD) does not converge to the exact solution unless the step-size goes to zero, which slows down the algorithm. One way to fix this problem is to use variance-reduced methods such as SAG (Schmidt et al., 2017), SDCA (Shalev-Shwartz and Zhang, 2013), SVRG (Johnson and Zhang, 2013) or SAGA (Defazio et al., 2014). These methods require stochastic gradient evaluations, which can be much smaller than .
Decentralized methods. Decentralized adaptations of gradient descent in the smooth and strongly convex setting include EXTRA (Shi et al., 2015), DIGing (Nedic et al., 2017) or NIDS (Li et al., 2019). These algorithms have sparked a lot of interest, and the latest convergence results (Jakovetić, 2018; Xu et al., 2020; Li and Lin, 2020) show that EXTRA and NIDS require time to reach precision . A generic acceleration of EXTRA using Catalyst (Li and Lin, 2020) obtains the (batch) optimal rate up to log factors. Another line of work on decentralized algorithms is based on the penalty method (Li et al., 2018; Dvinskikh and Gasnikov, 2019). This consists in performing traditional optimization algorithms to problems augmented with a Laplacian penalty, and in particular enables the use of accelerated methods. Yet, these algorithms are sensitive to the value of the penalty parameter (when it is fixed), since it directly influences the solution they converge to. Another natural way to construct decentralized optimization algorithms is through dual approaches (Scaman et al., 2017; Uribe et al., 2020). Although the dual approach leads to algorithms that are optimal both in terms of number of communications and computations (Scaman et al., 2019; Hendrikx et al., 2020), they generally assume access to the proximal operator or the gradient of the Fenchel conjugate of the local functions, which is not very practical in general since it requires solving a subproblem at each step.
Decentralized stochastic optimization. Although both stochastic and decentralized methods have a rich litterature, there exist few decentralized stochastic methods with linear convergence rate. Although DSA (Mokhtari and Ribeiro, 2016), or GT-SAGA (Xin et al., 2020) propose such algorithms, they respectively take time and to reach precision . Therefore, they have significantly worse rates than decentralized batch methods when , and than single-machine stochastic methods when . Other methods have better rates of convergence (Shen et al., 2018; Hendrikx et al., 2019b) but they require evaluation of proximal operators, which may be expensive.
Our contributions. This work develops a dual approach similar to that of Hendrikx et al. (2019b), which leads to a decentralized stochastic algorithm with rate , where the factor comes from Chebyshev acceleration, such as used in Scaman et al. (2017). Yet, our algorithm, called DVR, can be formulated in the primal only, thus avoiding the need for computing expensive dual gradients or proximal operators. Besides, DVR is derived by applying Bregman coordinate descent to the dual of a specific augmented problem. Thus, its convergence follows from the convergence of block coordinate descent with Bregman gradients, which we prove as a side contribution. When executed on a single-machine, DVR is similar to dual-free SDCA (Shalev-Shwartz, 2016), and obtains similar rates. We believe that the same methodology could be applied to tackle non-convex problems, but we leave these extensions for future work.
We present in Section 2 the derivations leading to DVR, namely the dual approach and the dual-free trick. Then, Section 3 presents the actual algorithm along with a convergence theorem based on block Bregman coordinate descent (presented in Appendix A). Section 4 shows how to accelerate DVR, both in terms of network dependence (Chebyshev acceleration) and global iteration complexity (Catalyst acceleration (Lin et al., 2017)). Finally, experiments on real-world data are presented in Section 5, that demonstrate the effectiveness of DVR.
Algorithm Design
This section presents the key steps leading to DVR. We start by introducing a relevant dual formulation from Hendrikx et al. (2019b), then introduce the dual-free trick based on Lan and Zhou (2017), and finally show how this leads to DVR, an actual implementable decentralized stochastic algorithm, as a special case of the previous derivations.
Following the approach of Hendrikx et al. (2019b, 2020), we further split the term into , with the constraint that for all . This is equivalent to the previous approach performed on an augmented graph (Hendrikx et al., 2019b, 2020) in which each node is split into a star network with the regularization in the center and a local summand at each tip of the star. Thus, the equivalent augmented constrained problem that we consider writes:
2 Dual-free trick
Dual methods are based on variants of Problem (4), and apply different algorithms to it. In particular, Scaman et al. (2017); Uribe et al. (2020) use accelerated gradient descent (Nesterov, 2013), and Hendrikx et al. (2019a, b) use accelerated (proximal) coordinate descent (Lin et al., 2015b). Let denote the probability of performing a communication step and be the probability that node samples a gradient of , which are such that for all , . Applying a coordinate update with step-size to Problem (4) in the direction (associated with communication edges) writes:
where we denote the gradient in coordinates that correspond to (communication edges), and the gradient for coordinate (computation edge). Similarly, the standard coordinate update of a local computation edge can be written as:
where the minimization problem actually has a closed form solution. Yet, as mentioned before, solving Equation (6) requires computing the derivative of . In order to avoid this, a trick introduced by Lan and Zhou (2017) and later used in Wang and Xiao (2017) is to replace the Euclidean distance term by a well-chosen Bregman divergence. More specifically, the Bregman divergence of a convex function is defined as:
Bregman gradient algorithms typically enjoy the same kind of guarantees as standard gradient algorithms, but with slightly different notions of relative smoothness and strong convexity (Bauschke et al., 2017; Lu et al., 2018). Note that the Bregman divergence of the squared Euclidean norm is the squared Euclidean distance, and the standard gradient descent algorithm is recovered in that case. We now replace the Euclidean distance by the Bregman divergence induced by function , which is normalized to be -strongly convex since is -strongly convex. We introduce the constant such that for all computation edges . Using the definition of the Bregman divergence with respect to , we write:
In particular, if we know then it is possible to compute . Besides,
so we can also compute , and we can use it for the next step. Therefore, instead of computing a dual gradient at each step, we can simply choose for any , and iterate from this. Therefore, the Bregman coordinate update applied to Problem (4) in the block of direction with yields:
The iterations of (9) are called a dual-free algorithm because they are a transformation of the iterations from (6) that do not require computing anymore. This is obtained by replacing the Euclidean distance in (6) by the Bregman divergence of a function proportional to .
3 Distributed implementation
To show that is locally accessible to each node, we write:
Plugging Equation (11) into the updates of (9), we obtain the following updates:
for communication edges, and for the local update of the -th component of node :
Convergence Rate
We choose p_{\rm comm}=\big{(}1+\gamma\frac{m+\kappa_{s}}{\kappa_{\rm comm}}\big{)}^{-1}, and and as in Algorithm 1. Then, there exists that only depends on (initial conditions) such that for all , the error and the expected time required to reach precision are such that:
We have seen in Section 2 that DVR is obtained by applying Bregman coordinate descent on a well-chosen dual problem. Therefore, one of our key results consists in proving convergence rates for Bregman coordinate descent. In order to ease the reading of the paper, we present these results for a general setting in Appendix A, which is self-contained and which we believe to be of independent interest (beyond its application to decentralized optimization).
Then, Appendix B focuses on the application to decentralized optimization. In particular, we recall the Equivalence between DVR and Bregman coordinate descent applied to the dual problem of Equation (4), and show that its structure is suited to the application of coordinate descent. Indeed, no two virtual edges adjacent to the same node are updated at the same time with our sampling. Then, we evaluate the relative smoothness and strong convexity constants of the augmented problem, which allows to derive adequate values for parameters and . Finally, we choose in order to minimize the execution time of DVR. ∎
We would like to highlight the fact that the convergence theory of DVR decomposes nicely into several building blocks, and thus simple rates are obtained. This is not so usual for decentralized algorithms, for instance many follow-up papers were needed to obtain a tight convergence theory for EXTRA (Shi et al., 2015; Jakovetić, 2018; Xu et al., 2020; Li and Lin, 2020). We now discuss the convergence rate of DVR more in details.
Computation complexity. The computation complexity of DVR is the same computation complexity as locally running a stochastic algorithm with variance reduction at each node. This is not surprising since, as we argue later, DVR can be understood as a decentralized version of an algorithm that is closely related to dual-free SDCA (Shalev-Shwartz, 2016). Therefore, this improves the computation complexity of EXTRA from individual gradients to , which is the expected improvement for stochastic variance-reduced algorithm. In comparison, GT-SAGA (Xin et al., 2020), a recent decentralized stochastic algorithm, has a computation complexity of order , which is significantly worse than that of DVR, and generally worse than that of EXTRA as well.
Communication complexity. The communication complexity of DVR (i.e., the number of communications, so the communication time is retrieved by multiplying by ) is of order , and can be improved to using Chebyshev acceleration (see Section 4). Yet, this is in general worse than the communication complexity of EXTRA or NIDS, which can be interpreted as a partly accelerated communication complexity since the optimal dependence is (Scaman et al., 2019), and in the worst case (). Yet, stochastic updates are mainly intended to deal with cases in which the computation time dominates, and we show in the experimental section that DVR outperforms EXTRA and NIDS for a wide range of communication times (the computation complexity dominates roughly as long as . Finally, the communication complexity of DVR is significantly lower than that of DSA and GT-SAGA, the primal decentralized stochastic alternatives presented in Section 1.
Homogeneous parameter choice. In the homogeneous case ( for all ), choosing the optimal and described above leads to . Therefore, the communication update becomes , which is a gossip update with a standard step-size (independent of the optimization parameters). Similarly, , and so the step-size for the computation updates is independent of the network.
Links with SDCA. The single-machine version of Algorithm 1 (, ) is closely related to dual-free SDCA (Shalev-Shwartz, 2016). The difference is in the stochastic gradient used: DVR uses , where is a convex combination of for , whereas dual-free SDCA uses , which is a convex combination of for . Both algorithms obtain the same rates.
Local synchrony. Instead of using the synchronous communications of Algorithm 1, it is possible to update edges one at a time, as in Hendrikx et al. (2019b). This can be very efficient in heterogeneous settings (both in terms of computation and communication times) and similar convergence results can be obtained using the same framework, and we leave the details for future work.
Acceleration
We show in this section how to modify DVR to improve the convergence rate of Theorem 1.
Network acceleration. Algorithm 1 depends on , also called the mixing time of the graph, which can be as high as for a chain of length (Mohar, 1997). However, it is possible to improve this dependency to by using Chebyshev acceleration, as in Scaman et al. (2017). To do so, the first step is to choose a polynomial of degree and communicate with instead of . In terms of implementation, this comes down to performing communication rounds instead of one, but this makes the algorithm depend on the spectral gap of . Then, the important fact is that there is a polynomial of degree such that the spectral gap of is of order . Each communication step with only takes time , and so the communication term in Theorem 1 can be replaced by , thus leading to network acceleration. The polynomial can for example be chosen as a Chebyshev polynomial, and we refer the interested reader to Scaman et al. (2017) for more details. Finally, other polynomials yield even faster convergence when the graph topology is known (Berthier et al., 2020).
Catalyst acceleration. Catalyst (Lin et al., 2015a) is a generic framework that achieves acceleration by solving a sequence of subproblems. Because of space limitations, we only present the accelerated convergence rate without specifying the algorithm in the main text. Yet, only mild modifications to Algorithm 1 are required to obtain these rates, and the detailed derivations and proofs are presented in Appendix C.
Experiments
Figure 1 compares the performance of DVR with that of state-of-the-art primal algorithms such as EXTRA (Shi et al., 2015), NIDS (Li et al., 2019), GT-SAGA (Xin et al., 2020), and Catalyst accelerated versions of EXTRA (Li and Lin, 2020) and DVR. Suboptimality refers to , where node is chosen arbitrarily and is approximated by the minimal error over all iterations. Each subplot of Figure 1(a) shows the same run with different x axes. The left plot measures the complexity in terms of individual gradients () computed by each node whereas the center plot measures it in terms of communications (multiplications by ). All other plots are taken with respect to (simulated) time (i.e., computing takes time and multiplying by takes time ) with in order to report results that are independent of the computing cluster hardware and status. All parameters are chosen according to theory, except for the smoothness of the , which requires finding the smallest eigenvalue of a matrix. For this, we start with (which is a known upper bound), and decrease it while convergence is ensured, leading to . The parameters for accelerated EXTRA are chosen as in Li and Lin (2020) since tuning the number of inner iterations does not significantly improve the results (at the cost of a high tuning effort). For accelerated DVR, we set the number of inner iterations to (one pass over the local dataset). We use Chebyshev acceleration for (accelerated) DVR but not for (accelerated) EXTRA since it is actually slower, as predicted by the theory.
As expected from their theoretical iteration complexities, NIDS and EXTRA perform very similarly Li and Lin (2020), and GT-SAGA is the slowest method. Therefore, we only plot NIDS and GT-SAGA in Figure 1(a). We then see that though it requires more communications, DVR has a much lower computation complexity than EXTRA, which illustrates the benefits of stochastic methods. We see that DVR is faster overall if we choose , and both methods perform similarly for , at which point communicating takes roughly as much time as computing a full local gradient. We then see that accelerated EXTRA has quite a lot of overhead and, despite our tuning efforts, is slower than EXTRA when the regularization is rather high. On the other hand, accelerated DVR consistently outperforms DVR by a relatively large margin. The communication complexity is in particular greatly improved, allowing accelerated DVR to be the fastest method regardless of the setting. Further experimental results are given in Appendix D, and the code is available in supplementary material.
Conclusion
This paper introduces DVR, a Decentralized stochastic algorithm with Variance Reduction obtained using Bregman block coordinate descent on a well-chosen dual formulation. Thanks to this approach, DVR inherits from the fast rates and simple theory of dual approaches without the computational burden of relying on dual oracles. Therefore, DVR has a drastically lower computational cost than standard primal decentralized algorithms, although sometimes at the cost of a slight increase in communication complexity. The framework used to derive DVR is rather general and could in particular be extended to analyze asynchronous algorithms. Finally, although deriving a direct acceleration of DVR is a challenging open problem, Catalyst and Chebyshev accelerations allow to significantly reduce DVR’s communication overhead both in theory and in practice.
Acknowledgements
This work 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). We also acknowledge support from the European Research Council (grant SEQUOIA 724063) and from the MSR-INRIA joint centre.
References
Appendix A Block Coordinate descent
We focus in this section on the general problem minimizing using coordinate Bregman gradient, where is separable, i.e., . This is a self-contained section, and notations may differ from the rest of the paper. In particular, function is for now arbitrary and not related to or from Problem (1), and the dimension is arbitrary as well.
We first precise the blocks sampling rule. More specifically, we define a block as a collection of coordinates, and is the set of all blocks that can be chosen for the updates. Then, the algorithm updates each block with probability , so that the probability of updating a given coordinate is given by . Similarly to individual coordinates, we write the restriction of to coordinates in . The Bregman coordinate gradient update for a block of coordinates writes:
where denotes the gradient of in direction . Note that this update is more general than the one used to derive DVR, for which . In order to derive strong guarantees for this block coordinate descent algorithm, we need to ensure that there is some separability in functions and , and that the block structure is suited to this separability. All the assumptions about the separability structure of , and are contained in the following assumption.
The function is separable and the function is block-separable for , meaning that for all , there exist two convex functions and such that for all ,
Besides, for all , either of the following two hold:
and are separable for , i.e., , and
If is not block-separable, the support of the Bregman update in direction may not restricted to . This causes some of the derivations below to fail, which is why we prevent it by assuming that Equation (16) holds.
Then, the first option ensures that within a block, the updates do not affect each other. The function is not separable, but some directions can be updated independently from others. To have these independent updates, we also need to assume further separability of within the blocks. The second option states that if only block-separability of is assumed then within each block for which and are not separable, coordinates must be picked with the same probability.
Assumption 1 is a bit technical but we actually require all statements in order to derive DVR. In particular, the first option is verified when updating within the same block virtual edges that are adjacent to different nodes in the dual problem. The second option is verified when picking all communication edges at once within the same block.
Now that we have made assumptions on the structure of , and , we will make assumptions on their regularity. We start by a directional relative smoothness assumption between and , i.e., we assume that for all , there exists such that for all and the unit vector of direction ,
Similarly, for , is said to be -strongly convex relatively to if for all :
We finally assume that and are convex (but not necessarily smooth). We can now state the central theorem of this section:
Let and be such that is -smooth in direction and -strongly convex relatively to . Denote , and
Then, if the blocks respect Assumption 1 (separability) and for all , the Bregman coordinate descent algorithm guarantees for all :
The same result holds with , where .
To prove this theorem, we start by proving the monotonicity of such iterations.
We note . If then:
If and are separable for then for all , if then .
If for all and then .
We start by the first point. If is separable for then this means that each coordinate is updated independently. By definition of , we have . This writes, splitting over each and using the fact that :
The result follows from summing over all , and using Assumption 1. For the second point, it is not possible to split the update per coordinate since is not separable. Yet, we can still write (using separability of ):
Since is separable and for all , Equation (19) writes:
Note that this crucially relies on having support on , which is enforced by the block-separability of . Then, the proof is similar to that of the first point, using that . ∎
Using this monotonicity result allows us to prove Theorem 3.
First note that by convexity of all ,
Then, by definition of , so Equation (21) writes:
We first consider that the first option of Assumption 1 holds, i.e., that and are separable in . We note , so that:
Therefore, if for all ,
The term can be replaced by since for . Therefore, we obtain:
The separability of in and its monotonicity lead to, using the fact that :
Therefore, if the first option of Assumption 1 holds, we obtain:
If the second option holds, i.e., for all , then
and Equation (LABEL:eq:after_monoton) can be obtained through similar derivations (at the block-level). Using the separability of , we obtain that
Therefore, taking the expectation of Equation (LABEL:eq:before_monoton) yields:
Finally, so for all , and in particular , which yields the desired result.
The result on is be obtained by bounding by and remarking that since . ∎
Appendix B Convergence results for DVR
We now give a series of small results, that justify our approach. We start by showing the applicability of Theorem 3 to Problem (4), and the associated constants. Finally, we show how to obtain rates for the primal iterates .
In this section, we note , so that Problem 4 writes:
The iterations of Algorithm 1 are equivalent to the iteration of Equations (15) applied to Problem (4) with and , with for coordinates associated with communication edges, and for coordinates associated with computation edges.
This result follows from the dual-free and implementation-friendly derivations presented in the previous section. ∎
Let , and as in Lemma 2, then:
is ()-strongly convex relatively to .
is ()-smooth relatively to in the direction of communication edges, with
is ()-smooth relatively to in the direction of virtual edge , with
First note that is a block-diagonal matrix, and its -th block is equal to
Finally, using that Equation (25) along with the fact that implies that is -relatively strongly convex with respect to .
Finally, , and , which ends the proof of the directional relative smoothness result. ∎
Assumption 1 holds with , , and as in Lemma 2, and when the sampling is such that either:
All communication edges are sampled at once, or
Each node samples exactly one virtual edge.
First of all, is separable, and is separable with respect to the communication and computation blocks by construction.
We note the block of all communication edges, which is sampled with probability . All communication edges are sampled at the same time, so for all and so respects option for the communication block.
Finally, is separable, and so respects option 2. ∎
We can now prove the main theorem on the convergence rate of DVR.
with , and . Therefore, the expected time required to reach precision is equal to:
Using Lemmas 4 and 3, we apply Theorem 3 (convergence of Bregman coordinate gradient descent), and obtain that the convergence rate is , with and . Therefore, for communication edges, we have that
For computation edges, we know that , and so
with for all .
In the end, we would like these two bounds to be equal, so we choose and such that
Yet, we also know that , so
With this choice, one can verify that verifies both and , so the rate is:
The expected execution time to reach precision , denoted , is equal to with such that for some constant , and so:
B.2 Primal guarantees
The goal of this section is to recover primal guarantees from dual guarantees. Although the initial setting is inspired from Lin et al. [2015b], the proof is different, and in particular does not require smoothness of the or an extra proximal step. We define for the Lagrangian function:
The dual problem is defined as
Given an approximate dual solution , we can get an approximate primal solution , which is obtained as:
Denote , then
Using the fact that ) (and similarly for ), where is the block diagonal matrix such that , we obtain:
Using the -strong convexity of , we obtain:
Then, we add and apply Theorem 4, which yields
Then, Theorem 1 is a direct consequence of Theorem 4 and Lemma 5.
Appendix C Catalyst acceleration
We show in this Section how to apply Catalyst acceleration to DVR, and prove the convergence speed in this case.
In the main text, we derived DVR to solve regularized finite sum problems. Although not so different, the subproblem obtained with Catalyst is not in the form of Problem (1), and some adjustments need to be made. More specifically, we would like to solve problems of the form:
An easy way to adapt the algorithm is to consider the extra as just another component of the sum. Yet, the point of this extra term is to make the problem easier to solve by adding strong convexity. This would not be the case if this term were is treated as just another term in the sum. Therefore, we want to include it with the quadratic term. We define:
then . Therefore, Problem (4) becomes:
with for . The linear term does not affect the Hessians, and thus the convergence rate is the same as before, with replaced by . In terms of algorithms, we just need to modify the gradient term, and obtain Algorithm 2. The only term that changes is , to which an extra term is added. Therefore, the updates to and remain unchanged, and only the initial expression of requires some adjustments since we now have that (as written in Equation 30):
If we only consider 1 inner loop then the only thing that changes is the initial condition. If we consider several outer loops, then the we must choose the new parameter as in order to maintain the invariant, but a remarkable fact is that the inner iterations remain the same, with the only exception that is replaced by . Note that it is possible to warm-start the as well, but this requires updating accordingly with , which requires a full pass over the local dataset. We therefore choose not to do it.
where . This means that although is only defined with the local variables , solving is equivalent to solving a problem involving only. Besides, the Catalyst iterations are linear, meaning that performing the extrapolation step on is equivalent to performing it on each individually. Therefore, although Catalyst is implemented in a fully decentralized manner (each node knowing only its own parameter), it is conceptually applied to a mean parameter (that is never explicitly computed). In the following, we thus analyze the performances of the following algorithm:
where we recall that . Recall that the inner problem is approximated using DVR and the means do not need to be computed explicitly. Let , and be obtained similarly to but replacing by . We consider in this section that for all in order to simplify exposition, but the results hold more generally. Note that and have slightly different expressions than in the main text since is now involved in their definitions. We define the sequence which is such that:
Note that the error is on the mean parameter, and we also want to be close to for all . This is ensured by Lemma 5. Before we start the proof of Theorem 5, we show that Theorem 2 is a corollary of Theorem 5.
Using the same argument as in Theorem 1, we obtain that each inner loop takes time
in expectation, so the total number of inner iterations is of order:
Therefore, we see that if we choose then, taking into account the fact that , the algorithm takes time:
Therefore, using Chebyshev acceleration allows to recover the rate of optimal batch algorithms (up to log factors). On the other hand, if we choose then if (i.e., ), the time to convergence is equal to:
Therefore, we obtain the optimal computation complexity in this case, with a slightly suboptimal communication complexity due to the term. When this term is equal to then and so nothing is gained from using a stochastic algorithm. Otherwise, this allows to trade-off communications for computations. ∎
The proof of Theorem 5 is obtained in several steps, that we emphasize below:
Equivalent decentralized implementation of Catalyst.
Bounding the primal suboptimality as , with the number of inner iterations and a dual error. This quantifies how precisely the inner problem is solved.
Evaluating the initial dual suboptimality , which depends on (and its associated dual parameter ). This quantifies how good already is as a solution to .
In the end, this allows us to use the catalyst general results with primal criterion, and with simple warm-start scheme (warm-start on the last iterate of the last outer iteration). The first point is presented at the beginnning of this section and the second one is adressed by Lemma 5. The following section deals the last point.
C.2 Proof of Theorem 5
We now show a bound on the initial error of an inner loop when warm-starting on the last iterate of the previous inner loop. Indeed, the convergence results for DVR depend on the initial dual error and so results from [Lin et al., 2017] cannot be used directly. Yet, it can be adapted, as we show in this section. We note the dual function at outer step (which should not be mistaken with the Bregman divergence ), and its minimizer. Similarly, we note , whereas is the global minimizer of . The following theorem ensures convergence of to the true optimum, given that the subproblems are solved precisely enough.
[Lin et al., 2017, Proposition 5]. If for all then
Therefore, our goal is to prove that for all . The smoothness of ensures that this is achieved if
Yet, using Lemma 5, we know that, since is obtained by applying steps of DVR to starting from .
Unfortunately, we have no control over the dual error at this point. In the remainder of this section, we prove by recursion that Equation (40) holds for all . More specifically, we start by assuming that:
where and are such that the conditions are verified for , with , , and . Equation (41) may not hold for , but making it hold at time would only require a slightly longer first inner iteration, meaning at most an extra factor. Therefore we assume without loss of generality that it is the case, since the final complexities are given up to logarithmic factors. The rest of this section is devoted to showing that if is chosen as in Theorem 5 then Equations (41), (42) and (43) hold regardless of . The first part focuses on assessing the initial error of outer iteration when the conditions hold at the end of outer iteration , and the second part on showing how these errors shrink during outer iteration .
We know that DVR converges linearly, and so the error for each subproblem decreases exponentially fast. Yet, we need to know how big the error is when solving a new problem in order to make sure that the progress from solving previous subproblems is not lost. The point of this is to avoid an extra factor in the rate, which would come from having to solve each subproblem from a precision to an precision using DVR. We show in this section that the initial error is actually much lower than and decreases with the outer iterations. We first start by bounding the variations of across iterations, which we will need for the next proofs.
The form of the updates yields that (see Lin et al. [2017, Proposition 12] or Li and Lin [2020, Proof of Lemma 10])
Note that here, is the actual solution of the primal problem without the catalyst perturbation. Then, the error can be decomposed as:
Finally, the strong convexity of leads to
where in the last inequality we use [Lin et al., 2017, Proposition 5], which holds because for all . Indeed, is such that for all , , which yields:
and a similar bound can be used for and . Then, we finish proof by plugging in the expression of . ∎
We then use Lemma 6 to bound the initial dual error. We denote (and ) the parameters at inner iteration of outer iteration .
Note that we simply warm-start the dual coordinates for an outer iteration using the last iterate from the previous one. Yet, this leads to , as in Algorithm 2.
Equation (34) implies that can be written as:
with that only depends on and not on for . Therefore,
Equation (30) writes , and so:
Then, we know from the equivalent reformulation of Equation (LABEL:eq:catalyst_average_formulation) that , so using the -Lipschitzness of the proximal operator yields
Similarly, , and so:
Finally note that since is the maximizer of , and since it is the output of DVR after inner iteration . The final expression is obtained using 6 and the recursion assumptions given by Equations (41) and (43). ∎
Finally, the warm-start error on the nodes parameters is given by the two following lemmas.
Denote . Then,
We use the fact that to write:
Then, as before, the 1-Lipchitzness of the prox operator yields . ∎
Denote . Then,
We use the fact that since then to write:
We finish this part on warm starts by proving the following lemma, that links the initial dual parameters error (computed with the Bregman divergence of ), to the other parameters which we already know how to control.
with .
We first decompose the Bregman divergence as:
Then, we bound the communication term as:
For the computation part, we use the duality property of the Bregman divergence, which yields
Substituting Equations (52) and (53) into Equation (51) finishes the proof. ∎
C.2.2 Inner iteration error decrease
Now that we have bounded the error at the beginning of each outer iteration, we bound error at the end of each outer iteration by using the convergence results for DVR. We first prove the following Lemma, which controls the distance between the virtual parameters and the actual one:
where in the last inequality we used the convexity of the squared norm. We use that (equal for the smallest one), and write that:
Noting and , we obtain
Using Lemma 5, we know that , with a constant that depends on the initial conditions of outer iteration . Therefore,
If Equations (41), (42) and (43) hold at time , and is such that:
Using Corollary 1, we obtain that if is set such that
then the recursion condition is respected for the virtual parameters. This yields the first and second conditions on . Now, we write , then using Lemmas 10 and 7 (where and are defined), we obtain using Theorem 4 that
since is obtained by performing iterations of DVR to minimize starting from . This yields the third condition on . Finally, the last condition on is obtained by leveraging Lemma 5.
Appendix D Experiments
For the experiments, the following logistic regression problem is solved:
Figure 2 is the full version of Figure 1, in which we report the number of individual gradients and number of communications for each configuration. We see that accelerated EXTRA actually outperforms EXTRA when the regularization is small, as already mentioned in the main text. We also see that Accelerated EXTRA and Accelerated DVR have comparable communication complexity on the grid graph, when is smaller. Yet, the computation complexity of (accelerated) DVR is much smaller, so accelerated DVR is much faster overall as long as is not too big.