A decentralized proximal-gradient method with network independent step-sizes and separated convergence rates
Zhi Li, Wei Shi, Ming Yan
I Introduction
This paper focuses on the following decentralized optimization problem:
Specific problems of form (1) that require a decentralized computing architecture have appeared in various areas including networked multi-vehicle coordination, distributed information processing and decision making in sensor networks, as well as distributed estimation and learning. Some examples include distributed average consensus , distributed spectrum sensing , information control , power systems control , statistical inference and learning . In general, decentralized optimization fits the scenarios where the data is collected and/or stored in a distributed network, a fusion center is either inapplicable or unaffordable, and/or computing is required to be performed in a distributed but collaborative manner by multiple agents or by network designers.
The study on distributed algorithms dates back to the early 1980s . Since then, due to the emergence of large-scale networks, decentralized (optimization) algorithms, as a special type of distributed algorithms for solving problem (1), have received attention. Many efforts have been made on star networks with one master agent and multiple slave agents . This scheme is “centralized” due to the use of a “master” agent. It may suffer a single point of failure and may violate the privacy requirement in certain applications. In this paper, we focus on solving (1) in a decentralized fashion, where no “master” agent is used.
Incremental algorithms can solve (1) without the need of a “master” agent and it is based on a directed ring network. To handle general (possibly time-varying) networks, the distributed sub-gradient algorithm was proposed in . This algorithm and its variants are intuitive and simple but usually slow due to the diminishing step-size that is needed to obtain a consensual and optimal solution, even if the objective functions are differentiable and strongly convex. With a fixed step-size, these distributed methods can be fast, but they only converge to a neighborhood of the solution set which depends on the step-size. This phenomenon creates an exactness-speed dilemma .
A class of distributed approaches that bypass this dilemma is based on introducing the Lagrangian dual. The resulting algorithms include distributed dual decomposition and decentralized alternating direction method of multipliers (ADMM) . The decentralized ADMM and its proximal-gradient variant can employ a fixed step-size to achieve rate under general convexity assumptions . Under the strong convexity assumption, the decentralized ADMM has linear convergence for time-invariant undirected graphs . There exist some other distributed methods that do not (explicitly) use dual variables but can still converge to an optimal consensual solution with fixed step-sizes. In particular, works in employ multi-consensus inner loops, Nesterov’s acceleration, and/or the adapt-then-combine (ATC) strategy. Under the assumption that the objectives have bounded and Lipschitz continuous gradientsThis means that the nonsmooth terms ’s are absent. Such assumption is much stronger than the one used for achieving the rate in Nesterov’s optimal gradient method ., the algorithm proposed in has rate. References use a difference structure to cancel the steady state error in decentralized gradient descent , thereby developing the algorithm EXTRA and its proximal-gradient variant PG-EXTRA. It converges at an rate when the objective function in (1) is convex and has a linear convergence rate when the objective function is strongly convex and for all .
A number of recent works employed the so-called gradient tracking to conquer different issues . To be specific, works relax the step-size rule to allow uncoordinated step-sizes across agents. Paper solves non-convex optimization problems. Paper aims at achieving geometric convergence over time-varying graphs. Work improves the convergence rate over EXTRA, and its formulation is the same as that in .
Another topic of interest is decentralized optimization over directed graphs , which is beyond the scope of this paper.
I-B Proposed Algorithm and its Advantages
If all local variables are identical, i.e., , we say that is consensual. In addition, we define
We have . The gradient of at is given in the same way as in (3) by
𝐼𝐖2\widetilde{{\mathbf{W}}}=\frac{I+{\mathbf{W}}}{2} here. By making a simple modification over PG-EXTRA , our proposed algorithm brings a big improvement in the speed and the dependency of convergence over networks. To better expose this simple modification, let us compare a special case of our proposed algorithm with EXTRA for the smooth case, i.e., .
A large and network independent step-size for NIDS: All works mentioned above either employ pessimistic step-sizes or have network dependent upper bounds on step-sizes. Furthermore, the step-sizes for the strongly convex case are more conservative. For example, the step-size used to achieve linear convergence rates for EXTRA in is in the order of , where and are the strong convexity constant of and Lipschitz constant of , respectively. As a contrast, the centralized gradient descent can choose a step-size in the order of . The upper bound of step-size for EXTRA was recently improved to in . We can choose for any satisfying Assumption 1. Another example of employing a constant step-size in distributed optimization is DIGing . Although its ATC variant in was shown to converge faster than DIGing, the step-size is still very conservative compared to . We will show that the step-size of NIDS can have the same upper bound as that of the centralized gradient descent. The achievable step-sizes of NIDS for rate in the general convex case and the linear convergence rate in the strongly convex case are both in the order of . Furthermore, NIDS allows each agent to have an individual step-size. Each agent can choose a step-size that is as large as on any connected network, where is the Lipschitz constant of and for all (). Apart from the step-sizes, to run NIDS, a common/public parameter is needed for the construction of (see (8) for the algorithm and ). This parameter can be chosen without any knowledge of the network (or the mixing matrix ). For example, . Table I provides an overview of algorithmic configurations for EXTRA and NIDS. NIDS works as long as each agent can estimate its local functional parameter: No agent needs any other global information including the number of agents in the whole network except the largest step-size, if it is not the same for all agents.
In the line of research of optimization over heterogeneous networks, after the initial work regarding uncoordinated step sizes, references and introduce and analyze a diffusion strategy with corrections that achieves an exact linear convergence with uncoordinated step sizes. This exact diffusion algorithm is still related to the Lagrangian method but can be considered as having incorporated a CTA structure. The CTA strategy can, similar to the ATC strategy, improve the convergence speed of certain consensus optimization algorithms (see [41, Remark 3] and [46, Section II.C]). However, the analysis in , though allowing step size mismatch across the network, does not take into consideration the heterogeneity of agents’ functional conditions. Furthermore, their upper bound for the step-size is in the order of .
Sublinear convergence rate for the general case: Under the general convexity assumption, we show that NIDS has a convergence rate of , which is slightly better than the rate of PG-EXTRA. Because the step-size of NIDS does not depend on the network topology and is much larger than that of PG-EXTRA, NIDS can be much faster than PG-EXTRA, as shown in the numerical experiments.
Linear convergence rate for the strongly convex case: Let us first define “scalability”. When the iterate of an algorithm converges to the optimal solution linearly, i.e., with some positive constant , we say that the algorithm needs to run iterations to reach -accuracy. So we call the scalability of the algorithm.
For the case where the non-smooth terms are absent and the functions are strongly convex, we show that NIDS achieves a linear convergence rate whose dependencies on the functions and the network topology are decoupled. To be specific, to reach -accuracy, the number of iterations needed for NIDS is
where is the th largest eigenvalue of . Both and are typical in the literature of optimization and average consensus, respectively. The value , also called the condition number of the objective function, is aligned with the scalability of the standard gradient descent . The value is understood as the condition numberWhen we choose where Ł is the Laplacian of the underlying graph and is a positive tunable constant, we have which is the finite condition number of Ł. Note that . of the network and aligned with the scalability of the simplest linear iterations for distributed averaging .
Separating the condition numbers of the objective function and the network provides a way to determine the bottleneck of NIDS for a specific problem and a given network. Therefore, the system designer might be able to smartly apply preconditioning on or improve the connectivity of the network to cost-effectively obtain a better convergence.
Summary and comparison of state-of-the-art algorithms: We list the properties of a few relevant algorithms in Table II. We let . This quantity is directly affected by the network topology and how the matrix is defined, thus is also related to the consensus ability of a network. When the network is fully connected (a complete graph), we can choose so that and thus (the best case); in general since ; in the worst case, we have [4, Section 2.3]. We keep in the bounds/rates of involved algorithms for a fair comparison instead of focusing on the worst case that often gives pessimistic/conservative results. We omit “” in “Bounds of step-sizes” and “Scalabilities” for brevity and only compare the effect of functional properties ( and ) and network properties ( and/or ). Before talking into details, let us clarify a few points. In EXTRA, is a quantity that is associated with the strong convexity of the original function , so it covers a larger class of problems; In DIGing, is the mean value of the strong convexity constants of local objectives; In Acc-DNGD, the step-size for the convex case contains , the current number of iterations. Thus it represents a diminishing step-size sequence; In Optimal , the total number of iterations is used to determine the step-size for the convex case. In addition, they apply to problems in which the objectives are dual friendly (see for its definition). Note some types of objectives are suitable for gradient update, some are suitable for dual gradient update (dual friendly), and some are suitable for proximal update.
Finding the algorithm with the lowest per-iteration cost depends on the problem (functions). Apparently, our bounds on step-sizes and the corresponding scalability/rate are better than those given in EXTRA and Harness (see Table II). When is close to (the graph is well connected), the step-size bound and scalability given in DIGing are the same as NIDS. However, when is large, their result becomes rather conservative. Acc-DNGD and Optimal have improved the scalability/rate of gradient-based distributed optimization by employing Nesterov’s acceleration technique on primal and dual problems, respectively. For the convex case, our rate is worse than theirs because our algorithm does not employ Nesterov’s acceleration. For the primal distributed gradient method after acceleration , the scalability in is still worse than our result. Algorithm Optimal achieves the optimal scalability/rate for distributed optimization. However, as we have mentioned above, their algorithms are dual based thus apply to a different class of problems. In addition, NIDS supports proximable non-smooth functions and uncoordinated step-sizes while these have not been considered in Acc-DNGD and Optimal. To sum up, we have reached the best possible performance of first-order algorithms for distributed optimization without acceleration. Further improving the performance by incorporating Nesterov’s techniques to our algorithm will be a future direction.
Finally, we note that, references , appearing simultaneously with this work, also proposed (6b) to enlarge the step-size and use column stochastic matrices rather than symmetric doubly stochastic matrices. However, their algorithm only works for smooth problems, and their analysis seems to be restrictive and requires twice differentiability and strong convexity of . The stepsize is also in the order of .
I-C Future Works
The capability of our algorithm using purely locally determined parameters increases its potential to be extended to dynamic networks with a time-varying number of nodes. Given such flexibility, we may use similar schemes to solve the decentralized empirical risk minimization problems. Furthermore, it also enhances the privacy of the agents through allowing each agent to perform their own optimization procedure without negotiation on any parameter.
By using Nesterov’s acceleration technique, reference shows that the scalability of a new average consensus protocol can be improved to ; when the nonsmooth terms ’s are absent, reference shows that the scalability of a new dual based accelerated distributed gradient method can be improved to . One of our future work is exploring the convergence rates/scalability of the Nesterov’s accelerated version of our algorithm.
I-D Paper Organization
The rest of this paper is organized as follows. To facilitate the description of the technical ideas, the algorithms, and the analysis, we introduce additional notation in Subsection I-E. The intuition for the network-independent step-size is provided in Section II. In Section III, we introduce our algorithm NIDS and discuss its relation to some other existing algorithms. In Section IV, we first show that NIDS can be understood as an iterative algorithm for seeking a fixed point. Following this, we establish that NIDS converges at an rate for the general convex case and a linear rate for the strongly convex case. Then, numerical simulations are given in Section V to corroborate our theoretical claims. Final remarks are given in Section VI.
I-E Notation
II Intuition for Network-independent step-size
In this section, we provide an intuition for the network-independent step-size for NIDS with only the differentiable function . The decentralized optimization problem is equivalent to
where is the square root of , and the constraint is the same as the consensual condition with the mixing matrix given in Assumption 1. Denote . The corresponding optimality condition with the introduction of the dual variable is
EXTRA is equivalent to the Condat-Vu primal-dual algorithm , and it can be further explained as a forward-backward splitting applied to the equation, i.e.,
It is equivalent to EXTRA after is eliminated. In this case, the new metric is a full matrix, and therefore, the upper bound of the step-size depends on the matrix Ł. To be more specific,
which gives . A larger and optimal upper bound for the step-size of EXTRA is shown in (See Table I), and it still depends on . However, we choose a block diagonal metric and have
which is equivalent to NIDS after is eliminated. Because the new metric is block diagonal, and the nonexpansiveness of the forward step depends on the function only, i.e., .
III Proposed Algorithm NIDS
In this section, we describe our proposed NIDS in Algorithm 1 for solving (1) in more details and explain the connections to other related methods.
The mixing matrix satisfies the following assumption, which comes from .
(Decentralized property). If and , then ;
(Symmetry). ;
(Null space property). ;
(Spectral property). .
Assumption 1 implies that the eigenvalues of lie in and the multiplicity of eigenvalue is one, i.e., . Item 3 of Assumption 1 shows that and the orthogonal complement of is the row space of , which is also the column space of because of the symmetry of .
The functions and satisfy the following assumption.
Functions and are lower semi-continuous proper convex, and have Lipschitz continuous gradients with constants , respectively. Thus, we have
where and is chosen such that . This condition shows that the upper bound of the parameter depends on and . When the information about is not given, we can just let because . To set such a parameter, a preprocessing step is needed to obtain the maximum. However, since the maximum can be easily computed in a connected network in no more than rounds of communication wherein each node repeatedly takes maximum of the values from neighbors, the cost of this preprocessing is essentially negligible compared to the worst-case running time of our optimization protocol.
If all agents choose the same step-size, i.e., , and we let , (8) becomes
The only difference between NIDS and PG-EXTRA is that the mixing operation is further applied to the successive difference of the gradients in NIDS.
When there is no function , (8) becomes
and it further reduces to (6b) when and . Note that, though (6b) appears in , its convergence still needs a small step-size that also depends on the network topology and the strong convexity constant. In Theorem 1 of , the upper bound for the step-size is also , which is the same as that of PG-EXTRA.
IV Convergence Analysis of NIDS
In order to show the convergence of NIDS, we also need the following assumption.
To simplify the analysis, we introduce a new sequence which is defined as
Using the sequence , we obtain a recursive (update) relation for :
where the second equality comes from the update of in (8a) and the last one holds because of the definition of in (11). Therefore, the iteration (8) is equivalent to, with the update order ,
in the sense that both (8) and (12) generate the same sequence.
Because is determined by only and can be eliminated from the iteration, iteration (12) is essentially an operator for . Note that we have from Algorithm 1. Therefore, from the update of in (12b), for all . In fact, any such that works for NIDS. The following two lemmas show the relation between fixed points of (12) and optimal solutions of (1). The proofs for all lemmas and propositions are included in the supplemental material.
is a fixed point of (12) if and only if there exists a subgradient such that and
is consensual with being an optimal solution of problem (1) if and only if there exists and a subgradient such that:
In addition, is a fixed point of iteration (12).
Lemma 2 shows that we can find a fixed point of iteration (12) to obtain an optimal solution of problem (1). It also tells us that we need to get an optimal solution of problem (1). Therefore, we need .
Let with . Then is a norm defined for .
The following lemma compares the distance to a fixed point of (12) for two consecutive iterates.
Let be a fixed point of iteration (12) with . The update in (12) satisfies
From the update of in (12c), we have
where the second equality comes from (12b), (14b), and . From (12a), we have that
The inequality and the second equality comes from (17) and (16), respectively. The first and fourth equalities hold because of the update of in (12c). Using and rearranging the previous inequality give us that
As explained in Section II, NIDS is equivalent to the primal-dual algorithm applied to problem
where is the indicator function, which return 0 for and otherwise, with the metric matrix being
We apply [56, Theorem 1] and obtain the following sublinear convergence result.
Let be the sequence generated from NIDS in (12) with for all and . We have
Furthermore, converges to a fixed point of iteration (12) and , if .
Note the convergence in Theorem 1 is shown in and . We will show the convergence in terms of (14). Recall that
where . Therefore, implies the convergence in terms of (14a).
where the second equality comes from . Thus implies the convergence in terms of (14b).
IV-B Linear convergence for special cases
In this subsection, we provide the linear convergence rate for the case when , i.e., in NIDS.
If are strongly convex with parameters , then
The first inequality comes from , , (7), and (20). Combing (23) and (32), we have
Let defined as (21), then we have (22). ∎
The condition implies that .
If the agents across the whole network use an identical stepsize , that is, , then
A concise but informative expression of the rate can be obtained when we specifically choose and . When is not given, we choose and obtain the scalability . In this case, the network impact and the functional impact are decoupled.
If we let and , then the rate becomes
When is not given, we choose and obtain the scalability . In this case, the networking impact is coupled with the function factors, i.e., the smoothness heterogeneity is multiplied on the networking impact. While the other number depends on the functional condition numbers ’s only.
Theorem 2 separates the dependence of the linear convergence rate on the functions and the network structure. In our current scheme, all the agents perform information exchange and the proximal-gradient step once in each iteration. If the proximal-gradient step is expensive, this explicit rate formula can help us to decide whether the so-called multi-step consensus can help reducing the computational time.
For the sake of simplicity, let us assume for this moment that all the agents have the same strong convexity constant and gradient Lipschitz continuity constant . Suppose that the “-step consensus” technique is employed, i.e., the mixing matrix in our algorithm is replaced by , where is a positive integer. Then to reach -accuracy, the number of iterations needed is
When and step sizes are chosen as , it says that we should let if the graph is not a complete graph. Such theoretical result is correct in intuition since in this case, the centralized gradient descent only needs one step to reach optimal and the bottleneck in decentralized optimization is the network.
Suppose is a reasonable upper bound on , which is set by the system designer. It is difficult to explicitly find an optimal . But with the above analysis as an evidence, we suggest that one choose if ; otherwise . Here gives the nearest integer.
If the bottleneck is on the functions, we can introduce a mapping and change the unknown variable from to . E.g., if the function is a composition of a convex function with a linear mapping, replacing using changes the linear mapping and the condition number of the function. When is diagonal, it is similar to the column normalization in machine learning applications. There are other possible ways for reducing the condition number of the functions. It is out of the scope of this work, and we leave this as future work.
V Numerical Experiments
In this section, we compare the performance of NIDS with several state-of-the-art algorithms for decentralized optimization. These methods are
The DIGing-ATC . For reference, the DIGing-ATC updates are provided as follows:
The accelerated distributed Nesterov gradient descent (Acc-DNGD-SC in );
The (dual friendly) optimal algorithm (OA) for distributed optimization (equation (7) in ).
Note there are two rounds of communication in each iteration of DIGing-ATC and Acc-DNGD-SC while there is only one round in that of EXTRA/NIDS/OA. For all the experiments, we first compute the exact solution for (1) using the centralized (proximal) gradient descent. All networks are randomly generated with connectivity ratio , where is defined as the number of actual edges divided by the total number of possible edges . We will report the specific used in each test. The mixing matrix is always chosen with the Metropolis rule (see and [36, Section 2.4]).
The experiments are carried in Matlab R2016b running on a laptop with Intel i7 CPU @ 2.60HZ, 16.0 GB of RAM, and Windows 10 operating system. The source codes for reproducing the numerical results can be accessed at https://github.com/mingyan08/NIDS.
In order to ensure that each function is strongly convex, we choose and and set the number of nodes . For the first experiment, we choose such that the Lipshchitz constant of satisfies and the strongly convex constant for all . Based on Remark 4, we choose and for NIDS. In addition, we choose such that , which gives the same as that for EXTRA.
The comparison of these methods (NIDS with , NIDS with , EXTRA, DIGing-ATC, Acc-DNGD-SC, and OA) is shown in Fig. 1 for two different networks with connectivity ratios (top) and (bottom), respectively. It shows better performance of NIDS in both choices of (corresponding to known and unknown ) than that of other algorithms. NIDS with always takes less than half the number of iterations used by EXTRA to reach the same accuracy. In our experiment, DIGing-ATC appears to be sensitive to networks. Under a better connected network (see Fig. 1 bottom), DIGing-ATC can catch up with NIDS with . The theoretical step-size of Acc-DNGD-SC is too small due to a very small constant in the bound in , and the convergence of Acc-DNGD-DC under such theoretical step-size in our test is slow and uncompetitive. Thus we have carefully tuned its step-size. With the hand-optimized step-size, Acc-DNGD-SC can achieve a comparable performance as NIDS with . In the plots, we observe that OA is fast in terms of the number of iterations. However, in this case, the per-iteration cost of OA is relatively high since it requires solving a system of linear equations at each iteration (though factorization tricks may be used to save some computational time).
Next, we demonstrate the effort of uncoordinated/adaptive step-size. We construct the function with and for each node . Then we change the values by multiplying the function by a constant.
We use the same mixing matrix for the following two experiments.
We change half nodes. We randomly pick an even number node and multiply its function by . For remaining even number nodes, we multiply their functions by a random integer 2 or 3.
We change a quarter nodes. We randomly pick an node not in and multiply its function by 10. Then for other nodes in , we multiply their functions by a random integer between 2 and 9.
We compare NIDS with adaptive step-size ( for node ) and NIDS with same step-size in Fig. 2. We let , so no network information is needed. As shown in Fig. 2, NIDS with adaptive step-size converges faster than same step-size.
V-B The case with nonsmooth function r(𝐱)𝑟𝐱r({\mathbf{x}})
where the connectivity ratio of the network . We normalize the problem to make sure that the Lipschitz constant satisfies for each node, we choose and and set the number of nodes .
Fig. 3 shows that a larger step-size in NIDS leads to faster convergence. With step-size , NIDS and PG-EXTRA converge at the same speed. But if we keep increasing the step-size, PG-EXTRA will diverge with step-size while the step-size of NIDS can be increased to maintaining convergence at a faster speed.
V-C An application in classification for healthcare data
VI Conclusion
We proposed a novel decentralized consensus algorithm NIDS, whose step-size does not depend on the network structure. In NIDS, the step-size depends only on the objective function, and it can be as large as , where is the Lipschitz constant of the gradient of the smooth function. We showed that NIDS converges at the rate for the general convex case and at a linear rate for the strongly convex case. For the strongly convex case, we separated the linear convergence rate’s dependence on the objective function and the network. The separated convergence rates match the typical rates for the general gradient descent and the consensus averaging. Furthermore, every agent in the network can choose its own step-size independently by its own objective function. Numerical experiments validated the theoretical results and demonstrated better performance of NIDS over state-of-the-art algorithms. Because the step-size of NIDS does not depend on the network structure, there are many possible future extensions. One extension is to apply NIDS on dynamic networks where nodes can join and drop off.
Acknowledgement
We thank the anonymous reviewers for helpful comments and suggestions to improve the clarity of this paper.
References
is a fixed point of (12) if and only if there exists a subgradient such that and
“” If is a fixed point of (12), we have
where the two equalities come from (12b) and (12c), respectively. Combining (12c) and (12a) gives
where .
“” In order to show that is a fixed point of iteration (12), we just need to verify that if . From (12a), we have , then
Therefore, is a fixed point of iteration (12). ∎
VI-B Proof of Lemma 2
is consensual with being an optimal solution of problem (1) if and only if there exists and a subgradient such that:
In addition, is a fixed point of iteration (12).
“” Because , we have . The fact that is an optimal solution of problem (1) means there exists such that . That is to say all columns of are orthogonal to . Therefore, Remark 1 shows the existence of such that .
“” Equation (34b) shows that is consensual because of item 3 of Assumption 1, i.e., for some . From (34a), we have . Thus, because is consensual. This completes the proof for the equivalence.
Lemma 1 shows that is a fixed point of iteration (12). ∎
VI-C Proof of Lemma 3
Letting , we have . In addition,
which means that is a norm for . ∎
VI-D Proof of Proposition 1
Let with being symmetric positive definite and . Then is a norm defined for .
We apply Lemma 3 on and obtain the result. ∎
VI-E Proof of Theorem 1
Before proving Theorem 1, we present two lemmas. The first lemma shows that the distance to a fixed point of (12) is decreasing, and the second one show the distance between two iterations is decreasing.
Let be a fixed point of (12) and . For the sequence generated from NIDS in (12) with , we have
Let be the sequence generated from NIDS in (12) with for all and . Then the sequence is monotonically nonincreasing.
Similar to the proof for Lemma 4, we can show that
Subtracting (LABEL:for:nonincreasing2) from (LABEL:for:nonincreasing1) on both sides, we have
where the inequality comes from the Cauchy-Schwarz inequality. Then, the previous inequality, together with (39) and the Cauchy-Schwarz inequality, gives
The three inequalities hold because of (39), (40), and the Cauchy-Schwarz inequality, respectively. The first and third equalities come from (12c). Rearranging the previous inequality, we obtain
where the second and last inequalities come from (7) and , respectively. It completes the proof. ∎
Let be the sequence generated from NIDS in (12) with for all and . We have
Furthermore, converges to a fixed point of iteration (12) and , if .
Lemma 5 shows that is monotonically nonincreasing. Summing up (4) from to , we have
When , inequality (4) shows that the sequence is bounded, and there exists a convergent subsequence such that . Then (41) gives the convergence of . More specifically, . Therefore is a fixed point of iteration (12). In addition, because for all , we have . Finally Lemma 4 implies the convergence of to . ∎