Distributed Nonconvex Multiagent Optimization Over Time-Varying Networks
Ying Sun, Gesualdo Scutari, Daniel Palomar
I Introduction
Distributed optimization has found wide range of applications in several areas, including machine learning, data analysis, signal processing, networking, and decentralized control. Common to these problems is a network of agentsprocessors, computers of a cluster, nodes of a sensor network, vehicles, or UAVsthat want to cooperatively minimize a global cost function by means of actions taken by each agent and local coordination between neighboring nodes. In this paper, we consider the following general class of (possibly) nonconvex multiagent problems:
Our goal is developing solution methods for the nonconvex problem (1) in the following distributed setting: i) Each agent knows only its own function (as well as and ); and ii) the communication topology connecting the agents is time-varying and directed, and it is not known to the agents. Time-varying communication topologies arise, for instance, in mobile wireless networks, wherein the nodes are mobile and/or communicate throughout (fast-)fading channels. Directed communication links are also a natural assumption as in many cases there is no reason to expect different nodes to transmit at the same power level or that transmitter and receivers are geographically collocated (e.g., think of ad-hoc networks).
Distributed solution methods for convex instances of Problem (1) have been widely studied in the literature, under various assumptions on network topology; some recent contributions include . The majority of the aforementioned works assume either undirected graphs or static directed graphs. Moreover all the algorithms developed in the aforementioned papers along with their convergence analysis are not applicable to nonconvex problems, and thus to Problem (1). We are aware of only few works dealing with distributed algorithms for some nonconvex instances of (1), namely: . Among them, our previous work is to date the only method applicable to the general class of nonconvex constrained problems in the form (1). However, the implementability of algorithm relies on the possibility of building a sequence of double-stochastic consensus matrices that are commensurate with the sequence of underlying time-varying communication digraphs. This can limit the applicability of the method in practice, especially when the network topology is time-varying, for several reasons. First, not all digraphs are doubly-stochasticable (i.e., admit a doubly stochastic adjacency matrix); some form of balancedness in the graph is needed , which limits the class of network topologies over which algorithm can be applied. Moreover, necessary and sufficient conditions for a digraph to be doubly-stochasticable are not easy to be checked in practice. Second, constructing a doubly-stochastic weight matrix matching the graph, even when possible, calls for computationally intense, generally centralized, algorithms. Third, double stochasticity prevents one from using natural broadcast schemes, in which a given agent may transmit its local estimate to all its neighbors without expecting any immediate feedback.
The analysis of the literature shows that the design of distributed algorithms for the class of problems (1) over time-varying, arbitrary digraphs is up to date a challenging and open problem, even in the case of convex cost functions . This paper introduces the first broadcast-based distributed algorithmic framework for the aforementioned class of problems. The crux of the framework is a general convexification-decomposition technique that hinges on our recent (primal) Successive Convex Approximation (SCA) methods , coupled with i) a tacking mechanism that allows every agent to estimate locally the gradients of other agents’ functions ; and ii) a novel broadcast protocol instrumental to distribute the computation and propagate the needed information over the network. We term the new scheme “distributed Successive cONvex Approximation algorithm over Time-varying digrAphs (SONATA)”. Some key desirable features of SONATA are: i) It is applicable to arbitrary (possibly) time-varying network topologies; ii) it is fully distributed, requiring neither the knowledge of the graph sequence nor the use of a double-stochastic consensus matrix; in fact, each agent just needs to broadcast its local estimates to all its neighbors without expecting any feedback; iii) it deals with nonconvex and nonsmooth objectives as well as (convex) constraints; and iv) it is very flexible in the choice of the approximations of ’s, which need not be necessarily its first or second order approximation (like in all current distributed gradient schemes). Asymptotic convergence to stationary solutions of Problem (1) is proved. Numerical results show that SONATA, applied to a number of convex and nonconvex problems, outperforms state-of-the-art schemes, in terms of practical convergence while reaching the same (stationary) solutions. As a final remark, we point out that the proposed broadcast protocol is different from the renowned pushed-sum protocol , used in a number of papers to remove the double-stochastic requirement on the consensus matrix. The major difference is that the proposed method is the first one applicable to constrained (convex and nonconvex) optimization problems while push-sum-based schemes work only for unconstrained problems (this is because push-sum-based updates do not preserve feasibility of the iterates).
The rest of the paper is organized as follows. In Section II we first introduce the general idea of SONATA, followed by its formal description along with its convergence properties. Section III sheds light on the connection between SONATA and some recent distributed algorithms proposed in the literature (mostly appeared after the submission of this work). Some applications of SONATA are discussed in Section IV along with some numerical results. Finally, Section V draws some conclusions.
II Algorithmic Design
We study Problem (1) under the following standard assumptions.
Assumption A (Problem Setup) {enumerate*}
The set is closed and convex;
Each is a continuously differentiable function defined on an open set containing ;
Each is Lipschitz continuous on ;
is bounded on , with ;
is convex with bounded subgradients on ;
is coercive on , i.e., .
Assumption A is standard and satisfied by many practical problems. For instance, A3-A5 hold automatically if is bounded and is twice continuously differentiable, whereas A6 guarantees the existence of a solution. Note that each need not be convex and is known only by agent .
In words, Assumption B says that the information sent by any agent at any time will reach any agent within the next time slots.
Our goal is to develop an algorithm that converges to stationary solutions of Problem (1) while being implementable in the above distributed setting (Assumptions A and B), and applicable to arbitrary network topologies without requiring any knowledge of the graph sequence . To shed light on the core idea of the novel framework, we first introduce an informal and constructive description of the proposed algorithm, see Sec. II-A. Sec. II-B will formally introduce SONATA along with its convergence properties.
Designing distributed algorithms for Problem (1) faces two main challenges, namely: the nonconvexity of the objective function and the lack of global information on the optimization problem from the agents. To cope with these issues, SONATA combines SCA techniques (Step 1 below) with a consensus-like step implementing a novel broadcast protocol (Step 2), as described next.
Step 1: Local SCA. Each agent maintains a local copy of the common optimization variable , denoted by , which needs to be updated at each iteration; let be the value of at iteration . The nonconvexity of together with the lack of knowledge of , prevent agent to solve Problem (1) directly. To cope with this issues, we leverage SCA techniques: at each iteration , agent solves instead a convexification of Problem (1), having the following form
where the nonconvex function is replaced with the strongly convex approximation around , defined as
Note that is well-defined, because (2) has a unique solution. The direct use of as the new local estimate may affect convergence because it might be a too “aggressive” update. To cope with this issue we introduce a step-size in the update of :
where is a step-size (to be properly chosen, see Th. 1). The idea behind the iterates (2)-(5) is to compute stationary solutions of Problem (1) as fixed-points of the mappings . To this end, we require the following assumptions on the surrogate function .
Assumption C (On the surrogate function). Each function satisfies the following properties: {enumerate*}
, for all ;
is uniformly strongly convex on ;
is uniformly Lipschitz continuous on ; Conditions C1-C3 are quite natural: should be regarded as a (simple) convex, local, approximation of at the point that preserves the first order properties of . Several feasible choices are possible for a given ; we discuss alternative options in Sec. II-C. Here, we only remark that no extra conditions on are required to guarantee convergence of the proposed algorithm.
The next proposition establishes the desired connection between the fixed points of and the stationary solutions of (1); the proof follows from [15, Prop. 8(b)] and thus is omitted.
Consider Problem (1) under Assumptions A1-A6. If the surrogate functions ’s are chosen according to Assumption C, then the set of fixed-points of coincides with that of stationary solutions of Problem (1).
Step 2: Broadcasting local information. We have now to introduce a mechanism to ensure that the local estimates eventually agree among all agents. To disseminate information over a time-varying digraph without requiring the knowledge of the sequence of digraphs and a double-stochastic weight matrix, we propose the following broadcasting protocol. Given , each agent updates its own local estimate together with one extra scalar variable (initialized to ), according to
where the ’s are some weighting coefficients (to be properly chosen) matching the graph in the following sense.
Assumption D (On the weighting matrix). Matrix satisfies the following conditions: {enumerate*}
if , and otherwise;
is column stochastic, i.e., .
Steps (6)-(7) are interpreted as follows: All agents i) send their local variables and to their out-neighbors; and ii) linearly combine with coefficients the information coming from their in-neighbors. The idea behind the use of the extra variable is to dynamically construct a row stochastic weight matrix so that consensus among the ’s can be asymptotically achieved; see Sec. II-C for more details.
On the local update of . The algorithm developed so far is based on the computation of in (2). To do so, at each iteration, every agent needs to evaluate and thus know locally all , which is not feasible in a distributed time-varying setting. To cope with this issue, we replace in (2) with an estimate and solve instead
The question now becomes how to update each using only local information [in the form of (6)-(7)] while asymptotically converging to . As in , rewriting first as
with , we propose to update mimicking (9):
where is a local variable (controlled by agent ) whose task is to asymptotically track . Similar to (6)-(7), we propose the following new gradient tracking step:
where is defined in (6). Note that the update of and thus of can be now performed locally by agent , with the same signaling as for (6)-(7).
II-B Successive Convex Approximation over Time-varying Digraphs
We are now in the position to formally introduce SONATA, as given in Algorithm 1, whose convergence is stated in Theorem 1.
Let be the sequence generated by Algorithm 1, and let . Suppose that i) Assumptions A-D hold; ii) the step-size sequences satisfying and . Then,
(1) [convergence]: is bounded for all , and every limit point of is a stationary solution of Problem (1); (2) [consensus]: as , for all .
We point out that convergence of SONATA (as stated in Th. 1) can also be established under weaker assumptions, namely: i) a constant step-size, (possibly) different for each agent, can be used; and ii) Assumption A4 is not needed. We refer the reader to for the proof.
II-C Discussion on Algorithm 1
ATC- versus CTA-based updates. To illustrate the algorithm dynamics, let us combine (5)-(7). Eliminating the auxiliary variable , one can write
where is a nonnegative matrix with elements
Eq. (12) follows an Adapt-Then-Combine-based (ATC) scheme, where each agent first updates its local copy along the “descent direction” , and then it combines its new update with that of its neighbors via consensus, using the weights .
As an alternative to Eq. (12), one can also follow a so-called Combine-Then-Adapt-based (CTA) approach: each agent first mixes its own local copy with that of its neighbors via consensus, and then it performs its local optimization-based update. The CTA scheme yields the following alternative:
We remark that SONATA based on CTA updates is proved to converge under the same conditions as in Theorem 1 (and Remark 1); see .
Linearization: When there is no convex structure to exploit, one can simply linearize , which leads to
In this case, SONATA becomes a distributed proximal gradient algorithm for constrained optimization.
Partial Linearization: Consider the case that can be decomposed as , where is convex and is nonconvex with Lipschitz continuous gradient. Preserving the convex part of while linearizing leads to the following valid surrogate
Convexification: If variable can be partitioned as , and is convex with respect to while nonconvex with respect to , then can be constructed by convexifying only the nonconvex part of , i.e.,
where is the gradient of with respect to .
On the choice of the step-size. Th. 1 offers some flexibility in the choice of the step-size sequence; the conditions therein ensure that the sequence decays to zero, but not too fast. There are many diminishing step-size rules in the literature satisfying the aforementioned conditions; see, e.g., . We found the following two choices effective in our experiments:
On the choice of matrix . The key requirement of Assumption D is that each is column stochastic. To the best of our knowledge, this is the weakest condition on the weighting matrix to solve optimization problems over arbitrary time-varying digraphs. We remark that our protocol contains push-sum as a special case if is chosen as
Note that the message passing protocol based on (21) can be easily implemented, since each agent only needs the know its out-degree and broadcast the information evenly to all its out-neighbors.
III SONATA and Special Cases
In this section we contrast SONATA with related algorithms proposed in the literature (including very recent proposals , appeared online after the submission of this work) for special instances of Problem (1). Specifically, we show next that all these schemes are special cases of SONATA. To this end, we first rewrite SONATA in an equivalent more convenient form and provide some specific instances of the main algorithm.
where is given in (13), and denotes a diagonal matrix whose diagonal entries are the components of the vector . Furthermore, let us concatenate all the local copies s in the -length column vector ; the vector is similarly defined. Finally, let and . Using the above notation, the (ATC- and CTA-based) updates of SONATA [cf. Algorithm 1 and Eq. (14)] can be rewritten in compact form as
When the digraphs admit a double-stochastic matrix , and in (22a) is chosen so, the iterates (22) can be further simplified. Indeed, it follows from (22a) and (22b) that and , for all ; and then SONATA in (22) reduces to
The ATC-based updates (23a) and (23) coincide with our previous algorithm NEXT, introduced in . We will refer to (23) as (ATC/CTA-)SONATA-NEXT.
and set . Then, can be computed in closed form [cf. (8)]:
which we will refer to as (ATC/CTA-)SONATA-L (L stands for “linearized”).
Similar to (23), if all are double stochastic martices, then (ATC/CTA-)SONATA-L reduces to
which is referred to as (ATC/CTA-)SONATA-NEXT-L.
III-B Connection with current algorithms
where , is a double stochastic matrix matching the graph (i.e., if and otherwise), and is the vector of agents’ step-sizes s. A similar algorithm was proposed in parallel in (in the same networking setting of ), which reads
While algorithm (28) is in principle more general than (29)–agents can use different step-sizes s–the assumptions in on to guarantee convergence are difficult to be enforced in practice, and in particular in a distributed setting.
Aug-DGM was shown to achieve convergence rate for smooth convex functions s, and linear convergence for some , if ’s are strongly convex.
Clearly Aug-DGM in (28) and Algorithm in (29) are both special cases of (ATC-)SONATA-NEXT-L [cf. Eq. (27)].
(Push-)DIGing . Appeared in the technical report and applicable to -strongly connected undirected graphs, the DIGing Algorithm reads
where is a double-stochastic matrix matching the graph. Clearly, DIGing is a special case of (CTA-)SONATA-NEXT-L [cf. (27)], proposed in the earlier works .
In the same technical report , the authors proposed push-DIGing, the extension of DIGing to -strongly connected digraphs. It turns out that push-DIGing is a special case of (ATC-)SONATA-L [cf. Eq. (III-A)], when . Both DIGing and Push-DIGing are shown to have R-linear convergence rate, when agents’ objective functions are strongly convex. ADD-OPT . Finally, we mention the ADD-OPT Algorithm, proposed in for strongly connected static digraphs, which takes the following form:
Defining , it can be verified that algorithm (31) can be rewritten as
Comparing Eq. (III-A) and (32), one can see that ADD-OPT is an instance of (CTA-)SONATA-L with the following particular choice of (uncoordinated) step-size: for agent . We recall that (CTA-)SONATA-L is guaranteed to converge also with uncordinate step-sizes; see Remark 1. ADD-OPT is shown to have linear rate for strongly convex objective functions.
We summarize the connections between the different versions of SONATA(-NEXT) and its special cases in Table I.
IV Applications and Numerical Results
In this section, we test the performance of SONATA on both convex and nonconvex problems. For all applications, we simulate the following graph topology: at each iteration, each agent has two out-neighbors, with one belonging to a time-varying cycle and the other two randomly chosen. The step-size is chosen based on the rule (19), and matrix is chosen based on Eq. (21).
In the first simulation, we consider a robust linear regression problem. Each agent has measurements of parameter as , which is corrupted by noise and outliers. To estimate , we solve the following problem
where is the Huber loss function given by
Defining , Problem (33) is an instance of the general Problem (1) with . We provide two versions of surrogate function . In the first version, function is linearized at each iteration (cf. Eq. (15)). In the second version, we propose a SCA scheme that approximates at by a quadratic function , where is defined as
with . Consequently, the update has a closed form solution given as where the th row of is , and the th element of is . Matrix is diagonal with its th diagonal being .
We simulate agents collaboratively estimate of dimension 200 with i.i.d. uniformly distributed entries in . Each agent only has measures. The elements of vector is generated following an i.i.d. Gaussian distribution, then normalized to be . The measurements noise follows a Gaussian distribution with standard deviation , and each agent has one measurement corrupted by an outlier following a Gaussian distribution with standard deviation . The cut-off parameter is set to be .
Algorithm parameters are tuned as follows. The proximal parameter for our linearization scheme and SCA scheme are set to be and , respectively. Step-size parameters are set to be and for both of them. We compare the performance with subgradient-push algorithm proposed in , for which the step-size parameter is set to be , . In addition, since SONATA has two consensus steps, we run subgradient-push twice in one iteration using the same graph for a fair comparison.
The performance is averaged over 100 Monte-Carlo simulations, where each time is fixed while the noise and graph connectivity are randomly generated. Fig. 1 reports the progress of the algorithms towards optimality and consensus error, where measure is defined as and . We can see that SONATA reaches consensus and convergence much faster than subgradient-push. In addition, SCA scheme outperforms plain linearization by exploiting the convexity of the objective function.
IV-B Target Localization
Target Localization problem considers a number of sensors in a network collaboratively locate the position of targets. Sensor has the knowledge of the coordinate of its own location , and the relative Euclidean distance between itself and target , denoted . The problem is formulated as:
where is a compact set and variable is an estimate of the location of target , denoted . Parameter takes value zero if the th agent has no measurement about target .
We apply SONATA to Problem (34) with , where is obtained by stacking the ’s. The two SCA schemes proposed in are adopted, namely, linearization (cf. Eq. (15)) and partial linearization with surrogate function
where , with , and .
In the simulation, we set the number of sensors to be , and the number of targets to be . Parameter takes value zero and one with equal probability. The locations of the sensors and targets are uniformly randomly generated in . We consider a noisy environment that the measured distances are corrupted by i.i.d. Gaussian noise. The noise standard deviation is set to be the minimum pairwise distance between sensors and targets.
We compare with the gradient algorithm proposed in for unconstrained optimization. Algorithm parameters are tuned as follows. For our algorithm, the step-size parameters are set to be and . The proximal parameter of for the linearization scheme is selected to be and that for partial linearization is selected to be . For the benchmark algorithm, and .
A comparison of the algorithms is given in Fig. 2, which is averaged over 100 Monte-Carlo simulations. Fig. 2 shows that within 200 iteration, both consensus and convergence are achieved for all algorithms; and SONATA converges much faster than the benchmark gradient algorithm.
V Conclusion
In this paper we have proposed (ATC/CTA-)SONATA, a family of novel distributed algorithms for nonconvex constrained optimization over time-varying (directed) networks. The algorithm leverages the idea of SCA for local optimization, a tracking mechanism to locally estimate the gradients of agents’ functions, and a new in-network broadcast protocol to distribute the computation and sharing information among agents. SONATA is the first broadcast-based algorithm framework that can solve convex or nonconvex constrained optimization problems over arbitrary time-varying digraphs. SONATA was also shown to contain, as special cases, current algorithms proposed in simplified settings. Numerical result shows that our algorithm outperforms state-of-the-art schemes on considered convex and nonconvex applications.