Harnessing Smoothness to Accelerate Distributed Optimization

Guannan Qu, Na Li

I Introduction

using local communication and local computation. The local communication is defined through an undirected communication graph G=(V,E)\mathcal{G}=(V,E), where the nodes V=NV=\mathcal{N} and the edges EV×VE\subset V\times V. Agent ii and jj can send information to each other if and only if ii and jj are connected in graph G\mathcal{G}. The local computation means that each agent can only make his decision based on the local function fif_{i} and the information obtained from his neighbors.

This problem has recently received much attention and has found various applications in multi-agent control, distributed state estimation over sensor networks, large scale computation in machine/statistical learning , etc. As a concrete example, in the setting of distributed statistical learning, xx is the parameter to infer, and fif_{i} is the empirical loss function of the local dataset of agent ii. Then minimizing ff means empirical loss minimization that uses datasets of all the agents.

The early work of this problem can be found in . Recently, (see also ) proposes a consensus-based distributed (sub)gradient descent (DGD) method where each agent performs a consensus step and then a descent step along the local (sub)gradient direction of fif_{i}. Reference applies a similar idea to develop a distributed dual averaging algorithm. Extensions of these work have been proposed that deal with various realistic conditions, such as stochastic subgradient errors , directed or random communication graphs , linear scaling in network size , heterogeneous local constraints . Overall speaking, these DGD (or DGD-like) algorithms are designated for nonsmooth functions and they achieve the same convergence speed O(logtt)O(\frac{\log t}{\sqrt{t}}) as centralized subgradient descent. They can also be applied to smooth functions, but when doing so they either do not guarantee exact convergence when using a constant step size , or have a convergence rate of at most Ω(1t2/3)\Omega(\frac{1}{t^{2/3}}) when using a diminishing step size , slower than the normal Centralized Gradient Descent (CGD) method’s O(1t)O(\frac{1}{t}). Therefore, DGD does not fully exploit the function smoothness and has a slower convergence rate compared with CGD. In fact, we prove in this paper that for strongly convex and smooth functions, it is impossible for DGD-like algorithms to achieve the same linear convergence rate as CGD (Theorem 6). Alternatively, suggest that it is possible to achieve faster convergence for smooth functions, by performing multiple consensus steps after each gradient evaluation. However, it places a larger communication burden. These drawbacks pose the need for distributed algorithms that effectively harness the smoothness to achieve faster convergence, using only one communication step per gradient evaluation iteration.

In this paper, we propose a distributed algorithm that can effectively harness the smoothness, and achieve a convergence rate that matches CGD, using only one communication step per gradient evaluation. Specifically, our algorithm achieves a O(1t)O(\frac{1}{t}) rate for smooth and convex functions (Theorem 3), and a linear convergence rate (O(γt)O(\gamma^{t}) for some γ(0,1)\gamma\in(0,1)) for smooth and strongly convex functions (Theorem 1).A recent paper also achieves similar convergence rate results using a different algorithm. A detailed comparison between our algorithm and will be given in Section III-C. The convergence rates match the convergence rates of CGD, but with worse constants due to the distributed nature of the problem. Our algorithm is a combination of gradient descent and a novel gradient estimation scheme that utilizes history information to achieve fast and accurate estimation of the average gradient. To show the necessity of history information, we also prove that it is impossible for a class of distributed algorithms like DGD to achieve a linear convergence rate without using history information even if we restrict the class of objective functions to be strongly convex and smooth (Theorem 6).

Moreover, our scheme can be cast as a general method for obtaining distributed versions of many first-order optimization algorithms, like Nesterov gradient descent . We expect the distributed algorithm obtained in this way will have a similar convergence rate as its centralized counterpart. Some preliminary results on applying the scheme to Nesterov gradient descent can be found in our recent work .

Besides that studies an algorithm with similar performance, we note that variants of the algorithm in this paper have appeared in a few recent work, but these work has different focus compared to ours. Reference focuses on uncoordinated step sizes. It proves the convergence of the algorithm but does not provide convergence rate results. Reference focus on (possibly) nonconvex objective functions and thus have different step size rules and convergence results compared to ours. More recently, prove a linear convergence rate of the same algorithm for strongly convex and smooth functions, with focusing on time-varying graphs and focusing on uncoordinated step sizes. At last, and have studied a variant of the algorithm for directed graphs. To the best of our knowledge, our work is the first to study the O(1t)O(\frac{1}{t}) convergence rate of the algorithm without the strongly convex assumption (with only the convex and smooth assumption). Also, our way of proving the linear convergence rate is inherently different from that of .

At last, we would like to emphasize that the focus of this paper is the consensus-based, first-order distributed algorithms. We note that there are other types of distributed optimization algorithms, like second-order distributed algorithms , Alternating Direction Method of Multipliers (ADMM) etc. However these methods are inherently different from the algorithms studied in this paper, and thus are not discussed in this paper.

The rest of the paper is organized as follows. Section II formally defines the problem and presents our algorithm and results. Section III reviews previous methods, introduces an impossibility result and motivates our approach. Section IV proves the convergence of our algorithm. Lastly, Section V provides numerical simulations and Section VI concludes the paper.

II Problem and Algorithm

using local communication and local computation. The local communication is defined through an undirected and connected communication graph G=(V,E)\mathcal{G}=(V,E), where the nodes V=NV=\mathcal{N} and edges EV×VE\subset V\times V. Agent ii and jj can send information to each other if and only if (i,j)E(i,j)\in E. The local computation means that each agent can only make its decision based on the local function fif_{i} and the information obtained from its neighbors.

Throughout the paper, we assume that the set of minimizers of ff is non-empty. We denote xx^{*} as one of the minimizers and ff^{*} as the minimal value. We will study the case where each fif_{i} is convex and β\beta-smooth (Assumption 1) and also the case where each fif_{i} is in addition α\alpha-strongly convex (Assumption 2). The definition of β\beta-smooth and α\alpha-strongly convex are given in Definition 1 and 2 respectively.

i,fi\forall i,f_{i} is convex and β\beta-smooth.

i\forall i, fif_{i} is α\alpha-strongly convex.

Since ff is an average of the fif_{i}’s, Assumption 1 also implies ff is convex and β\beta-smooth, and Assumption 2 also implies ff is α\alpha-strongly convex.

II-B Algorithm

For any (i,j)E(i,j)\in E, we have wij>0w_{ij}>0. For any iNi\in\mathcal{N}, we have wii>0w_{ii}>0. For other (i,j)(i,j), we have wij=0w_{ij}=0.

Matrix WW is doubly stochastic, i.e. iwij=jwij=1\sum_{i^{\prime}}w_{i^{\prime}j}=\sum_{j^{\prime}}w_{ij^{\prime}}=1 for all i,jNi,j\in\mathcal{N}.

where [wij]n×n[w_{ij}]_{n\times n} are the consensus weights and η>0\eta>0 is a fixed step size. Because wij=0w_{ij}=0 when (i,j)E(i,j)\notin E, each node ii only needs to send xi(t)x_{i}(t) and si(t)s_{i}(t) to its neighbors. Therefore, the algorithm can be operated in a fully distributed fashion, with only local communication. Note that the two consensus weight matrices in step (2) and (3) can be chosen differently. We use the same matrix WW to carry out our analysis for the purpose of easy exposition.

The update equation (2) is similar to the algorithm in (see also (5) in Section III), except that the gradient is replaced with si(t)s_{i}(t) which follows the update rule (3). In Section III and IV-B, we will discuss the motivation and the intuition behind this algorithm.

The key of our algorithm is the gradient estimation scheme (3) and it can be used to obtain distributed versions of many other gradient-based algorithms. For example, suppose a centralized algorithm is in the following form,

where x(t)x(t) is the state, Ft\mathcal{F}_{t} is the update equation. We can write down a distributed algorithm as

Our conjecture is that for a broad range of centralized algorithms, the distributed algorithm obtained as above will have a similar convergence rate as the centralized one. Our ongoing work includes applying the above scheme to other centralized algorithms like Nesterov gradient method. Some of our preliminary results are in .

II-C Convergence of the Algorithm

To state the convergence results, we need to define the following average sequences.

Under the smooth and strongly convex assumptions (Assumption 1 and 2), when η\eta is such that the matrix

has spectral radius ρ(G(η))<1\rho(G(\eta))<1, then i\forall i, xˉ(t)x\|\bar{x}(t)-x^{*}\| (distance to the optimizer), xi(t)xˉ(t)\|x_{i}(t)-\bar{x}(t)\| (consensus error), and si(t)g(t)\|s_{i}(t)-g(t)\| (gradient estimation error) are all decaying with rate O(ρ(G(η))t)O(\rho(G(\eta))^{t}). Moreover, we have f(xi(t))ff(x_{i}(t))-f^{*} (objective error) is decaying with rate O(ρ(G(η))2t)O(\rho(G(\eta))^{2t}).

The following lemma provides an explicit upper bound on the convergence rate ρ(G(η))\rho(G(\eta)).

When 0<η<1β,0<\eta<\frac{1}{\beta}, we have ρ(G(η))max(1αη2,σ+5ηββα)\rho(G(\eta))\leq\max(1-\frac{\alpha\eta}{2},\sigma+5\sqrt{\eta\beta}\sqrt{\frac{\beta}{\alpha}}). Specifically, when η=αβ2(1σ6)2\eta=\frac{\alpha}{\beta^{2}}(\frac{1-\sigma}{6})^{2}, ρ(G(η))112(αβ1σ6)2<1\rho(G(\eta))\leq 1-\frac{1}{2}(\frac{\alpha}{\beta}\frac{1-\sigma}{6})^{2}<1.

If we drop the strongly convex assumption, we have the following result.

Under the smooth assumption (Assumption 1), when 0<η(1σ)2160β0<\eta\leq\frac{(1-\sigma)^{2}}{160\beta}, the following is true.

where x^i(t+1)\hat{x}_{i}(t+1) is the running average of agent ii defined to be x^i(t+1)=1t+1k=0txi(k+1)\hat{x}_{i}(t+1)=\frac{1}{t+1}\sum_{k=0}^{t}x_{i}(k+1).

Since the objective error is nonnegative, we have for each iNi\in\mathcal{N}, f(x^i(t+1))fn×1nj=1n[f(x^j(t+1))f]f(\hat{x}_{i}(t+1))-f^{*}\leq n\times\frac{1}{n}\sum_{j=1}^{n}[f(\hat{x}_{j}(t+1))-f^{*}]. This leads to the following simple corollary of Theorem 3 regarding the individual objective errors f(x^i(t+1))ff(\hat{x}_{i}(t+1))-f^{*}.

Under the conditions of Theorem 3, we have i=1,,n\forall i=1,\ldots,n,

Our algorithm preserves the convergence rate of CGD, in the sense that it has a linear convergence rate when each fif_{i} is strongly convex and smooth, and a convergence rate of O(1t)O(\frac{1}{t}) when each fif_{i} is just smooth. However, we note that the linear convergence rate constant ρ(G(η))\rho(G(\eta)) is usually worse than CGD; and moreover, in both cases, our algorithm has a worse constant in the big OO terms. Moreover, compared to CGD, the step size rules depend on the consensus matrix WW (Lemma 2 and Theorem 3).

By Lemma 2 and Theorem 3(a), the convergence rate of our algorithm does not explicitly depend on nn but depends on nn through the second largest singular value σ\sigma of the consensus matrix WW. In Theorem 3(a) we consider the quantity 1ns(0)1g(0)\frac{1}{\sqrt{n}}\|s(0)-\mathbf{1}g(0)\| (and similarly 1nx(0)1xˉ(0)\frac{1}{\sqrt{n}}\|x(0)-\mathbf{1}\bar{x}(0)\|) to be not explicitly dependent on nn, since this quantity equals 1ni=1nsi(0)g(0)2\sqrt{\frac{1}{n}\sum_{i=1}^{n}\|s_{i}(0)-g(0)\|^{2}} and is essentially an average of some initial condition across the agents. The relationship between σ\sigma and nn is studied in for a general class of WW, and in Lemma 4 of when WW is selected using the Lapalcian method (to be introduced in Section V-A).

In Lemma 2 and Theorem 3, the step sizes depend on the parameter σ\sigma which requires global knowledge of graph G\mathcal{G} to compute. To make the algorithm fully distributed, we now relax the step size rules such that each agent only needs to know an upper bound UU on the number of agents nn, i.e. UnU\geq n. To achieve this, we require each agent select the weights WW to be the lazy Metropolis matrix , i.e.

In (4), did_{i} denotes the degree of agent ii in graph G\mathcal{G}, and NiN_{i} denotes the set of neighbors of agent ii. Note that the WW in (4) can be computed distributedly, since each agent only needs to know its own degree and its neighbor’s degree to compute wijw_{ij}. Moreover, Lemma 2.1 in shows that if WW is selected according to (4), σ<1171n21171U2\sigma<1-\frac{1}{71n^{2}}\leq 1-\frac{1}{71U^{2}}. Combining this with our original step size rules in Lemma 2 and Theorem 3, we have the following corollary in which the step size rules are relaxed to only depend on UU.

Under the assumptions of Theorem 1, if WW is chosen according to (4) and η=αβ2(1426U2)2\eta=\frac{\alpha}{\beta^{2}}(\frac{1}{426U^{2}})^{2}, then ρ(G(η))112(αβ1426U2)2\rho(G(\eta))\leq 1-\frac{1}{2}(\frac{\alpha}{\beta}\frac{1}{426U^{2}})^{2} and the convergence results in Theorem 1 hold.

Under the assumptions of Theorem 3, if WW is chosen according to (4) and 0<η1160β(71U2)20<\eta\leq\frac{1}{160\beta(71U^{2})^{2}}, then the statements in Theorem 3 and Corollary 4 hold.

III Algorithm development: Motivation

In this section, we will briefly review distributed first-order optimization algorithms that are related to our algorithm and discuss their limitations which motivates our algorithm development. In particular, we will formally provide an impossibility result regarding the limitations. Lastly we will discuss the literature that motivates the idea of harnessing the smoothness from history information.

To solve the distributed optimization problem (1), consensus-based DGD (Distributed (sub)gradient descent) methods have been developed, e.g., , that combine a consensus algorithm and a first order optimization algorithm. For a review of consensus algorithms and first order optimization algorithms, we refer to references and respectively. For the sake of concrete discussion, we focus on the algorithm in , where each agent ii keeps an local estimate of the solution to (1), xi(t)x_{i}(t) and it updates xi(t)x_{i}(t) according to,

where gi(t)fi(xi(t))g_{i}(t)\in\partial f_{i}(x_{i}(t)) is a subgradient of fif_{i} at xi(t)x_{i}(t) (fif_{i} is possibly nonsmooth), and ηt\eta_{t} is the step size, and wijw_{ij} are the consensus weights. Algorithm (5) is essentially performing a consensus step followed by a standard subgradient descent along the local subgradient direction gi(t)g_{i}(t). Results in show that the running best of the objective f(xi(t))f(x_{i}(t)) converges to the minimum ff^{*} with rate O(logtt)O(\frac{\log t}{\sqrt{t}}) if using a diminishing step size ηt=Θ(1t)\eta_{t}=\Theta(\frac{1}{\sqrt{t}}). This is the same rate as the centralized subgradient descent algorithm up to a logt\log t factor.

When the fif_{i}’s are smooth, the subgradient gi(t)g_{i}(t) will equal the gradient fi(xi(t))\nabla f_{i}(x_{i}(t)). However, as shown in , even in this case the convergence rate of (5) can not be better than Ω(1t2/3)\Omega(\frac{1}{t^{2/3}}) when using a vanishing step size. In contrast, the CGD (centralized gradient descent) method,

converges to the optimum with rate O(1t)O(\frac{1}{t}) if the stepsize η\eta is a small enough constant. Moreover, when ff is further strongly convex, CGD (6) converges to the optimal solution with a linear rate. If a fixed step size η\eta is used in DGD (5), though the algorithm runs faster, the method only converges to a neighborhood of the optimizer . This is because even if xi(t)=xx_{i}(t)=x^{*} (the optimal solution), fi(xi(t))\nabla f_{i}(x_{i}(t)) is not necessarily zero.

To fix this problem of non-convergence, it has been proposed to use multiple consensus steps after each gradient descent . One example is provided as follows:

For each gradient descent step (LABEL:eq:dist_grad_mult_1), after ctc_{t} consensus steps (ct=Θ(logt)c_{t}=\Theta(\log t) in , and ct=Θ(t)c_{t}=\Theta(t) in ), the agents’ estimates xi(t+1)x_{i}(t+1) are sufficiently averaged, and it is as if each agent has performed a descent along the average gradient 1nifi(xi(t))\frac{1}{n}\sum_{i}\nabla f_{i}(x_{i}(t)). As a result, algorithm (7) addresses the non-convergence problem mentioned above. However, it places a large communication burden on the agents: the further the algorithm proceeds, the more consensus steps after each gradient step are required. In addition, even if the algorithm already reaches the optimizer xi(t)=xx_{i}(t)=x^{*}, because of (LABEL:eq:dist_grad_mult_1) and because fi(x)\nabla f_{i}(x^{*}) might be non-zero, yi(t,0)y_{i}(t,0) will deviate from the optimizer, and then a large number of consensus steps in (LABEL:eq:dist_grad_mult_2) are needed to average out the deviation. All these drawbacks pose the need for alternative distributed algorithms that effectively harness the smoothness to achieve faster convergence, using only one (or a constant number of) communication step(s) per gradient evaluation.

III-B An Impossibility Result

To compliment the preceding discussion, here we provide an impossibility result for a class of distributed first-order algorithms which include algorithms like (5). We use notation i-i to denote the set N/{i}\mathcal{N}/\{i\}. The class of algorithms we consider obey the following updating rule, iN\forall i\in\mathcal{N}

Here both H\mathcal{H} and F\mathcal{F} denote general functions with the following properties. Function H\mathcal{H} captures how agents use their neighbors’ information, and H\mathcal{H} is assumed to be a continuous function of the component xj(t)x_{j}(t), jNj\in\mathcal{N}. Note that H\mathcal{H} can be interpreted as the consensus step. Function F\mathcal{F} is a function of H\mathcal{H} and the scaled gradient direction ηtfi(xi(t1))\eta_{t}\nabla f_{i}(x_{i}(t-1)), and F(,)\mathcal{F}(\cdot,\cdot) is assumed to be LL-Lipschitz continuous in its second variable (when fixing the first variable). Note that F\mathcal{F} can be interpreted as a first-order update rule, such as the (projected) gradient descent, mirror descent, etc. Parameter ηt\eta_{t} can be considered as the step size, and we assume it has a limit η\eta^{*} as tt\rightarrow\infty. We will show that for strongly convex and smooth cost functions, any algorithm belonging to this class will not have a linear convergence rate, which is in contrast to the linear convergence of the centralized methods.

In the rest of the proof we focus on a restricted scenario in which f1=f2f_{1}=f_{2} and x1(0)=x2(0)x_{1}(0)=x_{2}(0). In this scenario, we can easily check x1(t)x_{1}(t) always equals x2(t)x_{2}(t) by induction. Firstly x1(0)=x2(0)x_{1}(0)=x_{2}(0). Then if assuming x1(t)=x2(t)x_{1}(t)=x_{2}(t), using f1=f2f_{1}=f_{2} we have x1(t+1)=F(H(x1(t),x2(t)),ηtf1(x1(t)))=F(H(x2(t),x1(t)),ηtf2(x2(t)))=x2(t+1)x_{1}(t+1)=\mathcal{F}(\mathcal{H}(x_{1}(t),x_{2}(t)),\eta_{t}\nabla f_{1}(x_{1}(t)))=\mathcal{F}(\mathcal{H}(x_{2}(t),x_{1}(t)),\eta_{t}\nabla f_{2}(x_{2}(t)))=x_{2}(t+1). In light of this, we introduce notation x(t)x1(t)=x2(t)x(t)\triangleq x_{1}(t)=x_{2}(t) and also ff1=f2f\triangleq f_{1}=f_{2}. Using the new notation, the update equation for x(t)x(t) becomes

Now we are ready to prove the Theorem. Notice that for any objective function ff, if we start from x(0)xx(0)\neq x^{*} (xx^{*} is the unique minimizer of ff), then the generated sequence x(t)x(t) satisfies

III-C Harnessing Smoothness via History Information

Motivated by the previous discussion and the impossibility result, we seek for alternative methods to exploit smoothness to develop faster distributed algorithms. Firstly we note that one major reason for the slow convergence of DGD is the decreasing step size ηt\eta_{t}. This motivates us to use a constant step size η\eta in our algorithm (2). But we have discussed that a constant η\eta will lead to optimization error due to the fact that fi(xi(t))\nabla f_{i}(x_{i}(t)) could be very different from the average gradient g(t)=1nifi(xi(t))g(t)=\frac{1}{n}\sum_{i}\nabla f_{i}(x_{i}(t)). However, because of smoothness, fi(xi(t+1))\nabla f_{i}(x_{i}(t+1)) and fi(xi(t))\nabla f_{i}(x_{i}(t)) would be close (as well as g(t+1)g(t+1) and g(t)g(t)) if xi(t+1)x_{i}(t+1) and xi(t)x_{i}(t) are close, which is exactly the case when the algorithm is coming close to the minimizer xx^{*}. This motivates the second step of our algorithm (3), using history information to get an accurate estimation of the average gradient g(t)g(t) which is a better descent direction than fi(xi(t))\nabla f_{i}(x_{i}(t)). Similar ideas of using history information trace back to , in which the previous gradient is used to narrow down the possible values of the current gradient to reduce communication complexity for a two-agent optimization problem.

A recent paper proposes an algorithm that achieves convergence results similar to our algorithm. The algorithm in can be interpreted as adding an integration type correction term to (5) while using a fixed step size. This correction term also involves history information in a certain way, which is consistent with our impossibility result. Our algorithm and are similar in the sense that they are both dynamical systems with order 2nN2nN, and take difference of gradients as inputs. But they are different in the sense that they are dynamical systems with different parameters, which result in different behaviors. The differences between our algorithm and are summarized below. Firstly, in our algorithm, the state si(t)s_{i}(t) serves as an estimator of the average gradient and can be used as a stopping criterion, like in many centralized methods where the norm of gradients is used as a stopping criterion. Secondly, in our algorithm, the update rule can be clearly separated into two parts, the first part being the update corresponding to centralized gradient descent, and the second part being the gradient estimator. With the separation, our algorithm can be easily extended to other centralized methods (see also Remark 1). Thirdly, the two consensus matrices in need to be symmetric and also satisfy a predefined spectral relationship, whereas our algorithm has a looser requirement on the consensus matrices. Fourthly, without assuming the strong convexity, achieves a O(1t)O(\frac{1}{t}) convergence rate in terms of the optimality residuals, which can be loosely defined as f(xi(t))2\|\nabla f(x_{i}(t))\|^{2} and xi(t)xˉ(t)2\|x_{i}(t)-\bar{x}(t)\|^{2}. Our algorithm not only achieves O(1t)O(\frac{1}{t}) for the optimality residuals, but also achieves O(1t)O(\frac{1}{t}) in terms of the objective error f(x^i(t))ff(\hat{x}_{i}(t))-f^{*}, which is a more direct measure of optimality. At last, one downside of our current results is that gives a step size bound that only depends on β\beta, whereas our step size bounds also depend on WW (Lemma 2 and Theorem 3).

IV Convergence Analysis

In this section, we prove our main convergence results Theorem 1, Lemma 2, and Theorem 3.

We can compactly write the update rule in (2) and (3) as

and also s(0)=(0)s(0)=\nabla(0). We start by introducing two straightforward lemmas. Lemma 7 derives update equations that govern the average sequence xˉ(t)\bar{x}(t) and sˉ(t)\bar{s}(t). Lemma 8 gives several auxiliary inequalities. Lemma 7 is a direct consequence of the fact WW is doubly stochastic and s(0)=(0)s(0)=\nabla(0), and Lemma 8 is a direct consequence of the β\beta-smoothness of fif_{i}. The proofs of the two lemmas are postponed to Appendix--A.

sˉ(t+1)=sˉ(t)+g(t+1)g(t)=g(t+1)\bar{s}(t+1)=\bar{s}(t)+g(t+1)-g(t)=g(t+1)

xˉ(t+1)=xˉ(t)ηsˉ(t)=xˉ(t)ηg(t)\bar{x}(t+1)=\bar{x}(t)-\eta\bar{s}(t)=\bar{x}(t)-\eta g(t)

Under Assumption 1, the following inequalities hold.

(t)(t1)βx(t)x(t1)\|\nabla(t)-\nabla(t-1)\|\leq\beta\|x(t)-x(t-1)\|

g(t)g(t1)β1nx(t)x(t1)\|g(t)-g(t-1)\|\leq\beta\frac{1}{\sqrt{n}}\|x(t)-x(t-1)\|

g(t)h(t)β1nx(t)1xˉ(t)\|g(t)-h(t)\|\leq\beta\frac{1}{\sqrt{n}}\|x(t)-\mathbf{1}\bar{x}(t)\|

IV-B Why the Algorithm Works: An Intuitive Explanation

We provide our intuition that partially explains why the algorithm (9) can achieve a linear convergence rate for strongly convex and smooth functions. In fact we can prove the following proposition.

Assuming s(t)1g(t)\|s(t)-\mathbf{1}g(t)\| decays at a linear rate, then x(t)1x\|x(t)-\mathbf{1}x^{*}\| also decays at a linear rate.

Assuming x(t)1x\|x(t)-\mathbf{1}x^{*}\| decays at a linear rate, then s(t)1g(t)\|s(t)-\mathbf{1}g(t)\| also decays at a linear rate.

The proof of the above proposition is postponed to Appendix--B. The above proposition tells that the linear decaying rates of the gradient estimation error s(t)1g(t)\|s(t)-\mathbf{1}g(t)\| and the distance to optimizer x(t)1x\|x(t)-\mathbf{1}x^{*}\| imply each other. Though this circular argument does not prove the linear convergence rate of our algorithm, it illustrates how the algorithm works: the gradient descent step (LABEL:eq:algo_xs_1) and the gradient estimation step (LABEL:eq:algo_xs_2) facilitate each other to converge fast in a reciprocal manner. This mutual dependence is distinct from many previous methods, where one usually bounds the consensus error at first, and then use the consensus error to bound the objective error, and there is no mutual dependence between the two. In the next two subsections, we will rigorously prove the convergence.

IV-C Convergence Analysis: Strongly Convex

We start by introducing a lemma that is adapted from standard optimization literature, e.g. . Lemma 10 states that if we perform a gradient descent step with a fixed step size for a strongly convex and smooth function, then the distance to optimizer shrinks by at least a fixed ratio. For completeness we give a proof of Lemma 10 in Appendix--C.

where λ=max(1ηα,1ηβ)\lambda=\max(|1-\eta\alpha|,|1-\eta\beta|).

Proof of Theorem 1: Our strategy is to bound s(k)1g(k)\|s(k)-\mathbf{1}g(k)\|, x(k)1xˉ(k)\|x(k)-\mathbf{1}\bar{x}(k)\|, and xˉ(k)x\|\bar{x}(k)-x^{*}\| in terms of linear combinations of their past values, and in this way obtain a linear system inequality, which will imply linear convergence.

Step 1: Bound s(k)1g(k)\|s(k)-\mathbf{1}g(k)\|. By the update rule (LABEL:eq:algo_xs_2),

Taking the norm, noticing that the column-wise average of s(k1)s(k-1) is just g(k1)g(k-1) by Lemma 7(a), and using the averaging property of the consensus matrix WW, we have

Combining this with (10) and using Lemma 8 (a), we get

Step 2: Bound x(k)1xˉ(k)\|x(k)-\mathbf{1}\bar{x}(k)\|. Considering update rule (LABEL:eq:algo_xs_1) and using Lemma 7(b) and the property of WW, we have

Step 3: Bound xˉ(k)x\|\bar{x}(k)-x^{*}\|. Notice by Lemma 7(b), the update rule for xˉ(k)\bar{x}(k) is

Since the gradient of ff at xˉ(k1)\bar{x}(k-1) is h(k1)h(k-1), therefore, by Lemma 10 and Lemma 8(c), we have

where λ=max(1ηα,1ηβ)\lambda=\max(|1-\eta\alpha|,|1-\eta\beta|).

Step 4: Bound x(k)x(k1)\|x(k)-x(k-1)\|. Notice that by Assumption 1,

Combining the above and Lemma 8(c), we have

Step 5: Derive a linear system inequality. We combine the previous four steps into a big linear system inequality. Plugging (14) into (11), we have

where ‘\leq’ means element wise less than or equal to. Since z(k)z(k) and G(η)G(\eta) have nonnegative entries, we can actually expand (26) recursively, and get

Since G(η)G(\eta) has nonnegative entries and G(η)2G(\eta)^{2} has all positive entries, by Theorem 8.5.1 and 8.5.2 of , each entry of G(η)kG(\eta)^{k} will be O(ρ(G(η))k)O(\rho(G(\eta))^{k}). Hence, the three entries of z(k)z(k), s(k)1g(k)\|s(k)-\mathbf{1}g(k)\|, x(k)1xˉ(k)\|x(k)-\mathbf{1}\bar{x}(k)\|, and xˉ(k)x\|\bar{x}(k)-x^{*}\| will converge to in the order of ρ(G(η))k\rho(G(\eta))^{k}. By β\beta-smoothness of ff, we have

Since f(x)=0\nabla f(x^{*})=0, the above implies that f(xˉ(k))f=O(ρ(G(η))2k)f(\bar{x}(k))-f^{*}=O(\rho(G(\eta))^{2k}). Again by β\beta-smoothness and Cauchy-Schwarz inequality,

Since f(xˉ(k))=f(xˉ(k))f(x)βxˉ(k)x=O(ρ(G(η))k)\|\nabla f(\bar{x}(k))\|=\|\nabla f(\bar{x}(k))-\nabla f(x^{*})\|\leq\beta\|\bar{x}(k)-x^{*}\|=O(\rho(G(\eta))^{k}), and xi(k)xˉ(k)x(k)1xˉ(k)=O(ρ(G(η))k)\|x_{i}(k)-\bar{x}(k)\|\leq\|x(k)-\mathbf{1}\bar{x}(k)\|=O(\rho(G(\eta))^{k}), the above inequality implies that f(xi(k))f(xˉ(k))=O(ρ(G(η))2k)f(x_{i}(k))-f(\bar{x}(k))=O(\rho(G(\eta))^{2k}). This further leads to f(xi(k))f=f(xi(k))f(xˉ(k))+f(xˉ(k))f=O(ρ(G(η))2k)f(x_{i}(k))-f^{*}=f(x_{i}(k))-f(\bar{x}(k))+f(\bar{x}(k))-f^{*}=O(\rho(G(\eta))^{2k}). \Box

Proof of Lemma 2: Since η<1β\eta<\frac{1}{\beta}, it is easy to check 1αη1βη>01-\alpha\eta\geq 1-\beta\eta>0, and hence λ=1αη\lambda=1-\alpha\eta. We first write down the charasteristic polynomial p(ζ)p(\zeta) of G(η)G(\eta),

where p0(ζ)=(ζσηβ)(ζσ)ηβ(ηβ+2)p_{0}(\zeta)=(\zeta-\sigma-\eta\beta)(\zeta-\sigma)-\eta\beta(\eta\beta+2). The two roots of p0p_{0}, ζ1\zeta_{1} and ζ2\zeta_{2} are 2σ+ηβ±5η2β2+8ηβ2\frac{2\sigma+\eta\beta\pm\sqrt{5\eta^{2}\beta^{2}+8\eta\beta}}{2}. Since 0<ηβ<10<\eta\beta<1, both roots are real numbers less than σ+3ηβ\sigma+3\sqrt{\eta\beta}. This implies

Let ζ=max(1αη2,σ+5ηββα)>σ+3ηβ\zeta^{*}=\max(1-\frac{\alpha\eta}{2},\sigma+5\sqrt{\eta\beta}\sqrt{\frac{\beta}{\alpha}})>\sigma+3\sqrt{\eta\beta}, then

Since p(ζ)p(\zeta) is a strictly increasing function on [max(1αη,σ+3ηβ),+)[\max(1-\alpha\eta,\sigma+3\sqrt{\eta\beta}),+\infty) (this interval includes ζ\zeta^{*}), p(ζ)p(\zeta) does not have real roots on (ζ,)(\zeta^{*},\infty). Since G(η)G(\eta) is a nonnegative matrix, by Perron-Frobenius Theorem (Page 503, Theorem 8.3.1 of ), ρ(G(η))\rho(G(\eta)) is an eigenvalue of G(η)G(\eta). Hence ρ(G(η))\rho(G(\eta)) is a real root of p(ζ)p(\zeta), so we have ρ(G(η))ζ\rho(G(\eta))\leq\zeta^{*}. \Box

We now comment on how β\beta-smoothness of fif_{i} is used in the proof of Theorem 1 and not used in the proof of DGD-like algorithms, e.g. , and how this difference would affect the convergence rates of the two algorithms. In DGD-like algorithms, (sub)gradients are usually assumed to be bounded. Whenever a (sub)gradient is encountered in the proof, it is replaced by its bound and the resulting inequalities usually involve many additive constant terms. To control the constant terms, a vanishing step size is required, which slows down the convergence. In the proof of Theorem 1, whenever gradients appear, they appear in the form of the difference of two gradients (like (10)). Therefore we can bound it using the β\beta-smoothness assumption. The resulting inequalities (like (11)) do not involve constant terms, but linear combinations of some variables instead. After carefully arranging these inequalities, we can get a contraction inequality (26) and hence the linear convergence rate.

IV-D Convergence Analysis: Non-strongly Convex Case

Proof of Theorem 3: The proof will be divided into 4 steps. In step 1, we derive a linear system inequality (38) similar to (26), but this time with input. In step 2, we use the linear system inequality (38) to bound the consensus error. In step 3, we show that g(t)g(t), is actually an inexact gradient of ff at xˉ(t)\bar{x}(t) with the inexactness being characterized by the consensus error. Therefore, the update equation for the average sequence xˉ(t)\bar{x}(t) (Lemma 7(b)) is essentially inexact gradient descent. In step 4, we apply the analysis method for CGD to the average sequence xˉ(t)\bar{x}(t) and show that the O(1t)O(\frac{1}{t}) convergence rate is preserved in spite of the inexactness.

Step 1: A linear system inequality. We prove the following inequality,

It is easy to check that (11) and (12) (copied below as (39) and (40)) still holds if we remove the strongly convex assumption.

Combining the above and (40) yields (38).

where A1A_{1}, A2A_{2} and θ\theta are defined as follows.

To prove (43), we first notice that by (38), we have

Step 4: Follow the proof of CGD. Define rk=xˉ(k)x2r_{k}=\|\bar{x}(k)-x^{*}\|^{2}. Then

where in (a) we have used xˉ(k+1)xˉ(k)=ηg(k)\bar{x}(k+1)-\bar{x}(k)=-\eta g(k). In (b) we have used two inequalities. The first one is g(k),xˉ(k)xf^kf\langle g(k),\bar{x}(k)-x^{*}\rangle\geq\hat{f}_{k}-f^{*} (by (45) with ω=x\omega=x^{*}), and the second one is

which follows from (46) (with ω=xˉ(k+1)\omega=\bar{x}(k+1)) and the fact xˉ(k+1)xˉ(k)=ηg(k)\bar{x}(k+1)-\bar{x}(k)=-\eta g(k). Summing up (47) for k=0,,tk=0,\ldots,t, we get

where in the second inequality we have used f^kf(xˉ(k))\hat{f}_{k}\leq f(\bar{x}(k)), which can be derived from (45) by letting ω=xˉ(k)\omega=\bar{x}(k). Hence,

By Gershgorin Circle Theorem , this shows that ρ(X)3(1θ)2\rho(X)\leq\frac{3}{(1-\theta)^{2}}. Since μTXμρ(X)μ2\mu^{T}X\mu\leq\rho(X)\|\mu\|^{2}, we get

Combining this with (49), and plugging in the value of A2A_{2}, we get

where in the last inequality, we have used

which follows from θ=(1+σ)/2\theta=(1+\sigma)/2, and the step size rule 0<η(1σ)2160β0<\eta\leq\frac{(1-\sigma)^{2}}{160\beta}. Recall that x^i(t+1)=1t+1k=1t+1xi(k)\hat{x}_{i}(t+1)=\frac{1}{t+1}\sum_{k=1}^{t+1}x_{i}(k), then by convexity of ff we have f(x^i(t+1))1t+1k=0tf(xi(k+1))f(\hat{x}_{i}(t+1))\leq\frac{1}{t+1}\sum_{k=0}^{t}f(x_{i}(k+1)). Combining this with (51) leads to

which gives part (a) of the Theorem. For part (b), we consider the second inequality in (51). Notice the left hand side of (51) is nonnegative, and 10βη2(1θ)2η214η\frac{10\beta\eta^{2}}{(1-\theta)^{2}}-\frac{\eta}{2}\leq-\frac{1}{4}\eta (by (52)). We have,

Also notice that k=0tx(k)1xˉ(k)2tmin0ktx(k)1xˉ(k)2\sum_{k=0}^{t}\|x(k)-\mathbf{1}\bar{x}(k)\|^{2}\geq t\min_{0\leq k\leq t}\|x(k)-\mathbf{1}\bar{x}(k)\|^{2}. Combining this with (53) leads to part (b). \Box

V Numerical Experiments

Case I and case II satisfy Assumption 1 and 2, while case III only satisfies Assumption 1. In case I and II, we plot the average objective error, i.e. 1nif(xi(t))f\frac{1}{n}\sum_{i}f(x_{i}(t))-f^{*}. For case I and III, there are closed form expressions for ff^{*} and we compute ff^{*} using the closed form expressions. For case II, we compute ff^{*} using centralized gradient descent until the gradient reaches the smallest value (almost ) that MATLAB can handle. Case III is intended to test the sublinear convergence rate 1t\frac{1}{t} of the algorithm (Theorem 3), therefore in addition to the average objective error, we also plot t×(1nif(xi(t))f)t\times(\frac{1}{n}\sum_{i}f(x_{i}(t))-f^{*}) to check if the objective error decays as O(1t)O(\frac{1}{t}). The results are shown in Figure 1, 2 and 3.

V-B Experiments with different graph sizes

As pointed out by Remark 3, the convergence rates of our algorithm depend on σ\sigma (not directly on nn). Therefore for graphs with different sizes nn but similar σ\sigma, our algorithm should have roughly the same convergence rate, and therefore is ‘scale-free’. This section will test this property through simulation. We choose random 33-regular graphs with sizes n=50,100,150,,500n=50,100,150,\ldots,500. A 33-regular graph is a graph in which each node is adjacent to 33 other nodes. We generate the random 33-regular graphs using the method in . To ensure the connectivity of the generated graphs, we discard the graphs that are not connected, which happen very rarely (see Theorem 2.10 of ). We obtain WW by the Laplacian method. It is known that with a high probability, a random regular graph is a regular expander graph (see Section 7.3.2 of ), and thus with a high probability, σ\sigma is free of the size nn of the graph (see Corollary 1(d) and Lemma 4 of ). Therefore, our algorithm should be ‘scale-free’ for those graphs. We choose the objective functions using the same method as Case I in the previous subsection. For each graph size, we list the parameter σ\sigma along with the strongly-convex parameter α\alpha, the smooth parameter β\beta in Table I. Each element of xi(0)x_{i}(0) is drawn from i.i.d. Gaussion distribution with mean and variance 2525. We plot the number of iterations it take for the average objective error (1nif(xi(t))f\frac{1}{n}\sum_{i}f(x_{i}(t))-f^{*}) to reach a predefined error level 1×10101\times 10^{-10} versus the graph size nn. The results are shown in Figure 4.

VI Conclusion

In this paper, we have proposed a method that can effectively harness smoothness to speed up distributed optimization. The method features a gradient estimation scheme. It achieves a O(1t)O(\frac{1}{t}) convergence rate when the objective function is convex and smooth, and achieves a linear convergence rate when the function is strongly convex and smooth. Both rates are comparable to the centralized gradient methods except for some constants. Future work includes applying the gradient estimation scheme to other first order optimization algorithms, like Nesterov gradient descent.

References

-A Proof of Lemma 7 and Lemma 8

Proof of Lemma 7: Since WW is doubly stochastic, we have 1TW=1T\mathbf{1}^{T}W=\mathbf{1}^{T}. Therefore,

Do this recursively, we can get sˉ(t+1)=sˉ(0)+g(t+1)g(0)\bar{s}(t+1)=\bar{s}(0)+g(t+1)-g(0). Since s(0)=(0)s(0)=\nabla(0), we have sˉ(0)=g(0)\bar{s}(0)=g(0). This finishes the proof. \Box

-B Proof of Proposition 9

Proof of Proposition 9: On one hand, assume the gradient estimation error s(t)1g(t)\|s(t)-\mathbf{1}g(t)\| decays at a linear rate, i.e. s(t)1g(t)C1κ1t\|s(t)-\mathbf{1}g(t)\|\leq C_{1}\kappa_{1}^{t} for some constant C1>0C_{1}>0 and κ1(0,1)\kappa_{1}\in(0,1). Then, the consensus error satisfy

where in the first inequality we have used Lemma 7(b), and in the second inequality we have used the averaging property of WW. Therefore, the consensus error also decays at a linear rate. Then, by Lemma 8 (c), g(t)h(t)\|g(t)-h(t)\| also decays at a linear rate, i.e. we have g(t)h(t)C2κ2t\|g(t)-h(t)\|\leq C_{2}\kappa_{2}^{t} for some C2>0C_{2}>0 and κ2(0,1)\kappa_{2}\in(0,1). By Lemma 7(b), xˉ(t)=xˉ(t1)ηh(t1)η(g(t1)h(t1))\bar{x}(t)=\bar{x}(t-1)-\eta h(t-1)-\eta(g(t-1)-h(t-1)). Since h(t1)=f(xˉ(t1))h(t-1)=\nabla f(\bar{x}(t-1)), xˉ(t1)ηh(t1)\bar{x}(t-1)-\eta h(t-1) is a standard gradient step for function ff. Since ff is strongly convex and smooth, a standard gradient descent step shrinks the distance to the minimizer by a least a fixed ratio (see Lemma 10), hence we have

Therefore xˉ(t)x\|\bar{x}(t)-x^{*}\|, the distance of the average xˉ(t)\bar{x}(t) to the minimizer decays at a linear rate. Combining this with the fact that the consensus error x(t)1xˉ(t)\|x(t)-\mathbf{1}\bar{x}(t)\| decays at a linear rate and using the triangle inequality, we have x(t)1x\|x(t)-\mathbf{1}x^{*}\|, the distance to the optimizer, decays at a linear rate.

On the other hand, assume x(t)1x\|x(t)-\mathbf{1}x^{*}\| decays at a linear rate, then x(t)x(t1)\|x(t)-x(t-1)\| also decays at a linear rate, i.e. x(t)x(t1)C3κ3t1\|x(t)-x(t-1)\|\leq C_{3}\kappa_{3}^{t-1} for some C3>0C_{3}>0 and κ3(0,1)\kappa_{3}\in(0,1). Then,

where in the second inequality we have used Lemma 8(a)(b). Hence the gradient estimation error s(t)1g(t)\|s(t)-\mathbf{1}g(t)\| decays at a linear rate. \Box

-C Proof of Lemma 10

In the proof of Lemma 10 we will use the following result, which is the same as Lemma 3.11 of in which the proof can be found.

As a special case, let y=xy=x^{*} be the unique optimizer of ff. Since f(x)=0\nabla f(x^{*})=0, we have

Proof of Lemma 10: If 0<η2α+β0<\eta\leq\frac{2}{\alpha+\beta}, then 2ηαβ\frac{2}{\eta}-\alpha\geq\beta. Let α=α\alpha^{\prime}=\alpha, β=2ηαβ\beta^{\prime}=\frac{2}{\eta}-\alpha\geq\beta, then ff is also α\alpha^{\prime}-strongly convex and β\beta^{\prime}-smooth. Then, we have

where the first inequality is due to Lemma 11 and the last equality is due to 1αη1βη|1-\alpha\eta|\geq|1-\beta\eta|, which follows from α<β\alpha<\beta and 0<η2α+β0<\eta\leq\frac{2}{\alpha+\beta}. The case 2β>η>2α+β\frac{2}{\beta}>\eta>\frac{2}{\alpha+\beta} follows from a similar argument (but with α=2ηβ\alpha^{\prime}=\frac{2}{\eta}-\beta and β=β\beta^{\prime}=\beta) and the details are omitted. \Box

-D Derivation of (43)

with θ1=2σ+ηβη2β2+8ηβ2\theta_{1}=\frac{2\sigma+\eta\beta-\sqrt{\eta^{2}\beta^{2}+8\eta\beta}}{2} and θ2=2σ+ηβ+η2β2+8ηβ2\theta_{2}=\frac{2\sigma+\eta\beta+\sqrt{\eta^{2}\beta^{2}+8\eta\beta}}{2}. Matrix VV and V1V^{-1} are given by