Asynchronous Distributed Optimization using a Randomized Alternating Direction Method of Multipliers

Franck Iutzeler, Pascal Bianchi, Philippe Ciblat, Walid Hachem

I Introduction

Consider a network represented by a set VV of agents seeking to solve the following optimization problem on a Euclidean space X\mathsf{X}:

where fvf_{v} is a convex real function known by agent vv only. Function fvf_{v} can be interpreted as the price payed by an agent vv when the global network state is equal to xx.

This problem arises for instance in cloud learning applications where massive data sets are distributed in a network and processed by distinct virtual machines . We investigate distributed optimization algorithms: agents iteratively update a local estimate using their private objective fvf_{v} and, simultaneously, exchange information with their neighbors in order to eventually reach a consensus on the global solution. Standard algorithms are generally synchronous: all agents are supposed to complete their local computations synchronously at each tick of an external clock, and then synchronously merge their local results. However, in many situations, one faces variable sizes of the local data sets along with heterogeneous computational abilities of the virtual machines. Synchronism then becomes a burden, as the global convergence rate is expected to depend on the local computation times of the slowest agents. It is crucial to introduce asynchronous methods which allow the estimates to be updated in a non-coordinated fashion, rather than all together or in some frozen order.

The literature contains at least three classes of distributed optimization methods for solving (1). The first one is based on the simultaneous use of a local first-order optimization algorithm (subgradient algorithm , Nesterov-like method ) and a gossip process which drives the network to a consensus. A second class of methods is formed by distributed Newton-Raphson methods . This paper focuses on a third class of methods derived from proximal splitting methods . Perhaps the most emblematic proximal splitting method is the so-called Alternating Direction Method of Multipliers (ADMM) recently popularized to multiagent systems by the monograph . Schizas et al. demonstrated the remarkable potential of ADMM to handle distributed optimization problems and introduce a useful framework to encompass graph-constrained communications . We also refer to for recent contributions. However, all of these works share a common perspective: Algorithms are synchronous. They require a significant amount of coordination or scheduling between agents. In , agents operate in parallel, whereas proposes a sequential version of ADMM where agents operate one after the other in a predetermined order.

Contributions. This paper introduces a novel class of distributed algorithms to solve (1). The algorithms are asynchronous in the sense that some components of the network are allowed to wake up at random and perform local updates, while the rest of the network stands still. No coordinator or global clock is needed. The frequency of activation of the various network components is likely to vary. The algorithms rely on the introduction of randomized Gauss-Seidel iterations of a Douglas-Rachford monotone operator. We prove that the latter iterations provides a new powerful method for finding the zeros of a sum of two monotone operators. Application of our method to problem (1) yields a randomized ADMM-like algorithm, which is proved to converge to the sought minimizers.

The paper is organized as follows. The distributed optimization problem is rigorously stated in Section II. The synchronous ADMM algorithm that solves this problem is then described in Section III. Section IV forms the core of the paper. After quickly recalling the monotone operator formalism, the random Gauss-Seidel form of the proximal algorithm is described and its convergence is shown there. These results will eventually lead to an asynchronous version of the well-known Douglas-Rachford splitting algorithm. In Section V, the results of Section IV are applied towards developing an asynchronous version of the ADMM algorithm. An implementation example is finally provided in Section VI along with some simulations in Section VII.

We denote by ΠAx\Pi_{A}x the restriction of xx to AA i.e., ΠA:XV→XA\Pi_{A}:\mathsf{X}^{V}\to\mathsf{X}^{A} is the linear operator defined for any x∈XVx\in\mathsf{X}^{V} as ΠAx:(v∈A)↦x(v)\Pi_{A}x:(v\in A)\mapsto x(v). We denote by 1A∈XA1_{A}\in\mathsf{X}^{A} the constant function equal to one and by sp(1A)\text{sp}(1_{A}) the linear span of 1A1_{A} i.e., the set of constant functions on AA. Notation ∣A∣|A| represents the cardinal of a set AA.

For a closed proper convex function h:X→(−∞,+∞]h:\mathsf{X}\to(-\infty,+\infty] we define proxh,ρ(x)=arg⁡min⁡yh(y)+ρ2∥y−x∥2\text{prox}_{h,\rho}(x)=\arg\min_{y}h(y)+\frac{\rho}{2}\|y-x\|^{2}.

II Distributed Optimization on a Graph

Consider a network of agents represented by a non-oriented graph G=(V,E)G=(V,E) where VV is a finite set of vertices (i.e., the agents) and EE is a set of edges. Each agent v∈Vv\in V has a private cost function fv:X→(−∞,+∞]f_{v}:\mathsf{X}\to(-\infty,+\infty] where X\mathsf{X} is a Euclidean space. We make the following assumption on functions fvf_{v}.

i) For all v∈Vv\in V, fvf_{v} is a proper closed convex function. ii) The infimum in (1) is finite and is attained at some point x∗∈Xx^{*}\in\mathsf{X}.

In order to solve the optimization problem (1) on the graph GG, we first provide an equivalent formulation of (1) that will be revealed useful. For some integer L≥1L\geq 1, consider a finite collection A1,A2,⋯ ,ALA_{1},A_{2},\cdots,A_{L} of subsets of VV which we shall refer to as components. We assume the following condition.

We introduce some notations. We set for any x∈XVx\in\mathsf{X}^{V},

For any z=(z1,⋯ ,zL)∈Z≜XA1×⋯×XALz=(z_{1},\cdots,z_{L})\in\mathsf{Z}\triangleq\mathsf{X}^{A_{1}}\times\cdots\times\mathsf{X}^{A_{L}}, we define the closed proper convex function

Under Assumption 2, xx is a minimizer of (2) if and only if x=xˉ1Vx=\bar{x}1_{V} where xˉ∈X\bar{x}\in\mathsf{X} is a minimizer of (1).

As noted in , solving Problem (2) is equivalent to the search of the zeros of two monotone operators. One of possible approaches for that sake is to use ADMM. Although the choice of the sets A1,⋯ ,ALA_{1},\cdots,A_{L} does not change the minimizers of the initial problem, it has an impact on the particular form of ADMM used to find these minimizers, as we shall see below.

In order to be more explicit, we provide in this section two important examples of possible choices for the components A1,⋯ ,ALA_{1},\cdots,A_{L}.

Let L=1L=1 and A1=VA_{1}=V. Problem (2) writes

In this case, the formulation is identical to [11, Chapter 7].

where 12\boldsymbol{1}_{2} stands for the vector (1,1)T(1,1)^{T}.

III Synchronous ADMM

We now apply the standard ADMM to Problem (2). Perhaps the most direct way to describe ADMM is to reformulate the unconstrained problem (2) into the following constrained problem: Minimize f(x)+g(z)f(x)+g(z) subject to z=Mxz=Mx. For any x∈XVx\in\mathsf{X}^{V}, λ,z∈Z\lambda,z\in\mathsf{Z}, the augmented Lagrangian is given by

where ρ>0\rho>0 is a constant. ADMM consists of the iterations

From [11, Chap. 3.2], the following result is immediate.

Under Assumption 1, the sequence (xk)(x^{k}) defined in (4a) converges to a minimizer of (2).

III-B Decentralized Implementation

Now consider the first update equation (4a). Getting rid of all quantities in Lρ\mathcal{L}_{\rho} which do not depend on the vvth component of xx, we obtain for any v∈Vv\in V

After some algebra, the above equation further simplifies to

where we introduced the following constants:

For each agent vv, compute Zk+1(v)Z^{k+1}(v) and Bk+1(v)B^{k+1}(v) using (6) and (9) respectively.

It is worth noting that in the case of Example 1, the synchronous ADMM described above coincides with the algorithm of .

IV A Randomized Proximal Algorithm

An operator T\mathsf{T} on a Euclidean space Y\mathsf{Y} is a set valued mapping T:Y→2Y\mathsf{T}:{\mathsf{Y}}\to 2^{\mathsf{Y}}. An operator can be equivalently identified with a subset of Y×Y\mathsf{Y}\times\mathsf{Y}, and we write (x,y)∈T(x,y)\in\mathsf{T} when y∈T(x)y\in\mathsf{T}(x). Given two operators T1\mathsf{T}_{1} and T2\mathsf{T}_{2} on Y\mathsf{Y} and two real numbers α1\alpha_{1} and α2\alpha_{2}, the operator α1T1+α2T2\alpha_{1}\mathsf{T}_{1}+\alpha_{2}\mathsf{T}_{2} is defined as α1T1+α2T2={(x,α1y1+α2y2) : (x,y1)∈T1, (x,y2)∈T2}\alpha_{1}\mathsf{T}_{1}+\alpha_{2}\mathsf{T}_{2}=\{(x,\alpha_{1}y_{1}+\alpha_{2}y_{2})\,:\,(x,y_{1})\in\mathsf{T}_{1},\,(x,y_{2})\in\mathsf{T}_{2}\}. The identity operator is I={(x,x):x∈Y}\mathsf{I}=\{(x,x):x\in\mathsf{Y}\} and the inverse of the operator T\mathsf{T} is T−1={(x,y):(y,x)∈T}\mathsf{T}^{-1}=\{(x,y):(y,x)\in\mathsf{T}\}. The operator T\mathsf{T} is said monotone if

A monotone operator is said maximal if it is not strictly contained in any monotone operator (as a subset of Y×Y\mathsf{Y}\times\mathsf{Y}). Finally, T\mathsf{T} is said firmly non-expansive if

The typical example of a monotone operator is the subdifferential ∂f\partial f of a convex function f:Y→\mathdsRf:\mathsf{Y}\to\mathds{R}. Finding a minimum of ff amounts to finding a point in zer⁡(∂f)\operatorname*{zer}(\partial f), where zer⁡(T)={x:0∈T(x)}\operatorname*{zer}(\mathsf{T})=\{x:0\in\mathsf{T}(x)\} is the set of zeroes of an operator T\mathsf{T}. A common technique for finding a zero of a maximal monotone operator T\mathsf{T} is the so-called proximal point algorithm that we now describe. The resolvent of T\mathsf{T} is the operator JρT≜(I+ρT)−1\mathsf{J}_{\rho\mathsf{T}}\triangleq(\mathsf{I}+\rho\mathsf{T})^{-1} for ρ>0\rho>0. One key result (see e.g. ) says that T\mathsf{T} is maximal monotone if and only if JρT\mathsf{J}_{\rho\mathsf{T}} is firmly non expansive and its domain is Y\mathsf{Y}. Observe that a firmly non expansive operator is single valued and denote by fix⁡(JρT)\operatorname*{fix}(\mathsf{J}_{\rho\mathsf{T}}) the set of fixed points of JρT\mathsf{J}_{\rho\mathsf{T}}. It is clear that fix⁡(JρT)=zer⁡(T)\operatorname*{fix}(\mathsf{J}_{\rho\mathsf{T}})=\operatorname*{zer}(\mathsf{T}). The firm non expansiveness of JρT\mathsf{J}_{\rho\mathsf{T}} plays a central role in the proof of the following result:

If T\mathsf{T} is a maximal monotone operator and ρ>0\rho>0, then the iterates ζk+1=JρT(ζk)\zeta^{k+1}=\mathsf{J}_{\rho\mathsf{T}}(\zeta^{k}) starting at any point of Y\mathsf{Y} converge to a point of fix⁡(JρT)\operatorname*{fix}(\mathsf{J}_{\rho\mathsf{T}}) whenever this set is non-empty.

IV-B Random Gauss-Seidel iterations

We are interested here in the convergence of the random iterates ζk+1=S^ξk+1(ζk)\zeta^{k+1}=\hat{\mathsf{S}}_{\xi^{k+1}}(\zeta^{k}) towards a (generally random) point of fix⁡(S)\operatorname*{fix}(\mathsf{S}), provided this set is non empty:

Let S\mathsf{S} is a firmly non-expansive operator on Y\mathsf{Y} with domain Y\mathsf{Y}. Let (ξk)k∈\mathdsN(\xi^{k})_{k\in\mathds{N}} be a sequence of random variables satisfying Assumption 3. Assume that fix⁡(S)≠∅\operatorname*{fix}(\mathsf{S})\neq\emptyset. Then for any initial value ζ0\zeta^{0}, the sequence of iterates ζk+1=S^ξk+1(ζk)\zeta^{k+1}=\hat{\mathsf{S}}_{\xi^{k+1}}(\zeta^{k}) converges almost surely to a random variable supported by fix⁡(S)\operatorname*{fix}(\mathsf{S}).

Since (I−S)(ζ⋆)=0(\mathsf{I}-\mathsf{S})(\zeta^{\star})=0, we have

where the inequality comes from the easily verifiable fact that (I−S)(\mathsf{I}-\mathsf{S}) is firmly non-expansive when S\mathsf{S} is. This leads to the inequality

which shows that ∣ ⁣∣ ⁣∣ζk−ζ⋆∣ ⁣∣ ⁣∣2\left|\!\left|\!\left|\zeta^{k}-\zeta^{\star}\right|\!\right|\!\right|^{2} is a nonnegative supermartingale with respect to the filtration (Fk)({\mathcal{F}}_{k}). As such, it converges with probability one towards a random variable Xζ⋆X_{\zeta^{\star}} satisfying 0≤Xζ⋆<∞0\leq X_{\zeta^{\star}}<\infty almost everywhere. Given a countable dense subset HH of fix⁡(S)\operatorname*{fix}(\mathsf{S}), there is a probability one set on which ∣ ⁣∣ ⁣∣ζk−ζ∣ ⁣∣ ⁣∣→Xζ∈[0,∞)\left|\!\left|\!\left|\zeta^{k}-{\boldsymbol{\zeta}}\right|\!\right|\!\right|\to X_{\boldsymbol{\zeta}}\in[0,\infty) for all ζ∈H{\boldsymbol{\zeta}}\in H. Let ζ⋆∈fix⁡(S)\zeta^{\star}\in\operatorname*{fix}(\mathsf{S}), let ε>0\varepsilon>0, and choose ζ∈H{\boldsymbol{\zeta}}\in H such that ∣ ⁣∣ ⁣∣ζ⋆−ζ∣ ⁣∣ ⁣∣≤ε\left|\!\left|\!\left|\zeta^{\star}-\boldsymbol{\zeta}\right|\!\right|\!\right|\leq\varepsilon. With probability one, we have

for kk large enough. Similarly, ∣ ⁣∣ ⁣∣ζk−ζ⋆∣ ⁣∣ ⁣∣≥Xζ−2ε\left|\!\left|\!\left|\zeta^{k}-\zeta^{\star}\right|\!\right|\!\right|\geq X_{\boldsymbol{\zeta}}-2\varepsilon for kk large enough. We therefore obtain:

There is a probability one set on which ∣ ⁣∣ ⁣∣ζk−ζ⋆∣ ⁣∣ ⁣∣\left|\!\left|\!\left|\zeta^{k}-\zeta^{\star}\right|\!\right|\!\right| converges for every ζ⋆∈fix⁡(S)\zeta^{\star}\in\operatorname*{fix}(\mathsf{S}).

Getting back to Inequality (11), taking the expectations on both sides of this inequality and iterating over kk, we obtain

By Markov’s inequality and Borel Cantelli’s lemma, we therefore obtain:

S(ζk)−ζk→0S(\zeta^{k})-\zeta^{k}\to 0 almost surely.

We now consider an elementary event in the probability one set where C1 and C2 hold. On this event, since ∣ ⁣∣ ⁣∣ζk−ζ⋆∣ ⁣∣ ⁣∣\left|\!\left|\!\left|\zeta^{k}-\zeta^{\star}\right|\!\right|\!\right| converges for ζ⋆∈fix⁡(S)\zeta^{\star}\in\operatorname*{fix}(\mathsf{S}), the sequence ζk\zeta^{k} is bounded. Since S\mathsf{S} is firmly non expansive, it is continuous, and C2 shows that all the accumulation points of ζk\zeta^{k} are in fix⁡(S)\operatorname*{fix}(\mathsf{S}). It remains to show that these accumulation points reduce to one point. Assume that ζ1⋆\zeta_{1}^{\star} is an accumulation point. By C1, ∣ ⁣∣ ⁣∣ζk−ζ1⋆∣ ⁣∣ ⁣∣\left|\!\left|\!\left|\zeta^{k}-\zeta^{\star}_{1}\right|\!\right|\!\right| converges. Therefore, lim⁡∣ ⁣∣ ⁣∣ζk−ζ1⋆∣ ⁣∣ ⁣∣=lim inf⁡∣ ⁣∣ ⁣∣ζk−ζ1⋆∣ ⁣∣ ⁣∣=0\lim\left|\!\left|\!\left|\zeta^{k}-\zeta^{\star}_{1}\right|\!\right|\!\right|=\liminf\left|\!\left|\!\left|\zeta^{k}-\zeta^{\star}_{1}\right|\!\right|\!\right|=0, which shows that ζ1⋆\zeta^{\star}_{1} is unique. ∎

V Random ADMM

We now return to the optimization problem (2). It is a well known fact that the standard ADMM can be seen as special case of the so-called Douglas-Rachford algorithm . The Douglas-Rachford algorithm can itself be seen as a special case of a proximal point algorithm. By the results of the previous section, this suggests that random Gauss-Seidel iterations applied to the Douglas-Rachford operator produce a sequence which eventually converges to the sought solutions. It turns out that the latter random iterations can be written under the form of practical asynchronous ADMM-like algorithm.

Consider the following dual problem associated with (2)

where f∗,g∗f^{*},g^{*} are the Fenchel conjugates of ff and gg and M∗M^{*} is the adjoint of MM. By Assumption 1 along with [16, Th.3.3.5], the minimum in (12) is attained and its opposite coincides with the minimum of (2). Note that λ\lambda is a minimizer of (12) iff zero belongs to the subdifferential of the objective function in (12). By [16, Th.3.3.5] again, this reads 0∈−M⋅∂f∗(−M∗λ)+∂g∗(λ)0\in-M\cdot\partial f^{*}(-M^{*}\lambda)+\partial g^{*}(\lambda). Otherwise stated, finding minimizers of the dual problem (12) boils down to searching zeros of the sum of two maximal monotone operators T+U\mathsf{T}+\mathsf{U} defined by T=−M⋅∂f∗∘(−M∗)\mathsf{T}=-M\cdot\partial f^{*}\circ(-M^{*}) and U=∂g∗\mathsf{U}=\partial g^{*}. For a fixed ρ>0\rho>0, the Douglas-Rachford / Lions-Mercier operator R\mathsf{R} is defined as

The following Lemma is an immediate consequence of .

Under Assumption 1, R\mathsf{R} is maximal monotone, and zer⁡(R)≠∅\operatorname*{zer}(\mathsf{R})\neq\emptyset. Moreover, JρU(ζ)∈zer⁡(T+U)\mathsf{J}_{\rho\mathsf{U}}(\zeta)\in\operatorname*{zer}(\mathsf{T}+\mathsf{U}) for any ζ∈zer⁡(R)\zeta\in\operatorname*{zer}(\mathsf{R}).

Lemma 3 implies that the search for a zero of T+U\mathsf{T}+\mathsf{U} boils down to the search of a zero of R\mathsf{R} up to a resolvent step JρU\mathsf{J}_{\rho\mathsf{U}}. To that end, a standard approach is to use a proximal point algorithm of the form ζk+1=JR(ζk)\zeta^{k+1}=\mathsf{J}_{\mathsf{R}}(\zeta^{k}). By , it can be shown that this approach is equivalent to the ADMM derived in Section II. Here, our aim is different. We shall consider random Gauss-Seidel iterations in order to derive an asynchronous version of the ADMM.

V-B Random Gauss-Seidel Iterations

Let Assumptions 1, 2 and 3 hold true. Consider the sequence (ζk)k(\zeta^{k})_{k} defined by ζk+1=S^ξk+1(ζk)\zeta^{k+1}=\hat{\mathsf{S}}_{\xi^{k+1}}(\zeta^{k}). Then for any initial value ζ0\zeta^{0}, the sequence λk≜JρU(ζk)\lambda^{k}\triangleq\mathsf{J}_{\rho\mathsf{U}}(\zeta^{k}) converges almost surely to a minimizer of (12).

In order to complete the above result, we still must justify the fact that, as claimed, the above iterations can be seen as an asynchronous distributed algorithm.

V-C Distributed Algorithm

i)-ii) Existence: Let us define λ=JρU(ζ)\lambda=\mathsf{J}_{\rho\mathsf{U}}(\zeta) and z=(ζ−λ)/ρz=(\zeta-\lambda)/\rho. Trivially, λ+ρz=ζ\lambda+\rho z=\zeta. As ζ∈λ+ρU(λ)\zeta\in\lambda+\rho\mathsf{U}(\lambda), we deduce that (λ,z)∈U(\lambda,z)\in\mathsf{U}. Uniqueness: For a fixed (λ,z)∈U(\lambda,z)\in\mathsf{U} satisfying λ+ρz=ζ\lambda+\rho z=\zeta, one has ζ∈(I+ρU)(λ)\zeta\in(I+\rho\mathsf{U})(\lambda) and thus λ=JρU(ζ)\lambda=\mathsf{J}_{\rho\mathsf{U}}(\zeta). As a consequence, z=(ζ−λ)/ρz=(\zeta-\lambda)/\rho.

iv) Operator S=JR\mathsf{S}=\mathsf{J}_{\mathsf{R}} can be written as

VI Implementation Example

When the edge {v,w}\{v,w\} is activated, the following two prox(⋅)\text{prox}(\cdot) operations are performed by the agents:

The two agents exchange then the values xk+1(v)x^{k+1}(v) and xk+1(w)x^{k+1}(w) and perform the following operations:

We remark that this communication scheme is reminiscent of the so-called Random Gossip algorithm introduced in in the context of distributed averaging.

VII Numerical Results

We consider a network with V={1,…,5}V=\{1,\ldots,5\} and with E={{1,2},{2,3},{3,4},{4,5},{5,3}}E=\{\{1,2\},\{2,3\},\{3,4\},\{4,5\},\{5,3\}\}. We evaluate the behavior of: i) the Synchronous ADMM ii) the Asynchronous ADMM and iii) the Distributed Gradient Descent with 1/k1/\sqrt{k} stepsize using Random Gossip as a communication algorithm. Each agent maintains a different quadratic convex function and their goal is to reach consensus over the minimizer of problem (1).

In Figure 1, we plot the squared error versus the number of primal updates for the three considered algorithms. We observe that our algorithm clearly outperforms the Distributed Gradient Descent.

References