Local Exact-Diffusion for Decentralized Optimization and Learning
Sulaiman A. Alghunaim
Introduction
This work examines the distributed consensus optimization problem, as formally presented in (2). In this setup, a network of nodes (also referred to as agents, workers, or clients) collaboratively seeks to minimize the average of the nodes’ objectives. This formulation is appealing for large scale data problems because it is more efficient to use distributed solution methods to reduce the computational burden for large data sets. In terms of communication protocol, distributed methods can be classified as either centralized or decentralizedIn this work, the term “distributed methods” refers to the class of methods that includes both centralized (server-workers) and decentralized approaches.. Centralized distributed methods require all nodes to communicate with a central server (e.g., server-workers connection) without sharing private data, as seen in parallel optimization and federated learning . In this setup, there is a central node that is responsible for aggregating local variables and updating model estimates. In contrast, decentralized distributed methods are “fully distributed” that are designed for arbitrary connected network topologies such as line, ring, grid, and random graphs. These methods require nodes to communicate only with their immediate neighbors . It’s important to note that decentralized methods can adapt to a centralized setting when the network is fully connected.
In this paper, we consider a group of nodes, connected via an undirected decentralized network, collaborating to solve the optimization problem:
where () represents a smooth function known only to node . This function is defined as the expected value of some loss function over the random variable or data . We focus on the stochastic online setting, in which each node has access only to random samples of its data . Problems of the form (2) have received a lot of attention in control and engineering communities , as well as in the machine learning community .
Our main contribution is the proposal and study of a local variant of the decentralized Exact-Diffusion algorithm (see also ), where nodes employ multiple local updates between communication rounds. We establish the algorithm’s convergence in both convex and nonconvex settings. . Our bounds improve upon those of decentralized methods and match the best known results for centralized methods. Before we formally state our contributions, we will first discuss some related works.
We begin by discussing relevant centralized methods, which require a central server for implementation. One of the most popular centralized methods is FedAvg, which involves a random subset of nodes performing multiple local stochastic gradient descent (SGD) updates at each round; They then send their estimates (parameters) to the central server, which averages these estimates and sends them back to replace the local estimates . It should be noted that FedAvg is often called Local-SGDIn this paper, we refer to the case where all of the nodes participate in each round as Local-SGD.. Several works have analyzed FedAvg and Local-SGD . It has been observed that the performance of FedAvg and Local-SGD is suboptimal for heterogeneous data and that an increased number of local steps can lead to worse performance . One major reason is that node estimates drift toward their local solutions due to local updates, resulting in a biased solution . To correct this drift in FedAvg and Local-SGD, several algorithms have been proposed, including SCAFFOLD , FedDyn , FedPD , VRL-SGD , and FedGATE . These methods, however, are only applicable to centralized connections.
In this work, we focus on decentralized setups as presented in . The most extensively studied method for this setup is the decentralized stochastic gradient descent method (DSGD) DSGD has two main implementations depending on the combination step: the adapt-then-combine (ATC) implementation (aka diffusion) and the non-ATC implementation (aka consensus) . Both implementations are termed DSGD in this paper.. The study in showcased that DSGD achieves the centralized SGD rate asymptotically, a distributed trait termed as linear speedup . However, DSGD converges to a biased solution, and this bias is further negatively influenced by network sparsity . The bias arises from the heterogeneity among the local functions , as characterized by . This value, which is required to be bounded for the analysis of DSGD , can become quite large when the functions are heterogeneous, thereby slowing down the convergence of DSGD . Multiple studies have introduced bias-correction algorithms resistant to local function heterogeneity, such as the alternating direction method of multipliers (ADMM) based methods , EXTRA , Exact-Diffusion (ED) (also known as NIDS and D2 ), and Gradient-Tracking (GT) methods . It has been established that these bias-correction methods outperform DSGD . Yet, all these methods necessitate communication at every iteration.
Locally updated stochastic decentralized methods have received less attention than centralized methods and are more challenging to study. Federated learning can be viewed as a subset of decentralized optimization and learning under time-varying and asynchronous updates . For instance, DSGD with local steps, termed Local-DSGD, has been studied in and is analogous to Local-SGD when the network is fully connected. However, just as DSGD suffers from bias, Local-DSGD does too. Furthermore, similar to Local-SGD, it also experiences drift. Increasing the number of local steps exacerbates this drift in the solution, requiring the use of very small stepsizes, which significantly slows down convergence.
Only a few works have studied decentralized methods with local updates and bias correction. The work in studied Local Gradient-Tracking (LGT) under nonconvex costs, but it focused solely on deterministic settings. Similarly, the research presented in explored a locally updated stochastic variant of gradient-tracking, namely -GT, but it too addressed only nonconvex settings. In this paper, we propose and investigate a different algorithm inspired by . Our results improve upon the rates of local GT-based methods and require just half the communication cost of existing approaches. Furthermore, our rates surpass those of Local-DSGD . Importantly, when employing a constant step size, LED achieves precise convergence in the deterministic (noiseless) case. In contrast, Local-DSGD does not, due to the bias/drift introduced by the heterogeneity in local functions, as discussed earlier. We will next formally outline our contributions.
2 Contribution
We propose Local Exact-Diffusion (LED) method for distributed optimization with local updates. An advantage over previous methods is that LED is a decentralized method that only requires one single vector communication per link and is robust to the functions heterogeneity – See Table 1. Numerical results are provided to demonstrate the effectiveness of LED over other methods.
We provide insights and draw connections between our proposed method and the following state-of-the-art algorithms: Exact-Diffusion , NIDS , D2 , ProxSkip/Scaffnew , VRL-SGD , and FedGATE . For instance, we demonstrate that LED can be interpreted as Scaffnew with fixed local updates instead of random ones. We also show that LED is a decentralized variant of the centralized methods FedGATE and VRL-SGD . Furthermore, we highlight that all these methods can be traced back to the primal-dual method PDFP2O (also known as PAPC ) in the case of a single local update.
We establish the convergence of LED in both (strongly-)convex and nonconvex environments for online stochastic learning settings. Our rates improve upon existing bounds for local decentralized methods—see Table 2. It is worth noting that the analysis of LED is more challenging than that of Local-DSGD, even in the single local update scenario. Additionally, in contrast to Local-DSGD, LED is robust to heterogeneity in local functions and converges exactly in the deterministic case (no noise), as discussed earlier.
A byproduct of our result is that, when adapting our analysis to centralized networks, we achieve new and tighter analyses for the methods VRL-SGD and FedGATE .
Outline. This paper is organized as follows: Section 2 introduces our algorithm and its motivation. In Section 3, we compare our method with other leading approaches. Section 4 presents our core assumptions and convergence findings, and a discussion comparing our results with prior works. Section 5 provides simulation outcomes, and conclusions are drawn in Section 6. Detailed proofs are reserved for the appendix.
Local Exact-Diffusion
In this section, we start by describing the proposed algorithm in its decentralized implementation. We then rewrite it in network notation for reasons of analysis and interpretation.
The method under study is described in Alg. 1 and is named Local Exact-Diffusion (LED). In step 1, each node employs local updates, starting from the initialization , which is its local estimate of the solution after the communication round . Step 2 is the communication round during which each node sends its local intermediate estimate to its neighbors , where the symbol denotes the set of neighbors of node (including node ); in this step, is a nonnegative scalar weight that node uses to scale the information received from node . The final step, step 3, is where each node updates its (dual) estimate .
2 Networked description
The LED method, as listed in 1, is described at the node level. For the analysis and interpretation of the method, we will present it in a networked form. To do this, we introduce the following network weight matrix notation:
Then, Algorithm 1 can be represented in a compact networked form as follows: Given , set (or ) and update for
Local primal updates: set , for :
The networked description (6) will be used for analysis purposes.
3 Motivation and relation with Exact-Diffusion
Exact-Diffusion (ED) was derived in and takes the following form:
The unified decentralized algorithm (UDA) from demonstrated that the iterates of ED in (7) can be equivalently described by:
where . The above form is convenient for analytical purposes; however, it cannot be implemented in a decentralized fashion due to .
To derive our method, we set in (8c) and introduce the change of variable . This leads to the following description:
It can be observed that the update LED-1 (9c) is equivalent to LED (6) when . In other words, LED (6) is an extension of LED-1 (9c) that incorporates local updates.
where and is a stepsize parameter. When , NIDS reduces to ED (7). We also note that ED (or NIDS with ) has been studied under the name D2 . Thus, LED can be viewed as a modification of NIDS/D2 that incorporates local updates.
It is important to note that the updates (7), (8c), and (9c) are equivalent only when there are no multiple local updates and . To understand this, observe that the local updates variants can be modeled as a time-varying graph , where when , and otherwise. In this scenario, the updates differ for all these methods. Indeed, for this case, the updates (7) and (8c) are not guaranteed to converge and often diverge in simulations.
Connection with existing algorithms
In this section, we discuss and highlight the connections of LED to the following algorithms: Scaffnew/ProxSkip , VRL-SGD , and FedGate . We also demonstrate that all these methods can be traced back to the primal-dual method PDFP2O , which is also known as PAPC and was initially proposed in for quadratic objectives.
We now demonstrate that LED (6) with (i.e., LED- (9c)) can be interpreted as the primal-dual algorithm PDFP2O applied to the following reformulation of problem (2):
where and is the indicator function of zero, i.e., if and otherwise. Problem (10) is equivalent to (2) because if and only if – see .
The following updates are obtained when PDFP2O is applied to formulation (10):
where denotes the proximal operator of the conjugate of and are stepsize parameters. The following result relates LED-1 (9c) (LED (6) with ) with PDFP2O (11b).
The updates of PDFP2O (11b) can be rewritten as
It follows that PDFP2O (12) is equivalent to LED-1 (9c) when .
If we let , then we can rewrite equation (11b) as follows:
Since is the indicator function of zero, we have ; thus . Moreover, observe that
The above result demonstrates that LED (6) can be interpreted as a locally updated variant of PDFP2O (11b). It also shows that ED/D2 and NIDS are different representations of PDFP2O applied on formulation (10).
2 Relation with Scaffnew
The work studied a proximal skipping variant of PDFP2O. The decentralized Scaffnew method is given by [44, Alg. 5]:
where are stepsize parameters. Observe that (15) employs local updates (15a) and communicates only with a small probability (15b). If we let and (communicate at each iteration) then (15) reduces to
The update (16) is the same as PDFP2O (12) when . Consequently, when and (16) is exactly LED-1 (9c) when .
LED (6) employs a fixed number of local updates between two communication rounds, whereas Scaffnew uses random number of local updates between two communication rounds. The use of random communication skipping or fixed local steps differs in analysis, however, in terms of performance they are strikingly similar with playing the role of .
The work analyzes Scaffnew and shows that local steps can save communication when the network is well connected. We point out that the analysis techniques in do not show linear speedup and are only-suited for the probabilistic implementation with strongly-convex costs. The techniques we present in this work are distinct and applicable to the locally updated variant with a deterministic number of local updates (6) for both nonconvex and (strongly-)convex settings.
3 Relation with FedGATE/VRL-SGD
The work introduced and analyzed a federated learning algorithm (centralized method) named FedCOMGATE that employs compression; without compression the method reduces to FedGATE [24, Alg. 3], which is a generalization of VRL-SGD . We will now show the relationship between FedGATE/VRL-SGD and the centralized version of LED. As a first step, we will represent FedGATE/VRL-SGD in a networked form.
FedGATE is described as follows [24, Alg. 3]: For , set , for :
where is a global stepsize parameter. By letting and employing the network notation defined in (5) with , the method above can be rewritten as:
It’s now evident that when , the update (18) aligns with LED (6) when and . It’s worth noting that the updates (18) simplify to VRL-SGD when . In essence, FedGATE with (or VRL-SGD) corresponds to LED in the fully connected network scenario. This also suggests that FedGATE and VRL-SGD are locally updated versions of PDFP2O (11b) with .
All of the derivations in this section require appropriate stepsizes tuning and are based on the assumption that the graph is static (i.e., is constant). When the stepsizes differ or the graph is dynamic (as in the local update variant), these various representation may not necessarily be equivalent. We note that the analysis techniques from are particularly suited for static graphs and are limited to the strongly-convex case. Moreover, the techniques from are tailored for centralized networks. In contrast, our analyses address the more challenging decentralized connections with local updates; thus, our techniques can be specialized for these methods. In fact, our analysis can provide tighter rates compared to those in . Remark 8 explains how to adapt our techniques to the centralized scenario.
Convergence result
In this section, we present our main convergence findings and discuss how they differ from previous results. Before proceeding, we will review the assumptions necessary for our results to hold, which are standard in the literature .
The weight matrix is symmetric, doubly stochastic, and primitive. Moreover, we assume that is positive definite.
Under Assumption 1, the eigenvalues of , denoted by , are all strictly less than one (in magnitude for nonpositive definite ), with the exception of a single eigenvalue at one, which we denote by . The network’s mixing rate is defined as:
Each stochastic gradient is unbiased with bounded variance:
Each function is -smooth:
for some . Additionally, the aggregate function is bounded below, i.e., for every , where denotes the optimal value of .
Under the aforementioned assumption, the aggregate function is also -smooth.
Assumptions 1–3 are sufficient to establish convergence under nonconvex settings. We will also study convergence under additional convexity assumption given below.
Each function is (-strongly)convex for some . (When , then the functions are simply convex.)
2 Main results
We are now ready to present our main findings. The convergence results for nonconvex and convex functions are presented in Theorems 1 and 2, respectively. The final convergence rates derived from these theorems are given in Corollaries 1 and 2. All proofs can be found in the appendices.
Under Assumptions 1–3, and for sufficiently small constant stepsizes and , it holds that
Under Assumptions 1–4, and for sufficiently small constant stepsizes and , it holds that for (convex case)
where and is a constant that depends on the initialization.
For the nonconvex case and when , Theorem 1 shows that the algorithm converges to a radius around some stationary point, which can be controlled by the stepsize . Without any additional assumptions, a stationary point is the best guarantee possible and is a satisfactory criterion to measure the performance of distributed methods with nonconvex objectives . For the convex case, Theorem 2 shows that the algorithm converges around some optimal solution controlled by the stepsize .
Suppose the conditions of Theorem 1 are met. Then, in the noiseless deterministic case where , substituting this into (22) gives the nonconvex rate:
Therefore, LED converges exactly in the deterministic case with a rate of . Similar results can be obtained for the convex cases.
For the stochastic case, the stepsize is tuned based on to obtain the following result.
For the nonconvex, convex, and strongly convex cases, there exists a stepsize that yields the following rates.
Here, and .
The stepsize yielding the results in Corollary 2 is intricate and not very practical. It’s chosen mainly for theoretical reasons, as it provides the optimal convergence rate based on our bounds. We opted for this choice to ensure fair comparisons with SCAFFOLD, Local-DSGD, and K-GT, which also tune the stepsize in a similar manner.
In practice, we typically set for both the nonconvex and convex cases, and for the strongly-convex case. For instance, if we plug in into (22), we obtain the rate
For large , the above rate is also consistent with (25).
Suppose Assumptions 2–3 hold. Then, with the appropriate parameters, the LED under the server-workers scenario, as listed in Alg. 2, converges at the rate
Discussion of our results. We will discuss our results for the nonconvex case; similar arguments apply for the convex case. For large , the higher-order terms from (25) can be neglected, and the dominant part becomes on the order of . This suggests that to achieve an accuracy, we need . In this scenario, the advantages of and are evident. Furthermore, the number of communication rounds required to achieve accuracy decreases linearly with ; this characteristic is termed linear speed-up . When is not sufficiently large, then the higher-order terms, specifically and , cannot be ignored as they may slow down the convergence. For instance, when the network is sparse, the quantity can be extremely small as ; in this situation, the rate becomes slower, as will be discussed in Section 5. Table 2 lists the convergence rate of LED compared to state-of-the-art results, in terms of the number of communication rounds needed to achieve accuracy.
Compared to our results, observe that Local-DSGD introduces an additional term (or for the strongly convex case) where represents the local functions heterogeneity constant, such that . This additional term result in suboptimal convergence rates, even in deterministic () scenarios, causing a significant slow down in convergence (refer to the Simulation section for more details). When compared to -GT , the second and third terms are , whereas in our rate for LED, these are . The factor becomes notably small for sparse networks, which indicates that the performance of -GT may degrade significantly relative to LED in sparsely connected networks. Note that considering a single local step, with , our rates align with the best-established decentralized rates .
The table also enumerates the rate of the centralized method SCAFFOLD as cited in . For centralized networks defined by , our rate matches that of SCAFFOLD . In fact, our rate is more refined than VRL-SGD, presented in . Specifically, our bound allows for setting . In this scenario, the number of communication rounds necessary to achieve precision is given by . In contrast, suggests that achieving precision requires a communication round count worse by a factor of , specifically (as seen in [24, Table 6]). Moreover, in the convex scenario, our rate is sharper than that of FedGate from , which is (also observed in [24, Table 6]). This implies that when adapting our analysis to centralized networks, we provide new and improved analyses for the methods VRL-SGD and FedGATE .
Numerical simulations
In this section, we use numerical simulations to demonstrate and validate our findings on the logistic regression problem with a nonconvex regularizer given by
Simulation results. Figure 1 compares our LED method with the decentralized methods L-DSGD , LGT , and -GT for different local steps , , and . In order to fairly compare the convergence rates of these methods, we individually tune the parameters of each algorithm so that each method reaches a predetermined error of as quickly as possible. We used a ring (cycle) network and the weight matrix was generated using the Metropolis rule with . We observe that LED outperforms all the other methods as we increase the number of local steps (rightmost plot). L-DSGD performs poorly because it cannot handle the local functions heterogeneity across the nodes. It’s worth noting that increasing the number of local steps reduces the communication required to achieve the same level of accuracy.
Figure 2 shows the results against the centralized methods SCAFFOLD and Local-SGD; in this case, the network is fully connected . We observe that both LED and SCAFFOLD perform similarly. Furthermore, the performance of Local-DSGD degrades as the number of local updates increases, as expected. It’s worth noting that in these figures, the horizontal-axis refers to the number of communication rounds. For GT and SCAFFOLD, each agent must communicate two vectors to its neighbors per communication round. In contrast, LED and Local-DSGD requires the communication of only one vector.
Is local steps always beneficial? From Figure 1, it can be observed that we can save on communication when we increase the number of local steps. However, these results hold for the stochastic case, and the significant benefits primarily arise from using more data per communication (similar to batch training). To further test the benefits of local steps, we consider the deterministic case, in which . Figures 3(a)–3(b) depict the results of LED with different local steps and various topologies under both heterogeneous and similar data regimes. When the data is heterogeneous, Figure 3(a) shows that the benefits of local steps are only visible in the fully connected network. Conversely, when the data is similar across nodes (minimal heterogeneity), there is a significant benefit to local steps, as shown in Figure 3(b). However, for a sparse network (ring topology), we don’t observe any noticeable advantage. These findings suggest that local steps can be beneficial when the network is well-connected and/or when data is consistent across the network.This can be explained by our theoretical results as follows. Assuming the network is well-connected (), we can disregard the term from the rate expression (25). The dominant part of the rate then simplifies to . In this scenario, when data heterogeneity is relatively small (e.g., ), the benefits of become evident. Conversely, if the network is sparse (), then can be quite large. In such a case, the dominant terms in the rate would be . Notice that adversely affects the higher-order terms, thus slowing down convergence.
Concluding remarks
In this work, we proposed Local Exact-Diffusion (LED), a locally updated method inspired by the framework from and the Exact-Diffusion method . We demonstrated that LED can be interpreted as the primal-dual method PDFP2O/PAPC from . We also explored its connection with the following methods: Exact-Diffusion (ED) , NIDS , D2 , Scaffnew , VRL-SGD , and FedGate . We proved the convergence of LED in both convex and nonconvex settings and established bounds that offer improvements over existing decentralized methods. Finally, we provided numerical simulations to illustrate the effectiveness of the proposed algorithm.
A promising direction for future research involves examining LED in the context of probabilistic local updates. It’s worth exploring if the current analysis can be integrated with techniques from Scaffnew/ProxSkip to understand the advantages of local steps in non-strongly-convex scenarios. Another potential avenue is broadening LED to accommodate time-varying stochastic graphs. Furthermore, it would be insightful to see if decentralized local methods might also offer advantages for other network coupling constraints, as seen in multitask problems or the distributed feature problem.
Acknowledgments
The author would like to thank Kun Yuan for his insightful discussions on parts of the manuscript.
References
Appendix A Preliminary transformation
In this section, we will convert LED updates (6) into another form more suitable for our analysis. To that end, we will first introduce some notation that complements the notation (5).
The following quantities will be used in the analysis:
A.2 Weight matrix decomposition
We will use the structure of the weight matrix in our analysis, which is a requirement for our proof. As a result, we will now go over some facts about the matrix . When Assumption 1 holds, then the weight matrix can be decomposed as follows :
where and the matrix has size , and satisfies and . It follows that can be decomposed as
Below, we provide a list of relevant facts and properties concerning the aforementioned decomposition.
The matrix satisfies
where is the smallest nonzero eigenvalue of and is the network’s mixing rate introduced in (19).
A.3 Transformed recursion
To obtain our result, we will perform a series of transformations that will eventually lead us to the critical result specified in Lemma 1. In order to study the communication complexity of LED, we begin by representing it in terms of communication rounds. It holds true when iterating through (6a) updates:
Observe that under our initialization, , will always be in the range of . As a result, we have for all . Multiplying both sides of (34a) by on the left and using the definitions in (30) , namely ], we get
Equation (35) above describes how the average (centroid) vector evolves in terms of communication rounds, which will be important in our analysis. Now, using the definitions in (30), namely and , the update (34) can be equivalently described as
The introduction of is inspired from . The quantity can be interpreted as a variable that tracks the average gradient vector . Observe that by and (30e), we have
We will next transform the updates (36) into quantities that measure how far and deviate from the averages and , respectively. To do so, we will leverage the structure and properties of the weight matrix (32).
Using the decomposition of given in (31), it holds that . Therefore, multiplying both sides of (36) by , it holds that
Rewriting (38) in matrix notation, we have
Note that from (32), we have and similarly . Thus, the above describes how the nodes vectors deviates from the averages. For , we will let
If the norm of the matrix is less than one , then the updates (A.3) can be used to directly measure the deviation from the averages. However, even though the eigenvalues of are less than one, its norm is not guaranteed to satisfy ; but, we can decompose and transform (A.3) into a more suitable form for our analysis, as shown in the important result below.
Suppose that Assumption 1 holds and , then
where is a matrix with norm , , and
Here, is some permutation matrix and is the imaginary number.
The proof exploits the special structure of the matrix given in (40). First note that if
where are constants, then there exists a permutation matrix such that
Since the blocks of given in (40) are diagonal matrices, there exists a permutation matrix such that
The eigenvalues of () are
Notice that when , which holds under Assumption 1 since , i.e., (). For , the eigenvalues of are complex and distinct:
where . Through algebraic multiplication it can be verified that where
We conclude that where and . Therefore, left multiplying both sides of (A.3) by where gives (41). Exploiting the structure of where is defined in (46) and using (44), we get
Using similar arguments for gives (42b).
The transformation in Lemma 1 is needed for decentralized network analysis since, as explained before, the norm of the matrix (40) is not necessarily less than one. However, when the network is fully-connected (centralized case), we have , and thus, it follows from (A.3) that and when , we have
In this case, the analysis can be greatly simplified since . This specialization covers the method VRL-SGD . A similar approach can also be adapted to FedGate , as described in (18). Doing so eventually leads to the result in Corollary LABEL:cor_centralized. See Appendix D.
Appendix B Convergence analysis
In this section, we will prove Theorems 1 and 2. The proof utilizes equations (35) and (41) derived in the previous section. We want to emphasize that some of the bounds may appear tedious, even though they only involve basic algebra. Such complexity is common in decentralized analysis, as seen in, for example, .
In the proof, we will use the following useful results and facts. (You may overlook and refer to this subsection later in the proofs.)
Since the squared norm is convex, applying Jensen’s inequality, it holds that
Many bounds later in the proofs uses inequality (48a) without referring to it to avoid redundancies.
Taking the squared norm on both sides of (42a) and using (48a), it holds that:
where and are the upper and lower blocks of . It follows that:
where we used and since is a permutation matrix .
The last step holds by using Jensen’s inequality (48) and (32)–(33). Following similar arguments, it can be shown that the squared norm of
B.2 Key bounds
In this section, we derive some key bounds that will be used to establish our result for both nonconvex and convex cases.
The first bound involves the cumulative deviation of the local updates from the averaged vector at the previous communication round defined as
Let Assumptions 2–3 hold, then for we have
The proof extends the techniques from [10, Lemma 8]. When , then for all and
Now suppose that . Then, using (6a), it holds that
The second inequality uses (48b) with . The last inequality holds for , which is satisfied if . Iterating the inequality above for :
where in the second and third inequalities we used for . Summing over and :
The next result measures the deviation from the average vector introduced in Lemma 1.
where and were defined in Lemma 1.
From now on we use the notation and . From (41), (53), and (55), we have
where . The second line follows from the unbiased stochastic gradient condition (20a) and the last step uses Jensen’s inequality (48). Using and gives
Substituting the previous two bounds into (60) and taking expectation gives
Substituting (58) into the above inequality yields
B.3 Nonconvex case (Theorem 1)
The nonconvex proof begins with the following bound for any -smooth function :
Recall from (35) that \bar{x}^{r+1}=\bar{x}^{r}-\frac{\alpha}{N}\sum_{t=0}^{\uptau-1}\sum_{i=1}^{N}\big{(}\nabla f_{i}(\phi^{r}_{i,t})+s^{r}_{i,t}\big{)}. Substituting and into inequality (63), and taking conditional expectation, we get
where the second bound holds from Jensen’s inequality (48). Combining the last two equations and taking expectation yields
Substituting the bound (58) into inequality (66) and taking expectation yields
When , we can upper bound the previous inequality by
The last step uses Jensen’s inequality and , i.e.,
Averaging over and using (71), it holds that
Adding to both sides of the previous inequality and using , we get
Substituting inequality (74) into (68) and rearranging, we obtain
Now from (49), we can bound by
where the second inequality we used (30e) () and Jensen’s inequality. The last inequality holds under initialization . We conclude that
where .
B.4 Convex cases (Theorem 2)
Recall from (35) that \bar{x}^{r+1}=\bar{x}^{r}-\frac{\alpha}{N}\sum_{t=0}^{\uptau-1}\sum_{i=1}^{N}\big{(}\nabla f_{i}(\phi^{r}_{i,t})+s^{r}_{i,t}\big{)}. Thus, it holds that
The first inequality we used the zero mean condition (20a) and Jensen’s inequality. The second inequality holds from bounded noise variance condition from Assumption 2 and Jensen’s inequality. We now bound the cross term by using the bound [10, Lemma 5]:
for any -smooth and -strongly convex function . Using (81), we can bound the cross term as follows
where . Substituting the previous bound into (80) and taking expectation gives
where . Note that
Substituting the previous bound into (B.4) gives
The last inequality holds for or
Substituting the bound (58) into the above inequality gives
In the last step, we used , which is satisfied under Assumption 4 . Using , i.e.,
where the last inequality holds when , i.e.,
Substituting the bound (58) into the above inequality yields
Using the condition , which holds when
the right hand side can be upper bounded by
For convex but not strongly-convex, we have and equation (87) becomes
Plugging into (92) gives
Iterating and averaging over
Adding to both sides of the previous inequality and using , we get
Substituting inequality (98) into (95) and rearranging, we obtain
where .
B.4.2 Strongly-convex case μ>0𝜇0\mu>0
where the last inequality follows from . It follows that
where the last inequality holds under the step size condition:
Since , we can iterate inequality (105) to get
Taking the -induced-norm and using properties of the (induced) norms, it holds that
The last step holds for or , which holds under condition (85). Therefore,
Substituting the above into (109) and using (106), we obtain
Appendix C Proof of Corollary 2
The final rate can be obtained by tuning the stepsize in a way similar to .
If all nodes use equal initialization, then equation (B.3) ((22) from Theorem 1) reduces to
Note that the above holds under the condition:
where satisfies all stepsize conditions used to derive (22). Setting . Then we have three cases.
When and is smaller than both and , then
When , then
When , then
Combining the above three cases together it holds that
Substituting the above into (111), we conclude that
The rate (25) follows by plugging the parameters (112) and using (113).
If we start from equal initialization then the convex bound (B.4.1) also satisfies (111) under condition
Therefore, the rate can be obtained by following the same arguments used for the noncovex case.
Using the stepsize condition used to derive Theorem 2, namely,
and starting from equal initialization, inequality (B.4.2) ((24)) can be upper bounded by
Now we select to get the following cases.
If then
Otherwise and
Collecting these cases together into (116), we obtain
Plugging in the parameters and using (115) gives the final rate (27).
Appendix D LED analysis in the centralized server-workers setup
In this section, we will analyze LED within the server-workers setup. Specifically, we will examine the algorithm listed in 2. It can be verified that this algorithm is equivalent to Algorithm 1 for the fully connected network case, , when . Here, is an additional parameter that allows us to derive tighter bounds. To make this section self-contained, we will revisit steps similar to those in the decentralized case but specialized for the centralized case, leading to simpler steps.
Using the above notation, Algorithm 2 can be described in compact form as follows: Set and do:
For analysis purposes, we also introduce the notation:
D.1 Centroid and gradient deviation
When , the iterates will always be in the range of , consequently, for all . Using this and the fact , the updates (122) become
Using the definitions in (121) into (123b), we have
Let , then we have for :
where in the last step we used and . Therefore,
It follows from (123a) and (125) and that
D.2 Auxiliary bounds
Let Assumptions 2–3 hold, then for we have
The last inequality holds for , which is satisfied if . Iterating the inequality above for :
where in the second and third inequalities we used for . Summing over and :
The result follows by using . ∎
For , it holds that
From now on we use the notation and . From (126b)
Substituting (128) into the above inequality yields
D.3 Nonconvex case
Recall from (126a) that x^{r+1}=x^{r}-\frac{\alpha\gamma}{N}\sum_{t=0}^{\uptau-1}\sum_{i=1}^{N}\big{(}\nabla f_{i}(\phi^{r}_{i,t})+s^{r}_{i,t}\big{)}. Substituting and into inequality (63), and taking conditional expectation, we get
where the second bound holds from Jensen’s inequality. Combining the last two equations and taking expectation yields
Substituting the bound (128) into inequality (132) and taking expectation yields
When , we can upper bound the previous inequality by
Substituting inequality (139) into (135) and rearranging, we obtain
If we set , then it holds that
The proof for the convex cases can also be specialized for the centralized case to obtain the rate given in Table 2.