Distributed heavy-ball: A generalization and acceleration of first-order methods with gradient tracking

Ran Xin, Usman A. Khan

I Introduction

We consider distributed optimization, where nn agents collaboratively solve the following problem:

Early work on this topic builds on the seminal work by Tsitsiklis in and includes Distributed Gradient Descent (DGD) and distributed dual averaging over undirected graphs. Leveraging push-sum consensus , Refs. extend the DGD framework to directed graphs. Based on a similar concept, Refs. propose Directed-Distributed Gradient Descent (D-DGD) for directed graphs that is based on surplus consensus . In general, the DGD-based methods achieve sublinear convergence at O(log⁡kk)\mathcal{O}\left(\frac{\log k}{\sqrt{k}}\right), where kk is the number of iterations, because of the diminishing step-size used in the iterations. The convergence rate of DGD can be improved with the help of a constant step-size but at the expense of an inexact solution . Follow-up work also includes augmented Lagrangians , which shows exact linear convergence for smooth and strongly-convex functions, albeit requiring higher computation at each iteration.

To improve convergence and retain computational simplicity, fast first-order methods that do not (explicitly) use a dual update have been proposed. Reference describes a distributed Nesterov-type method based on multiple consensus inner loops, at O(log⁡kk2)\mathcal{O}\left(\frac{\log k}{k^{2}}\right) for smooth and convex functions, with bounded gradients. EXTRA uses the difference of two consecutive DGD iterates to achieve an O(1k)\mathcal{O}\left(\frac{1}{k}\right) rate for arbitrary convex functions and a QQ-linear rate for strongly-convex functions. DEXTRA combines push-sum and EXTRA to achieve an RR-linear rate over directed graphs given that a constant step-size is carefully chosen in some interval. Refs. apply an adapt-then-combine structure to EXTRA and generalize the symmetric weights in EXTRA to row-stochastic, over undirected graphs.

Noting that DGD-type methods are faster with a constant step-size, recent work uses a constant step-size and replaces the local gradient, at each agent in DGD, with an estimate of the global gradient. A method based on gradient tracking was first shown in over undirected graphs, which proposes Aug-DGM (that uses nonidentical step-sizes at the agents) with the help of dynamic consensus and shows convergence for smooth convex functions. When the step-sizes are identical, the convergence rate of Aug-DGM was derived to be O(1k)\mathcal{O}\left(\frac{1}{k}\right) for arbitrary convex functions and RR-linear for strongly-convex functions in . ADD-OPT extends to directed graphs by combining push-sum with gradient tracking and derives a contraction in an arbitrary norm to establish an RR-linear convergence rate when the global objective is smooth and strongly-convex. Ref. extends the analysis in to time-varying graphs and establishes an RR-linear convergence using the small gain theorem . In contrast to the aforementioned methods , where the weights are doubly-stochastic for undirected graphs and column-stochastic for directed graphs, FROST uses row-stochastic weights, which have certain advantages over column-stochastic weights. Ref. unifies EXTRA and gradient tracking methods in a primal-dual framework over static undirected graphs. More recently, Ref. proposes distributed Nesterov over undirected graphs that also uses gradient tracking and shows a convergence rate of O((1−cQ−57)k)\mathcal{O}((1-{c}{\mathcal{Q}^{-\frac{5}{7}}})^{k}) for smooth, strongly-convex functions, where Q\mathcal{Q} is the condition number of the global objective. Refs. , on the other hand, consider gradient tracking in distributed non-convex problems, while Ref. uses second-order information to accelerate the convergence.

Of significant relevance here is the AB\mathcal{AB} algorithm , also appeared later in , which can be viewed as a generalization of distributed first-order methods with gradient tracking. In particular, the algorithms over undirected graphs in Refs. are a special case of AB\mathcal{AB} because the doubly-stochastic weights therein are replaced by row- and column- stochastic weights. AB\mathcal{AB} thus is naturally applicable to arbitrary directed graphs. Moreover, the use of both row- and column-stochastic weights removes the need for eigenvector estimationSimultaneous application of both row- and column-stochastic weights was first employed for average-consensus in and towards distributed optimization in , albeit without gradient tracking., required earlier in . Ref. derives an RR-linear rate for AB\mathcal{AB} when the objective functions are smooth and strongly-convex. In this paper, we provide an improved understanding of AB\mathcal{AB} and extend it to the ABm\mathcal{AB}m algorithm, a distributed heavy-ball method, applicable to both undirected and directed graphs. We now summarize the main contributions:

We show that many of the existing accelerated first-order methods are either a special case of AB\mathcal{AB} , or can be adapted from its equivalent forms .

We propose a distributed heavy-ball method, termed as ABm\mathcal{AB}m, that combines AB\mathcal{AB} with a heavy-ball (type) momentum term. To the best of our knowledge, this paper is the first to use a momentum term based on the heavy-ball method in distributed optimization.

ABm\mathcal{AB}m employs nonidentical step-sizes at the agents and thus its analysis naturally carries to nonidentical step-sizes in AB\mathcal{AB} and to the related algorithms in .

We cast a unifying framework for consensus over arbitrary graphs that results from ABm\mathcal{AB}m and subsumes several well-known algorithms .

On the analysis front, we show that AB\mathcal{AB} (without momentum) converges faster as compared to the algorithms over directed graphs in , where separate iterations for eigenvector estimation are applied nonlinearly to the underlying algorithm. Towards ABm\mathcal{AB}m, we establish a global RR-linear convergence rate for smooth and strongly-convex objective functions when the largest step-size at the agents is positive and sufficiently small. This is in contrast to the earlier work on non-identical step-sizes within the framework of gradient tracking , which requires the heterogeneity among the step-sizes to be sufficiently small, i.e., the step-sizes are close to each other. We also acknowledge that similar to the centralized heavy-ball method , dating back to more than 50 years, and the recent work , a global acceleration can only be shown via numerical simulations. Following the standard practice, we provide simulations to verify that ABm\mathcal{AB}m has accelerated convergence, the effect of which is more pronounced when the global objective function is ill-conditioned.

We now describe the rest of the paper. Section II provides preliminaries, problem formulation, and introduces distributed heavy-ball, i.e., the ABm\mathcal{AB}m algorithm. Section III establishes the connection between AB\mathcal{AB} and related algorithms. Section IV includes the main results on the convergence analysis, whereas Section V provides a family of average-consensus algorithms that result naturally from ABm\mathcal{AB}m. Finally, Section VI provides numerical experiments and Section VII concludes the paper.

Basic Notation: We use lowercase bold letters to denote vectors and uppercase letters for matrices. The matrix, InI_{n}, is the n×nn\times n identity, whereas 1n\mathbf{1}_{n} (0n\mathbf{0}_{n}) is the nn-dimensional column vector of all ones (zeros). For an arbitrary vector, x\mathbf{x}, we denote its iith element by [x]i[\mathbf{x}]_{i} and its largest and smallest element by [x]max⁡[\mathbf{x}]_{\max} and [x]min⁡[\mathbf{x}]_{\min}, respectively. We use \mboxdiag(x)\mbox{diag}(\mathbf{x}) to denote a diagonal matrix that has x\mathbf{x} on its main diagonal. For two matrices, XX and YY, \mboxdiag(X,Y)\mbox{diag}\left(X,Y\right) is a block-diagonal matrix with XX and YY on its main diagonal, and X⊗YX\otimes Y denotes their Kronecker product. The spectral radius of a matrix, XX, is represented by ρ(X)\rho(X). For a primitive, row-stochastic matrix, AA, we denote its left and right eigenvectors corresponding to the eigenvalue of 11 by πr\boldsymbol{\pi}_{r} and 1n\mathbf{1}_{n}, respectively, such that πr⊤1n=1\boldsymbol{\pi}_{r}^{\top}\mathbf{1}_{n}=1; similarly, for a primitive, column-stochastic matrix, BB, we denote its left and right eigenvectors corresponding to the eigenvalue of 11 by 1n\mathbf{1}_{n} and πc\boldsymbol{\pi}_{c}, respectively, such that 1n⊤πc=1\mathbf{1}_{n}^{\top}\boldsymbol{\pi}_{c}=1. For a matrix XX, we denote X∞X_{\infty} as its infinite power (if it exists), i.e., X∞=lim⁡k→∞Xk.X_{\infty}=\lim_{k\rightarrow\infty}X^{k}. From the Perron-Frobenius theorem , we have A∞=1nπr⊤A_{\infty}=\mathbf{1}_{n}\boldsymbol{\pi}_{r}^{\top} and B∞=πc1n⊤B_{\infty}=\boldsymbol{\pi}_{c}\mathbf{1}_{n}^{\top}. We denote ∥⋅∥A\left\|\cdot\right\|_{\mathcal{A}} and ∥⋅∥B\left\|\cdot\right\|_{\mathcal{B}} as some arbitrary vector norms, the choice of which will be clear in Lemma 1, while ∥⋅∥\left\|\cdot\right\| denotes the Euclidean matrix and vector norms.

II Preliminaries and Problem Formulation

Consider nn agents connected over a directed graph, G=(V,E)\mathcal{G}=(\mathcal{V},\mathcal{E}), where V={1,⋯ ,n}\mathcal{V}=\{1,\cdots,n\} is the set of agents, and E\mathcal{E} is the collection of ordered pairs, (i,j),i,j∈V(i,j),i,j\in\mathcal{V}, such that agent jj can send information to agent ii, i.e., j→ij\rightarrow i. We define Ni\mboxin\mathcal{N}_{i}^{{\scriptsize\mbox{in}}} as the collection of in-neighbors of agent ii, i.e., the set of agents that can send information to agent ii. Similarly, Ni\mboxout\mathcal{N}_{i}^{{\scriptsize\mbox{out}}} is the set of out-neighbors of agent ii. Note that both Ni\mboxin\mathcal{N}_{i}^{{\scriptsize\mbox{in}}} and Ni\mboxout\mathcal{N}_{i}^{{\scriptsize\mbox{out}}} include agent ii. The agents solve the following problem:

The graph, G\mathcal{G}, is strongly-connected.

where μi≥0\mu_{i}\geq 0 and ∑i=1nμi>0\sum_{i=1}^{n}\mu_{i}>0.

It is well known that the best achievable convergence rate of the gradient descent algorithm,

is O((Q−1Q+1)k)\mathcal{O}((\tfrac{\mathcal{Q}-1}{\mathcal{Q}+1})^{k}), where Q≜lμ\mathcal{Q}\triangleq\tfrac{l}{\mu} is the condition number of the objective function, FF. Clearly, gradient descent is quite slow when Q\mathcal{Q} is large, i.e., when the objective function is ill-conditioned. The seminal work by Polyak proposes the following heavy-ball method:

where β(xk−xk−1)\beta\left(\mathbf{x}_{k}-\mathbf{x}_{k-1}\right) is interpreted as a “momentum” term, used to accelerate the convergence process. Polyak shows that with a specific choice of α\alpha and β\beta, the heavy-ball method achieves a local accelerated rate of O((Q−1Q+1)k)\mathcal{O}((\tfrac{\mathcal{\sqrt{Q}}-1}{\mathcal{\sqrt{Q}}+1})^{k}). By local, it is meant that the acceleration can only be analytically shown when ∥x0−x∗∥\|\mathbf{x}_{0}-\mathbf{x}^{*}\| is sufficiently small. Globally, i.e., for arbitrary initial conditions, only linear convergence is established, while an analytical characterization of the acceleration is still an open problem, see related work in . Numerical analysis and simulations are often employed to show global acceleration, i.e., it is possible to tune α\alpha and β\beta such that the heavy-ball method is faster than gradient descent .

II-B Distributed heavy-ball: The 𝒜​ℬ​m𝒜ℬ𝑚\mathcal{AB}m algorithm

where αi≥0\alpha_{i}\geq 0 and βi≥0\beta_{i}\geq 0 are respectively the local step-size and the momentum parameter adopted by agent ii. The weights, aija_{ij}’s and bijb_{ij}’s, are associated with the graph topology and satisfy the following conditions:

Note that the weight matrix, A={aij}A=\{a_{ij}\}, in Eq. (2a) is RS (row-stochastic) and the weight matrix, B={bij}B=\{b_{ij}\} in Eq. (2b) is CS (column-stochastic), both of which can be implemented over undirected and directed graphs alike. Intuitively, Eq. (2b) tracks the average of local gradients, 1n∑i=1n∇fi(xki)\frac{1}{n}\sum_{i=1}^{n}\nabla f_{i}(\mathbf{x}^{i}_{k}), see , and therefore Eq. (2a) asymptotically approaches the centralized heavy-ball, Eq. (1), as the descent direction yki\mathbf{y}^{i}_{k} becomes the gradient of the global objective.

Vector form: For the sake of analysis, we now write ABm\mathcal{AB}m in vector form. We use the following notation:

We note here that when βi=0,∀i\beta_{i}=0,\forall i, ABm\mathcal{AB}m reduces to AB\mathcal{AB} , albeit with two distinguishing features: (i) the algorithm in uses an identical step-size, α\alpha, at each agent; and (ii) Eq. (2b) in is in an adapt-then-combine form.

III Connection with existing first-order methods

In this section, we provide a generalization of several existing methods that employ gradient tracking and show that AB\mathcal{AB} lies at the heart of these approaches. To proceed, we rewrite the AB\mathcal{AB} updates below (without momentum) .

Since AB\mathcal{AB} uses both RS and CS weights simultaneously, it is natural to ask how are the optimization algorithms that require the weight matrices to be doubly-stochastic (DS) , or only CS , or only RS , are related to each other. We discuss this relationship next.

Optimization with DS weights: Refs. consider the following updates, termed as Aug-DGM in and DIGing in :

where W=W⊗Ip\mathcal{W}=W\otimes I_{p}, and WW is a DS weight matrix. Clearly, to obtain DS weights, the underlying graph must be undirected (or balanced) and thus the algorithm in Eqs. (6) is not applicable to arbitrary directed graphs. That AB\mathcal{AB} generalizes Eqs. (6) is straightforward as the DS weights naturally satisfy the RS requirement in the top update and the CS requirement in the bottom update, while the reverse is not true. Similarly, we note that a related algorithm, EXTRA , is given by

where the two weight matrices, W\mathcal{W} and W~\widetilde{\mathcal{W}}, must be symmetric and satisfy some other stringent requirements, see for details. Eliminating the yk\mathbf{y}_{k}-update in AB\mathcal{AB}, we note that AB\mathcal{AB} can be written in the EXTRA format as follows:

It can be seen that the linear convergence of AB\mathcal{AB} does not follow from the analysis in as A+B−I\mathcal{A+B}-I and BA\mathcal{BA} are not necessarily symmetric. Analysis of the AB\mathcal{AB} algorithm, therefore, generalizes that of EXTRA to non-doubly-stochastic and non-symmetric weight matrices.

Optimization with CS weights: We now relate AB\mathcal{AB} to ADD-OPT/Push-DIGing that only require CS weights . Since B\mathcal{B} is already CS in AB\mathcal{AB}, it suffices to seek a state transformation that transforms A\mathcal{A} from RS to CS, while respecting the graph topology. To this aim, let us consider the following transformation on the xk\mathbf{x}_{k}-update in AB\mathcal{AB}: x~k≜Πrxk,\widetilde{\mathbf{x}}_{k}\triangleq\Pi_{r}\mathbf{x}_{k}, where Πr≜\mboxdiag(nπr)⊗Ip\Pi_{r}\triangleq\mbox{diag}(n\boldsymbol{\pi}_{r})\otimes I_{p} and πr\boldsymbol{\pi}_{r} is the left-eigenvector of the RS weight matrix, AA, corresponding to the eigenvalue 11. The resulting transformed AB\mathcal{AB} is given by

where it is straightforward to show that B~=ΠrAΠr−1\mathcal{\widetilde{B}}=\Pi_{r}\mathcal{A}\Pi_{r}^{-1} is now CS and B~(πr⊗Ip)=πr⊗Ip\widetilde{\mathcal{B}}\left(\boldsymbol{\pi}_{r}\otimes I_{p}\right)=\boldsymbol{\pi}_{r}\otimes I_{p}.

In order to implement the above equations, two different CS matrices (B~\widetilde{\mathcal{B}} and B\mathcal{B}) suffice, as long as they are primitive and respect the graph topology. The second update requires the right-eigenvector of the CS matrix used in the first update, i.e., B~\widetilde{\mathcal{B}}. Since this eigenvector is not known locally to any agent, ADD-OPT/Push-DIGing propose learning this eigenvector with the following iterations: wk+1=B~wk,w0=1np\mathbf{w}_{k+1}=\widetilde{\mathcal{B}}\mathbf{w}_{k},\mathbf{w}_{0}=\mathbf{1}_{np}. The algorithms provided in essentially implement Eqs. (8), albeit with two differences: (i) the same CS weight matrix is used in all updates; and, (ii) the division in Eq. (8b) is replaced by the estimated component, wk+1i\mathbf{w}_{k+1}^{i}, of the left-eigenvector at each agent. This nonlinearity causes stability issues in ADD-OPT/Push-DIGing, whereas their convergence compared to AB\mathcal{AB} is slower because such an eigenvector estimation is not needed in the latter on the account of using the RS weights. Furthermore, the local step-sizes are now given by nα[πr]in\alpha[\boldsymbol{\pi}_{r}]_{i} that shows that ADD-OPT/Push-DIGing should work with nonidentical step-sizes.

Optimization with RS weights: The state transformation technique discussed above also leads to an algorithm from AB\mathcal{AB} that only requires RS weights. Since A\mathcal{A} in AB\mathcal{AB} is RS, a transformation now is imposed on the yk\mathbf{y}_{k}-update and is given by y~k≜Πc−1yk\widetilde{\mathbf{y}}_{k}\triangleq\Pi_{c}^{-1}\mathbf{y}_{k}, where Πc≜\mboxdiag(πc)⊗Ip,\Pi_{c}\triangleq\mbox{diag}(\boldsymbol{\pi}_{c})\otimes I_{p}, and πc\boldsymbol{\pi}_{c} is the right-eigenvector of the CS weight matrix, BB, corresponding to the eigenvalue 11. Equivalently, AB\mathcal{AB} is given by

where A~=Πc−1BΠc\widetilde{\mathcal{A}}=\Pi_{c}^{-1}\mathcal{B}\Pi_{c} is now RS and (πc⊤⊗Ip)A~=πc⊤⊗Ip\left(\boldsymbol{\pi}_{c}^{\top}\otimes I_{p}\right)\widetilde{\mathcal{A}}=\boldsymbol{\pi}_{c}^{\top}\otimes I_{p}. Since the above form of AB\mathcal{AB} cannot be implemented because πc\boldsymbol{\pi}_{c} is not locally known, an eigenvector estimation is used in FROST and the division in Eq. (9b) is replaced with the appropriate estimated component of πc\boldsymbol{\pi}_{c}. The observations on different weight matrices in the two updates, nonidentical step-sizes, stability, and convergence made earlier for ADD-OPT/Push-DIGing are also applicable here.

In conclusion, the AB\mathcal{AB} algorithm has various equivalent representations and several already-known protocols can in fact be derived from these representations. In a similar way, ABm\mathcal{AB}m leads to protocols that add momentum to Aug-DGM, ADD-OPT/Push-DIGing, and FROST. We will revisit the relationship and equivalence cast here in Sections V and VI. In Section V, we will show that both AB\mathcal{AB} and ABm\mathcal{AB}m naturally provide a non-trivial class of average-consensus algorithms, a special case of which are and surplus consensus . In Section VI, we will compare these algorithms numerically.

IV Convergence Analysis

We now start the convergence analysis of the proposed distributed heavy-ball method, ABm\mathcal{AB}m. In the following, we first provide some auxiliary results borrowed from the literature.

The following lemma establishes contractions with RS and CS matrices under arbitrary norms ; note thacontraction in the Euclidean norm is not applicable unless the weight matrix is DS as in . A similar result was first presented in for CS matrices, and later in for RS matrices.

where 0<σA<10<\sigma_{\mathcal{A}}<1 and 0<σB<10<\sigma_{\mathcal{B}}<1 are some constants.

The next lemma from states that the sum of yki\mathbf{y}_{k}^{i}’s preserves the sum of local gradients. This is a direct consequence of the dynamic consensus employed with CS weights in the yk\mathbf{y}_{k}-update of ABm\mathcal{AB}m.

(1n⊤⊗Ip)yk=(1n⊤⊗Ip)∇f(xk),∀k(\mathbf{1}_{n}^{\top}\otimes I_{p})\mathbf{y}_{k}=(\mathbf{1}_{n}^{\top}\otimes I_{p})\nabla\mathbf{f}(\mathbf{x}_{k}),\forall k.

The next lemma is standard in the convex optimization theory . It states that the distance to the optimizer contracts at each step in the standard gradient descent method.

Let FF be μ\mu-strongly-convex and ll-smooth. For 0<α<2l0<\alpha<\frac{2}{l}, we have

where σF=max⁡(∣1−μα∣,∣1−lα∣)\sigma_{F}=\max\left(\left|1-\mu\alpha\right|,\left|1-l\alpha\right|\right).

Finally, we provide a result from nonnegative matrix theory.

IV-B Main results

The convergence analysis of ABm\mathcal{AB}m is based on deriving a contraction relationship between the following four quantities: (i) ∥xk+1−A∞xk+1∥A\|\mathbf{x}_{k+1}-\mathcal{A}_{\infty}\mathbf{x}_{k+1}\|_{\mathcal{A}}, the consensus error in the network; (ii) ∥A∞xk+1−1n⊗x∗∥\|\mathcal{A}_{\infty}\mathbf{x}_{k+1}-\mathbf{1}_{n}\otimes\mathbf{x}^{*}\|, the optimality gap; (iii) ∥xk+1−xk∥\left\|\mathbf{x}_{k+1}-\mathbf{x}_{k}\right\|, the state difference; and (iv) ∥yk+1−B∞yk+1∥B\|\mathbf{y}_{k+1}-\mathcal{B}_{\infty}\mathbf{y}_{k+1}\|_{\mathcal{B}}, the (biased) gradient estimation error. We will establish an LTI-system inequality where the state vector is the collection of these four quantities and then develop the convergence properties of the corresponding system matrix. Before we proceed, note that since all vector norms on finite-dimensional vector spaces are equivalent , there exist positive constants cAB,cBA,c2A,cA2,c2B,cB2c_{\mathcal{A}\mathcal{B}},c_{\mathcal{B}\mathcal{A}},c_{2\mathcal{A}},c_{\mathcal{A}2},c_{2\mathcal{B}},c_{\mathcal{B}2} such that

We also define α‾≜[α]max⁡\overline{\alpha}\triangleq\left[\boldsymbol{\alpha}\right]_{\max} and β‾≜[β]max⁡\overline{\beta}\triangleq\left[\boldsymbol{\beta}\right]_{\max}. In the following, we first provide an upper bound on the estimate, yk\mathbf{y}_{k}, of the gradient of the global objective that will be useful in deriving the aforementioned LTI system.

The following inequality holds, ∀k\forall k:

Recall that B∞=(πc⊗Ip)(1n⊤⊗Ip).\mathcal{B}_{\infty}=(\boldsymbol{\pi}_{c}\otimes I_{p})(\mathbf{1}_{n}^{\top}\otimes I_{p}). We have

We next bound ∥B∞yk∥\left\|\mathcal{B}_{\infty}\mathbf{y}_{k}\right\|:

where the first inequality uses Jensen’s inequality and the last inequality uses the fact that ∥B∞∥=n∥πc∥\left\|\mathcal{B}_{\infty}\right\|=\sqrt{n}\|\boldsymbol{\pi}_{c}\|. The lemma follows by plugging Eq. (IV-B) into Eq. (12). ∎

In the next Lemmas 6-9, we derive the relationships among the four quantities mentioned above. We start with a bound on ∥xk+1−A∞xk+1∥A\|\mathbf{x}_{k+1}-\mathcal{A}_{\infty}\mathbf{x}_{k+1}\|_{\mathcal{A}}, the consensus error in the network.

The following inequality holds, ∀k\forall k:

First, note that A∞A=A∞\mathcal{A}_{\infty}\mathcal{A}=\mathcal{A}_{\infty}. Following the xk\mathbf{x}_{k}-update of ABm\mathcal{AB}m in Eq. (4a) and using the one-step contraction property of A\mathcal{A} from Lemma 1, we have:

Next, we derive a bound for ∥A∞xk+1−1n⊗x∗∥\left\|\mathcal{A}_{\infty}\mathbf{x}_{k+1}-\mathbf{1}_{n}\otimes\mathbf{x}^{*}\right\|, which can be interpreted as the optimality gap between the network accumulation state, A∞xk\mathcal{A}_{\infty}\mathbf{x}_{k}, and the global minimizer, 1n⊗x∗\mathbf{1}_{n}\otimes\mathbf{x}^{*}.

The following inequality holds, ∀k\forall k, when

0<πr⊤\mboxdiag(α)πc<2nl0<\boldsymbol{\pi}_{r}^{\top}\mbox{diag}(\boldsymbol{\alpha})\boldsymbol{\pi}_{c}<\frac{2}{nl}:

where λ=max⁡{∣1−μnπr⊤\mboxdiag(α)πc∣,∣1−lnπr⊤\mboxdiag(α)πc∣}.\lambda=\max\left\{\left|1-\mu n\boldsymbol{\pi}_{r}^{\top}\mbox{diag}(\boldsymbol{\alpha})\boldsymbol{\pi}_{c}\right|,\left|1-ln\boldsymbol{\pi}_{r}^{\top}\mbox{diag}(\boldsymbol{\alpha})\boldsymbol{\pi}_{c}\right|\right\}.

Recall the xk\mathbf{x}_{k}-update of ABm\mathcal{AB}m in Eq. (4a), we have that

where in the last inequality, we use B∞yk=B∞∇f(xk)\mathcal{B}_{\infty}\mathbf{y}_{k}=\mathcal{B}_{\infty}\nabla\mathbf{f}\left(\mathbf{x}_{k}\right) adapted from Lemma 2. Since the last two terms in Eq. (IV-B) match the last two terms in Eq. (7), what is left is to bound the first term. Before we proceed, define

Now we bound the first term in Eq. (IV-B). We have

and we bound s1s_{1} and s2s_{2} next. Using Lemma 3, we have that if 0<πr⊤\mboxdiag(α)πc<2nl0<\boldsymbol{\pi}_{r}^{\top}\mbox{diag}(\boldsymbol{\alpha})\boldsymbol{\pi}_{c}<\frac{2}{nl},

where λ=max⁡{∣1−μnπr⊤\mboxdiag(α)πc∣,∣1−lnπr⊤\mboxdiag(α)πc∣}.\lambda=\max\left\{\left|1-\mu n\boldsymbol{\pi}_{r}^{\top}\mbox{diag}(\boldsymbol{\alpha})\boldsymbol{\pi}_{c}\right|,\left|1-ln\boldsymbol{\pi}_{r}^{\top}\mbox{diag}(\boldsymbol{\alpha})\boldsymbol{\pi}_{c}\right|\right\}. We next bound s2s_{2}. Since ∇F(x~k)=1n(1n⊤⊗Ip)∇f(x~k)\nabla F(\widetilde{\mathbf{x}}_{k})=\frac{1}{n}(\mathbf{1}_{n}^{\top}\otimes I_{p})\nabla\mathbf{f}(\widetilde{\mathbf{x}}_{k}),

and the lemma follows from Eqs. (IV-B), (IV-B), and (IV-B). ∎

The next step is to bound the state difference, ∥xk+1−xk∥\left\|\mathbf{x}_{k+1}-\mathbf{x}_{k}\right\|.

The following inequality holds, ∀k\forall k:

Note that AA∞=A∞\mathcal{A}\mathcal{A}_{\infty}=\mathcal{A}_{\infty} and hence AA∞−A∞\mathcal{A}\mathcal{A}_{\infty}-\mathcal{A}_{\infty} is a zero matrix. Following the xk\mathbf{x}_{k}-update of ABm\mathcal{AB}m, we have:

The final step in formulating the LTI system is to write ∥yk+1−B∞yk+1∥\left\|\mathbf{y}_{k+1}-\mathcal{B}_{\infty}\mathbf{y}_{k+1}\right\|, the biased gradient estimation error, in terms of the other three quantities. We call this biased to make a distinction with the unbiased gradient estimation error: ∥yk+1−W∞yk+1∥\left\|\mathbf{y}_{k+1}-\mathcal{W}_{\infty}\mathbf{y}_{k+1}\right\|, where W\mathcal{W} is doubly-stochastic.

The following inequality holds, ∀k\forall k:

Note that B∞B=B∞\mathcal{B}_{\infty}\mathcal{B}=\mathcal{B}_{\infty}. From Eq. (4b), we have:

where in the inequality above we use the contraction property of B\mathcal{B} from Lemma 1. The proof follows by applying the result of Lemma 8 to the inequality above. ∎

With the help of the Lemmas 6-9, we now present the main result of this paper, i.e., the ABm\mathcal{AB}m algorithm converges to the global minimizer at a global RR-linear rate.

Let 0<πr⊤\mboxdiag(α)πc<2nl0<\boldsymbol{\pi}_{r}^{\top}\mbox{diag}(\boldsymbol{\alpha})\boldsymbol{\pi}_{c}<\frac{2}{nl}, then the following LTI inequality holds entry-wise:

and the constants aia_{i}’s in the above expression are

When the largest step-size, α‾\overline{\alpha}, satisfies

and when the largest momentum parameter, β‾\overline{\beta}, satisfies

where δ1,δ2,δ3,δ4\delta_{1},\delta_{2},\delta_{3},\delta_{4} are arbitrary constants such that

then ρ(Jα,β‾)<1\rho(J_{\boldsymbol{\alpha},\overline{\beta}})<1 and thus ∥xk−1n⊗x∗∥\|\mathbf{x}_{k}-\mathbf{1}_{n}\otimes\mathbf{x}^{*}\| converges to zero linearly at the rate of O(ρ(Jα,β‾))k\mathcal{O}(\rho(J_{\boldsymbol{\alpha},\overline{\beta}}))^{k}.

It is straightforward to verify Eq. (18) by combining Lemmas 6-9. The next step is to find the range of α‾\overline{\alpha} and β‾\overline{\beta} such that ρ(Jα,β‾)<1\rho(J_{\boldsymbol{\alpha},\overline{\beta}})<1. In the light of Lemma 4, we solve for a positive vector δ=[δ1,δ2,δ3,δ4]⊤\boldsymbol{\delta}=[\delta_{1},\delta_{2},\delta_{3},\delta_{4}]^{\top} and the range of α‾\overline{\alpha} and β‾\overline{\beta} such that the following inequality holds:

which is equivalent to the following four conditions:

Recall λ\lambda in Lemma 7, when α‾<1nlπr⊤πc\overline{\alpha}<\frac{1}{nl\boldsymbol{\pi}_{r}^{\top}\boldsymbol{\pi}_{c}}, we have

Therefore, the third condition in Eq. (37) is satisfied when

For the right hand side of the Eq. (36), (40), (38) and (39) to be positive, each one of these equations needs to satisfy the conditions we give below.

We first choose arbitrary positive constants, δ3\delta_{3} and δ4\delta_{4}, then pick δ1\delta_{1} satisfying Eqs. (45) and (48), and finally choose δ2\delta_{2} according to Eq. (42). Note that δ1,δ2,δ3,\delta_{1},\delta_{2},\delta_{3}, and δ4\delta_{4} are chosen to ensure that the upper bounds on α‾\overline{\alpha} are all positive. Subsequently, from Eqs. (41), (45), and (48), together with the requirement that α‾<1nlπr⊤πc\overline{\alpha}<\frac{1}{nl\boldsymbol{\pi}_{r}^{\top}\boldsymbol{\pi}_{c}}, we obtain the upper bound on the largest step-size, α‾\overline{\alpha}. Finally, the original four conditions in Eqs. (36), (40), (38) and (39) lead to an upper bound on β‾\overline{\beta}, and the theorem follows. ∎

Remark 1: In Theorem 1, we have established the RR-linear rate of ABm\mathcal{AB}m when the largest step-size, α‾\overline{\alpha}, and the largest momentum parameter, β‾\overline{\beta}, respectively follow the upper bounds described in Eq. (29) and Eq. (30). Note that δ1,δ2,δ3,δ4\delta_{1},\delta_{2},\delta_{3},\delta_{4} therein are tunable parameters and only depend on the network topology and the objective functions. The upper bounds for α‾\overline{\alpha} and β‾\overline{\beta} may not be computable for arbitrary directed graphs as the contraction coefficients, σA\sigma_{\mathcal{A}}, σB\sigma_{\mathcal{B}}, and the norm equivalence constants may be unknown. However, when the graph is undirected, we can obtain computable bounds for α‾\overline{\alpha} and β‾\overline{\beta}, as developed in for example. The upper bound on β‾\overline{\beta} also implies that if the step-sizes are relatively large, only small momentum parameters can be picked to ensure stability.

Remark 2: The nonidentical step-sizes in gradient tracking methods have previously been studied in . These works rely on some notion of heterogeneity among the step-sizes, defined respectively as the relative deviation of the step-sizes from their average, ∥(I−W)α∥∥Wα∥\frac{\|(I-W)\boldsymbol{\alpha}\|}{\|W\boldsymbol{\alpha}\|}, in , and as the ratio of the largest to the smallest step-size, [α]max⁡/[α]min⁡{[\boldsymbol{\alpha}]_{\max}}/{[\boldsymbol{\alpha}]_{\min}}, in . The authors then show that when the heterogeneity is sufficiently small and when the largest step-size follows a bound that is a function of the heterogeneity, the proposed algorithms converge to the global minimizer. It is worth noting that sufficiently small step-sizes do not guarantee sufficiently small heterogeneity in both of the above definitions. In contrast, the upper bound on the largest step-size in this paper, Eq. (29), is independent of any notion of heterogeneity and only depends on the objective functions and the network topology. Each agent therefore locally picks a sufficiently small step-size without any coordination. Based on the discussion in Section III, our approach thus improves the analysis in . Besides, Eq. (29) allows the existence of zero step-sizes among the agents as long as the largest step-size is positive and is sufficiently small.

Remark 3: To show that ABm\mathcal{AB}m has an RR-linear rate for sufficiently small α‾\overline{\alpha} and β‾\overline{\beta}, one can alternatively use matrix perturbation analysis as in (Theorem 1). However, it does not provide explicit upper bounds on α‾\overline{\alpha} and β‾\overline{\beta} in closed form.

V Average-Consensus from 𝒜​ℬ​m𝒜ℬ𝑚\mathcal{AB}m

In this section, we show that ABm\mathcal{AB}m subsumes a novel average-consensus algorithm over strongly-connected directed graphs. To show this, we choose the objective functions as

Clearly, the minimization of F~=∑i=1nf~i\widetilde{F}=\sum_{i=1}^{n}\widetilde{f}_{i} is now achieved at x∗=1n∑i=1nυi\mathbf{x}^{*}=\tfrac{1}{n}\sum_{i=1}^{n}\boldsymbol{\upsilon}_{i}. The ABm\mathcal{AB}m algorithm, Eq. (4), thus naturally leads to the following average-consensus algorithm, termed as ABm\mathcal{AB}m-C\mathcal{C}, with ∇f(xk+1)−∇f(xk)=xk+1−xk\nabla\mathbf{f}(\mathbf{x}_{k+1})-\nabla\mathbf{f}(\mathbf{x}_{k})=\mathbf{x}_{k+1}-\mathbf{x}_{k}; for the sake of simplicity, we choose αi=α,βi=β,∀i\alpha_{i}=\alpha,\beta_{i}=\beta,\forall i:

Its local implementation at each agent ii is given by:

where x0i=υi\mathbf{x}^{i}_{0}=\boldsymbol{\upsilon}_{i} and yi0=0, ∀i\mathbf{y}_{i}^{0}=0,~{}\forall i.

From the analysis of ABm\mathcal{AB}m, an RR-linear convergence of ABm\mathcal{AB}m-C\mathcal{C} to the average of υi\boldsymbol{\upsilon}_{i}’s is clear from Theorem 1. It may be possible to make concrete rate statements by studying the spectral radius of the following system matrix:

However, this analysis is beyond the scope of this paper. We note that when β=0\beta=0, the above equations still converge to the average of υi\boldsymbol{\upsilon}_{i}’s according to Theorem 1. What is surprising is that, with β=0\beta=0, ABm\mathcal{AB}m-C\mathcal{C} reduces to

which is surplus consensus , after a state transformation with \mboxdiag(I,−I)\mbox{diag}\left(I,-I\right); in fact, any state transformation of the form \mboxdiag(I,I~)\mbox{diag}(I,\widetilde{I}) applies here as long as I~\widetilde{I} is diagonal (to respect the graph topology) and invertible. More importantly, compared with surplus consensus , ABm\mathcal{AB}m-C\mathcal{C} uses information from the past iterations. This history information is in fact the momentum from a distributed optimization perspective, which may lead to accelerated convergence as we will numerically show in Section VI.

Following this discussion, choosing the local functions as f~i\widetilde{f}_{i}’s in , or in ADD-OPT , or in FROST , we get average-consensus with only DS, CS, or RS weights. The protocol that results directly from AB\mathcal{AB} is surplus consensus, while the one resulting directly from FROST was presented in . With the analysis provided in Section III, we see that the algorithm in is in fact related to surplus consensus after a state transformation. Clearly, accelerated average-consensus based exclusively on either row- or column-stochastic weights can be abstracted from the discussion herein, after adding a momentum term.

VI Numerical Experiments

We now provide numerical experiments to illustrate the theoretical findings described in this paper. To this aim, we use two different graphs: an undirected graph, G1\mathcal{G}_{1}, and a directed graph, G2\mathcal{G}_{2}. Both graphs have n=500n=500 agents and are generated using nearest neighbor rules and then we add less than 0.05%0.05\% random links. The number of edges in all cases is less 4%4\% of the total possible edges. Since the graphs are randomly generated across experiments, two sample graphs are shown in Fig. 1, without the self-edges and random links for visual clarity. We generate DS weights using the Laplacian method: W=I−1max⁡ideg⁡i+1LW=I-\tfrac{1}{\max_{i}\deg_{i}+1}L, where LL is the graph Laplacian and deg⁡i\deg_{i} is the degree of node ii. Additionally, we generate RS and CS weights with the uniform weighting strategy: aij=1∣Nj\mboxin∣a_{ij}=\tfrac{1}{|\mathcal{N}_{j}^{{\scriptsize\mbox{in}}}|} and bij=1∣Nj\mboxout∣,∀i,jb_{ij}=\tfrac{1}{|\mathcal{N}_{j}^{{\scriptsize\mbox{out}}}|},\forall i,j. We note that both weighting strategies are applicable to undirected graphs, while only the uniform strategy can be used over directed graphs.

where λ2∥b∥22\frac{\lambda}{2}\|\mathbf{b}\|_{2}^{2} is a regularization term used to prevent over-fitting of the data. The feature vectors, cij\mathbf{c}_{ij}’s, are randomly generated from a Gaussian distribution with zero mean and the binary labels are randomly generated from a Bernoulli distribution. We plot the average of residuals at each agent, 1n∑i=1n∥xi(k)−x∗∥2\frac{1}{n}\sum_{i=1}^{n}\|\mathbf{x}_{i}(k)-\mathbf{x}^{*}\|_{2}, and first compare the performance of the following over undirected graphs in Fig. 2 (Left): (i) ABm\mathcal{AB}mwith RS and CS weights; (ii) ABm\mathcal{AB}mwith DS weights; (iii) distributed optimization based on gradient tracking from , with DS weights; (iv) EXTRA from ; and, (v) centralized gradient descent.

Next, we compare the performance similarly over directed graphs in Fig. 2 (Right). Here, the algorithms with doubly-stochastic weights are not applicable, and instead we compare ABm\mathcal{AB}m with AB\mathcal{AB} , ADD-OPT/Push-DIGing , and centralized gradient descent. The weight matrices are chosen as we discussed before and the algorithm parameters are hand-tuned for best performance (except for gradient descent where the optimal step-size is given by α=2μ+l\alpha=\tfrac{2}{\mu+l}). We note that momentum improves the convergence when compared to applicable algorithms without momentum, while ADD-OPT/Push-DIGing are much slower because of the eigenvector estimation, see Section III for details.

VI-B Distributed Quadratic Programming

For small condition numbers, we note that gradient descent is quite fast and the distributed algorithms suffer from a relatively slower fusion over the graphs. Recall that the optimal convergence rate of gradient decent is O((Q−1Q+1)k)\mathcal{O}((\tfrac{\mathcal{Q}-1}{\mathcal{Q}+1})^{k}). When the condition number is large, gradient descent is quite conservative allowing fusion to catch up. Finally, we note that ABm\mathcal{AB}m, with momentum, outperforms the centralized gradient descent when the condition number is large. This observation is consistent with the existing literature, see e.g., .

VI-C 𝒜​ℬ​m𝒜ℬ𝑚\mathcal{AB}m and Average-Consensus

We now provide numerical analysis and simulations to show that ABm\mathcal{AB}m-C\mathcal{C}, in Eq. (49), possibly achieves acceleration when compared with surplus-consensus, in Eq. (56). To explain our choice of α\alpha and β\beta, we first note that the power limit of the system matrix in Eq. (56), denoted as H\mathcal{H}, is :

where W∞=(1n1n1n⊤)⊗Ip\mathcal{W}_{\infty}=(\frac{1}{n}\mathbf{1}_{n}\mathbf{1}_{n}^{\top})\otimes I_{p}. It is straightforward to show that Hk−H∞=(H−H∞)k.\mathcal{H}^{k}-\mathcal{H_{\infty}}=\left(\mathcal{H}-\mathcal{H}_{\infty}\right)^{k}. Similarly, for the augmented system matrix, H~\widetilde{\mathcal{H}}, in Eq. (49), we observe that

and it can be verified that H~k−H~∞=(H~−H~∞)k.\mathcal{\widetilde{H}}^{k}-\mathcal{\widetilde{H}_{\infty}}=(\mathcal{\widetilde{H}}-\mathcal{\widetilde{H}}_{\infty})^{k}. We therefore use grid search to choose the optimal α∗\alpha^{*} in H\mathcal{H} and the optimal α~∗\widetilde{\alpha}^{*} and β~∗\widetilde{\beta}^{*} in H~\mathcal{\widetilde{H}}, which respectively minimize ρ(H−H∞)\rho(\mathcal{H}-\mathcal{H}_{\infty}) and ρ(H~−H~∞)\rho(\mathcal{\widetilde{H}}-\mathcal{\widetilde{H}}_{\infty}). Numerically, we observe that it may be possible for the minimum of ρ(H~−H~∞)\rho(\mathcal{\widetilde{H}}-\mathcal{\widetilde{H}}_{\infty}) to be smaller than that of ρ(H−H∞)\rho\left(\mathcal{H}-\mathcal{H}_{\infty}\right). The convergence speed comparison between ABm\mathcal{AB}m-C\mathcal{C} and surplus consensus is shown in Fig 5 over a directed graph, G2\mathcal{G}_{2}.

VII Conclusions

In this paper, we provide a framework for distributed optimization that removes the need for doubly-stochastic weights and thus is naturally applicable to both undirected and directed graphs. Using a state transformation based on the non-1n\mathbf{1}_{n} eigenvector, we show that the underlying algorithm, AB\mathcal{AB}, based on a simultaneous application of both RS and CS weights, lies at the heart of several algorithms studied earlier that rely on eigenvector estimation when using only CS (or only RS) weights. We then propose the distributed heavy-ball method, termed as ABm\mathcal{AB}m, that combines AB\mathcal{AB} with a heavy-ball (type) momentum term. To the best of our knowledge, this paper is the first to use a momentum term based on the heavy-ball method in distributed optimization. We show that ABm\mathcal{AB}m subsumes a novel average-consensus algorithm as a special case that unifies earlier attempts over directed graphs, with potential acceleration due to the momentum term.

References