Introduction
Consensus-based optimization (CBO) is a versatile, zero-order metaheuristic for global optimization: an ensemble of interacting agents explores the search space and is driven, through a drift-diffusion dynamics, toward a weighted average of the agents’ positions, the consensus point , computed via a Gibbs-type weighting of the objective function. Since it never requires gradient information, CBO is directly applicable to nonsmooth, nonconvex, and even black-box objectives, while at the same time being amenable to rigorous mean-field and finite-agent analysis, unlike most other metaheuristics of swarm-intelligence type. The model was first introduced by Pinnau, Totzeck, Tse and Martin [34 ] , who proposed the underlying stochastic differential equation and derived its mean-field limit as a nonlocal, degenerate parabolic PDE. The first rigorous proofs that the method actually converges to a global minimizer, under quantitative assumptions on the objective and the initialization, were given by Carrillo, Choi, Totzeck and Tse [8 ] and, in fully unconditional form with respect to initialization and with agent analysis as well, by Fornasier, Klock and Riedl [16 ] (see also the independent proof by Ha, Jin and Kim [21 ] ). Since these foundational results, a large body of work has refined the model along several directions: anisotropic, component-wise noise to remove the dimension-dependence of the drift and to reduce computational cost via mini-batching [11 ] , truncated noise [17 ] , jump-diffusion noise [29 ] , memory effects [35 ] , heterogeneous noise combined with random-batch agent interactions [30 ] , noisy/estimated objective evaluations [3 ] , and mechanisms such as a personal-best memory term borrowed from particle swarm optimization [39 ] . In parallel, CBO has been extended to constrained problems on the sphere and other hypersurfaces [14 ] and shown to be competitive on high-dimensional machine learning tasks [11 , 15 ] , has been connected to consensus-based sampling [10 ] , and has recently been introduced to robotics for global trajectory and policy optimization [37 ] ; we refer to [38 ] for a broader survey of these developments.
Yet, in order to fully exploit the potential of CBO, in particular on the large-scale, high-dimensional problems arising in modern machine learning, a genuinely parallel and distributed formulation of the algorithm would be crucial. It is a recurring claim in the literature that CBO-type dynamics are “highly parallelizable” or “inherently scalable” [38 , 13 ] , and indeed the per-agent updates may typically be distributed across the cores of a GPU or a multi-core machine [37 ] . However, this common notion of parallelism is architecturally centralized : every agent, regardless of which processor evaluates its update, relies on the very same, globally shared consensus point, so that a central synchronization step is required at every iteration and no genuine network structure or local-only communication is exploited. We recently explored the parallelization of the centralized CBO in the companion paper [4 ] . A notable departure from a single, globally shared consensus point is given by the kinetic theory-based optimization (KBO) methods of [5 ] , where the mean-field interaction of CBO is replaced by binary interactions between randomly sampled pairs of agents, described by a Boltzmann-type equation. There, however, any pair of agents may interact and the update still involves a collective estimate over the whole population, so that no network structure restricting communication is present. To the best of our knowledge, no distributed formulation of CBO with computational units communicating solely over a network of local connections has appeared in the literature, and, with the possible exception of the federated-learning variants of CBO proposed by García Trillos and collaborators [9 , 19 , 18 ] , which nonetheless rely on a central server orchestrating the interaction between clients, no convergence proof has been provided for any parallel, decentralized implementation of the method.
In this paper we explore a parallel and distributed formulation of CBO with fully decentralized computation. We assume the N N N computational units to be the nodes of a connected, undirected communication network G = ( V , E ) \mathcal{G} = (\mathcal{V},\mathcal{E}) G = ( V , E ) , each holding a local swarm of agents and able to communicate only with its network neighbors. Rather than relying on a single, globally shared consensus point, each node computes its own local consensus point from its own agents and then updates a local estimate of the global consensus by averaging it, through a doubly stochastic mixing matrix, with the estimates held by its neighbors, a mechanism we call consensus of consensus , in the spirit of classical linear gossip and distributed-averaging schemes over networks [40 , 33 ] . Since the network is connected, information about the location of the global minimizer, although initially known only locally and imprecisely at each node, is able to reach every other node; along the dynamics this information is slowly diffused across the network, and, as we prove, global consensus among all agents and all local estimates is asymptotically formed, exactly as in the centralized method, without any node ever having direct access to the whole swarm.
A further consequence of this construction is that each node’s local consensus point is computed using only the agents, and hence only the (possibly stochastic) evaluations of the objective function, held locally at that node. This is particularly relevant for objectives of the type arising in machine learning, where the objective function is itself an empirical risk defined over possibly locally held data. The proposed scheme thus allows for a fully decentralized optimization of such objectives, in which nodes only ever exchange the low-dimensional consensus vectors Z i Z^i Z i , and never share gradients, model updates, or any other disaggregated information about their local data from which the data itself could conceivably be reverse-engineered, as is instead possible for gradient-sharing schemes [20 , 22 ] . In this sense, the method is privacy-respecting essentially by design. This sets it apart from existing CBO-inspired approaches to distributed learning, such as FedCBO [9 ] and its bilevel extensions CB2 ^2 2 O [19 ] and its attack-robust variant [18 ] , which use CBO dynamics to reach (possibly clustered) consensus among the models of different clients but still operate within the classical federated-learning architecture, with a central server aggregating information from all clients at every round4 . Our fully decentralized, server-free formulation removes this single point of coordination, failure, and potential attack, while retaining, as we show, provable convergence guarantees; this suggests it as a promising gradient-free building block for privacy-aware decentralized training of machine learning and deep learning models over peer-to-peer networks.
Organisation of the paper The rest of the paper is organised as follows. In § 2 we state our assumptions on the objective function and on the stochastic oracle, and we introduce the decentralized parallel CBO scheme together with the tracking mechanism that replaces the global consensus point. § 2.1.1 is devoted to consensus formation. We show that, under an explicit condition on λ \lambda λ , σ \sigma σ and M M M , all agents and tracking variables converge almost surely to a common point, at a rate determined by the spectrum of the mixing matrix and by the parameters of the local dynamics. In § 2.2 we derive a finite-agent quantitative Laplace principle and use it to prove convergence in expectation of the swarm towards the global minimizer. § 2.2.1 discusses the hitting-probability assumption required by this result and verifies it for a simplified decoupled dynamics. Finally, § 3 reports numerical experiments illustrating the behaviour of the method.
Notation
Throughout the paper, N = { 0 , 1 , 2 , … } \mathbb{N} = \{0,1,2,\ldots\} N = { 0 , 1 , 2 , … } and, for n ∈ N n \in\mathbb{N} n ∈ N , the index range i = 1 : n i = 1:n i = 1 : n stands for i = 1 , … , n i = 1,\ldots,n i = 1 , … , n . Capital letters X X X , Z Z Z , C C C denote the random vectors in R d \mathbb{R}^{d} R d generated by the method (agents, tracking variables and consensus points, respectively), and the corresponding lowercase letters denote their components. As a general rule, superscripts are labels identifying an object (e.g. agent ℓ \ell ℓ ), while subscripts refer to iteration indices and components. For instance, x k , s ℓ x_{k,s}^{\ell} x k , s ℓ is the s s s -th component of the position X k ℓ X_{k}^{\ell} X k ℓ of agent ℓ \ell ℓ at iteration k k k . Calligraphic letters, such as X k s \mathcal{X}_{k}^{s} X k s and Z k s \mathcal{Z}_{k}^{s} Z k s , denote the vectors collecting the s s s -th components across all agents or all computational units, so that, e.g., ( Z k s ) i = z k , s i (\mathcal{Z}_{k}^{s})_{i}=z_{k,s}^{i} ( Z k s ) i = z k , s i . Capital letters are also used for matrices. We write I I I for the identity matrix, 1 N \mathbf{1}_{N} 1 N for the vector of all ones in R N \mathbb{R}^{N} R N , e s e_{s} e s for the s s s -th vector of the canonical basis of R d \mathbb{R}^{d} R d , and diag ( ⋅ ) \operatorname{diag}(\cdot) diag ( ⋅ ) for a (block-)diagonal matrix with the given diagonal entries or blocks. The symbol Λ \Lambda Λ , with subscripts specifying the quantity being bounded, denotes a deterministic constant multiplying a geometric decay rate in an upper bound.
On R d \mathbb{R}^{d} R d we denote by ∥ ⋅ ∥ \|\cdot\| ∥ ⋅ ∥ the Euclidean norm. For vectors of any length, ∥ ⋅ ∥ 2 \|\cdot\|_{2} ∥ ⋅ ∥ 2 and ∥ ⋅ ∥ ∞ \|\cdot\|_{\infty} ∥ ⋅ ∥ ∞ denote the Euclidean and the maximum norm; for matrices, ∥ ⋅ ∥ 2 \|\cdot\|_{2} ∥ ⋅ ∥ 2 is the induced spectral norm and ρ ( ⋅ ) \rho(\cdot) ρ ( ⋅ ) the spectral radius. For a finite set S S S , ∣ S ∣ |S| ∣ S ∣ denotes its cardinality. All random variables are defined on a probability space ( Ω , A , P ) (\Omega,\mathcal{A},\mathbb{P}) ( Ω , A , P ) . We denote by E \mathbb{E} E the expectation and by E [ ⋅ ∣ S ] \mathbb{E}[\cdot\mid S] E [ ⋅ ∣ S ] the expectation conditioned on an event S S S , and “i.i.d.” stands for independent and identically distributed.
Decentralized parallel CBO
We consider a global optimization problem of the form
x ∗ = argmin x ∈ R d f ( x ) x^{*}=\underset{x\in\mathbb{R}^{d}}{\operatorname{argmin}}\ f(x) x ∗ = x ∈ R d argmin f ( x )
where f : R d → R f:\mathbb{R}^{d}\to\mathbb{R} f : R d → R is a continuous, generally nonconvex function. Moreover, we assume that the function f f f cannot be evaluated exactly. That is, given a point x ∈ R d x\in\mathbb{R}^{d} x ∈ R d , we assume that only a stochastic estimator f ^ ( x , ω ) ≃ f ( x ) \hat{f}(x,\omega)\simeq f(x) f ^ ( x , ω ) ≃ f ( x ) can be computed, where ω ∈ Ω \omega\in\Omega ω ∈ Ω for a suitable probability space ( Ω , A , P ) (\Omega,\mathcal{A},\mathbb{P}) ( Ω , A , P ) . Here we assume that the global minimizer x ∗ x^{*} x ∗ is unique. Given a scalar r > 0 r>0 r > 0 we denote
B r : = { x ∈ R d ∣ ∥ x − x ∗ ∥ ≤ r } , f r = max x ∈ B r f ( x ) . (1) B_{r}:=\{x\in\mathbb{R}^{d}\mid\|x-x^{*}\|\le r\},\qquad f_{r}=\max_{x\in B_{r}}f(x). \tag*{(1)} B r := { x ∈ R d ∣ ∥ x − x ∗ ∥ ≤ r } , f r = x ∈ B r max f ( x ) . (1)
We make the following assumptions on the objective function f f f and the stochastic estimator f ^ \hat{f} f ^ .
downloads a sample of other units’ models, and tests them on its own data. It then moves its model toward a weighted average of those models, where models with lower loss get exponentially more weight. Models from other groups perform poorly on the unit’s data, so they receive almost no weight, while models from the same group dominate the average. As a result, units in the same group automatically converge to a shared model for that group, without any data being shared and without the cluster memberships ever being revealed.
Assumption 2.1. (i) f : R d → R f:\mathbb{R}^{d}\to\mathbb{R} f : R d → R is continuous and has a unique global minimizer x ∗ = arg min x ∈ R d f ( x ) x^{*}=\operatorname*{arg\,min}_{x\in\mathbb{R}^{d}}f(x) x ∗ = arg min x ∈ R d f ( x ) .
(ii) There exist constants f ∞ , R 0 , β , ν > 0 f_{\infty},R_{0},\beta,\nu>0 f ∞ , R 0 , β , ν > 0 such that
( f ( x ) − f ( x ∗ ) ) ν ≥ β ∥ x − x ∗ ∥ for every x ∈ B R 0 , \left(f(x)-f(x^{*})\right)^{\nu}\geq\beta\lVert x-x^{*}\rVert\quad\text{for every }x\in B_{R_{0}}, ( f ( x ) − f ( x ∗ ) ) ν ≥ β ∥ x − x ∗ ∥ for every x ∈ B R 0 , f ( x ) ≥ f ( x ∗ ) + f ∞ for every x ∈ R d ∖ B R 0 . f(x)\geq f(x^{*})+f_{\infty}\quad\text{for every }x\in\mathbb{R}^{d}\setminus B_{R_{0}}. f ( x ) ≥ f ( x ∗ ) + f ∞ for every x ∈ R d ∖ B R 0 .
Assumption 2.2. There exists a constant σ f ≥ 0 \sigma_{f}\geq0 σ f ≥ 0 such that
E ω ∼ P [ ∣ f ( x ) − f ^ ( x , ω ) ∣ 2 ] ≤ σ f 2 for every x ∈ R d . (2) \mathbb{E}_{\omega\sim\mathbb{P}}\left[\left|f(x)-\widehat{f}(x,\omega)\right|^{2}\right]\leq\sigma_{f}^{2}\quad\text{for every }x\in\mathbb{R}^{d}. \tag*{(2)} E ω ∼ P [ f ( x ) − f ( x , ω ) 2 ] ≤ σ f 2 for every x ∈ R d . (2)
Notice that we do not assume that E ω [ f ^ ( x , ω ) ] = f ( x ) \mathbb{E}_{\omega}[\widehat{f}(x,\omega)]=f(x) E ω [ f ( x , ω )] = f ( x ) , hence the oracle may not be unbiased. To ease the notation we will also assume, without loss of generality, that f ( x ∗ ) = 0 f(x^{*})=0 f ( x ∗ ) = 0 .
Discrete-time finite-particle regime
Assume we have N N N computational units on a communication network G = ( V , E ) \mathcal{G}=(\mathcal{V},\mathcal{E}) G = ( V , E ) , where V = { 1 , … , N } \mathcal{V}=\{1,\ldots,N\} V = { 1 , … , N } denotes the set of vertices and E \mathcal{E} E the set of edges. Given G \mathcal{G} G we define a mixing matrix W ∈ R N × N W\in\mathbb{R}^{N\times N} W ∈ R N × N associated with the network. We make the following assumption on G \mathcal{G} G and W W W .
Assumption 2.3. (i) The network G = ( V , E ) \mathcal{G}=(\mathcal{V},\mathcal{E}) G = ( V , E ) is undirected, connected, and without multiple edges.
(ii) The mixing matrix W ∈ R N × N W\in\mathbb{R}^{N\times N} W ∈ R N × N is symmetric, doubly stochastic, and such that if ( i , j ) ∉ E (i,j)\notin\mathcal{E} ( i , j ) ∈ / E then w i j = 0 w_{ij}=0 w ij = 0 , while w i j > 0 w_{ij}>0 w ij > 0 whenever ( i , j ) ∈ E (i,j)\in\mathcal{E} ( i , j ) ∈ E .
For every node i i i we denote by N i \mathcal{N}_{i} N i the neighborhood of i i i in G \mathcal{G} G , namely
N i = { j ∈ V ∣ ( i , j ) ∈ E } . \mathcal{N}_{i}=\{j\in\mathcal{V}\mid(i,j)\in\mathcal{E}\}. N i = { j ∈ V ∣ ( i , j ) ∈ E } .
We assume that node i i i can communicate directly only with nodes j ∈ N i j\in\mathcal{N}_{i} j ∈ N i . In practice, it is natural to assume that each node also uses its own tracking variable, that is, ( i , i ) ∈ E (i,i)\in\mathcal{E} ( i , i ) ∈ E and w i i > 0 w_{ii}>0 w ii > 0 . However, the analysis below does not require it, so in Assumption 2.3 we do not require the network to have self-loops at every node.
We assume each node i i i holds a set of M M M agents.5 Without loss of generality we can assume node i i i holds agents ( X ℓ ) ℓ ∈ M i ⊂ R d (X^{\ell})_{\ell\in\mathcal{M}_{i}}\subset\mathbb{R}^{d} ( X ℓ ) ℓ ∈ M i ⊂ R d with M i = { ( i − 1 ) M + 1 , ( i − 1 ) M + 2 , … , i M } \mathcal{M}_{i}=\{(i-1)M+1,(i-1)M+2,\ldots,iM\} M i = {( i − 1 ) M + 1 , ( i − 1 ) M + 2 , … , i M } . Implicitly, we are ordering the agents within the units’ indexes M 1 , … , M N \mathcal{M}_{1},\ldots,\mathcal{M}_{N} M 1 , … , M N . Moreover, we assume that every node i i i holds an additional tracking variable Z i ∈ R d Z^{i}\in\mathbb{R}^{d} Z i ∈ R d .
Given an initial distribution ρ 0 \rho_{0} ρ 0 with finite fourth moment, the agents evolve according to the following equations:
{ X 0 ℓ ∼ i . i . d . ρ 0 for ℓ ∈ M i , i = 1 , … , N , Z 0 i = C ^ 0 i for i = 1 , … , N , X k + 1 ℓ = X k ℓ − λ ( X k ℓ − Z k i ) + σ ∑ s = 1 d ( x k , s ℓ − c ^ k , s i , ℓ ) ξ k , s ℓ e s for ℓ ∈ M i , i = 1 , … , N , Z k + 1 i = ∑ j ∈ N i w i j Z k j + C ^ k + 1 i − C ^ k i for i = 1 , … , N , (3) \left\{
\begin{aligned}
X_{0}^{\ell}&\mathrel{\mathop{\sim}^{\mathrm{i.i.d.}}}\rho_{0} &&\text{for }\ell\in\mathcal{M}_{i},\ i=1,\ldots,N,\\
Z_{0}^{i}&=\widehat{C}_{0}^{i} &&\text{for }i=1,\ldots,N,\\
X_{k+1}^{\ell}&=X_{k}^{\ell}-\lambda(X_{k}^{\ell}-Z_{k}^{i})+\sigma\sum_{s=1}^{d}(x_{k,s}^{\ell}-\widehat{c}_{k,s}^{i,\ell})\xi_{k,s}^{\ell}e_{s} &&\text{for }\ell\in\mathcal{M}_{i},\ i=1,\ldots,N,\\
Z_{k+1}^{i}&=\sum_{j\in\mathcal{N}_{i}}w_{ij}Z_{k}^{j}+\widehat{C}_{k+1}^{i}-\widehat{C}_{k}^{i} &&\text{for }i=1,\ldots,N,
\end{aligned}
\right. \tag*{(3)} ⎩ ⎨ ⎧ X 0 ℓ Z 0 i X k + 1 ℓ Z k + 1 i ∼ i.i.d. ρ 0 = C 0 i = X k ℓ − λ ( X k ℓ − Z k i ) + σ s = 1 ∑ d ( x k , s ℓ − c k , s i , ℓ ) ξ k , s ℓ e s = j ∈ N i ∑ w ij Z k j + C k + 1 i − C k i for ℓ ∈ M i , i = 1 , … , N , for i = 1 , … , N , for ℓ ∈ M i , i = 1 , … , N , for i = 1 , … , N , (3)
where λ ∈ ( 0 , 1 ) \lambda\in(0,1) λ ∈ ( 0 , 1 ) and σ > 0 \sigma>0 σ > 0 , ( ξ k , s ℓ ) (\xi_{k,s}^{\ell}) ( ξ k , s ℓ ) are i.i.d. standard Gaussian random variables, and C ^ k i \widehat{C}_{k}^{i} C k i is the consensus point for the swarm at node i i i , namely for α > 0 \alpha>0 α > 0
C ^ k i = ∑ ℓ ∈ M i X k ℓ exp ( − α f ^ ( X k ℓ , ω k ℓ ) ) ∑ ℓ ∈ M i exp ( − α f ^ ( X k ℓ , ω k ℓ ) ) = ∑ ℓ ∈ M i X k ℓ v ^ k i , ℓ , v ^ k i , ℓ = exp ( − α f ^ ( X k ℓ , ω k ℓ ) ) ∑ p ∈ M i exp ( − α f ^ ( X k p , ω k p ) ) . (4) \widehat{C}_{k}^{i}=\frac{\sum_{\ell\in\mathcal{M}_{i}}X_{k}^{\ell}\exp(-\alpha\widehat{f}(X_{k}^{\ell},\omega_{k}^{\ell}))}{\sum_{\ell\in\mathcal{M}_{i}}\exp(-\alpha\widehat{f}(X_{k}^{\ell},\omega_{k}^{\ell}))}
=\sum_{\ell\in\mathcal{M}_{i}}X_{k}^{\ell}\widehat{v}_{k}^{i,\ell},\qquad
\widehat{v}_{k}^{i,\ell}=\frac{\exp(-\alpha\widehat{f}(X_{k}^{\ell},\omega_{k}^{\ell}))}{\sum_{p\in\mathcal{M}_{i}}\exp(-\alpha\widehat{f}(X_{k}^{p},\omega_{k}^{p}))}. \tag*{(4)} C k i = ∑ ℓ ∈ M i exp ( − α f ( X k ℓ , ω k ℓ )) ∑ ℓ ∈ M i X k ℓ exp ( − α f ( X k ℓ , ω k ℓ )) = ℓ ∈ M i ∑ X k ℓ v k i , ℓ , v k i , ℓ = ∑ p ∈ M i exp ( − α f ( X k p , ω k p )) exp ( − α f ( X k ℓ , ω k ℓ )) . (4)
The oracle samples ω k ℓ \omega_{k}^{\ell} ω k ℓ are drawn independently at every evaluation. Moreover, the initial positions ( X 0 ℓ ) (X_{0}^{\ell}) ( X 0 ℓ ) , the noise ( ξ k , s ℓ ) (\xi_{k,s}^{\ell}) ( ξ k , s ℓ ) and the oracle samples ( ω k ℓ ) (\omega_{k}^{\ell}) ( ω k ℓ ) are mutually independent.
We emphasize that σ \sigma σ here denotes the strength of the variance in the consensus dynamics (3) , and it is not to be confused with σ f \sigma_{f} σ f describing the noise strength in the objective function in (2) .
Consensus formation
In this subsection we prove that, under suitable assumptions on the parameters of the method, the agents achieve consensus. For any s = 1 , … , d s=1,\ldots,d s = 1 , … , d , i = 1 , … , N i=1,\ldots,N i = 1 , … , N and k ∈ N k\in\mathbb{N} k ∈ N we define
X k s = ( x k , s 1 ⋮ x k , s N M ) ∈ R N M , X k s , i = ( x k , s ℓ ) ℓ ∈ M i ∈ R M , \mathcal{X}_k^s=
\begin{pmatrix}
x_{k,s}^{1}\\
\vdots\\
x_{k,s}^{NM}
\end{pmatrix}\in\mathbb{R}^{NM},
\qquad
\mathcal{X}_k^{s,i}=(x_{k,s}^{\ell})_{\ell\in\mathcal{M}_i}\in\mathbb{R}^{M}, X k s = x k , s 1 ⋮ x k , s N M ∈ R N M , X k s , i = ( x k , s ℓ ) ℓ ∈ M i ∈ R M ,
Z k s = ( z k , s 1 ⋮ z k , s N ) ∈ R N , C ^ k s = ( c ^ k , s 1 ⋮ c ^ k , s N ) ∈ R N , H k s = Z k s − C ^ k s ∈ R N . (5) \mathcal{Z}_k^s=
\begin{pmatrix}
z_{k,s}^{1}\\
\vdots\\
z_{k,s}^{N}
\end{pmatrix}\in\mathbb{R}^{N},
\qquad
\widehat{\mathcal{C}}_k^s=
\begin{pmatrix}
\widehat{c}_{k,s}^{1}\\
\vdots\\
\widehat{c}_{k,s}^{N}
\end{pmatrix}\in\mathbb{R}^{N},
\qquad
\mathcal{H}_k^s=\mathcal{Z}_k^s-\widehat{\mathcal{C}}_k^s\in\mathbb{R}^{N}. \tag*{(5)} Z k s = z k , s 1 ⋮ z k , s N ∈ R N , C k s = c k , s 1 ⋮ c k , s N ∈ R N , H k s = Z k s − C k s ∈ R N . (5)
That is, X k s \mathcal{X}_k^s X k s collects the s s s -th component of all agents, while X k s , i \mathcal{X}_k^{s,i} X k s , i is the block of X k s \mathcal{X}_k^s X k s corresponding to the agents held by node i i i . Analogously, Z k s \mathcal{Z}_k^s Z k s and C ^ k s \widehat{\mathcal{C}}_k^s C k s collect the s s s -th component of the tracking variables and the consensus points of all computational units, respectively. The vectors H k s \mathcal{H}_k^s H k s measure the discrepancy between the tracking variables Z k s \mathcal{Z}_k^s Z k s and the consensus points C ^ k s \widehat{\mathcal{C}}_k^s C k s .
We denote by J J J the matrix
J = 1 N 1 N 1 N T ∈ R N × N . (6) J=\frac{1}{N}\mathbf{1}_N\mathbf{1}_N^{\mathsf{T}}\in\mathbb{R}^{N\times N}. \tag*{(6)} J = N 1 1 N 1 N T ∈ R N × N . (6)
and will use the following standard result about the mixing matrix W W W , which is a direct consequence of the Perron–Frobenius Theorem (see [27 Chapter 8] ).
Lemma 2.4. Let W W W satisfy Assumption 2.3 and let us denote by γ 1 ≥ γ 2 ≥ ⋯ ≥ γ N \gamma_1\geq\gamma_2\geq\cdots\geq\gamma_N γ 1 ≥ γ 2 ≥ ⋯ ≥ γ N the eigenvalues of W W W . Then
(i) W 1 N = 1 N W\mathbf{1}_N=\mathbf{1}_N W 1 N = 1 N and 1 N T W = 1 N T \mathbf{1}_N^{\mathsf{T}}W=\mathbf{1}_N^{\mathsf{T}} 1 N T W = 1 N T ; in particular J W = W J = J JW=WJ=J J W = W J = J ;
(ii) γ 1 = 1 \gamma_1=1 γ 1 = 1 and − 1 ≤ γ N ≤ γ 2 < 1 -1\leq\gamma_N\leq\gamma_2<1 − 1 ≤ γ N ≤ γ 2 < 1 .
Let Z ‾ k \overline{\mathcal{Z}}_k Z k and z ‾ k , s \overline{z}_{k,s} z k , s be the average of the tracking variables and its s s s -th component, respectively. That is,
Z ‾ k = 1 N ∑ i = 1 N Z k i = ( z ‾ k , 1 ⋮ z ‾ k , d ) ∈ R d . \overline{\mathcal{Z}}_k=\frac{1}{N}\sum_{i=1}^{N}\mathcal{Z}_k^i=
\begin{pmatrix}
\overline{z}_{k,1}\\
\vdots\\
\overline{z}_{k,d}
\end{pmatrix}\in\mathbb{R}^{d}. Z k = N 1 i = 1 ∑ N Z k i = z k , 1 ⋮ z k , d ∈ R d .
Notice that J Z k s = z ‾ k , s 1 N J\mathcal{Z}_k^s=\overline{z}_{k,s}\mathbf{1}_N J Z k s = z k , s 1 N and ( I − J ) Z k s = Z k s − z ‾ k , s 1 N (I-J)\mathcal{Z}_k^s=\mathcal{Z}_k^s-\overline{z}_{k,s}\mathbf{1}_N ( I − J ) Z k s = Z k s − z k , s 1 N . Moreover, since Z 0 i = C ^ 0 i \mathcal{Z}_0^i=\widehat{\mathcal{C}}_0^i Z 0 i = C 0 i and 1 N T W = 1 N T \mathbf{1}_N^{\mathsf{T}}W=\mathbf{1}_N^{\mathsf{T}} 1 N T W = 1 N T , (3) implies
Z ‾ k = 1 N ∑ i = 1 N C ^ k i for every k ∈ N , (7) \overline{\mathcal{Z}}_k=\frac{1}{N}\sum_{i=1}^{N}\widehat{\mathcal{C}}_k^i
\qquad\text{for every }k\in\mathbb{N}, \tag*{(7)} Z k = N 1 i = 1 ∑ N C k i for every k ∈ N , (7)
i.e., the tracking variables preserve the average of the local consensus points. Given any n ∈ N n\in\mathbb{N} n ∈ N and any vector y ∈ R n y\in\mathbb{R}^{n} y ∈ R n we define the diameter of y y y as
diam ( y ) = max i = 1 : n y i − min i = 1 : n y i = max i , j = 1 : n ∣ y i − y j ∣ . (8) \operatorname{diam}(y)=\max_{i=1:n}y_i-\min_{i=1:n}y_i=\max_{i,j=1:n}|y_i-y_j|. \tag*{(8)} diam ( y ) = i = 1 : n max y i − i = 1 : n min y i = i , j = 1 : n max ∣ y i − y j ∣. (8)
and the following two matrices
P = ( I − J 0 0 I − J ) ∈ R 2 N × 2 N , A λ = ( W λ I W − I I ) ∈ R 2 N × 2 N . (9) P=
\begin{pmatrix}
I-J & 0\\
0 & I-J
\end{pmatrix}\in\mathbb{R}^{2N\times2N},
\qquad
A_{\lambda}=
\begin{pmatrix}
W & \lambda I\\
W-I & I
\end{pmatrix}\in\mathbb{R}^{2N\times2N}. \tag*{(9)} P = ( I − J 0 0 I − J ) ∈ R 2 N × 2 N , A λ = ( W W − I λ I I ) ∈ R 2 N × 2 N . (9)
The matrix ( I − J ) (I-J) ( I − J ) is the orthogonal projection onto the subspace orthogonal to the consensus subspace span { 1 N } \operatorname{span}\{\mathbf{1}_N\} span { 1 N } . Analogously, P P P is the orthogonal projection onto the subspace orthogonal to span { ( 1 N ; 0 ) , ( 0 ; 1 N ) } \operatorname{span}\{(\mathbf{1}_N;0),(0;\mathbf{1}_N)\} span {( 1 N ; 0 ) , ( 0 ; 1 N )} . The matrix A λ A_{\lambda} A λ governs the evolution of the disagreement among the tracking variables, ( I − J ) Z k s (I-J)\mathcal{Z}_k^s ( I − J ) Z k s , and of the tracking errors H k s \mathcal{H}_k^s H k s (see Lemma 2.6 ).
The following lemma shows that the powers of A λ A_{\lambda} A λ decay geometrically on the range of P P P .
Lemma 2.5. Let W W W satisfy Assumption 2.3 , P P P and A λ A_\lambda A λ be given in (9) and λ ∈ ( 0 , 1 ) \lambda\in(0,1) λ ∈ ( 0 , 1 ) . There exist κ ∈ ( 0 , 1 ) \kappa\in(0,1) κ ∈ ( 0 , 1 ) and Λ A > 0 \Lambda_A > 0 Λ A > 0 , depending on λ \lambda λ and W W W , such that
∥ A λ k P v ∥ 2 ≤ Λ A κ k ∥ P v ∥ 2 for every v ∈ R 2 N , k ∈ N . (10) \left\|A_\lambda^kPv\right\|_2 \leq\Lambda_A\kappa^k\left\|Pv\right\|_2 \qquad\text{for every }v\in\mathbb{R}^{2N},\ k\in\mathbb{N}. \tag*{(10)} A λ k P v 2 ≤ Λ A κ k ∥ P v ∥ 2 for every v ∈ R 2 N , k ∈ N . (10) Proof. Since W J = J W = J WJ=JW=J W J = J W = J , we have A λ P = P A λ A_\lambda P=PA_\lambda A λ P = P A λ , and since P 2 = P P^2=P P 2 = P , we get A λ k P v = ( A λ P ) k P v A_\lambda^kPv=(A_\lambda P)^kPv A λ k P v = ( A λ P ) k P v for every k ∈ N k\in\mathbb{N} k ∈ N and v ∈ R 2 N v\in\mathbb{R}^{2N} v ∈ R 2 N . Let us denote by ρ ( A λ P ) \rho(A_\lambda P) ρ ( A λ P ) the spectral radius of A λ P A_\lambda P A λ P . We prove that ρ ( A λ P ) < 1 \rho(A_\lambda P)<1 ρ ( A λ P ) < 1 . Let us denote by Q = ( q 1 , … , q N ) ∈ R N × N Q=(q_1,\ldots,q_N)\in\mathbb{R}^{N\times N} Q = ( q 1 , … , q N ) ∈ R N × N an orthonormal matrix of eigenvectors of W W W with q 1 = N − 1 / 2 1 N q_1=N^{-1/2}\mathbf{1}_N q 1 = N − 1/2 1 N , and let us define the block-diagonal matrix Q ^ = diag ( Q , Q ) \widehat{Q}=\operatorname{diag}(Q,Q) Q = diag ( Q , Q ) . Then, we have
Q T W Q = diag ( γ 1 , … , γ N ) = : Γ , Q T ( I − J ) Q = I − Q T q 1 q 1 T Q = diag ( 0 , 1 , … , 1 ) = : Σ , Q^{\mathsf{T}}WQ=\operatorname{diag}(\gamma_1,\ldots,\gamma_N)=:\Gamma,\qquad Q^{\mathsf{T}}(I-J)Q=I-Q^{\mathsf{T}}q_1q_1^{\mathsf{T}}Q=\operatorname{diag}(0,1,\ldots,1)=:\Sigma, Q T W Q = diag ( γ 1 , … , γ N ) =: Γ , Q T ( I − J ) Q = I − Q T q 1 q 1 T Q = diag ( 0 , 1 , … , 1 ) =: Σ , therefore
Q ^ T A λ P Q ^ = ( Q T W ( I − J ) Q λ Q T ( I − J ) Q Q T ( W − I ) ( I − J ) Q Q T ( I − J ) Q ) = ( Γ Σ λ Σ ( Γ − I ) Σ Σ ) . (11) \widehat{Q}^{\mathsf{T}}A_\lambda P\widehat{Q}
=
\begin{pmatrix}
Q^{\mathsf{T}}W(I-J)Q & \lambda Q^{\mathsf{T}}(I-J)Q\\
Q^{\mathsf{T}}(W-I)(I-J)Q & Q^{\mathsf{T}}(I-J)Q
\end{pmatrix}
=
\begin{pmatrix}
\Gamma\Sigma& \lambda\Sigma\\
(\Gamma-I)\Sigma& \Sigma
\end{pmatrix}. \tag*{(11)} Q T A λ P Q = ( Q T W ( I − J ) Q Q T ( W − I ) ( I − J ) Q λ Q T ( I − J ) Q Q T ( I − J ) Q ) = ( ΓΣ ( Γ − I ) Σ λ Σ Σ ) . (11) In particular, there exists a permutation matrix Π \Pi Π such that Π Q ^ T A λ P Q ^ Π T = diag ( T 1 , … , T N ) \Pi\widehat{Q}^{\mathsf{T}}A_\lambda P\widehat{Q}\Pi^{\mathsf{T}}=\operatorname{diag}(T_1,\ldots,T_N) Π Q T A λ P Q Π T = diag ( T 1 , … , T N ) with
T 1 = ( 0 0 0 0 ) , T j = ( γ j λ γ j − 1 1 ) for j = 2 , … , N . T_1=\begin{pmatrix}0&0\\0&0\end{pmatrix},\qquad
T_j=\begin{pmatrix}\gamma_j&\lambda\\\gamma_j-1&1\end{pmatrix}\quad\text{for }j=2,\ldots,N. T 1 = ( 0 0 0 0 ) , T j = ( γ j γ j − 1 λ 1 ) for j = 2 , … , N . The eigenvalues of A λ P A_\lambda P A λ P are given by the eigenvalues of the blocks T 1 , … , T N T_1,\ldots,T_N T 1 , … , T N . For every j = 2 , … , N j=2,\ldots,N j = 2 , … , N , the eigenvalues of T j T_j T j are the solutions of
t 2 − ( 1 + γ j ) t + γ j + λ ( 1 − γ j ) = 0. t^2-(1+\gamma_j)t+\gamma_j+\lambda(1-\gamma_j)=0. t 2 − ( 1 + γ j ) t + γ j + λ ( 1 − γ j ) = 0. Solving the equation one can see that the spectral radius of T j T_j T j is given by
ρ ( T j ) = { ( γ j + λ ( 1 − γ j ) ) 1 / 2 , if ( 1 − γ j ) ( 1 − 4 λ − γ j ) < 0 , 1 2 ( 1 + γ j + ( ( 1 − γ j ) ( 1 − 4 λ − γ j ) ) 1 / 2 ) , otherwise . (12) \rho(T_j)=
\begin{cases}
\left(\gamma_j+\lambda(1-\gamma_j)\right)^{1/2}, & \text{if }(1-\gamma_j)(1-4\lambda-\gamma_j)<0,\\
\frac{1}{2}\left(1+\gamma_j+\left((1-\gamma_j)(1-4\lambda-\gamma_j)\right)^{1/2}\right), & \text{otherwise}.
\end{cases} \tag*{(12)} ρ ( T j ) = { ( γ j + λ ( 1 − γ j ) ) 1/2 , 2 1 ( 1 + γ j + ( ( 1 − γ j ) ( 1 − 4 λ − γ j ) ) 1/2 ) , if ( 1 − γ j ) ( 1 − 4 λ − γ j ) < 0 , otherwise . (12) Since − 1 ≤ γ j < 1 -1\leq\gamma_j<1 − 1 ≤ γ j < 1 and λ ∈ ( 0 , 1 ) \lambda\in(0,1) λ ∈ ( 0 , 1 ) , we have that ρ ( T j ) < 1 \rho(T_j)<1 ρ ( T j ) < 1 and therefore ρ ( A λ P ) < 1 \rho(A_\lambda P)<1 ρ ( A λ P ) < 1 . Furthermore, due to Gelfand's formula [27 Corollary 5.6.14]
ρ ( A λ P ) = lim k → + ∞ ∥ ( A λ P ) k ∥ 2 1 / k , (13) \rho(A_\lambda P)=\lim_{k\to+\infty}\left\|(A_\lambda P)^k\right\|_2^{1/k}, \tag*{(13)} ρ ( A λ P ) = k → + ∞ lim ( A λ P ) k 2 1/ k , (13) for any choice of κ ∈ ( ρ ( A λ P ) , 1 ) \kappa\in(\rho(A_\lambda P),1) κ ∈ ( ρ ( A λ P ) , 1 ) there exists k 0 ∈ N k_0\in\mathbb{N} k 0 ∈ N such that ∥ ( A λ P ) k ∥ 2 ≤ κ k \left\|(A_\lambda P)^k\right\|_2\leq\kappa^k ( A λ P ) k 2 ≤ κ k for every k ≥ k 0 k\geq k_0 k ≥ k 0 . Defining
Λ A = max { 1 , max 0 ≤ k < k 0 κ − k ∥ ( A λ P ) k ∥ 2 } , \Lambda_A=\max\left\{1,\max_{0\leq k<k_0}\kappa^{-k}\left\|(A_\lambda P)^k\right\|_2\right\}, Λ A = max { 1 , 0 ≤ k < k 0 max κ − k ( A λ P ) k 2 } , we get ∥ ( A λ P ) k ∥ 2 ≤ Λ A κ k \left\|(A_\lambda P)^k\right\|_2\leq\Lambda_A\kappa^k ( A λ P ) k 2 ≤ Λ A κ k for every k ∈ N k\in\mathbb{N} k ∈ N , and therefore
∥ A λ k P v ∥ 2 = ∥ ( A λ P ) k P v ∥ 2 ≤ Λ A κ k ∥ P v ∥ 2 , \left\|A_\lambda^kPv\right\|_2=\left\|(A_\lambda P)^kPv\right\|_2\leq\Lambda_A\kappa^k\left\|Pv\right\|_2, A λ k P v 2 = ( A λ P ) k P v 2 ≤ Λ A κ k ∥ P v ∥ 2 , which is the thesis.
The following lemma collects some properties of the dynamics (3) that we use in the analysis: the evolution of the diameter of each local swarm, the linear recursion satisfied by the tracking variables, and a bound on the diameter of the whole swarm in terms of these quantities.
Lemma 2.6. Let Assumption 2.3 hold. For every s = 1 , … , d s=1,\ldots,d s = 1 , … , d and k ∈ N k\in\mathbb{N} k ∈ N the following hold.
(i) For every i = 1 , … , N i=1,\ldots,N i = 1 , … , N ,
diam ( X k + 1 s , i ) ≤ ( 1 − λ + 2 σ max ℓ ∈ M i ∣ ξ k , s ℓ ∣ ) diam ( X k s , i ) . (14) \operatorname{diam}(X_{k+1}^{s,i})\leq\left(1-\lambda+2\sigma\max_{\ell\in\mathcal{M}_i}\left|\xi_{k,s}^{\ell}\right|\right)\operatorname{diam}(X_k^{s,i}). \tag*{(14)} diam ( X k + 1 s , i ) ≤ ( 1 − λ + 2 σ ℓ ∈ M i max ξ k , s ℓ ) diam ( X k s , i ) . (14)
(ii) H 0 s = 0 \mathcal{H}^{s}_{0}=0 H 0 s = 0 , J H k s = 0 J\mathcal{H}^{s}_{k}=0 J H k s = 0 , and
( ( I − J ) Z k + 1 s H k + 1 s ) = A λ ( ( I − J ) Z k s H k s ) + ( ( I − J ) ζ k s 0 ) (15) \begin{pmatrix}
(I-J)Z^{s}_{k+1}\\
\mathcal{H}^{s}_{k+1}
\end{pmatrix}
=
A_{\lambda}
\begin{pmatrix}
(I-J)Z^{s}_{k}\\
\mathcal{H}^{s}_{k}
\end{pmatrix}
+
\begin{pmatrix}
(I-J)\zeta^{s}_{k}\\
0 \tag*{(15)}
\end{pmatrix} ( ( I − J ) Z k + 1 s H k + 1 s ) = A λ ( ( I − J ) Z k s H k s ) + ( ( I − J ) ζ k s 0 ) (15)
with A λ A_{\lambda} A λ given in (9) and
ζ k s = C ^ k + 1 s − ( 1 − λ ) C ^ k s − λ Z k s ∈ R N . (16) \zeta^{s}_{k}=\widehat{C}^{s}_{k+1}-(1-\lambda)\widehat{C}^{s}_{k}-\lambda Z^{s}_{k}\in\mathbb{R}^{N}. \tag*{(16)} ζ k s = C k + 1 s − ( 1 − λ ) C k s − λ Z k s ∈ R N . (16)
Moreover, for every i = 1 , … , N i=1,\ldots,N i = 1 , … , N
∣ ζ k , i s ∣ ≤ ( 1 − λ + σ max ℓ ∈ M i ∣ ξ k , s ℓ ∣ ) diam ( X k s , i ) . (17) |\zeta^{s}_{k,i}|\leq\left(1-\lambda+\sigma\max_{\ell\in\mathcal{M}_{i}}|\xi^{\ell}_{k,s}|\right)\operatorname{diam}(\mathcal{X}^{s,i}_{k}). \tag*{(17)} ∣ ζ k , i s ∣ ≤ ( 1 − λ + σ ℓ ∈ M i max ∣ ξ k , s ℓ ∣ ) diam ( X k s , i ) . (17)
(iii) The following inequality holds:
diam ( X k s ) ≤ 2 max i = 1 : N diam ( X k s , i ) + 2 ∥ H k s ∥ 2 + 2 ∥ ( I − J ) Z k s ∥ 2 . (18) \operatorname{diam}(\mathcal{X}^{s}_{k})\leq2\max_{i=1:N}\operatorname{diam}(\mathcal{X}^{s,i}_{k})+2\|\mathcal{H}^{s}_{k}\|_{2}+2\|(I-J)Z^{s}_{k}\|_{2}. \tag*{(18)} diam ( X k s ) ≤ 2 i = 1 : N max diam ( X k s , i ) + 2∥ H k s ∥ 2 + 2∥ ( I − J ) Z k s ∥ 2 . (18)
Proof. For every ℓ , m ∈ M i \ell,m\in\mathcal{M}_{i} ℓ , m ∈ M i , by (3) , we have
x k + 1 , s ℓ − x k + 1 , s m = ( 1 − λ ) ( x k , s ℓ − x k , s m ) + σ ( ( x k , s ℓ − c ^ k , s i ) ξ k , s ℓ − ( x k , s m − c ^ k , s i ) ξ k , s m ) . x^{\ell}_{k+1,s}-x^{m}_{k+1,s}=(1-\lambda)(x^{\ell}_{k,s}-x^{m}_{k,s})+\sigma\left((x^{\ell}_{k,s}-\widehat{c}^{i}_{k,s})\xi^{\ell}_{k,s}-(x^{m}_{k,s}-\widehat{c}^{i}_{k,s})\xi^{m}_{k,s}\right). x k + 1 , s ℓ − x k + 1 , s m = ( 1 − λ ) ( x k , s ℓ − x k , s m ) + σ ( ( x k , s ℓ − c k , s i ) ξ k , s ℓ − ( x k , s m − c k , s i ) ξ k , s m ) .
Since c ^ k , s i \widehat{c}^{i}_{k,s} c k , s i is a convex combination of the entries of X k s , i \mathcal{X}^{s,i}_{k} X k s , i , we have ∣ x k , s ℓ − c ^ k , s i ∣ ≤ diam ( X k s , i ) |x^{\ell}_{k,s}-\widehat{c}^{i}_{k,s}|\leq\operatorname{diam}(\mathcal{X}^{s,i}_{k}) ∣ x k , s ℓ − c k , s i ∣ ≤ diam ( X k s , i ) for every ℓ ∈ M i \ell\in\mathcal{M}_{i} ℓ ∈ M i . Therefore, taking the absolute value and the maximum over ℓ , m ∈ M i \ell,m\in\mathcal{M}_{i} ℓ , m ∈ M i we get (14) .
Let us now prove ( i i ) (ii) ( ii ) . Since Z 0 i = C ^ 0 i Z^{i}_{0}=\widehat{C}^{i}_{0} Z 0 i = C 0 i for every i i i , we have H 0 s = 0 \mathcal{H}^{s}_{0}=0 H 0 s = 0 . Moreover, (3) yields Z k + 1 s = C ^ k + 1 s − C ^ k s + W Z k s Z^{s}_{k+1}=\widehat{C}^{s}_{k+1}-\widehat{C}^{s}_{k}+WZ^{s}_{k} Z k + 1 s = C k + 1 s − C k s + W Z k s , and therefore
H k + 1 s = Z k + 1 s − C ^ k + 1 s = W Z k s − C ^ k s = H k s + ( W − I ) Z k s . (19) \mathcal{H}^{s}_{k+1}=Z^{s}_{k+1}-\widehat{C}^{s}_{k+1}=WZ^{s}_{k}-\widehat{C}^{s}_{k}=\mathcal{H}^{s}_{k}+(W-I)Z^{s}_{k}. \tag*{(19)} H k + 1 s = Z k + 1 s − C k + 1 s = W Z k s − C k s = H k s + ( W − I ) Z k s . (19)
Multiplying both sides by J J J and using the fact that J ( W − I ) = 0 J(W-I)=0 J ( W − I ) = 0 , we have that J H k + 1 s = J H k s J\mathcal{H}^{s}_{k+1}=J\mathcal{H}^{s}_{k} J H k + 1 s = J H k s for every k k k which, together with the fact that H 0 s = 0 \mathcal{H}^{s}_{0}=0 H 0 s = 0 ensures J H k s = 0 J\mathcal{H}^{s}_{k}=0 J H k s = 0 for every k k k . Since ( W − I ) 1 N = 0 (W-I)1_{N}=0 ( W − I ) 1 N = 0 , equation (19) also implies
H k + 1 s = H k s + ( W − I ) ( I − J ) Z k s . (20) \mathcal{H}^{s}_{k+1}=\mathcal{H}^{s}_{k}+(W-I)(I-J)Z^{s}_{k}. \tag*{(20)} H k + 1 s = H k s + ( W − I ) ( I − J ) Z k s . (20)
Equality (15) then follows directly from the equation above, (19) and the definition of H k s \mathcal{H}^{s}_{k} H k s , ζ k s \zeta^{s}_{k} ζ k s and A λ A_{\lambda} A λ .
Using (3) and the fact that c ^ k + 1 , s i = ∑ ℓ ∈ M i v ^ k + 1 i , ℓ x k + 1 , s ℓ \widehat{c}^{i}_{k+1,s}=\sum_{\ell\in\mathcal{M}_{i}}\widehat{v}^{i,\ell}_{k+1}x^{\ell}_{k+1,s} c k + 1 , s i = ∑ ℓ ∈ M i v k + 1 i , ℓ x k + 1 , s ℓ with v ^ k + 1 i , ℓ > 0 \widehat{v}^{i,\ell}_{k+1}>0 v k + 1 i , ℓ > 0 and ∑ ℓ ∈ M i v ^ k + 1 i , ℓ = 1 \sum_{\ell\in\mathcal{M}_{i}}\widehat{v}^{i,\ell}_{k+1}=1 ∑ ℓ ∈ M i v k + 1 i , ℓ = 1 , we have
ζ k , i s = c ^ k + 1 , s i − ( 1 − λ ) c ^ k , s i − λ z k , s i = ( 1 − λ ) ∑ ℓ ∈ M i v ^ k + 1 i , ℓ ( x k , s ℓ − c ^ k , s i ) + σ ∑ ℓ ∈ M i v ^ k + 1 i , ℓ ( x k , s ℓ − c ^ k , s i ) ξ k , s ℓ . \zeta^{s}_{k,i}=\widehat{c}^{i}_{k+1,s}-(1-\lambda)\widehat{c}^{i}_{k,s}-\lambda z^{i}_{k,s}=(1-\lambda)\sum_{\ell\in\mathcal{M}_{i}}\widehat{v}^{i,\ell}_{k+1}(x^{\ell}_{k,s}-\widehat{c}^{i}_{k,s})+\sigma\sum_{\ell\in\mathcal{M}_{i}}\widehat{v}^{i,\ell}_{k+1}(x^{\ell}_{k,s}-\widehat{c}^{i}_{k,s})\xi^{\ell}_{k,s}. ζ k , i s = c k + 1 , s i − ( 1 − λ ) c k , s i − λ z k , s i = ( 1 − λ ) ℓ ∈ M i ∑ v k + 1 i , ℓ ( x k , s ℓ − c k , s i ) + σ ℓ ∈ M i ∑ v k + 1 i , ℓ ( x k , s ℓ − c k , s i ) ξ k , s ℓ .
Taking the absolute value, using again the fact that ∣ x k , s ℓ − c ^ k , s i ∣ ≤ diam ( X k s , i ) |x^{\ell}_{k,s}-\widehat{c}^{i}_{k,s}|\leq\operatorname{diam}(\mathcal{X}^{s,i}_{k}) ∣ x k , s ℓ − c k , s i ∣ ≤ diam ( X k s , i ) and that ∑ ℓ ∈ M i v ^ k + 1 i , ℓ = 1 \sum_{\ell\in\mathcal{M}_{i}}\widehat{v}^{i,\ell}_{k+1}=1 ∑ ℓ ∈ M i v k + 1 i , ℓ = 1 , we get (17) , which concludes the proof of ( i i ) (ii) ( ii ) .
We now prove ( i i i ) (iii) ( iii ) . For any ℓ ∈ M i \ell\in\mathcal{M}_{i} ℓ ∈ M i and m ∈ M j m\in\mathcal{M}_{j} m ∈ M j , using the fact that ( J Z k s ) i = ( J Z k s ) j (JZ^{s}_{k})_{i}=(JZ^{s}_{k})_{j} ( J Z k s ) i = ( J Z k s ) j , we have
∣ x k , s ℓ − x k , s m ∣ ≤ ∣ x k , s ℓ − c ^ k , s i ∣ + ∣ c ^ k , s i − z k , s i ∣ + ∣ z k , s i − c ^ k , s j ∣ + ∣ c ^ k , s j − x k , s m ∣ + ∣ z k , s i − z k , s j ∣ ≤ diam ( X k s , i ) + ∥ H k s ∥ ∞ + diam ( X k s , j ) + ∥ H k s ∥ ∞ + ∣ ( ( I − J ) Z k s ) i − ( ( I − J ) Z k s ) j ∣ ≤ diam ( X k s , i ) + diam ( X k s , j ) + 2 ∥ H k s ∥ ∞ + 2 ∥ ( I − J ) Z k s ∥ ∞ . \begin{aligned}
|x^{\ell}_{k,s}-x^{m}_{k,s}| &\leq|x^{\ell}_{k,s}-\widehat{c}^{i}_{k,s}|+|\widehat{c}^{i}_{k,s}-z^{i}_{k,s}|+|z^{i}_{k,s}-\widehat{c}^{j}_{k,s}|+|\widehat{c}^{j}_{k,s}-x^{m}_{k,s}|+|z^{i}_{k,s}-z^{j}_{k,s}|\\
&\leq\operatorname{diam}(\mathcal{X}^{s,i}_{k})+\|\mathcal{H}^{s}_{k}\|_{\infty}+\operatorname{diam}(\mathcal{X}^{s,j}_{k})+\|\mathcal{H}^{s}_{k}\|_{\infty}+|((I-J)Z^{s}_{k})_{i}-((I-J)Z^{s}_{k})_{j}|\\
&\leq\operatorname{diam}(\mathcal{X}^{s,i}_{k})+\operatorname{diam}(\mathcal{X}^{s,j}_{k})+2\|\mathcal{H}^{s}_{k}\|_{\infty}+2\|(I-J)Z^{s}_{k}\|_{\infty}.
\end{aligned} ∣ x k , s ℓ − x k , s m ∣ ≤ ∣ x k , s ℓ − c k , s i ∣ + ∣ c k , s i − z k , s i ∣ + ∣ z k , s i − c k , s j ∣ + ∣ c k , s j − x k , s m ∣ + ∣ z k , s i − z k , s j ∣ ≤ diam ( X k s , i ) + ∥ H k s ∥ ∞ + diam ( X k s , j ) + ∥ H k s ∥ ∞ + ∣ (( I − J ) Z k s ) i − (( I − J ) Z k s ) j ∣ ≤ diam ( X k s , i ) + diam ( X k s , j ) + 2∥ H k s ∥ ∞ + 2∥ ( I − J ) Z k s ∥ ∞ .
Taking the maximum over all ℓ , m \ell,m ℓ , m and using the fact that ∥ ⋅ ∥ ∞ ≤ ∥ ⋅ ∥ 2 \|\cdot\|_{\infty}\leq\|\cdot\|_{2} ∥ ⋅ ∥ ∞ ≤ ∥ ⋅ ∥ 2 , we complete the proof. □
Since the random variables ξ k , s ℓ \xi^{\ell}_{k,s} ξ k , s ℓ are independent and normally distributed, for every s = 1 , … , d s=1,\ldots,d s = 1 , … , d , i = 1 , … , N i=1,\ldots,N i = 1 , … , N and k ∈ N k\in\mathbb{N} k ∈ N we have [32 ] :
E [ max ℓ ∈ M i ∣ ξ k , s ℓ ∣ ] ≤ 2 ( log ( 2 M ) ) 1 / 2 , E [ max ℓ ∈ M i ∣ ξ k , s ℓ ∣ 2 ] ≤ 4 log ( 2 M ) . (21) \mathbb{E}\left[\max_{\ell\in\mathcal{M}_{i}}|\xi^{\ell}_{k,s}|\right]\leq2\left(\log(\sqrt{2M})\right)^{1/2},\qquad
\mathbb{E}\left[\max_{\ell\in\mathcal{M}_{i}}|\xi^{\ell}_{k,s}|^{2}\right]\leq4\log(\sqrt{2M}). \tag*{(21)} E [ ℓ ∈ M i max ∣ ξ k , s ℓ ∣ ] ≤ 2 ( log ( 2 M ) ) 1/2 , E [ ℓ ∈ M i max ∣ ξ k , s ℓ ∣ 2 ] ≤ 4 log ( 2 M ) . (21)
We define the following constant, which depends on the dynamics parameters and on the number of per-swarm agents M M M
ϑ = 1 − λ + 4 σ ( log ( 2 M ) ) 1 / 2 . (22) \vartheta= 1-\lambda+4\sigma\left(\log(\sqrt{2M})\right)^{1/2}. \tag*{(22)} ϑ = 1 − λ + 4 σ ( log ( 2 M ) ) 1/2 . (22)
The constant ϑ \vartheta ϑ bounds the contraction factor of the diameter of each local swarm over one iteration (see Lemma 2.7 below). The term 1 − λ 1-\lambda 1 − λ accounts for the drift towards the tracking variable, while the second term accounts for the noise, through the expected maximum of M M M independent Gaussian variables in (21) . The condition ϑ < 1 \vartheta<1 ϑ < 1 will be our main assumption for consensus formation. Moreover, for every s = 1 , … , d s=1,\ldots,d s = 1 , … , d , we define the following quantities, which depend on the initial distribution of the particles
D X , s = ∑ i = 1 N E [ diam ( X 0 s , i ) 2 ] , D C , s = E [ ∥ ( I − J ) C ^ 0 s ∥ 2 2 ] , D X = ∑ s = 1 d D X , s . (23) D_{X,s}=\sum_{i=1}^{N}\mathbb{E}\left[\operatorname{diam}\left(\mathcal{X}_{0}^{s,i}\right)^{2}\right],\qquad D_{C,s}=\mathbb{E}\left[\left\|(I-J)\widehat{C}_{0}^{s}\right\|_{2}^{2}\right],\qquad D_{X}=\sum_{s=1}^{d}D_{X,s}. \tag*{(23)} D X , s = i = 1 ∑ N E [ diam ( X 0 s , i ) 2 ] , D C , s = E [ ( I − J ) C 0 s 2 2 ] , D X = s = 1 ∑ d D X , s . (23)
The quantities D X , s D_{X,s} D X , s and D C , s D_{C,s} D C , s measure the spread of the particles within each computational unit and the disagreement among the consensus points of different units, respectively, at k = 0 k=0 k = 0 .
The following lemma shows that the local diameters and the terms ζ k s \zeta_{k}^{s} ζ k s in (15) decay geometrically in mean square, with rate ϑ \vartheta ϑ .
Lemma 2.7. For every s = 1 , … , d s=1,\ldots,d s = 1 , … , d , i = 1 , … , N i=1,\ldots,N i = 1 , … , N and k ∈ N k\in\mathbb{N} k ∈ N we have
(i) E [ diam ( X k s , i ) 2 ] ≤ ϑ 2 k E [ diam ( X 0 s , i ) 2 ] \mathbb{E}\left[\operatorname{diam}\left(\mathcal{X}_{k}^{s,i}\right)^{2}\right]\leq\vartheta^{2k}\mathbb{E}\left[\operatorname{diam}\left(\mathcal{X}_{0}^{s,i}\right)^{2}\right] E [ diam ( X k s , i ) 2 ] ≤ ϑ 2 k E [ diam ( X 0 s , i ) 2 ] ;
(ii) E [ ∥ ζ k s , i ∥ 2 2 ] ≤ ϑ 2 ( k + 1 ) D X , s \mathbb{E}\left[\|\zeta_{k}^{s,i}\|_{2}^{2}\right]\leq\vartheta^{2(k+1)}D_{X,s} E [ ∥ ζ k s , i ∥ 2 2 ] ≤ ϑ 2 ( k + 1 ) D X , s .
Proof. Applying (14) recursively and taking the expectation, using the fact that the random variables ξ t , s ℓ \xi_{t,s}^{\ell} ξ t , s ℓ are independent, we get
E [ diam ( X k s , i ) 2 ] ≤ E [ diam ( X 0 s , i ) 2 ∏ t = 0 k − 1 ( 1 − λ + 2 σ max ℓ ∈ M i ∣ ξ t , s ℓ ∣ ) 2 ] = E [ diam ( X 0 s , i ) 2 ] ∏ t = 0 k − 1 E [ ( 1 − λ + 2 σ max ℓ ∈ M i ∣ ξ t , s ℓ ∣ ) 2 ] . (24) \begin{aligned}
\mathbb{E}\left[\operatorname{diam}\left(\mathcal{X}_{k}^{s,i}\right)^{2}\right]\leq\mathbb{E}\left[\operatorname{diam}\left(\mathcal{X}_{0}^{s,i}\right)^{2}\prod_{t=0}^{k-1}\left(1-\lambda+2\sigma\max_{\ell\in\mathcal{M}_{i}}\left|\xi_{t,s}^{\ell}\right|\right)^{2}\right] \\
&=\mathbb{E}\left[\operatorname{diam}\left(\mathcal{X}_{0}^{s,i}\right)^{2}\right]\prod_{t=0}^{k-1}\mathbb{E}\left[\left(1-\lambda+2\sigma\max_{\ell\in\mathcal{M}_{i}}\left|\xi_{t,s}^{\ell}\right|\right)^{2}\right]. \tag*{(24)}
\end{aligned} E [ diam ( X k s , i ) 2 ] ≤ E [ diam ( X 0 s , i ) 2 t = 0 ∏ k − 1 ( 1 − λ + 2 σ ℓ ∈ M i max ξ t , s ℓ ) 2 ] = E [ diam ( X 0 s , i ) 2 ] t = 0 ∏ k − 1 E [ ( 1 − λ + 2 σ ℓ ∈ M i max ξ t , s ℓ ) 2 ] . (24)
By (21) , we have
E [ ( 1 − λ + 2 σ max ℓ ∈ M i ∣ ξ t , s ℓ ∣ ) 2 ] ≤ ( 1 − λ ) 2 + 8 σ ( 1 − λ ) ( log ( 2 M ) ) 1 / 2 + 16 σ 2 log ( 2 M ) = ϑ 2 . \mathbb{E}\left[\left(1-\lambda+2\sigma\max_{\ell\in\mathcal{M}_{i}}\left|\xi_{t,s}^{\ell}\right|\right)^{2}\right]\leq(1-\lambda)^{2}+8\sigma(1-\lambda)\left(\log(\sqrt{2M})\right)^{1/2}+16\sigma^{2}\log(\sqrt{2M})=\vartheta^{2}. E [ ( 1 − λ + 2 σ ℓ ∈ M i max ξ t , s ℓ ) 2 ] ≤ ( 1 − λ ) 2 + 8 σ ( 1 − λ ) ( log ( 2 M ) ) 1/2 + 16 σ 2 log ( 2 M ) = ϑ 2 .
This, together with (24) , gives (i). By (17) we have
∣ ζ k , i s ∣ ≤ ( 1 − λ + σ max ℓ ∈ M i ∣ ξ k , s ℓ ∣ ) diam ( X k s , i ) . |\zeta_{k,i}^{s}|\leq\left(1-\lambda+\sigma\max_{\ell\in\mathcal{M}_{i}}|\xi_{k,s}^{\ell}|\right)\operatorname{diam}\left(\mathcal{X}_{k}^{s,i}\right). ∣ ζ k , i s ∣ ≤ ( 1 − λ + σ ℓ ∈ M i max ∣ ξ k , s ℓ ∣ ) diam ( X k s , i ) .
Proceeding as above we get
E [ ∣ ζ k , i s ∣ 2 ] ≤ ϑ 2 ( k + 1 ) E [ diam ( X 0 s , i ) 2 ] , \mathbb{E}\left[|\zeta_{k,i}^{s}|^{2}\right]\leq\vartheta^{2(k+1)}\mathbb{E}\left[\operatorname{diam}\left(\mathcal{X}_{0}^{s,i}\right)^{2}\right], E [ ∣ ζ k , i s ∣ 2 ] ≤ ϑ 2 ( k + 1 ) E [ diam ( X 0 s , i ) 2 ] ,
and summing over i = 1 , … , N i=1,\ldots,N i = 1 , … , N we conclude the proof. □
The following lemma shows that the tracking errors and the diameter of the whole swarm decay geometrically, at a rate ϱ \varrho ϱ given by the slower of the contraction of the local swarms (ϑ \vartheta ϑ , Lemma 2.7 ) and the contraction of the communication network (κ \kappa κ , Lemma 2.5 ).
Lemma 2.8. Let Assumption 2.3 hold, let κ \kappa κ and Λ A \Lambda_{A} Λ A be given by Lemma 2.5 , with κ ≠ ϑ \kappa\ne\vartheta κ = ϑ , and define ϱ = max { κ , ϑ } \varrho=\max\{\kappa,\vartheta\} ϱ = max { κ , ϑ } . Then for every s = 1 , … , d s=1,\ldots,d s = 1 , … , d and k ∈ N k\in\mathbb{N} k ∈ N we have
(i) E [ ∥ ( I − J ) Z k s ∥ 2 2 + ∥ H k s ∥ 2 2 ] ≤ Λ Z , s 2 ϱ 2 k \mathbb{E}\left[\|(I-J)Z_{k}^{s}\|_{2}^{2}+\|H_{k}^{s}\|_{2}^{2}\right]\leq\Lambda_{Z,s}^{2}\varrho^{2k} E [ ∥ ( I − J ) Z k s ∥ 2 2 + ∥ H k s ∥ 2 2 ] ≤ Λ Z , s 2 ϱ 2 k , with Λ Z , s = Λ A ( D C , s 1 / 2 + ϑ D X , s 1 / 2 ∣ κ − ϑ ∣ ) \Lambda_{Z,s}=\Lambda_{A}\left(D_{C,s}^{1/2}+\frac{\vartheta D_{X,s}^{1/2}}{|\kappa-\vartheta|}\right) Λ Z , s = Λ A ( D C , s 1/2 + ∣ κ − ϑ ∣ ϑ D X , s 1/2 ) .
(ii) E [ diam ( X k s ) 2 ] ≤ Λ X , s 2 ϱ 2 k \mathbb{E}\left[\operatorname{diam}(\mathcal{X}^{s}_{k})^{2}\right]\leq\Lambda_{X,s}^{2}\varrho^{2k} E [ diam ( X k s ) 2 ] ≤ Λ X , s 2 ϱ 2 k , with Λ X , s = 2 D X , s 1 / 2 + 2 2 Λ Z , s \Lambda_{X,s}=2D_{X,s}^{1/2}+2\sqrt{2}\Lambda_{Z,s} Λ X , s = 2 D X , s 1/2 + 2 2 Λ Z , s ;
(iii) for every ϱ ˉ > ϱ \bar{\varrho}>\varrho ϱ ˉ > ϱ there exists a P \mathbb{P} P -almost surely finite random variable Θ s \Theta_s Θ s , such that for every k ∈ N k\in\mathbb{N} k ∈ N
diam ( X k s ) + ∥ ( I − J ) Z k s ∥ 2 + ∥ H k s ∥ 2 ≤ Θ s ϱ ˉ k . \operatorname{diam}(\mathcal{X}^{s}_{k})+\|(I-J)Z^{s}_{k}\|_{2}+\|\mathcal{H}^{s}_{k}\|_{2}\leq\Theta_s\bar{\varrho}^{k}. diam ( X k s ) + ∥ ( I − J ) Z k s ∥ 2 + ∥ H k s ∥ 2 ≤ Θ s ϱ ˉ k .
Proof. Recursively applying (15) , using the definition of P P P given in (9) , the fact that ( I − J ) 2 = I − J (I-J)^2=I-J ( I − J ) 2 = I − J and H 0 s = 0 \mathcal{H}^{s}_{0}=0 H 0 s = 0 , we get
( ( I − J ) Z k s H k s ) = A λ k ( ( I − J ) Z 0 s 0 ) + ∑ t = 0 k − 1 A λ k − 1 − t ( ( I − J ) ζ t s 0 ) = A λ k P ( ( I − J ) Z 0 s 0 ) + ∑ t = 0 k − 1 A λ k − 1 − t P ( ζ t s 0 ) , \begin{aligned}
\begin{pmatrix}
(I-J)Z^{s}_{k}\\
\mathcal{H}^{s}_{k}
\end{pmatrix}
=A_{\lambda}^{k}\begin{pmatrix}
(I-J)Z^{s}_{0}\\
0
\end{pmatrix}
+\sum_{t=0}^{k-1}A_{\lambda}^{k-1-t}\begin{pmatrix}
(I-J)\zeta^{s}_{t}\\
0
\end{pmatrix} \\
&=A_{\lambda}^{k}P\begin{pmatrix}
(I-J)Z^{s}_{0}\\
0
\end{pmatrix}
+\sum_{t=0}^{k-1}A_{\lambda}^{k-1-t}P\begin{pmatrix}
\zeta^{s}_{t}\\
0
\end{pmatrix},
\end{aligned} ( ( I − J ) Z k s H k s ) = A λ k ( ( I − J ) Z 0 s 0 ) + t = 0 ∑ k − 1 A λ k − 1 − t ( ( I − J ) ζ t s 0 ) = A λ k P ( ( I − J ) Z 0 s 0 ) + t = 0 ∑ k − 1 A λ k − 1 − t P ( ζ t s 0 ) ,
and together with Lemma 2.5 we have
∥ ( ( I − J ) Z k s H k s ) ∥ 2 ≤ Λ A κ k ∥ ( I − J ) C ^ 0 s ∥ 2 + Λ A ∑ t = 0 k − 1 κ k − 1 − t ∥ ζ t s ∥ 2 . \left\|\begin{pmatrix}
(I-J)Z^{s}_{k}\\
\mathcal{H}^{s}_{k}
\end{pmatrix}\right\|_{2}
\leq\Lambda_A\kappa^{k}\|(I-J)\widehat{C}^{s}_{0}\|_{2}
+\Lambda_A\sum_{t=0}^{k-1}\kappa^{k-1-t}\|\zeta^{s}_{t}\|_{2}. ( ( I − J ) Z k s H k s ) 2 ≤ Λ A κ k ∥ ( I − J ) C 0 s ∥ 2 + Λ A t = 0 ∑ k − 1 κ k − 1 − t ∥ ζ t s ∥ 2 .
Using the fact that for any random vectors x , y x,y x , y it holds E [ ∥ x + y ∥ 2 2 ] 1 / 2 ≤ E [ ∥ x ∥ 2 2 ] 1 / 2 + E [ ∥ y ∥ 2 2 ] 1 / 2 \mathbb{E}[\|x+y\|_{2}^{2}]^{1/2}\leq\mathbb{E}[\|x\|_{2}^{2}]^{1/2}+\mathbb{E}[\|y\|_{2}^{2}]^{1/2} E [ ∥ x + y ∥ 2 2 ] 1/2 ≤ E [ ∥ x ∥ 2 2 ] 1/2 + E [ ∥ y ∥ 2 2 ] 1/2 , the definition of the constants D C , s D_{C,s} D C , s and D X , s D_{X,s} D X , s given in (23) and Lemma 2.7 we then have
E [ ∥ ( ( I − J ) Z k s H k s ) ∥ 2 2 ] 1 / 2 ≤ Λ A κ k D C , s 1 / 2 + Λ A D X , s 1 / 2 ∑ t = 0 k − 1 κ k − 1 − t ϑ t + 1 = Λ A κ k D C , s 1 / 2 + Λ A D X , s 1 / 2 ϑ κ k − ϑ k κ − ϑ . \mathbb{E}\left[\left\|\begin{pmatrix}
(I-J)Z^{s}_{k}\\
\mathcal{H}^{s}_{k}
\end{pmatrix}\right\|_{2}^{2}\right]^{1/2}
\leq\Lambda_A\kappa^{k}D_{C,s}^{1/2}+\Lambda_A D_{X,s}^{1/2}\sum_{t=0}^{k-1}\kappa^{k-1-t}\vartheta^{t+1}
=\Lambda_A\kappa^{k}D_{C,s}^{1/2}+\Lambda_A D_{X,s}^{1/2}\vartheta\frac{\kappa^{k}-\vartheta^{k}}{\kappa-\vartheta}. E [ ( ( I − J ) Z k s H k s ) 2 2 ] 1/2 ≤ Λ A κ k D C , s 1/2 + Λ A D X , s 1/2 t = 0 ∑ k − 1 κ k − 1 − t ϑ t + 1 = Λ A κ k D C , s 1/2 + Λ A D X , s 1/2 ϑ κ − ϑ κ k − ϑ k .
Part (i) of the statement follows by squaring both sides of the inequality above, by the definition of ϱ \varrho ϱ and Λ Z , s \Lambda_{Z,s} Λ Z , s .
We now prove (ii). By (18) , using max i diam ( X k s , i ) ≤ ( ∑ i diam ( X k s , i ) 2 ) 1 / 2 \max_i\operatorname{diam}(\mathcal{X}^{s,i}_{k})\leq\left(\sum_i\operatorname{diam}(\mathcal{X}^{s,i}_{k})^2\right)^{1/2} max i diam ( X k s , i ) ≤ ( ∑ i diam ( X k s , i ) 2 ) 1/2 and ∥ H k s ∥ 2 + ∥ ( I − J ) Z k s ∥ 2 ≤ 2 ∥ ( ( I − J ) Z k s ; H k s ) ∥ 2 \|\mathcal{H}^{s}_{k}\|_{2}+\|(I-J)Z^{s}_{k}\|_{2}\leq\sqrt{2}\left\|\left((I-J)Z^{s}_{k};\mathcal{H}^{s}_{k}\right)\right\|_{2} ∥ H k s ∥ 2 + ∥ ( I − J ) Z k s ∥ 2 ≤ 2 ∥ ( ( I − J ) Z k s ; H k s ) ∥ 2 , we have
diam ( X k s ) ≤ 2 ( ∑ i = 1 N diam ( X k s , i ) 2 ) 1 / 2 + 2 2 ∥ ( ( I − J ) Z k s H k s ) ∥ 2 . \operatorname{diam}(\mathcal{X}^{s}_{k})\leq2\left(\sum_{i=1}^{N}\operatorname{diam}(\mathcal{X}^{s,i}_{k})^{2}\right)^{1/2}
+2\sqrt{2}\left\|\begin{pmatrix}
(I-J)Z^{s}_{k}\\
\mathcal{H}^{s}_{k}
\end{pmatrix}\right\|_{2}. diam ( X k s ) ≤ 2 ( i = 1 ∑ N diam ( X k s , i ) 2 ) 1/2 + 2 2 ( ( I − J ) Z k s H k s ) 2 .
Taking the expected value, using Lemma 2.7 and (i), we get (ii).
By the first and second statement we have that for every k ∈ N k\in\mathbb{N} k ∈ N
E [ ( diam ( X k s ) + ∥ ( I − J ) Z k s ∥ 2 + ∥ H k s ∥ 2 ) 2 ] ≤ 3 ( Λ X , s 2 + Λ Z , s 2 ) ϱ 2 k . \mathbb{E}\left[\left(\operatorname{diam}(\mathcal{X}^{s}_{k})+\|(I-J)Z^{s}_{k}\|_{2}+\|\mathcal{H}^{s}_{k}\|_{2}\right)^{2}\right]\leq3(\Lambda_{X,s}^{2}+\Lambda_{Z,s}^{2})\varrho^{2k}. E [ ( diam ( X k s ) + ∥ ( I − J ) Z k s ∥ 2 + ∥ H k s ∥ 2 ) 2 ] ≤ 3 ( Λ X , s 2 + Λ Z , s 2 ) ϱ 2 k .
Therefore
E [ ∑ k = 0 ∞ ϱ ˉ − 2 k ( diam ( X k s ) + ∥ ( I − J ) Z k s ∥ 2 + ∥ H k s ∥ 2 ) 2 ] ≤ 3 ( Λ X , s 2 + Λ Z , s 2 ) ∑ k = 0 ∞ ( ϱ ϱ ˉ ) 2 k < + ∞ , \mathbb{E}\left[\sum_{k=0}^{\infty}\bar{\varrho}^{-2k}\left(\operatorname{diam}(\mathcal{X}^{s}_{k})+\|(I-J)Z^{s}_{k}\|_{2}+\|\mathcal{H}^{s}_{k}\|_{2}\right)^{2}\right]
\leq3(\Lambda_{X,s}^{2}+\Lambda_{Z,s}^{2})\sum_{k=0}^{\infty}\left(\frac{\varrho}{\bar{\varrho}}\right)^{2k}<+\infty, E [ k = 0 ∑ ∞ ϱ ˉ − 2 k ( diam ( X k s ) + ∥ ( I − J ) Z k s ∥ 2 + ∥ H k s ∥ 2 ) 2 ] ≤ 3 ( Λ X , s 2 + Λ Z , s 2 ) k = 0 ∑ ∞ ( ϱ ˉ ϱ ) 2 k < + ∞ ,
which implies that ∑ k ϱ ˉ − 2 k ( diam ( X k s ) + ∥ ( I − J ) Z k s ∥ 2 + ∥ H k s ∥ 2 ) 2 < + ∞ \sum_k\bar{\varrho}^{-2k}\left(\operatorname{diam}(\mathcal{X}^{s}_{k})+\|(I-J)Z^{s}_{k}\|_{2}+\|\mathcal{H}^{s}_{k}\|_{2}\right)^{2}<+\infty ∑ k ϱ ˉ − 2 k ( diam ( X k s ) + ∥ ( I − J ) Z k s ∥ 2 + ∥ H k s ∥ 2 ) 2 < + ∞ almost surely. In particular the terms of the series go to zero almost surely, and part (iii) follows.
We can now state our first main result: if ϑ < 1 \vartheta<1 ϑ < 1 , the agents asymptotically achieve consensus almost surely.
Theorem 2.9. Let Assumption 2.3 hold and let λ ∈ ( 0 , 1 ) \lambda\in(0,1) λ ∈ ( 0 , 1 ) and σ > 0 \sigma>0 σ > 0 be such that ϑ < 1 \vartheta<1 ϑ < 1 , with ϑ \vartheta ϑ given in (22) . Then
lim k → + ∞ max ℓ , p = 1 : N M ∥ X k ℓ − X k p ∥ ∞ = 0 almost surely . \lim_{k\to+\infty}\max_{\ell,p=1:NM}\|X^{\ell}_{k}-X^{p}_{k}\|_{\infty}=0\quad\text{almost surely}. k → + ∞ lim ℓ , p = 1 : N M max ∥ X k ℓ − X k p ∥ ∞ = 0 almost surely . Moreover, there exists X ∞ ∈ R d X_{\infty}\in\mathbb{R}^{d} X ∞ ∈ R d such that, almost surely,
lim k → + ∞ X k ℓ = X ∞ for every ℓ = 1 , … , N M , lim k → + ∞ Z k i = X ∞ for every i = 1 , … , N . \lim_{k\to+\infty}X^{\ell}_{k}=X_{\infty}\quad\text{for every }\ell=1,\ldots,NM,\qquad
\lim_{k\to+\infty}Z^{i}_{k}=X_{\infty}\quad\text{for every }i=1,\ldots,N. k → + ∞ lim X k ℓ = X ∞ for every ℓ = 1 , … , N M , k → + ∞ lim Z k i = X ∞ for every i = 1 , … , N .
Proof. By definition of diam ( ⋅ ) \operatorname{diam}(\cdot) diam ( ⋅ ) and part (iii) of Lemma 2.8, we have that for every ϱ ˉ > ϱ = max { κ , ϑ } \bar{\varrho}>\varrho=\max\{\kappa,\vartheta\} ϱ ˉ > ϱ = max { κ , ϑ } the following inequality holds almost surely
max ℓ , p = 1 : N M ∥ X k ℓ − X k p ∥ ∞ = max s = 1 : d max ℓ , p = 1 : N M ∣ x k , s ℓ − x k , s p ∣ = max s = 1 : d diam ( X k s ) ≤ ϱ ˉ k max s = 1 : d Θ s . \max_{\ell,p=1:NM}\left\|X_k^\ell-X_k^p\right\|_\infty=\max_{s=1:d}\max_{\ell,p=1:NM}\left|x_{k,s}^\ell-x_{k,s}^p\right|=\max_{s=1:d}\operatorname{diam}(\mathcal{X}_k^s)\leq\bar{\varrho}^k\max_{s=1:d}\Theta_s. ℓ , p = 1 : N M max X k ℓ − X k p ∞ = s = 1 : d max ℓ , p = 1 : N M max x k , s ℓ − x k , s p = s = 1 : d max diam ( X k s ) ≤ ϱ ˉ k s = 1 : d max Θ s .
Since κ , ϑ < 1 \kappa,\vartheta<1 κ , ϑ < 1 , in particular we can take ϱ ˉ ∈ ( ϱ , 1 ) \bar{\varrho}\in(\varrho,1) ϱ ˉ ∈ ( ϱ , 1 ) and the first part of the statement follows by taking the limit as k k k goes to infinity.
Let us now fix s ∈ { 1 , … , d } s\in\{1,\ldots,d\} s ∈ { 1 , … , d } . From the definition of Z ˉ k \bar{Z}_k Z ˉ k and (7) it follows
z ˉ k + 1 , s − z ˉ k , s = 1 N 1 N T ( C ^ k + 1 s − C ^ k s ) = 1 N 1 N T ( H k s + ζ k s ) . \bar{z}_{k+1,s}-\bar{z}_{k,s}=\frac{1}{N}\mathbf{1}_N^{\mathsf{T}}\left(\widehat{C}_{k+1}^s-\widehat{C}_k^s\right)=\frac{1}{N}\mathbf{1}_N^{\mathsf{T}}\left(\mathcal{H}_k^s+\zeta_k^s\right). z ˉ k + 1 , s − z ˉ k , s = N 1 1 N T ( C k + 1 s − C k s ) = N 1 1 N T ( H k s + ζ k s ) .
where ζ k s \zeta_k^s ζ k s is defined in (16) . The Cauchy–Schwarz inequality and and 1 N T H k s = 0 \mathbf{1}_N^{\mathsf{T}}\mathcal{H}_k^s=0 1 N T H k s = 0 yield
∣ z ˉ k + 1 , s − z ˉ k , s ∣ ≤ 1 N ∥ 1 N ∥ 2 ∥ ζ k s ∥ 2 = 1 N ∥ ζ k s ∥ 2 . \left|\bar{z}_{k+1,s}-\bar{z}_{k,s}\right|\leq\frac{1}{N}\|\mathbf{1}_N\|_2\|\zeta_k^s\|_2=\frac{1}{\sqrt{N}}\|\zeta_k^s\|_2. ∣ z ˉ k + 1 , s − z ˉ k , s ∣ ≤ N 1 ∥ 1 N ∥ 2 ∥ ζ k s ∥ 2 = N 1 ∥ ζ k s ∥ 2 .
Taking the expected value, by Jensen’s inequality and Lemma 2.7, we have
E [ ∑ k = 0 ∞ ∣ z ˉ k + 1 , s − z ˉ k , s ∣ ] ≤ 1 N ∑ k = 0 ∞ E [ ∥ ζ k s ∥ 2 ] ≤ 1 N ∑ k = 0 ∞ E [ ∥ ζ k s ∥ 2 2 ] 1 / 2 ≤ D X , s 1 / 2 N ∑ k = 0 ∞ ϑ q k + 1 = ϑ D X , s 1 / 2 N ( 1 − ϑ ) < + ∞ . \begin{aligned}
\mathbb{E}\left[\sum_{k=0}^{\infty}\left|\bar{z}_{k+1,s}-\bar{z}_{k,s}\right|\right]\leq\frac{1}{\sqrt{N}}\sum_{k=0}^{\infty}\mathbb{E}\left[\|\zeta_k^s\|_2\right]\leq\frac{1}{\sqrt{N}}\sum_{k=0}^{\infty}\mathbb{E}\left[\|\zeta_k^s\|_2^2\right]^{1/2} \\
&\leq\frac{D_{X,s}^{1/2}}{\sqrt{N}}\sum_{k=0}^{\infty}\vartheta^{qk+1}=\frac{\vartheta D_{X,s}^{1/2}}{\sqrt{N}(1-\vartheta)}<+\infty.
\end{aligned} E [ k = 0 ∑ ∞ ∣ z ˉ k + 1 , s − z ˉ k , s ∣ ] ≤ N 1 k = 0 ∑ ∞ E [ ∥ ζ k s ∥ 2 ] ≤ N 1 k = 0 ∑ ∞ E [ ∥ ζ k s ∥ 2 2 ] 1/2 ≤ N D X , s 1/2 k = 0 ∑ ∞ ϑ q k + 1 = N ( 1 − ϑ ) ϑ D X , s 1/2 < + ∞.
Therefore ∑ k = 0 ∞ ∣ z ˉ k + 1 , s − z ˉ k , s ∣ < + ∞ \sum_{k=0}^{\infty}|\bar{z}_{k+1,s}-\bar{z}_{k,s}|<+\infty ∑ k = 0 ∞ ∣ z ˉ k + 1 , s − z ˉ k , s ∣ < + ∞ almost surely which implies that ∑ t = 0 ∞ ( z ˉ t + 1 , s − z ˉ t , s ) ∈ R \sum_{t=0}^{\infty}(\bar{z}_{t+1,s}-\bar{z}_{t,s})\in\mathbb{R} ∑ t = 0 ∞ ( z ˉ t + 1 , s − z ˉ t , s ) ∈ R almost surely. This, together with the telescopic relation
z ˉ k , s = z ˉ 0 , s + ∑ t = 0 k − 1 ( z ˉ t + 1 , s − z ˉ t , s ) for every k ∈ N , \bar{z}_{k,s}=\bar{z}_{0,s}+\sum_{t=0}^{k-1}(\bar{z}_{t+1,s}-\bar{z}_{t,s})\qquad\text{for every }k\in\mathbb{N}, z ˉ k , s = z ˉ 0 , s + t = 0 ∑ k − 1 ( z ˉ t + 1 , s − z ˉ t , s ) for every k ∈ N ,
implies that ( z ˉ k , s ) k (\bar{z}_{k,s})_k ( z ˉ k , s ) k converges almost surely to some x ∞ , s ∈ R x_{\infty,s}\in\mathbb{R} x ∞ , s ∈ R .
We now have to prove that z k , s i z_{k,s}^i z k , s i and x k , s ℓ x_{k,s}^\ell x k , s ℓ converge to x ∞ , s x_{\infty,s} x ∞ , s . Let us consider i ∈ { 1 , … , N } i\in\{1,\ldots,N\} i ∈ { 1 , … , N } and ℓ ∈ M i \ell\in\mathcal{M}_i ℓ ∈ M i . Using the fact that z k , s i − z ˉ k , s = ( ( I − J ) Z k s ) i z_{k,s}^i-\bar{z}_{k,s}=((I-J)Z_k^s)_i z k , s i − z ˉ k , s = (( I − J ) Z k s ) i and c ^ k , s i − z k , s i = − ( H k s ) i \hat{c}_{k,s}^i-z_{k,s}^i=-(\mathcal{H}_k^s)_i c ^ k , s i − z k , s i = − ( H k s ) i , we have
∣ z k , s i − z ˉ k , s ∣ ≤ ∥ ( I − J ) Z k s ∥ 2 , \left|z_{k,s}^i-\bar{z}_{k,s}\right|\leq\|(I-J)Z_k^s\|_2, z k , s i − z ˉ k , s ≤ ∥ ( I − J ) Z k s ∥ 2 ,
∣ x k , s ℓ − z ˉ k , s ∣ ≤ ∣ x k , s ℓ − c ^ k , s i ∣ + ∣ c ^ k , s i − z k , s i ∣ + ∣ z k , s i − z ˉ k , s ∣ ≤ diam ( X k s ) + ∥ H k s ∥ 2 + ∥ ( I − J ) Z k s ∥ 2 . \left|x_{k,s}^\ell-\bar{z}_{k,s}\right|\leq\left|x_{k,s}^\ell-\hat{c}_{k,s}^i\right|+\left|\hat{c}_{k,s}^i-z_{k,s}^i\right|+\left|z_{k,s}^i-\bar{z}_{k,s}\right|\leq\operatorname{diam}(\mathcal{X}_k^s)+\|\mathcal{H}_k^s\|_2+\|(I-J)Z_k^s\|_2. x k , s ℓ − z ˉ k , s ≤ x k , s ℓ − c ^ k , s i + c ^ k , s i − z k , s i + z k , s i − z ˉ k , s ≤ diam ( X k s ) + ∥ H k s ∥ 2 + ∥ ( I − J ) Z k s ∥ 2 .
By part (iii) of Lemma 2.8 the right-hand side converges to zero almost surely. Therefore z k , s i → x ∞ , s z_{k,s}^i\to x_{\infty,s} z k , s i → x ∞ , s and x k , s ℓ → x ∞ , s x_{k,s}^\ell\to x_{\infty,s} x k , s ℓ → x ∞ , s almost surely, for every i i i , every ℓ \ell ℓ and every s s s , and the thesis follows with X ∞ = ( x ∞ , 1 , … , x ∞ , d ) X_\infty=(x_{\infty,1},\ldots,x_{\infty,d}) X ∞ = ( x ∞ , 1 , … , x ∞ , d ) .
Convergence in expectation
Let us define
V k = 1 N M ∑ i = 1 N ∑ ℓ ∈ M i ∥ X k ℓ − x ∗ ∥ 2 , V_k=\frac{1}{NM}\sum_{i=1}^{N}\sum_{\ell\in\mathcal{M}_i}\left\|X_k^\ell-x^*\right\|^2, V k = N M 1 i = 1 ∑ N ℓ ∈ M i ∑ X k ℓ − x ∗ 2 ,
which measures the mean squared distance of the particles from the global minimizer x ∗ x^* x ∗ . We will need the following recursive inequality for E [ V k ] \mathbb{E}[V_k] E [ V k ] .
Lemma 2.10. For every k ∈ N k\in\mathbb{N} k ∈ N , the following inequality holds, with D X D_X D X defined in (23)
E [ V k + 1 ] ≤ ( 1 − λ ) E [ V k ] + λ N ∑ i = 1 N E [ ∥ Z k i − x ∗ ∥ 2 ] + σ 2 N D X ϑ 2 k . (25) \mathbb{E}[V_{k+1}]\leq(1-\lambda)\mathbb{E}[V_k]+\frac{\lambda}{N}\sum_{i=1}^{N}\mathbb{E}\left[\|Z_k^i-x^*\|^2\right]+\frac{\sigma^2}{N}D_X\vartheta^{2k}. \tag*{(25)} E [ V k + 1 ] ≤ ( 1 − λ ) E [ V k ] + N λ i = 1 ∑ N E [ ∥ Z k i − x ∗ ∥ 2 ] + N σ 2 D X ϑ 2 k . (25)
Proof. In the following, given any ℓ ∈ { 1 , … , N M } \ell\in\{1,\ldots,NM\} ℓ ∈ { 1 , … , N M } we denote by ı ^ ( ℓ ) \hat{\imath}(\ell) ^ ( ℓ ) the index in { 1 , … , N } \{1,\ldots,N\} { 1 , … , N } such that ℓ ∈ M ı ^ ( ℓ ) \ell\in\mathcal{M}_{\hat{\imath}(\ell)} ℓ ∈ M ^ ( ℓ ) . For every k ∈ N k \in\mathbb{N} k ∈ N and every ℓ = 1 , … , N M \ell= 1,\ldots,NM ℓ = 1 , … , N M , let us define
A k ℓ = ( 1 − λ ) ( X k ℓ − x ∗ ) + λ ( Z k ı ^ ( ℓ ) − x ∗ ) , B k ℓ = σ ∑ s = 1 d ( x k , s ℓ − c ^ k , s ı ^ ( ℓ ) ) ξ k , s ℓ e s . A_k^\ell=(1-\lambda)(X_k^\ell-x^\ast)+\lambda(Z_k^{\hat{\imath}(\ell)}-x^\ast),\qquad B_k^\ell=\sigma\sum_{s=1}^{d}(x_{k,s}^\ell-\hat{c}_{k,s}^{\hat{\imath}(\ell)})\xi_{k,s}^\ell e_s. A k ℓ = ( 1 − λ ) ( X k ℓ − x ∗ ) + λ ( Z k ^ ( ℓ ) − x ∗ ) , B k ℓ = σ s = 1 ∑ d ( x k , s ℓ − c ^ k , s ^ ( ℓ ) ) ξ k , s ℓ e s .
By (3) we have X k + 1 ℓ − x ∗ = A k ℓ + B k ℓ X_{k+1}^\ell-x^\ast=A_k^\ell+B_k^\ell X k + 1 ℓ − x ∗ = A k ℓ + B k ℓ , and therefore
E [ ∥ X k + 1 ℓ − x ∗ ∥ 2 ] = E [ ∥ A k ℓ ∥ 2 ] + E [ ∥ B k ℓ ∥ 2 ] + 2 E [ ( A k ℓ ) T B k ℓ ] . (26) \mathbb{E}\left[\left\|X_{k+1}^\ell-x^\ast\right\|^2\right]=\mathbb{E}\left[\left\|A_k^\ell\right\|^2\right]+\mathbb{E}\left[\left\|B_k^\ell\right\|^2\right]+2\mathbb{E}\left[(A_k^\ell)^\mathsf{T}B_k^\ell\right]. \tag*{(26)} E [ X k + 1 ℓ − x ∗ 2 ] = E [ A k ℓ 2 ] + E [ B k ℓ 2 ] + 2 E [ ( A k ℓ ) T B k ℓ ] . (26)
Let us now bound the three terms on the right-hand side. Since ∥ ⋅ ∥ 2 \|\cdot\|^2 ∥ ⋅ ∥ 2 is convex,
E [ ∥ A k ℓ ∥ 2 ] ≤ ( 1 − λ ) E [ ∥ X k ℓ − x ∗ ∥ 2 ] + λ E [ ∥ Z k ı ^ ( ℓ ) − x ∗ ∥ 2 ] . (27) \mathbb{E}\left[\left\|A_k^\ell\right\|^2\right]\leq(1-\lambda)\mathbb{E}\left[\left\|X_k^\ell-x^\ast\right\|^2\right]+\lambda\mathbb{E}\left[\left\|Z_k^{\hat{\imath}(\ell)}-x^\ast\right\|^2\right]. \tag*{(27)} E [ A k ℓ 2 ] ≤ ( 1 − λ ) E [ X k ℓ − x ∗ 2 ] + λ E [ Z k ^ ( ℓ ) − x ∗ 2 ] . (27)
The random variables ( ξ k , s ℓ ) (\xi_{k,s}^\ell) ( ξ k , s ℓ ) are independent of X k ℓ X_k^\ell X k ℓ , Z k ı ^ ( ℓ ) Z_k^{\hat{\imath}(\ell)} Z k ^ ( ℓ ) and C ^ k ı ^ ( ℓ ) \hat{C}_k^{\hat{\imath}(\ell)} C ^ k ^ ( ℓ ) , and E [ ( ξ k , s ℓ ) 2 ] = 1 \mathbb{E}[(\xi_{k,s}^\ell)^2]=1 E [( ξ k , s ℓ ) 2 ] = 1 . Moreover, since c ^ k , s ı ^ ( ℓ ) \hat{c}_{k,s}^{\hat{\imath}(\ell)} c ^ k , s ^ ( ℓ ) is a convex combination of the entries of X k s , ı ^ ( ℓ ) \mathcal{X}_k^{s,\hat{\imath}(\ell)} X k s , ^ ( ℓ ) , we have ∣ x k , s ℓ − c ^ k , s ı ^ ( ℓ ) ∣ ≤ diam ( X k s , ı ^ ( ℓ ) ) |x_{k,s}^\ell-\hat{c}_{k,s}^{\hat{\imath}(\ell)}|\leq\operatorname{diam}(\mathcal{X}_k^{s,\hat{\imath}(\ell)}) ∣ x k , s ℓ − c ^ k , s ^ ( ℓ ) ∣ ≤ diam ( X k s , ^ ( ℓ ) ) . Therefore, using Lemma 2.7,
E [ ∥ B k ℓ ∥ 2 ] = σ 2 ∑ s = 1 d E [ ( x k , s ℓ − c ^ k , s ı ^ ( ℓ ) ) 2 ( ξ k , s ℓ ) 2 ] = σ 2 ∑ s = 1 d E [ ( x k , s ℓ − c ^ k , s ı ^ ( ℓ ) ) 2 ] ≤ σ 2 ∑ s = 1 d E [ diam ( X k s , ı ^ ( ℓ ) ) 2 ] ≤ σ 2 ϑ 2 k ∑ s = 1 d E [ diam ( X 0 s , ı ^ ( ℓ ) ) 2 ] . (28) \begin{aligned}
\mathbb{E}\left[\left\|B_k^\ell\right\|^2\right]=\sigma^2\sum_{s=1}^{d}\mathbb{E}\left[(x_{k,s}^\ell-\hat{c}_{k,s}^{\hat{\imath}(\ell)})^2(\xi_{k,s}^\ell)^2\right]=\sigma^2\sum_{s=1}^{d}\mathbb{E}\left[(x_{k,s}^\ell-\hat{c}_{k,s}^{\hat{\imath}(\ell)})^2\right] \\
&\leq\sigma^2\sum_{s=1}^{d}\mathbb{E}\left[\operatorname{diam}(\mathcal{X}_k^{s,\hat{\imath}(\ell)})^2\right]\leq\sigma^2\vartheta^{2k}\sum_{s=1}^{d}\mathbb{E}\left[\operatorname{diam}(\mathcal{X}_0^{s,\hat{\imath}(\ell)})^2\right]. \tag*{(28)}
\end{aligned} E [ B k ℓ 2 ] = σ 2 s = 1 ∑ d E [ ( x k , s ℓ − c ^ k , s ^ ( ℓ ) ) 2 ( ξ k , s ℓ ) 2 ] = σ 2 s = 1 ∑ d E [ ( x k , s ℓ − c ^ k , s ^ ( ℓ ) ) 2 ] ≤ σ 2 s = 1 ∑ d E [ diam ( X k s , ^ ( ℓ ) ) 2 ] ≤ σ 2 ϑ 2 k s = 1 ∑ d E [ diam ( X 0 s , ^ ( ℓ ) ) 2 ] . (28)
Finally, since ξ k , s ℓ \xi_{k,s}^\ell ξ k , s ℓ is independent of X k ℓ X_k^\ell X k ℓ , Z k ı ^ ( ℓ ) Z_k^{\hat{\imath}(\ell)} Z k ^ ( ℓ ) and C ^ k ı ^ ( ℓ ) \hat{C}_k^{\hat{\imath}(\ell)} C ^ k ^ ( ℓ ) , and E [ ξ k , s ℓ ] = 0 \mathbb{E}[\xi_{k,s}^\ell]=0 E [ ξ k , s ℓ ] = 0 , we have E [ ( A k ℓ ) T B k ℓ ] = 0 \mathbb{E}[(A_k^\ell)^\mathsf{T}B_k^\ell]=0 E [( A k ℓ ) T B k ℓ ] = 0 . This, together with (26) , (27) , (28) and the fact that ∣ M i ∣ = M |\mathcal{M}_i|=M ∣ M i ∣ = M for every i i i , yields
E [ V k + 1 ] ≤ 1 N M ∑ ℓ = 1 N M ( ( 1 − λ ) E [ ∥ X k ℓ − x ∗ ∥ 2 ] + λ E [ ∥ Z k ı ^ ( ℓ ) − x ∗ ∥ 2 ] + σ 2 ϑ 2 k ∑ s = 1 d E [ diam ( X 0 s , ı ^ ( ℓ ) ) 2 ] ) = ( 1 − λ ) E [ V k ] + λ N ∑ i = 1 N E [ ∥ Z k i − x ∗ ∥ 2 ] + σ 2 N ϑ 2 k ∑ s = 1 d ∑ i = 1 N E [ diam ( X 0 s , i ) 2 ] , \begin{aligned}
\mathbb{E}[V_{k+1}]\leq\frac{1}{NM}\sum_{\ell=1}^{NM}\left((1-\lambda)\mathbb{E}\left[\left\|X_k^\ell-x^\ast\right\|^2\right]+\lambda\mathbb{E}\left[\left\|Z_k^{\hat{\imath}(\ell)}-x^\ast\right\|^2\right]+\sigma^2\vartheta^{2k}\sum_{s=1}^{d}\mathbb{E}\left[\operatorname{diam}(\mathcal{X}_0^{s,\hat{\imath}(\ell)})^2\right]\right) \\
&=(1-\lambda)\mathbb{E}[V_k]+\frac{\lambda}{N}\sum_{i=1}^{N}\mathbb{E}\left[\left\|Z_k^i-x^\ast\right\|^2\right]+\frac{\sigma^2}{N}\vartheta^{2k}\sum_{s=1}^{d}\sum_{i=1}^{N}\mathbb{E}\left[\operatorname{diam}(\mathcal{X}_0^{s,i})^2\right],
\end{aligned} E [ V k + 1 ] ≤ N M 1 ℓ = 1 ∑ N M ( ( 1 − λ ) E [ X k ℓ − x ∗ 2 ] + λ E [ Z k ^ ( ℓ ) − x ∗ 2 ] + σ 2 ϑ 2 k s = 1 ∑ d E [ diam ( X 0 s , ^ ( ℓ ) ) 2 ] ) = ( 1 − λ ) E [ V k ] + N λ i = 1 ∑ N E [ Z k i − x ∗ 2 ] + N σ 2 ϑ 2 k s = 1 ∑ d i = 1 ∑ N E [ diam ( X 0 s , i ) 2 ] ,
and the thesis follows from the definition of D X , s D_{\mathcal{X},s} D X , s and D X D_{\mathcal{X}} D X .
Let us denote by C k i C_k^i C k i the consensus point of the swarm at node i i i computed using the true function f f f , and with C k C_k C k the consensus point of the whole swarm, again computed with f f f , namely
C k i = ∑ ℓ ∈ M i X k ℓ exp ( − α f ( X k ℓ ) ) ∑ ℓ ∈ M i exp ( − α f ( X k ℓ ) ) , C k = ∑ ℓ = 1 N M X k ℓ exp ( − α f ( X k ℓ ) ) ∑ ℓ = 1 N M exp ( − α f ( X k ℓ ) ) . (29) C_k^i=\frac{\sum_{\ell\in\mathcal{M}_i}X_k^\ell\exp(-\alpha f(X_k^\ell))}{\sum_{\ell\in\mathcal{M}_i}\exp(-\alpha f(X_k^\ell))},\qquad C_k=\frac{\sum_{\ell=1}^{NM}X_k^\ell\exp(-\alpha f(X_k^\ell))}{\sum_{\ell=1}^{NM}\exp(-\alpha f(X_k^\ell))}. \tag*{(29)} C k i = ∑ ℓ ∈ M i exp ( − α f ( X k ℓ )) ∑ ℓ ∈ M i X k ℓ exp ( − α f ( X k ℓ )) , C k = ∑ ℓ = 1 N M exp ( − α f ( X k ℓ )) ∑ ℓ = 1 N M X k ℓ exp ( − α f ( X k ℓ )) . (29)
Notice that C k i C_k^i C k i and C k C_k C k are defined only for the purpose of this theoretical analysis and they are never computed by the algorithm.
Given r > 0 r>0 r > 0 and B r B_r B r defined in (1) , we define
I k , r i = { ℓ ∈ M i ∣ X k ℓ ∈ B r } , I k , r = ⋃ i = 1 N I k , r i . (30) \mathcal{I}_{k,r}^i=\{\ell\in\mathcal{M}_i\mid X_k^\ell\in B_r\},\qquad\mathcal{I}_{k,r}=\bigcup_{i=1}^{N}\mathcal{I}_{k,r}^i. \tag*{(30)} I k , r i = { ℓ ∈ M i ∣ X k ℓ ∈ B r } , I k , r = i = 1 ⋃ N I k , r i . (30)
We have the following finite agents version of the quantitative Laplace principle [16 ] .
Lemma 2.11 (Quantitative Laplace Principle). Let Assumption 2.1 hold and C k C_k C k be given in (29) . Consider r ∈ ( 0 , R 0 ] r\in(0,R_0] r ∈ ( 0 , R 0 ] and q > 0 q>0 q > 0 such that q + f r ≤ f ∞ q+f_r\leq f_\infty q + f r ≤ f ∞ . For every k ∈ N k\in\mathbb{N} k ∈ N we have
(i) if ∣ I k , r ∣ > 0 |\mathcal{I}_{k,r}|>0 ∣ I k , r ∣ > 0 then
∥ C k − x ∗ ∥ ≤ 1 β ( q + f r ) ν + e − α q ∣ I k , r ∣ N M V k 1 / 2 \left\|C_k-x^\ast\right\|\leq\frac{1}{\beta}(q+f_r)^\nu+\frac{e^{-\alpha q}}{|\mathcal{I}_{k,r}|}NMV_k^{1/2} ∥ C k − x ∗ ∥ ≤ β 1 ( q + f r ) ν + ∣ I k , r ∣ e − α q N M V k 1/2
(ii) if ∣ I k , r ∣ = 0 |\mathcal{I}_{k,r}|=0 ∣ I k , r ∣ = 0 it still holds that
∥ C k − x ∗ ∥ ≤ N M V k 1 / 2 . \|C_k-x^\ast\|\le\sqrt{NM}V_k^{1/2}. ∥ C k − x ∗ ∥ ≤ N M V k 1/2 .
Proof. To prove (i) we follow the proof of [16 Proposition 4.5] . For ℓ = 1 , … , N M \ell=1,\ldots,NM ℓ = 1 , … , N M let w ℓ = e − α f ( X k ℓ ) w_\ell=e^{-\alpha f(X_k^\ell)} w ℓ = e − α f ( X k ℓ ) . By definition of C k C_k C k in (29) and the triangle inequality, for any r ~ ≥ r \widetilde r\ge r r ≥ r we have
∥ C k − x ∗ ∥ = ∥ 1 ∑ ℓ = 1 N M w ℓ ∑ ℓ = 1 N M w ℓ ( X k ℓ − x ∗ ) ∥ ≤ 1 ∑ ℓ = 1 N M w ℓ ∑ ℓ = 1 N M w ℓ ∥ X k ℓ − x ∗ ∥ = 1 ∑ ℓ = 1 N M w ℓ ( ∑ ℓ ∈ I k , r ~ w ℓ ∥ X k ℓ − x ∗ ∥ + ∑ ℓ ∉ I k , r ~ w ℓ ∥ X k ℓ − x ∗ ∥ ) ≤ r ~ + max ℓ ∉ I k , r ~ w ℓ ∑ ℓ = 1 N M w ℓ ∑ ℓ = 1 N M ∥ X k ℓ − x ∗ ∥ ≤ r ~ + exp ( − α inf x ∉ B r ~ f ( x ) ) ∑ ℓ = 1 N M w ℓ ∑ ℓ = 1 N M ∥ X k ℓ − x ∗ ∥ . (31) \begin{aligned}
\|C_k-x^\ast\|&=\left\|\frac{1}{\sum_{\ell=1}^{NM}w_\ell}\sum_{\ell=1}^{NM}w_\ell(X_k^\ell-x^\ast)\right\|\le\frac{1}{\sum_{\ell=1}^{NM}w_\ell}\sum_{\ell=1}^{NM}w_\ell\|X_k^\ell-x^\ast\|\\
&=\frac{1}{\sum_{\ell=1}^{NM}w_\ell}\left(\sum_{\ell\in\mathcal{I}_{k,\widetilde r}}w_\ell\|X_k^\ell-x^\ast\|+\sum_{\ell\notin\mathcal{I}_{k,\widetilde r}}w_\ell\|X_k^\ell-x^\ast\|\right)\\
&\le\widetilde r+\frac{\max_{\ell\notin\mathcal{I}_{k,\widetilde r}}w_\ell}{\sum_{\ell=1}^{NM}w_\ell}\sum_{\ell=1}^{NM}\|X_k^\ell-x^\ast\|\\
&\le\widetilde r+\frac{\exp\left(-\alpha\inf_{x\notin B_{\widetilde r}}f(x)\right)}{\sum_{\ell=1}^{NM}w_\ell}\sum_{\ell=1}^{NM}\|X_k^\ell-x^\ast\|. \tag*{(31)}
\end{aligned} ∥ C k − x ∗ ∥ = ∑ ℓ = 1 N M w ℓ 1 ℓ = 1 ∑ N M w ℓ ( X k ℓ − x ∗ ) ≤ ∑ ℓ = 1 N M w ℓ 1 ℓ = 1 ∑ N M w ℓ ∥ X k ℓ − x ∗ ∥ = ∑ ℓ = 1 N M w ℓ 1 ℓ ∈ I k , r ∑ w ℓ ∥ X k ℓ − x ∗ ∥ + ℓ ∈ / I k , r ∑ w ℓ ∥ X k ℓ − x ∗ ∥ ≤ r + ∑ ℓ = 1 N M w ℓ max ℓ ∈ / I k , r w ℓ ℓ = 1 ∑ N M ∥ X k ℓ − x ∗ ∥ ≤ r + ∑ ℓ = 1 N M w ℓ exp ( − α inf x ∈ / B r f ( x ) ) ℓ = 1 ∑ N M ∥ X k ℓ − x ∗ ∥. (31)
We take r ~ = 1 β ( q + f r ) ν \widetilde r=\frac{1}{\beta}(q+f_r)^\nu r = β 1 ( q + f r ) ν . Notice that r ~ ≥ r \widetilde r\ge r r ≥ r , since by Assumption 2.1
r ~ = 1 β ( q + f r ) ν ≥ 1 β f r ν = max x ∈ B r f ( x ) ≥ max x ∈ B r ∥ x − x ∗ ∥ = r . \widetilde r=\frac{1}{\beta}(q+f_r)^\nu\ge\frac{1}{\beta}f_r^\nu=\max_{x\in B_r}f(x)\ge\max_{x\in B_r}\|x-x^\ast\|=r. r = β 1 ( q + f r ) ν ≥ β 1 f r ν = x ∈ B r max f ( x ) ≥ x ∈ B r max ∥ x − x ∗ ∥ = r .
Moreover, by Assumption 2.1 and the definition of r ~ \widetilde r r , for every x ∉ B r ~ x\notin B_{\widetilde r} x ∈ / B r either x ∉ B R 0 x\notin B_{R_0} x ∈ / B R 0 and f ( x ) ≥ f ∞ f(x)\ge f_\infty f ( x ) ≥ f ∞ , or x ∈ B R 0 x\in B_{R_0} x ∈ B R 0 and f ( x ) ≥ ( β ∥ x − x ∗ ∥ ) 1 / ν ≥ ( β r ~ ) 1 / ν f(x)\ge(\beta\|x-x^\ast\|)^{1/\nu}\ge(\beta\widetilde r)^{1/\nu} f ( x ) ≥ ( β ∥ x − x ∗ ∥ ) 1/ ν ≥ ( β r ) 1/ ν . Since ( β r ~ ) 1 / ν = q + f r ≤ f ∞ (\beta\widetilde r)^{1/\nu}=q+f_r\le f_\infty ( β r ) 1/ ν = q + f r ≤ f ∞ , we then have
inf x ∉ B r ~ f ( x ) ≥ min { f ∞ , ( β r ~ ) 1 / ν } = q + f r . (32) \inf_{x\notin B_{\widetilde r}}f(x)\ge\min\{f_\infty,(\beta\widetilde r)^{1/\nu}\}=q+f_r. \tag*{(32)} x ∈ / B r inf f ( x ) ≥ min { f ∞ , ( β r ) 1/ ν } = q + f r . (32)
Since f ( x ) ≤ f r f(x)\le f_r f ( x ) ≤ f r for every x ∈ B r x\in B_r x ∈ B r we have
∑ ℓ = 1 N M w ℓ ≥ ∑ ℓ ∈ I k , r e − α f ( X k ℓ ) ≥ ∣ I k , r ∣ e − α f r . \sum_{\ell=1}^{NM}w_\ell\ge\sum_{\ell\in\mathcal{I}_{k,r}}e^{-\alpha f(X_k^\ell)}\ge|\mathcal{I}_{k,r}|e^{-\alpha f_r}. ℓ = 1 ∑ N M w ℓ ≥ ℓ ∈ I k , r ∑ e − α f ( X k ℓ ) ≥ ∣ I k , r ∣ e − α f r .
Using this inequality and (32) in (31) we get
∥ C k − x ∗ ∥ ≤ 1 β ( q + f r ) ν + e − α ( q + f r ) ∣ I k , r ∣ e − α f r ∑ ℓ = 1 N M ∥ X k ℓ − x ∗ ∥ = 1 β ( q + f r ) ν + e − α q ∣ I k , r ∣ ∑ ℓ = 1 N M ∥ X k ℓ − x ∗ ∥ , \|C_k-x^\ast\|\le\frac{1}{\beta}(q+f_r)^\nu+\frac{e^{-\alpha(q+f_r)}}{|\mathcal{I}_{k,r}|e^{-\alpha f_r}}\sum_{\ell=1}^{NM}\|X_k^\ell-x^\ast\|=\frac{1}{\beta}(q+f_r)^\nu+\frac{e^{-\alpha q}}{|\mathcal{I}_{k,r}|}\sum_{\ell=1}^{NM}\|X_k^\ell-x^\ast\|, ∥ C k − x ∗ ∥ ≤ β 1 ( q + f r ) ν + ∣ I k , r ∣ e − α f r e − α ( q + f r ) ℓ = 1 ∑ N M ∥ X k ℓ − x ∗ ∥ = β 1 ( q + f r ) ν + ∣ I k , r ∣ e − α q ℓ = 1 ∑ N M ∥ X k ℓ − x ∗ ∥ ,
which, together with the definition of V k V_k V k yields part (i) of the thesis.
Let us now consider part (ii). Since C k C_k C k is a convex combination of the agents ( X k ℓ ) ℓ = 1 N M (X_k^\ell)_{\ell=1}^{NM} ( X k ℓ ) ℓ = 1 N M , we have
∥ C k − x ∗ ∥ ≤ max ℓ = 1 : N M ∥ X k ℓ − x ∗ ∥ ≤ ( ∑ ℓ = 1 N M ∥ X k ℓ − x ∗ ∥ 2 ) 1 / 2 . (33) \|C_k-x^\ast\|\le\max_{\ell=1:NM}\|X_k^\ell-x^\ast\|\le\left(\sum_{\ell=1}^{NM}\|X_k^\ell-x^\ast\|^2\right)^{1/2}. \tag*{(33)} ∥ C k − x ∗ ∥ ≤ ℓ = 1 : N M max ∥ X k ℓ − x ∗ ∥ ≤ ( ℓ = 1 ∑ N M ∥ X k ℓ − x ∗ ∥ 2 ) 1/2 . (33)
and the thesis follows from the definition of V k V_k V k .
Let us introduce the following error vector E k \mathcal{E}_k E k .
E k : = ( ∣ f ( X k ℓ ) − f ^ ( X k ℓ , ω k ℓ ) ∣ ) ℓ = 1 : N M ∈ R N M . (34) \mathcal{E}_k:=\left(\left|f(X_k^\ell)-\widehat f(X_k^\ell,\omega_k^\ell)\right|\right)_{\ell=1:NM}\in\mathbb{R}^{NM}. \tag*{(34)} E k := ( f ( X k ℓ ) − f ( X k ℓ , ω k ℓ ) ) ℓ = 1 : N M ∈ R N M . (34)
The next lemma quantifies the effect of the noise in the function evaluations on the local consensus points.
Lemma 2.12. Let Assumption 2.2 hold, and let C ^ k i \widehat C_k^i C k i and C k i C_k^i C k i be given in (4) and (29) , respectively. Then, for every k ∈ N k\in\mathbb{N} k ∈ N
1 N ∑ i = 1 N E [ ∥ C ^ k i − C k i ∥ 2 ] ≤ α 2 M 0 2 D X N ϑ 2 k . \frac{1}{N}\sum_{i=1}^{N}\mathbb{E}\left[\|\widehat C_k^i-C_k^i\|^2\right]\le\frac{\alpha^2M_0^2D_X}{N}\vartheta^{2k}. N 1 i = 1 ∑ N E [ ∥ C k i − C k i ∥ 2 ] ≤ N α 2 M 0 2 D X ϑ 2 k .
Proof. Let F k \mathcal{F}_k F k be the σ \sigma σ -algebra generated by the initial positions of the agents, ( ξ t , s ) t < k (\xi_{t,s})_{t<k} ( ξ t , s ) t < k and ( ω t ) t < k (\omega_t)_{t<k} ( ω t ) t < k . By Assumption 2.2 we have E [ E k , ℓ 2 ∣ F k ] ≤ σ f 2 \mathbb{E}[\mathcal{E}_{k,\ell}^2 \mid\mathcal{F}_k] \le\sigma_f^2 E [ E k , ℓ 2 ∣ F k ] ≤ σ f 2 for every ℓ \ell ℓ , and therefore
E [ max ℓ ∈ M i E k , ℓ 2 ∣ F k ] ≤ ∑ ℓ ∈ M i E [ E k , ℓ 2 ∣ F k ] ≤ M σ f 2 . \mathbb{E}\left[\max_{\ell\in\mathcal{M}_i}\mathcal{E}_{k,\ell}^2 \mid\mathcal{F}_k\right] \le\sum_{\ell\in\mathcal{M}_i}\mathbb{E}\left[\mathcal{E}_{k,\ell}^2 \mid\mathcal{F}_k\right] \le M\sigma_f^2. E [ ℓ ∈ M i max E k , ℓ 2 ∣ F k ] ≤ ℓ ∈ M i ∑ E [ E k , ℓ 2 ∣ F k ] ≤ M σ f 2 .
Moreover, applying [3 ] , Lemma 3.3 to the swarm ( X k ℓ ) ℓ ∈ M i (X_k^\ell)_{\ell\in\mathcal{M}_i} ( X k ℓ ) ℓ ∈ M i held by node i i i , we have that for every s = 1 , … , d s=1,\ldots,d s = 1 , … , d and every k ∈ N k\in\mathbb{N} k ∈ N
∣ c ^ k , s i − c k , s i ∣ ≤ α max ℓ ∈ M i ∣ E k , ℓ ∣ diam ( X k s , i ) . |\widehat{c}_{k,s}^i-c_{k,s}^i|\le\alpha\max_{\ell\in\mathcal{M}_i}|\mathcal{E}_{k,\ell}|\operatorname{diam}(\mathcal{X}_k^{s,i}). ∣ c k , s i − c k , s i ∣ ≤ α ℓ ∈ M i max ∣ E k , ℓ ∣ diam ( X k s , i ) .
Using the law of total expectation, these inequalities, and Lemma 2.7 , we have
E [ ∥ C ^ k i − C k i ∥ 2 ] ≤ α 2 ∑ s = 1 d E [ diam ( X k s , i ) 2 E [ max ℓ ∈ M i E k , ℓ 2 ∣ F k ] ] ≤ α 2 M σ f 2 ∑ s = 1 d E [ diam ( X k s , i ) 2 ] ≤ α 2 M σ f 2 ϑ 2 k ∑ s = 1 d E [ diam ( X 0 s , i ) 2 ] . \begin{aligned}
\mathbb{E}[\|\widehat{C}_k^i-C_k^i\|^2]\le\alpha^2\sum_{s=1}^{d}\mathbb{E}\left[\operatorname{diam}(\mathcal{X}_k^{s,i})^2\mathbb{E}\left[\max_{\ell\in\mathcal{M}_i}\mathcal{E}_{k,\ell}^2\mid\mathcal{F}_k\right]\right]\le\alpha^2M\sigma_f^2\sum_{s=1}^{d}\mathbb{E}[\operatorname{diam}(\mathcal{X}_k^{s,i})^2] \\
&\le\alpha^2M\sigma_f^2\vartheta^{2k}\sum_{s=1}^{d}\mathbb{E}[\operatorname{diam}(\mathcal{X}_0^{s,i})^2].
\end{aligned} E [ ∥ C k i − C k i ∥ 2 ] ≤ α 2 s = 1 ∑ d E [ diam ( X k s , i ) 2 E [ ℓ ∈ M i max E k , ℓ 2 ∣ F k ] ] ≤ α 2 M σ f 2 s = 1 ∑ d E [ diam ( X k s , i ) 2 ] ≤ α 2 M σ f 2 ϑ 2 k s = 1 ∑ d E [ diam ( X 0 s , i ) 2 ] .
Averaging over i = 1 , … , N i=1,\ldots,N i = 1 , … , N and using the definition of D X D_X D X we get the thesis.
Combining Lemma 2.8 and Lemma 2.12, we can now bound the distance of the tracking variables from x ∗ x^* x ∗ in terms of the distance of the exact global consensus point C k C_k C k from x ∗ x^* x ∗ , up to a term that decays geometrically.
Lemma 2.13. Let the assumptions of Lemmas 2.8 and 2.12 hold. Then for every k ∈ N k\in\mathbb{N} k ∈ N
1 N ∑ i = 1 N E [ ∥ Z k i − x ∗ ∥ 2 ] ≤ 4 E [ ∥ C k − x ∗ ∥ 2 ] + Λ Z ϱ 2 k , Λ Z = 4 ( α 2 M σ f 2 D X N + ∑ s = 1 d ( Λ Z , s 2 N + Λ X , s 2 ) ) . \frac{1}{N}\sum_{i=1}^{N}\mathbb{E}[\|Z_k^i-x^*\|^2]\le4\mathbb{E}[\|C_k-x^*\|^2]+\Lambda_Z\varrho^{2k},\qquad\Lambda_Z=4\left(\frac{\alpha^2M\sigma_f^2D_X}{N}+\sum_{s=1}^{d}\left(\frac{\Lambda_{Z,s}^2}{N}+\Lambda_{X,s}^2\right)\right). N 1 i = 1 ∑ N E [ ∥ Z k i − x ∗ ∥ 2 ] ≤ 4 E [ ∥ C k − x ∗ ∥ 2 ] + Λ Z ϱ 2 k , Λ Z = 4 ( N α 2 M σ f 2 D X + s = 1 ∑ d ( N Λ Z , s 2 + Λ X , s 2 ) ) .
Proof. By (7) we have
∥ Z k i − x ∗ ∥ 2 ≤ 4 ∥ Z k i − Z ‾ k ∥ 2 + 4 ∥ 1 N ∑ j = 1 N C ^ k j − 1 N ∑ j = 1 N C k j ∥ 2 + 4 ∥ 1 N ∑ j = 1 N C k j − C k ∥ 2 + 4 ∥ C k − x ∗ ∥ 2 \|Z_k^i-x^*\|^2\le4\|Z_k^i-\overline{Z}_k\|^2+4\left\|\frac{1}{N}\sum_{j=1}^{N}\widehat{C}_k^j-\frac{1}{N}\sum_{j=1}^{N}C_k^j\right\|^2+4\left\|\frac{1}{N}\sum_{j=1}^{N}C_k^j-C_k\right\|^2+4\|C_k-x^*\|^2 ∥ Z k i − x ∗ ∥ 2 ≤ 4∥ Z k i − Z k ∥ 2 + 4 N 1 j = 1 ∑ N C k j − N 1 j = 1 ∑ N C k j 2 + 4 N 1 j = 1 ∑ N C k j − C k 2 + 4∥ C k − x ∗ ∥ 2
≤ 4 ∥ Z k i − Z ‾ k ∥ 2 + 4 N ∑ j = 1 N ∥ C ^ k j − C k j ∥ 2 + 4 N ∑ j = 1 N ∥ C k j − C k ∥ 2 + 4 ∥ C k − x ∗ ∥ 2 . \le4\|Z_k^i-\overline{Z}_k\|^2+\frac{4}{N}\sum_{j=1}^{N}\|\widehat{C}_k^j-C_k^j\|^2+\frac{4}{N}\sum_{j=1}^{N}\|C_k^j-C_k\|^2+4\|C_k-x^*\|^2. ≤ 4∥ Z k i − Z k ∥ 2 + N 4 j = 1 ∑ N ∥ C k j − C k j ∥ 2 + N 4 j = 1 ∑ N ∥ C k j − C k ∥ 2 + 4∥ C k − x ∗ ∥ 2 .
This implies
1 N ∑ i = 1 N E [ ∥ Z k i − x ∗ ∥ 2 ] ≤ 4 N ( ∑ i = 1 N E [ ∥ Z k i − Z ‾ k ∥ 2 ] + ∑ j = 1 N E [ ∥ C ^ k j − C k j ∥ 2 ] + ∑ j = 1 N E [ ∥ C k j − C k ∥ 2 ] ) + 4 E [ ∥ C k − x ∗ ∥ 2 ] . (35) \begin{aligned}
\frac{1}{N}\sum_{i=1}^{N}\mathbb{E}[\|Z_k^i-x^*\|^2]\le\frac{4}{N}\left(\sum_{i=1}^{N}\mathbb{E}[\|Z_k^i-\overline{Z}_k\|^2]+\sum_{j=1}^{N}\mathbb{E}[\|\widehat{C}_k^j-C_k^j\|^2]+\sum_{j=1}^{N}\mathbb{E}[\|C_k^j-C_k\|^2]\right) \\
&+4\mathbb{E}[\|C_k-x^*\|^2]. \tag*{(35)}
\end{aligned} N 1 i = 1 ∑ N E [ ∥ Z k i − x ∗ ∥ 2 ] ≤ N 4 ( i = 1 ∑ N E [ ∥ Z k i − Z k ∥ 2 ] + j = 1 ∑ N E [ ∥ C k j − C k j ∥ 2 ] + j = 1 ∑ N E [ ∥ C k j − C k ∥ 2 ] ) + 4 E [ ∥ C k − x ∗ ∥ 2 ] . (35)
We now bound the first three terms on the RHS. By definition of Z k s Z_k^s Z k s and Lemma 2.8 we have
∑ i = 1 N E [ ∥ Z k i − Z ‾ k ∥ 2 ] = ∑ i = 1 N ∑ s = 1 d E [ ( ( I − J ) Z k s ) i 2 ] = ∑ s = 1 d E [ ∥ ( I − J ) Z k s ∥ 2 ] ≤ ϱ 2 k ∑ s = 1 d Λ Z , s 2 . (36) \sum_{i=1}^{N}\mathbb{E}[\|Z_k^i-\overline{Z}_k\|^2]=\sum_{i=1}^{N}\sum_{s=1}^{d}\mathbb{E}[((I-J)Z_k^s)_i^2]=\sum_{s=1}^{d}\mathbb{E}[\|(I-J)Z_k^s\|^2]\le\varrho^{2k}\sum_{s=1}^{d}\Lambda_{Z,s}^2. \tag*{(36)} i = 1 ∑ N E [ ∥ Z k i − Z k ∥ 2 ] = i = 1 ∑ N s = 1 ∑ d E [(( I − J ) Z k s ) i 2 ] = s = 1 ∑ d E [ ∥ ( I − J ) Z k s ∥ 2 ] ≤ ϱ 2 k s = 1 ∑ d Λ Z , s 2 . (36)
By Lemma 2.12, since ϑ ≤ ϱ \vartheta\le\varrho ϑ ≤ ϱ ,
∑ j = 1 N E [ ∥ C ^ k j − C k j ∥ 2 ] ≤ α 2 M σ f 2 D X ϑ 2 k ≤ α 2 M σ f 2 D X ϱ 2 k . (37) \sum_{j=1}^{N}\mathbb{E}[\|\widehat{C}_k^j-C_k^j\|^2]\le\alpha^2M\sigma_f^2D_X\vartheta^{2k}\le\alpha^2M\sigma_f^2D_X\varrho^{2k}. \tag*{(37)} j = 1 ∑ N E [ ∥ C k j − C k j ∥ 2 ] ≤ α 2 M σ f 2 D X ϑ 2 k ≤ α 2 M σ f 2 D X ϱ 2 k . (37)
Since C k j C_k^j C k j and C k C_k C k are both convex combinations of ( X k ℓ ) ℓ = 1 N (X_k^\ell)_{\ell=1}^{N} ( X k ℓ ) ℓ = 1 N , by Lemma 2.8 , we have
∑ j = 1 N E [ ∥ C k j − C k ∥ 2 ] ≤ N ∑ s = 1 d E [ diam ( X k s ) 2 ] ≤ N ϱ 2 k ∑ s = 1 d Λ X , s 2 . (38) \sum_{j=1}^{N}\mathbb{E}[\|C_k^j-C_k\|^2]\leq N\sum_{s=1}^{d}\mathbb{E}[\operatorname{diam}(X_k^s)^2]\leq N\varrho^{2k}\sum_{s=1}^{d}\Lambda_{X,s}^2. \tag*{(38)} j = 1 ∑ N E [ ∥ C k j − C k ∥ 2 ] ≤ N s = 1 ∑ d E [ diam ( X k s ) 2 ] ≤ N ϱ 2 k s = 1 ∑ d Λ X , s 2 . (38)
Using (36) , (37) and (38) in (35) , we get the thesis.
We can now prove our main result.
Theorem 2.14. Let Assumptions 2.1–2.3 hold. Moreover, let λ ∈ ( 0 , 1 ) \lambda\in(0,1) λ ∈ ( 0 , 1 ) and σ > 0 \sigma>0 σ > 0 be such that ϑ < 1 \vartheta<1 ϑ < 1 . Given ε > 0 \varepsilon>0 ε > 0 and τ ∈ ( 0 , 1 ) \tau\in(0,1) τ ∈ ( 0 , 1 ) such that 1 − λ ( 1 − τ ) ≠ ϱ 2 1-\lambda(1-\tau)\neq\varrho^2 1 − λ ( 1 − τ ) = ϱ 2 , with ϱ \varrho ϱ defined in Lemma 2.8 , let us define
μ = max { 1 − λ ( 1 − τ ) , ϱ 2 } , Λ V = E [ V 0 ] + σ 2 D X N + λ Λ Z ∣ 1 − λ ( 1 − τ ) − ϱ 2 ∣ , k ∗ = max { 0 , ⌈ log 1 / μ ( Λ V ε ) ⌉ } . (39) \mu=\max\{1-\lambda(1-\tau),\varrho^2\},\qquad\Lambda_V=\mathbb{E}[V_0]+\frac{\frac{\sigma^2D_{\mathcal{X}}}{N}+\lambda\Lambda_Z}{\lvert1-\lambda(1-\tau)-\varrho^2\rvert},\qquad k^*=\max\left\{0,\left\lceil\log_{1/\mu}\left(\frac{\Lambda_V}{\varepsilon}\right)\right\rceil\right\}. \tag*{(39)} μ = max { 1 − λ ( 1 − τ ) , ϱ 2 } , Λ V = E [ V 0 ] + ∣ 1 − λ ( 1 − τ ) − ϱ 2 ∣ N σ 2 D X + λ Λ Z , k ∗ = max { 0 , ⌈ log 1/ μ ( ε Λ V ) ⌉ } . (39) with Λ Z \Lambda_Z Λ Z given in Lemma 2.13 , and
q ε = 1 2 min { f ∞ , ( β 2 ( τ ε 4 ) 1 / 2 ) 1 / ν } , r ε = max { s ∈ [ 0 , R 0 ] ∣ f ( x ) ≤ q ε ∀ x ∈ B s } . (40) q_\varepsilon=\frac{1}{2}\min\left\{f_\infty,\left(\frac{\beta}{2}\left(\frac{\tau\varepsilon}{4}\right)^{1/2}\right)^{1/\nu}\right\},\qquad r_\varepsilon=\max\{s\in[0,R_0]\mid f(x)\leq q_\varepsilon\ \ \forall x\in B_s\}. \tag*{(40)} q ε = 2 1 min { f ∞ , ( 2 β ( 4 τ ε ) 1/2 ) 1/ ν } , r ε = max { s ∈ [ 0 , R 0 ] ∣ f ( x ) ≤ q ε ∀ x ∈ B s } . (40) Assume that for every k ≤ k ∗ k\leq k^* k ≤ k ∗ we have
P ( ∣ I k , r ε ∣ = 0 ) ≤ δ k with δ k ≤ τ 2 64 N 2 M 2 E [ V k ] 2 E [ V k 2 ] . (41) \mathbb{P}(\lvert I_{k,r_\varepsilon}\rvert=0)\leq\delta_k\qquad\text{with}\qquad\delta_k\leq\frac{\tau^2}{64N^2M^2}\frac{\mathbb{E}[V_k]^2}{\mathbb{E}[V_k^2]}. \tag*{(41)} P (∣ I k , r ε ∣ = 0 ) ≤ δ k with δ k ≤ 64 N 2 M 2 τ 2 E [ V k 2 ] E [ V k ] 2 . (41) If
α ≥ 1 q ε log ( 16 N M τ ) , (42) \alpha\geq\frac{1}{q_\varepsilon}\log\left(\frac{16NM}{\sqrt{\tau}}\right), \tag*{(42)} α ≥ q ε 1 log ( τ 16 N M ) , (42) then there exists k ˉ ≤ k ∗ \bar{k}\leq k^* k ˉ ≤ k ∗ such that E [ V k ˉ ] ≤ ε \mathbb{E}[V_{\bar{k}}]\leq\varepsilon E [ V k ˉ ] ≤ ε . Moreover, E [ V k ] ≤ Λ V μ k \mathbb{E}[V_k]\leq\Lambda_V\mu^k E [ V k ] ≤ Λ V μ k for every k = 0 , … , k ˉ k=0,\ldots,\bar{k} k = 0 , … , k ˉ .
Remark 2.15. The rate is given by μ ≥ ϱ 2 = max { ϑ 2 , κ 2 } \mu\geq\varrho^2=\max\{\vartheta^2,\kappa^2\} μ ≥ ϱ 2 = max { ϑ 2 , κ 2 } , where κ \kappa κ is larger than the spectral radius of A λ P A_\lambda P A λ P , which in turn depends on the eigenvalues γ 2 , … , γ N \gamma_2,\ldots,\gamma_N γ 2 , … , γ N of the mixing matrix W W W . In particular we can observe that if γ 2 \gamma_2 γ 2 approaches 1 then κ \kappa κ (and therefore the rate μ \mu μ ) also approaches 1. Since the spectral gap 1 − γ 2 1-\gamma_2 1 − γ 2 measures the connectivity of the underlying communication network G G G , this reflects the fact that the rate guaranteed by the theorem is worse when the network is poorly connected.
Proof. Let k 0 k_0 k 0 be the smallest k ∈ N k\in\mathbb{N} k ∈ N such that
E [ V k ] ≤ ε or E [ ∥ C k − x ∗ ∥ 2 ] > τ 4 E [ V k ] . (43) \mathbb{E}[V_k]\leq\varepsilon\qquad\text{or}\qquad\mathbb{E}[\|C_k-x^*\|^2]>\frac{\tau}{4}\mathbb{E}[V_k]. \tag*{(43)} E [ V k ] ≤ ε or E [ ∥ C k − x ∗ ∥ 2 ] > 4 τ E [ V k ] . (43)
For every k < k 0 k<k_0 k < k 0 we have E [ ∥ C k − x ∗ ∥ 2 ] ≤ τ 4 E [ V k ] \mathbb{E}[\|C_k-x^*\|^2]\leq\frac{\tau}{4}\mathbb{E}[V_k] E [ ∥ C k − x ∗ ∥ 2 ] ≤ 4 τ E [ V k ] , and therefore, by Lemma 2.10, Lemma 2.13 and ϑ ≤ ϱ \vartheta\leq\varrho ϑ ≤ ϱ ,
E [ V k + 1 ] ≤ ( 1 − λ ) E [ V k ] + 4 λ E [ ∥ C k − x ∗ ∥ 2 ] + λ Λ Z ϱ 2 k + σ 2 D X N ϱ 2 k ≤ ( 1 − λ ( 1 − τ ) ) E [ V k ] + ( σ 2 D X N + λ Λ Z ) ϱ 2 k . \begin{aligned}
\mathbb{E}[V_{k+1}]\leq(1-\lambda)\mathbb{E}[V_k]+4\lambda\mathbb{E}[\|C_k-x^*\|^2]+\lambda\Lambda_Z\varrho^{2k}+\frac{\sigma^2D_{\mathcal{X}}}{N}\varrho^{2k} \\
&\leq(1-\lambda(1-\tau))\mathbb{E}[V_k]+\left(\frac{\sigma^2D_{\mathcal{X}}}{N}+\lambda\Lambda_Z\right)\varrho^{2k}.
\end{aligned} E [ V k + 1 ] ≤ ( 1 − λ ) E [ V k ] + 4 λ E [ ∥ C k − x ∗ ∥ 2 ] + λ Λ Z ϱ 2 k + N σ 2 D X ϱ 2 k ≤ ( 1 − λ ( 1 − τ )) E [ V k ] + ( N σ 2 D X + λ Λ Z ) ϱ 2 k .
Applying this inequality recursively we get, for every k ≤ k 0 k\leq k_0 k ≤ k 0
E [ V k ] ≤ ( 1 − λ ( 1 − τ ) ) k E [ V 0 ] + ( σ 2 D X N + λ Λ Z ) ∑ t = 0 k − 1 ( 1 − λ ( 1 − τ ) ) k − 1 − t ϱ 2 t = ( 1 − λ ( 1 − τ ) ) k E [ V 0 ] + ( σ 2 D X N + λ Λ Z ) ( 1 − λ ( 1 − τ ) ) k − ϱ 2 k ( 1 − λ ( 1 − τ ) ) − ϱ 2 ≤ Λ V μ k . (44) \begin{aligned}
\mathbb{E}[V_k]\leq(1-\lambda(1-\tau))^k\mathbb{E}[V_0]+\left(\frac{\sigma^2D_{\mathcal{X}}}{N}+\lambda\Lambda_Z\right)\sum_{t=0}^{k-1}(1-\lambda(1-\tau))^{k-1-t}\varrho^{2t} \\
&=(1-\lambda(1-\tau))^k\mathbb{E}[V_0]+\left(\frac{\sigma^2D_{\mathcal{X}}}{N}+\lambda\Lambda_Z\right)\frac{(1-\lambda(1-\tau))^k-\varrho^{2k}}{(1-\lambda(1-\tau))-\varrho^2}\leq\Lambda_V\mu^k. \tag*{(44)}
\end{aligned} E [ V k ] ≤ ( 1 − λ ( 1 − τ ) ) k E [ V 0 ] + ( N σ 2 D X + λ Λ Z ) t = 0 ∑ k − 1 ( 1 − λ ( 1 − τ ) ) k − 1 − t ϱ 2 t = ( 1 − λ ( 1 − τ ) ) k E [ V 0 ] + ( N σ 2 D X + λ Λ Z ) ( 1 − λ ( 1 − τ )) − ϱ 2 ( 1 − λ ( 1 − τ ) ) k − ϱ 2 k ≤ Λ V μ k . (44)
If k ∗ ≤ k 0 k^*\leq k_0 k ∗ ≤ k 0 , by (44) and the definition of k ∗ k^* k ∗ it holds E [ V k ∗ ] ≤ Λ V μ k ∗ ≤ ε \mathbb{E}[V_{k^*}]\leq\Lambda_V\mu^{k^*}\leq\varepsilon E [ V k ∗ ] ≤ Λ V μ k ∗ ≤ ε , therefore we have the thesis and k ˉ = k ∗ \bar{k}=k^* k ˉ = k ∗ . If k ∗ > k 0 k^*>k_0 k ∗ > k 0 and E [ V k 0 ] ≤ ε \mathbb{E}[V_{k_0}]\leq\varepsilon E [ V k 0 ] ≤ ε , we also have the thesis and k ˉ = k 0 \bar{k}=k_0 k ˉ = k 0 . We prove that the remaining case, namely E [ V k 0 ] > ε \mathbb{E}[V_{k_0}]>\varepsilon E [ V k 0 ] > ε and E [ ∥ C k 0 − x ∗ ∥ 2 ] > τ 4 E [ V k 0 ] \mathbb{E}[\lVert C_{k_0}-x^*\rVert^2]>\frac{\tau}{4}\mathbb{E}[V_{k_0}] E [∥ C k 0 − x ∗ ∥ 2 ] > 4 τ E [ V k 0 ] cannot happen, provided that α \alpha α fulfills (42) and that (41) holds.
By the law of total expectation we have
E [ ∥ C k 0 − x ∗ ∥ 2 ] = E [ ∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ > 0 ] P ( ∣ I k 0 , r ε ∣ > 0 ) + E [ ∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ = 0 ] P ( ∣ I k 0 , r ε ∣ = 0 ) . (45) \mathbb{E}[\lVert C_{k_0}-x^*\rVert^2]=\mathbb{E}[\lVert C_{k_0}-x^*\rVert^2\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert>0]\mathbb{P}(\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert>0)+\mathbb{E}[\lVert C_{k_0}-x^*\rVert^2\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0]\mathbb{P}(\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0). \tag*{(45)} E [∥ C k 0 − x ∗ ∥ 2 ] = E [∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ > 0 ] P (∣ I k 0 , r ε ∣ > 0 ) + E [∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ = 0 ] P (∣ I k 0 , r ε ∣ = 0 ) . (45)
We now bound the two terms on the RHS.
Let us consider the first term. Applying part ( i ) (i) ( i ) of Lemma 2.11, with q = q ε q=q_\varepsilon q = q ε and r = r ε r=r_\varepsilon r = r ε , and using
1 β ( q ε + f r ε ) ν ≤ 1 β ( 2 q ε ) ν ≤ 1 2 ( τ ε 4 ) 1 / 2 < τ 4 E [ V k 0 ] 1 / 2 , \frac{1}{\beta}(q_\varepsilon+fr_\varepsilon)^\nu\leq\frac{1}{\beta}(2q_\varepsilon)^\nu\leq\frac{1}{2}\left(\frac{\tau\varepsilon}{4}\right)^{1/2}<\frac{\sqrt{\tau}}{4}\mathbb{E}[V_{k_0}]^{1/2}, β 1 ( q ε + f r ε ) ν ≤ β 1 ( 2 q ε ) ν ≤ 2 1 ( 4 τ ε ) 1/2 < 4 τ E [ V k 0 ] 1/2 ,
we have that, if ∣ I k 0 , r ε ∣ > 0 \lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert>0 ∣ I k 0 , r ε ∣ > 0 , then
∥ C k 0 − x ∗ ∥ 2 ≤ ( τ 4 E [ V k 0 ] 1 / 2 + N M e − α q ε V k 0 1 / 2 ) 2 = τ 16 E [ V k 0 ] + τ 2 N M e − α q ε E [ V k 0 ] 1 / 2 V k 0 1 / 2 + N 2 M 2 e − 2 α q ε V k 0 . \begin{aligned}
\lVert C_{k_0}-x^*\rVert^2\leq\left(\frac{\sqrt{\tau}}{4}\mathbb{E}[V_{k_0}]^{1/2}+NMe^{-\alpha q_\varepsilon}V_{k_0}^{1/2}\right)^2 \\
&=\frac{\tau}{16}\mathbb{E}[V_{k_0}]+\frac{\sqrt{\tau}}{2}NMe^{-\alpha q_\varepsilon}\mathbb{E}[V_{k_0}]^{1/2}V_{k_0}^{1/2}+N^2M^2e^{-2\alpha q_\varepsilon}V_{k_0}.
\end{aligned} ∥ C k 0 − x ∗ ∥ 2 ≤ ( 4 τ E [ V k 0 ] 1/2 + N M e − α q ε V k 0 1/2 ) 2 = 16 τ E [ V k 0 ] + 2 τ N M e − α q ε E [ V k 0 ] 1/2 V k 0 1/2 + N 2 M 2 e − 2 α q ε V k 0 .
Taking the conditional expectation this yields
E [ ∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ > 0 ] ≤ τ 16 E [ V k 0 ] + τ 2 N M e − α q ε E [ V k 0 ] 1 / 2 E [ V k 0 ∣ ∣ I k 0 , r ε ∣ > 0 ] 1 / 2 + N 2 M 2 e − 2 α q ε E [ V k 0 ∣ ∣ I k 0 , r ε ∣ > 0 ] , \begin{aligned}
\mathbb{E}[\lVert C_{k_0}-x^*\rVert^2\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert>0]\leq\frac{\tau}{16}\mathbb{E}[V_{k_0}]+\frac{\sqrt{\tau}}{2}NMe^{-\alpha q_\varepsilon}\mathbb{E}[V_{k_0}]^{1/2}\mathbb{E}[V_{k_0}\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert>0]^{1/2} \\
&+N^2M^2e^{-2\alpha q_\varepsilon}\mathbb{E}[V_{k_0}\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert>0],
\end{aligned} E [∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ > 0 ] ≤ 16 τ E [ V k 0 ] + 2 τ N M e − α q ε E [ V k 0 ] 1/2 E [ V k 0 ∣ ∣ I k 0 , r ε ∣ > 0 ] 1/2 + N 2 M 2 e − 2 α q ε E [ V k 0 ∣ ∣ I k 0 , r ε ∣ > 0 ] ,
and therefore, by the assumption on α \alpha α , and the fact that for any non-negative random variable y y y and any event S S S it holds
E [ y ∣ S ] P ( S ) ≤ E [ y ] , (46) \mathbb{E}[y\mid S]\mathbb{P}(S)\leq\mathbb{E}[y], \tag*{(46)} E [ y ∣ S ] P ( S ) ≤ E [ y ] , (46)
we have
E [ ∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ > 0 ] P ( ∣ I k 0 , r ε ∣ > 0 ) ≤ ( τ 16 + τ 2 N M e − α q ε + N 2 M 2 e − 2 α q ε ) E [ V k 0 ] ≤ τ 8 E [ V k 0 ] . (47) \mathbb{E}[\lVert C_{k_0}-x^*\rVert^2\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert>0]\mathbb{P}(\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert>0)\leq\left(\frac{\tau}{16}+\frac{\sqrt{\tau}}{2}NMe^{-\alpha q_\varepsilon}+N^2M^2e^{-2\alpha q_\varepsilon}\right)\mathbb{E}[V_{k_0}]\leq\frac{\tau}{8}\mathbb{E}[V_{k_0}]. \tag*{(47)} E [∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ > 0 ] P (∣ I k 0 , r ε ∣ > 0 ) ≤ ( 16 τ + 2 τ N M e − α q ε + N 2 M 2 e − 2 α q ε ) E [ V k 0 ] ≤ 8 τ E [ V k 0 ] . (47)
By part ( i i ) (ii) ( ii ) of Lemma 2.11, Jensen’s inequality, the assumption on δ k \delta_k δ k , and (46) we have
E [ ∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ = 0 ] P ( ∣ I k 0 , r ε ∣ = 0 ) ≤ N M E [ V k 0 ∣ ∣ I k 0 , r ε ∣ = 0 ] P ( ∣ I k 0 , r ε ∣ = 0 ) ≤ N M E [ V k 0 2 ∣ ∣ I k 0 , r ε ∣ = 0 ] 1 / 2 P ( ∣ I k 0 , r ε ∣ = 0 ) = N M ( E [ V k 0 2 ∣ ∣ I k 0 , r ε ∣ = 0 ] P ( ∣ I k 0 , r ε ∣ = 0 ) ) 1 / 2 P ( ∣ I k 0 , r ε ∣ = 0 ) 1 / 2 ≤ N M E [ V k 0 2 ] 1 / 2 δ k 0 1 / 2 ≤ τ 8 E [ V k 0 ] . (48) \begin{aligned}
\mathbb{E}[\lVert C_{k_0}-x^*\rVert^2\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0]\mathbb{P}(\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0)\leq NM\mathbb{E}[V_{k_0}\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0]\mathbb{P}(\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0) \\
&\leq NM\mathbb{E}[V_{k_0}^2\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0]^{1/2}\mathbb{P}(\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0) \\
&=NM\left(\mathbb{E}[V_{k_0}^2\mid\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0]\mathbb{P}(\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0)\right)^{1/2}\mathbb{P}(\lvert\mathcal{I}_{k_0,r_\varepsilon}\rvert=0)^{1/2} \\
&\leq NM\mathbb{E}[V_{k_0}^2]^{1/2}\delta_{k_0}^{1/2}\leq\frac{\tau}{8}\mathbb{E}[V_{k_0}]. \tag*{(48)}
\end{aligned} E [∥ C k 0 − x ∗ ∥ 2 ∣ ∣ I k 0 , r ε ∣ = 0 ] P (∣ I k 0 , r ε ∣ = 0 ) ≤ N M E [ V k 0 ∣ ∣ I k 0 , r ε ∣ = 0 ] P (∣ I k 0 , r ε ∣ = 0 ) ≤ N M E [ V k 0 2 ∣ ∣ I k 0 , r ε ∣ = 0 ] 1/2 P (∣ I k 0 , r ε ∣ = 0 ) = N M ( E [ V k 0 2 ∣ ∣ I k 0 , r ε ∣ = 0 ] P (∣ I k 0 , r ε ∣ = 0 ) ) 1/2 P (∣ I k 0 , r ε ∣ = 0 ) 1/2 ≤ N M E [ V k 0 2 ] 1/2 δ k 0 1/2 ≤ 8 τ E [ V k 0 ] . (48)
Using (47) and (48) in (45) we get E [ ∥ C k 0 − x ∗ ∥ 2 ] ≤ τ 4 E [ V k 0 ] \mathbb{E}[\lVert C_{k_0}-x^*\rVert^2]\leq\frac{\tau}{4}\mathbb{E}[V_{k_0}] E [∥ C k 0 − x ∗ ∥ 2 ] ≤ 4 τ E [ V k 0 ] , which gives a contradiction, and the proof is complete.
On assumption (41)
Assumption (41) is fundamental in order to apply the quantitative Laplace principle (Lemma 2.11) to ensure C k ≈ x ∗ C_k\approx x^* C k ≈ x ∗ . Yet, assumption (41) can appear quite strong, as it requires that there is a high probability that a particle hits a neighborhood of the global minimizer in finite time. When this happens, it is no longer surprising that, by the consensus drift, the entire population will also converge to the same neighborhood. While Theorem 2.14 does not guarantee such a hitting time with high probability, it shows anyway that the dynamics is contractive, namely that E [ V k ] ≤ Λ V μ k \mathbb{E}[V_k]\leq\Lambda_V\mu^k E [ V k ] ≤ Λ V μ k holds for every k = 0 , … , k ˉ k=0,\ldots,\bar{k} k = 0 , … , k ˉ . In what follows, we would like to provide a justification of Assumption (41) , at least for a simplified model. As Assumption (41) is needed in order to apply the quantitative Laplace principle, the latter can no longer be used to ensure C k ≈ x ∗ C_k \approx x^* C k ≈ x ∗ . Hence, we argue by geometrical considerations that if x ∗ x^* x ∗ is in the convex hull of the particles, the function f f f is sufficiently smooth, and α \alpha α is not too large, then C k ≈ x ∗ C_k \approx x^* C k ≈ x ∗ is a legitimate assumption, even without invoking the Laplace principle or requiring that any particle actually lies in the vicinity of x ∗ x^* x ∗ . Accordingly, in the following, we will consider the simplified model for which C ~ k i = C k : = x ∗ \widetilde{C}_k^i = C_k := x^* C k i = C k := x ∗ . With this (admittedly strong) assumption, the model reduces to a totally decoupled dynamics of multiple independent particles, no matter what their graph connectivity W W W is. Now, we prove that (41) holds for this simplified model.
More formally, let us consider the decoupled dynamics
X k + 1 ℓ = X k ℓ − λ ( X k ℓ − x ∗ ) + σ ∑ s = 1 d ( x k , s ℓ − x s ∗ ) ξ k , s ℓ e s , (49) X_{k+1}^{\ell}=X_k^{\ell}-\lambda(X_k^{\ell}-x^*)+\sigma\sum_{s=1}^{d}(\mathsf{x}_{k,s}^{\ell}-x_s^*)\xi_{k,s}^{\ell}e_s, \tag*{(49)} X k + 1 ℓ = X k ℓ − λ ( X k ℓ − x ∗ ) + σ s = 1 ∑ d ( x k , s ℓ − x s ∗ ) ξ k , s ℓ e s , (49)
where ( X 0 ℓ ) ℓ = 1 N M (X_0^{\ell})_{\ell=1}^{NM} ( X 0 ℓ ) ℓ = 1 N M are i.i.d. random variables with law ρ 0 \rho_0 ρ 0 , and for every s = 1 : d s=1:d s = 1 : d , ℓ = 1 : N M \ell=1:NM ℓ = 1 : N M , k ∈ N k\in\mathbb{N} k ∈ N the random variables ξ k , s ℓ \xi_{k,s}^{\ell} ξ k , s ℓ are independent and normally distributed.
Lemma 2.16. Let us assume ( X k ℓ ) (X_k^{\ell}) ( X k ℓ ) satisfies (49) with λ ∈ ( 0 , 1 ) \lambda\in(0,1) λ ∈ ( 0 , 1 ) , σ > 0 \sigma>0 σ > 0 such that ϑ < 1 \vartheta<1 ϑ < 1 . Then the following hold.
(i) For every s = 1 : d s=1:d s = 1 : d , ℓ = 1 : N M \ell=1:NM ℓ = 1 : N M , k ∈ N k\in\mathbb{N} k ∈ N
( x k , s ℓ − x s ∗ ) = ( x 0 , s ℓ − x s ∗ ) ∏ t = 0 k − 1 ( 1 − λ + σ ξ t , s ℓ ) . (x_{k,s}^{\ell}-x_s^*)=(x_{0,s}^{\ell}-x_s^*)\prod_{t=0}^{k-1}(1-\lambda+\sigma\xi_{t,s}^{\ell}). ( x k , s ℓ − x s ∗ ) = ( x 0 , s ℓ − x s ∗ ) t = 0 ∏ k − 1 ( 1 − λ + σ ξ t , s ℓ ) . (ii) For every k ∈ N k\in\mathbb{N} k ∈ N the random variables ( X k ℓ ) ℓ = 1 N M (X_k^{\ell})_{\ell=1}^{NM} ( X k ℓ ) ℓ = 1 N M are i.i.d. Moreover, for every s = 1 : d s=1:d s = 1 : d , k ∈ N k\in\mathbb{N} k ∈ N the random variables ( x k , s ℓ − x s ∗ ) ℓ = 1 N M (x_{k,s}^{\ell}-x_s^*)_{\ell=1}^{NM} ( x k , s ℓ − x s ∗ ) ℓ = 1 N M are i.i.d.
(iii) For every k ∈ N k\in\mathbb{N} k ∈ N and every r > 0 r>0 r > 0
P ( ∣ I k , r ∣ = 0 ) = ( 1 − P ( ∥ X k 1 − x ∗ ∥ ≤ r ) ) N M . \mathbb{P}(|I_{k,r}|=0)=\left(1-\mathbb{P}(\lVert X_k^1-x^*\rVert\le r)\right)^{NM}. P ( ∣ I k , r ∣ = 0 ) = ( 1 − P (∥ X k 1 − x ∗ ∥ ≤ r ) ) N M . (iv) For every k ∈ N k\in\mathbb{N} k ∈ N and every $r>0
P ( ∥ X k 1 − x ∗ ∥ ≤ r ) ≥ P ( ∥ X 0 1 − x ∗ ∥ ≤ r ) max { η k , 1 − ( ( 1 − λ ) 2 + σ 2 ) k } d \mathbb{P}(\lVert X_k^1-x^*\rVert\le r)\ge\mathbb{P}(\lVert X_0^1-x^*\rVert\le r)\max\left\{\eta^k,1-\left((1-\lambda)^2+\sigma^2\right)^k\right\}^{d} P (∥ X k 1 − x ∗ ∥ ≤ r ) ≥ P (∥ X 0 1 − x ∗ ∥ ≤ r ) max { η k , 1 − ( ( 1 − λ ) 2 + σ 2 ) k } d ≥ P ( ∥ X 0 1 − x ∗ ∥ ≤ r ) min { 1 2 , η T } d = : p , \ge\mathbb{P}(\lVert X_0^1-x^*\rVert\le r)\min\left\{\frac{1}{2},\eta^T\right\}^{d}=:p, ≥ P (∥ X 0 1 − x ∗ ∥ ≤ r ) min { 2 1 , η T } d =: p , with η = 1 − 2 σ π λ e − λ 2 2 σ 2 \eta=1-\frac{\sqrt{2}\sigma}{\sqrt{\pi}\lambda}e^{-\frac{\lambda^2}{2\sigma^2}} η = 1 − π λ 2 σ e − 2 σ 2 λ 2 , and T = log ( 2 ) ∣ log ( ( 1 − λ ) 2 + σ 2 ) ∣ T=\frac{\log(2)}{|\log((1-\lambda)^2+\sigma^2)|} T = ∣ l o g (( 1 − λ ) 2 + σ 2 ) ∣ l o g ( 2 ) .
Proof. By (49) we have that for every s = 1 : d s=1:d s = 1 : d , ℓ = 1 : N M \ell=1:NM ℓ = 1 : N M , k ∈ N k\in\mathbb{N} k ∈ N
( x k , s ℓ − x s ∗ ) = ( 1 − λ + σ ξ k − 1 , s ℓ ) ( x k − 1 , s ℓ − x s ∗ ) . (x_{k,s}^{\ell}-x_s^*)=(1-\lambda+\sigma\xi_{k-1,s}^{\ell})(x_{k-1,s}^{\ell}-x_s^*). ( x k , s ℓ − x s ∗ ) = ( 1 − λ + σ ξ k − 1 , s ℓ ) ( x k − 1 , s ℓ − x s ∗ ) .
Recursively applying this identity, we get (i). Part (ii) of the statement follows directly from (i) and the fact that the random variables ξ t , s ℓ \xi_{t,s}^{\ell} ξ t , s ℓ are i.i.d. and independent of ( X 0 ℓ ) ℓ = 1 N M (X_0^{\ell})_{\ell=1}^{NM} ( X 0 ℓ ) ℓ = 1 N M , for every ℓ \ell ℓ , t t t and s s s . By definition of I k , r I_{k,r} I k , r , using the fact that ( X k ℓ ) ℓ = 1 N M (X_k^{\ell})_{\ell=1}^{NM} ( X k ℓ ) ℓ = 1 N M are i.i.d. we have
P ( ∣ I k , r ∣ = 0 ) = P ( ∥ X k ℓ − x ∗ ∥ > r ∀ ℓ = 1 : N M ) = ∏ ℓ = 1 N M P ( ∥ X k ℓ − x ∗ ∥ > r ) = P ( ∥ X k 1 − x ∗ ∥ > r ) N M = ( 1 − P ( ∥ X k 1 − x ∗ ∥ ≤ r ) ) N M , \begin{aligned}
\mathbb{P}(|I_{k,r}|=0)=\mathbb{P}(\lVert X_k^{\ell}-x^*\rVert>r\ \forall\ \ell=1:NM)=\prod_{\ell=1}^{NM}\mathbb{P}(\lVert X_k^{\ell}-x^*\rVert>r) \\
&=\mathbb{P}(\lVert X_k^1-x^*\rVert>r)^{NM}=\left(1-\mathbb{P}(\lVert X_k^1-x^*\rVert\le r)\right)^{NM},
\end{aligned} P ( ∣ I k , r ∣ = 0 ) = P (∥ X k ℓ − x ∗ ∥ > r ∀ ℓ = 1 : N M ) = ℓ = 1 ∏ N M P (∥ X k ℓ − x ∗ ∥ > r ) = P (∥ X k 1 − x ∗ ∥ > r ) N M = ( 1 − P (∥ X k 1 − x ∗ ∥ ≤ r ) ) N M ,
which is (iii). We now prove part (iv) of the statement. Let us denote by S k S_k S k the event
S k = { ∥ X 0 1 − x ∗ ∥ ≤ r } ∩ { ∏ t = 0 k − 1 ∣ 1 − λ + σ ξ t , s 1 ∣ ≤ 1 ∀ s = 1 : d } . S_k=\{\lVert X_0^1-x^*\rVert\le r\}\cap\left\{\prod_{t=0}^{k-1}|1-\lambda+\sigma\xi_{t,s}^1|\le1\ \forall\ s=1:d\right\}. S k = {∥ X 0 1 − x ∗ ∥ ≤ r } ∩ { t = 0 ∏ k − 1 ∣1 − λ + σ ξ t , s 1 ∣ ≤ 1 ∀ s = 1 : d } .
If S k S_k S k is true, by part ( i ) (i) ( i ) and the definition of S k S_k S k , we have
∥ X k 1 − x ∗ ∥ 2 = ∑ s = 1 d ∣ x k , s 1 − x s ∗ ∣ 2 = ∑ s = 1 d ∣ x 0 , s 1 − x s ∗ ∣ 2 ∏ t = 0 k − 1 ∣ 1 − λ + σ ξ t , s 1 ∣ 2 ≤ ∑ s = 1 d ∣ x 0 , s 1 − x s ∗ ∣ 2 ≤ r 2 . \begin{aligned}
\lVert X_k^1-x^*\rVert^2=\sum_{s=1}^{d}|x_{k,s}^1-x_s^*|^2=\sum_{s=1}^{d}|x_{0,s}^1-x_s^*|^2\prod_{t=0}^{k-1}|1-\lambda+\sigma\xi_{t,s}^1|^2 \\
&\le\sum_{s=1}^{d}|x_{0,s}^1-x_s^*|^2\le r^2.
\end{aligned} ∥ X k 1 − x ∗ ∥ 2 = s = 1 ∑ d ∣ x k , s 1 − x s ∗ ∣ 2 = s = 1 ∑ d ∣ x 0 , s 1 − x s ∗ ∣ 2 t = 0 ∏ k − 1 ∣1 − λ + σ ξ t , s 1 ∣ 2 ≤ s = 1 ∑ d ∣ x 0 , s 1 − x s ∗ ∣ 2 ≤ r 2 .
This, together with the fact that ξ t , s 1 \xi_{t,s}^1 ξ t , s 1 are i.i.d., implies
P ( ∥ X k 1 − x ∗ ∥ ≤ r ) ≥ P ( S k ) = P ( ∥ X 0 1 − x ∗ ∥ ≤ r ) q k d (50) \mathbb{P}(\lVert X_k^1-x^*\rVert\le r)\ge\mathbb{P}(S_k)=\mathbb{P}(\lVert X_0^1-x^*\rVert\le r)q_k^d \tag*{(50)} P (∥ X k 1 − x ∗ ∥ ≤ r ) ≥ P ( S k ) = P (∥ X 0 1 − x ∗ ∥ ≤ r ) q k d (50)
with q k = P ( ∏ t = 0 k − 1 ∣ 1 − λ + σ ξ t , s 1 ∣ ≤ 1 ) q_k=\mathbb{P}\left(\prod_{t=0}^{k-1}|1-\lambda+\sigma\xi_{t,s}^1|\le1\right) q k = P ( ∏ t = 0 k − 1 ∣1 − λ + σ ξ t , s 1 ∣ ≤ 1 ) . We now bound q k q_k q k . On the one hand since the variables ξ \xi ξ are independent and normally distributed, we have
q k ≥ P ( ∣ 1 − λ + σ ξ t , s 1 ∣ ≤ 1 ∀ t = 0 : k − 1 ) = P ( ∣ 1 − λ + σ ξ 0 , s 1 ∣ ≤ 1 ) k = P ( − 2 − λ σ ≤ ξ 0 , s 1 ≤ λ σ ) k ≥ P ( ∣ ξ 0 , s 1 ∣ ≤ λ σ ) k = ( 1 − P ( ∣ ξ 0 , s 1 ∣ > λ σ ) ) k ≥ ( 1 − 2 σ π λ e − λ 2 2 σ 2 ) k = η k . (51) \begin{aligned}
q_k\ge\mathbb{P}\left(|1-\lambda+\sigma\xi_{t,s}^1|\le1\ \forall t=0:k-1\right)=\mathbb{P}\left(|1-\lambda+\sigma\xi_{0,s}^1|\le1\right)^k \\
&=\mathbb{P}\left(-\frac{2-\lambda}{\sigma}\le\xi_{0,s}^1\le\frac{\lambda}{\sigma}\right)^k\ge\mathbb{P}\left(|\xi_{0,s}^1|\le\frac{\lambda}{\sigma}\right)^k \\
&=\left(1-\mathbb{P}\left(\left|\xi_{0,s}^1\right|>\frac{\lambda}{\sigma}\right)\right)^k\ge\left(1-\frac{\sqrt{2}\sigma}{\sqrt{\pi}\lambda}e^{-\frac{\lambda^2}{2\sigma^2}}\right)^k=\eta^k. \tag*{(51)}
\end{aligned} q k ≥ P ( ∣1 − λ + σ ξ t , s 1 ∣ ≤ 1 ∀ t = 0 : k − 1 ) = P ( ∣1 − λ + σ ξ 0 , s 1 ∣ ≤ 1 ) k = P ( − σ 2 − λ ≤ ξ 0 , s 1 ≤ σ λ ) k ≥ P ( ∣ ξ 0 , s 1 ∣ ≤ σ λ ) k = ( 1 − P ( ξ 0 , s 1 > σ λ ) ) k ≥ ( 1 − π λ 2 σ e − 2 σ 2 λ 2 ) k = η k . (51)
On the other hand, by the Markov inequality and again the fact that the variables ξ \xi ξ are i.i.d., we have
1 − q k = P ( ∏ t = 0 k − 1 ∣ 1 − λ + σ ξ t , s 1 ∣ 2 > 1 ) ≤ E [ ∏ t = 0 k − 1 ( 1 − λ + σ ξ t , s 1 ) 2 ] = E [ ( 1 − λ + σ ξ 0 , s 1 ) 2 ] k = ( ( 1 − λ ) 2 + σ 2 ) k . (52) \begin{aligned}
1-q_k=\mathbb{P}\left(\prod_{t=0}^{k-1}|1-\lambda+\sigma\xi_{t,s}^1|^2>1\right)\le\mathbb{E}\left[\prod_{t=0}^{k-1}(1-\lambda+\sigma\xi_{t,s}^1)^2\right] \\
&=\mathbb{E}\left[(1-\lambda+\sigma\xi_{0,s}^1)^2\right]^k=((1-\lambda)^2+\sigma^2)^k. \tag*{(52)}
\end{aligned} 1 − q k = P ( t = 0 ∏ k − 1 ∣1 − λ + σ ξ t , s 1 ∣ 2 > 1 ) ≤ E [ t = 0 ∏ k − 1 ( 1 − λ + σ ξ t , s 1 ) 2 ] = E [ ( 1 − λ + σ ξ 0 , s 1 ) 2 ] k = (( 1 − λ ) 2 + σ 2 ) k . (52)
Putting together (51) and (52) we have
q k ≥ max { η k , 1 − ( ( 1 − λ ) 2 + σ 2 ) k } (53) q_k\ge\max\left\{\eta^k,\ 1-\left((1-\lambda)^2+\sigma^2\right)^k\right\} \tag*{(53)} q k ≥ max { η k , 1 − ( ( 1 − λ ) 2 + σ 2 ) k } (53)
which, together with (50) gives the first inequality in part ( i v ) (iv) ( i v ) . To conclude the proof, it is enough to notice that if k ≥ T k\ge T k ≥ T then by (53) q k ≥ 1 − ( ( 1 − λ ) 2 + σ 2 ) k ≥ 1 2 q_k\ge1-((1-\lambda)^2+\sigma^2)^k\ge\frac{1}{2} q k ≥ 1 − (( 1 − λ ) 2 + σ 2 ) k ≥ 2 1 , while if k < T k<T k < T then q k ≥ η T q_k\ge\eta^T q k ≥ η T . □ \square □
Lemma 2.17. Let us assume ( X k ℓ ) (X_k^\ell) ( X k ℓ ) satisfies (49) . Then for every k ∈ N k\in\mathbb{N} k ∈ N
E [ V k ] 2 E [ V k 2 ] ≥ ( ( ( 1 − λ ) 2 + σ 2 ) 2 ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 ) k E [ ∥ X 0 1 − x ∗ ∥ 2 ] 2 E [ ∥ X 0 1 − x ∗ ∥ 4 ] . \frac{\mathbb{E}[V_k]^2}{\mathbb{E}[V_k^2]}\ge\left(\frac{((1-\lambda)^2+\sigma^2)^2}{(1-\lambda)^4+6(1-\lambda)^2\sigma^2+3\sigma^4}\right)^k\frac{\mathbb{E}[\lVert X_0^1-x^*\rVert^2]^2}{\mathbb{E}[\lVert X_0^1-x^*\rVert^4]}. E [ V k 2 ] E [ V k ] 2 ≥ ( ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 (( 1 − λ ) 2 + σ 2 ) 2 ) k E [∥ X 0 1 − x ∗ ∥ 4 ] E [∥ X 0 1 − x ∗ ∥ 2 ] 2 .
Proof. By definition of V k V_k V k and part ( i i ) (ii) ( ii ) of Lemma 2.16, we have
E [ V k ] = 1 N M ∑ ℓ = 1 N M E [ ∥ X k ℓ − x ∗ ∥ 2 ] = E [ ∥ X k 1 − x ∗ ∥ 2 ] , \mathbb{E}[V_k]=\frac{1}{NM}\sum_{\ell=1}^{NM}\mathbb{E}\left[\lVert X_k^\ell-x^*\rVert^2\right]=\mathbb{E}\left[\lVert X_k^1-x^*\rVert^2\right], E [ V k ] = N M 1 ℓ = 1 ∑ N M E [ ∥ X k ℓ − x ∗ ∥ 2 ] = E [ ∥ X k 1 − x ∗ ∥ 2 ] ,
and
E [ V k 2 ] = 1 ( N M ) 2 E [ ( ∑ ℓ = 1 N M ∥ X k ℓ − x ∗ ∥ 2 ) 2 ] = 1 ( N M ) 2 E [ ∑ ℓ = 1 N M ∥ X k ℓ − x ∗ ∥ 4 + ∑ ℓ = 1 N M ∑ m ≠ ℓ ∥ X k ℓ − x ∗ ∥ 2 ∥ X k m − x ∗ ∥ 2 ] = 1 N M E [ ∥ X k 1 − x ∗ ∥ 4 ] + N M − 1 N M E [ ∥ X k 1 − x ∗ ∥ 2 ] 2 . \begin{aligned}
\mathbb{E}[V_k^2]=\frac{1}{(NM)^2}\mathbb{E}\left[\left(\sum_{\ell=1}^{NM}\lVert X_k^\ell-x^*\rVert^2\right)^2\right] \\
&=\frac{1}{(NM)^2}\mathbb{E}\left[\sum_{\ell=1}^{NM}\lVert X_k^\ell-x^*\rVert^4+\sum_{\ell=1}^{NM}\sum_{m\ne\ell}\lVert X_k^\ell-x^*\rVert^2\lVert X_k^m-x^*\rVert^2\right] \\
&=\frac{1}{NM}\mathbb{E}\left[\lVert X_k^1-x^*\rVert^4\right]+\frac{NM-1}{NM}\mathbb{E}\left[\lVert X_k^1-x^*\rVert^2\right]^2.
\end{aligned} E [ V k 2 ] = ( N M ) 2 1 E ( ℓ = 1 ∑ N M ∥ X k ℓ − x ∗ ∥ 2 ) 2 = ( N M ) 2 1 E ℓ = 1 ∑ N M ∥ X k ℓ − x ∗ ∥ 4 + ℓ = 1 ∑ N M m = ℓ ∑ ∥ X k ℓ − x ∗ ∥ 2 ∥ X k m − x ∗ ∥ 2 = N M 1 E [ ∥ X k 1 − x ∗ ∥ 4 ] + N M N M − 1 E [ ∥ X k 1 − x ∗ ∥ 2 ] 2 .
This, using the fact that E [ ∥ X k 1 − x ∗ ∥ 4 ] ≥ E [ ∥ X k 1 − x ∗ ∥ 2 ] 2 \mathbb{E}[\lVert X_k^1-x^*\rVert^4]\ge\mathbb{E}[\lVert X_k^1-x^*\rVert^2]^2 E [∥ X k 1 − x ∗ ∥ 4 ] ≥ E [∥ X k 1 − x ∗ ∥ 2 ] 2 , implies
E [ V k ] 2 E [ V k 2 ] = N M E [ ∥ X k 1 − x ∗ ∥ 4 ] E [ ∥ X k 1 − x ∗ ∥ 2 ] 2 − 1 + N M ≥ E [ ∥ X k 1 − x ∗ ∥ 2 ] 2 E [ ∥ X k 1 − x ∗ ∥ 4 ] . (54) \frac{\mathbb{E}[V_k]^2}{\mathbb{E}[V_k^2]}=\frac{NM}{\frac{\mathbb{E}[\lVert X_k^1-x^*\rVert^4]}{\mathbb{E}[\lVert X_k^1-x^*\rVert^2]^2}-1+NM}\ge\frac{\mathbb{E}[\lVert X_k^1-x^*\rVert^2]^2}{\mathbb{E}[\lVert X_k^1-x^*\rVert^4]}. \tag*{(54)} E [ V k 2 ] E [ V k ] 2 = E [∥ X k 1 − x ∗ ∥ 2 ] 2 E [∥ X k 1 − x ∗ ∥ 4 ] − 1 + N M N M ≥ E [∥ X k 1 − x ∗ ∥ 4 ] E [∥ X k 1 − x ∗ ∥ 2 ] 2 . (54)
We now bound the right hand side. Let us first notice that, since the variables ξ \xi ξ are independent and normally distributed, for every k ∈ N k\in\mathbb{N} k ∈ N and every s = 1 , … , d s=1,\ldots,d s = 1 , … , d we have
E [ ∏ t = 0 k − 1 ( 1 − λ + σ ξ t , s 1 ) 4 ] = ( ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 ) k , \mathbb{E}\left[\prod_{t=0}^{k-1}(1-\lambda+\sigma\xi_{t,s}^1)^4\right]=\left((1-\lambda)^4+6(1-\lambda)^2\sigma^2+3\sigma^4\right)^k, E [ t = 0 ∏ k − 1 ( 1 − λ + σ ξ t , s 1 ) 4 ] = ( ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 ) k ,
and for every k ∈ N k\in\mathbb{N} k ∈ N and every s , z = 1 , … , d s,z=1,\ldots,d s , z = 1 , … , d with s ≠ z s\ne z s = z
E [ ∏ t = 0 k − 1 ( 1 − λ + σ ξ t , s 1 ) 2 ∏ t = 0 k − 1 ( 1 − λ + σ ξ t , z 1 ) 2 ] = E [ ∏ t = 0 k − 1 ( 1 − λ + σ ξ t , s 1 ) 2 ] 2 = ( ( 1 − λ ) 2 + σ 2 ) 2 k ≤ ( ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 ) k . \begin{aligned}
\mathbb{E}\left[\prod_{t=0}^{k-1}(1-\lambda+\sigma\xi_{t,s}^1)^2\prod_{t=0}^{k-1}(1-\lambda+\sigma\xi_{t,z}^1)^2\right]
&=\mathbb{E}\left[\prod_{t=0}^{k-1}(1-\lambda+\sigma\xi_{t,s}^1)^2\right]^2\\
&=\left((1-\lambda)^2+\sigma^2\right)^{2k}\\
&\le\left((1-\lambda)^4+6(1-\lambda)^2\sigma^2+3\sigma^4\right)^k.
\end{aligned} E [ t = 0 ∏ k − 1 ( 1 − λ + σ ξ t , s 1 ) 2 t = 0 ∏ k − 1 ( 1 − λ + σ ξ t , z 1 ) 2 ] = E [ t = 0 ∏ k − 1 ( 1 − λ + σ ξ t , s 1 ) 2 ] 2 = ( ( 1 − λ ) 2 + σ 2 ) 2 k ≤ ( ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 ) k .
These, together with part (i) of Lemma 2.16 , imply
E [ ∥ X k 1 − x ∗ ∥ 4 ] = E [ ( ∑ s = 1 d ( x k , s 1 − x s ∗ ) 2 ) 2 ] = E [ ∑ s = 1 d ( x k , s 1 − x s ∗ ) 4 + ∑ s = 1 d ∑ z ≠ s ( x k , s 1 − x s ∗ ) 2 ( x k , z 1 − x z ∗ ) 2 ] = E [ ∑ s = 1 d ( x 0 , s 1 − x s ∗ ) 4 ∏ t = 0 k − 1 ( 1 − λ + σ ξ t , s 1 ) 4 ] + E [ ∑ s = 1 d ∑ z ≠ s ( x 0 , s 1 − x s ∗ ) 2 ( x 0 , z 1 − x z ∗ ) 2 ∏ t = 0 k − 1 ( 1 − λ + σ ξ t , s 1 ) 2 ∏ t = 0 k − 1 ( 1 − λ + σ ξ t , z 1 ) 2 ] ≤ ( ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 ) k E [ ∥ X 0 1 − x ∗ ∥ 4 ] . (55) \begin{aligned}
\mathbb{E}[\lVert X_k^1-x^*\rVert^4]
&=\mathbb{E}\left[\left(\sum_{s=1}^{d}(x_{k,s}^1-x_s^*)^2\right)^2\right]\\
&=\mathbb{E}\left[\sum_{s=1}^{d}(x_{k,s}^1-x_s^*)^4+\sum_{s=1}^{d}\sum_{z\ne s}(x_{k,s}^1-x_s^*)^2(x_{k,z}^1-x_z^*)^2\right]\\
&=\mathbb{E}\left[\sum_{s=1}^{d}(x_{0,s}^1-x_s^*)^4\prod_{t=0}^{k-1}(1-\lambda+\sigma\xi_{t,s}^1)^4\right]\\
&\quad+\mathbb{E}\left[\sum_{s=1}^{d}\sum_{z\ne s}(x_{0,s}^1-x_s^*)^2(x_{0,z}^1-x_z^*)^2\prod_{t=0}^{k-1}(1-\lambda+\sigma\xi_{t,s}^1)^2\prod_{t=0}^{k-1}(1-\lambda+\sigma\xi_{t,z}^1)^2\right]\\
&\le\left((1-\lambda)^4+6(1-\lambda)^2\sigma^2+3\sigma^4\right)^k\mathbb{E}[\lVert X_0^1-x^*\rVert^4]. \tag*{(55)}
\end{aligned} E [∥ X k 1 − x ∗ ∥ 4 ] = E ( s = 1 ∑ d ( x k , s 1 − x s ∗ ) 2 ) 2 = E s = 1 ∑ d ( x k , s 1 − x s ∗ ) 4 + s = 1 ∑ d z = s ∑ ( x k , s 1 − x s ∗ ) 2 ( x k , z 1 − x z ∗ ) 2 = E [ s = 1 ∑ d ( x 0 , s 1 − x s ∗ ) 4 t = 0 ∏ k − 1 ( 1 − λ + σ ξ t , s 1 ) 4 ] + E s = 1 ∑ d z = s ∑ ( x 0 , s 1 − x s ∗ ) 2 ( x 0 , z 1 − x z ∗ ) 2 t = 0 ∏ k − 1 ( 1 − λ + σ ξ t , s 1 ) 2 t = 0 ∏ k − 1 ( 1 − λ + σ ξ t , z 1 ) 2 ≤ ( ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 ) k E [∥ X 0 1 − x ∗ ∥ 4 ] . (55)
Analogously
E [ ∥ X k 1 − x ∗ ∥ 2 ] 2 = ( ( 1 − λ ) 2 + σ 2 ) 2 k E [ ∥ X 0 1 − x ∗ ∥ 2 ] 2 . (56) \mathbb{E}[\lVert X_k^1-x^*\rVert^2]^2=\left((1-\lambda)^2+\sigma^2\right)^{2k}\mathbb{E}[\lVert X_0^1-x^*\rVert^2]^2. \tag*{(56)} E [∥ X k 1 − x ∗ ∥ 2 ] 2 = ( ( 1 − λ ) 2 + σ 2 ) 2 k E [∥ X 0 1 − x ∗ ∥ 2 ] 2 . (56)
Using 55 and 56 in 54 we get the thesis.
By Lemma 2.16 , parts (iii) and (iv) we have that for every k ≤ k ∗ k\le k^* k ≤ k ∗ P ( ∣ I k , r ϵ ∣ = 0 ) ≤ ( 1 − p ) N M \mathbb{P}(\lvert\mathcal{I}_{k,r_\epsilon}\rvert=0)\le(1-p)^{NM} P (∣ I k , r ϵ ∣ = 0 ) ≤ ( 1 − p ) N M , while by Lemma 2.17, the right hand side of (41) satisfies
τ 2 64 N 2 M 2 E [ V k ] 2 E [ V k 2 ] ≥ τ 2 64 N 2 M 2 ( ( 1 − λ ) 2 + σ 2 ) 2 ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 ) k ∗ E [ ∥ X 0 1 − x ∗ ∥ 2 ] 2 E [ ∥ X 0 1 − x ∗ ∥ 4 ] = Δ N 2 M 2 . \frac{\tau^2}{64N^2M^2}\frac{\mathbb{E}[V_k]^2}{\mathbb{E}[V_k^2]}\ge\frac{\tau^2}{64N^2M^2}\left(\frac{(1-\lambda)^2+\sigma^2)^2}{(1-\lambda)^4+6(1-\lambda)^2\sigma^2+3\sigma^4}\right)^{k^*}\frac{\mathbb{E}[\lVert X_0^1-x^*\rVert^2]^2}{\mathbb{E}[\lVert X_0^1-x^*\rVert^4]}=\frac{\Delta}{N^2M^2}. 64 N 2 M 2 τ 2 E [ V k 2 ] E [ V k ] 2 ≥ 64 N 2 M 2 τ 2 ( ( 1 − λ ) 4 + 6 ( 1 − λ ) 2 σ 2 + 3 σ 4 ( 1 − λ ) 2 + σ 2 ) 2 ) k ∗ E [∥ X 0 1 − x ∗ ∥ 4 ] E [∥ X 0 1 − x ∗ ∥ 2 ] 2 = N 2 M 2 Δ .
By putting together these two inequalities and enforcing ( 1 − p ) N M ≤ Δ N 2 M 2 (1-p)^{NM}\le\frac{\Delta}{N^2M^2} ( 1 − p ) N M ≤ N 2 M 2 Δ we have that if
N M ≥ 2 ∣ log ( 1 − p ) ∣ log ( 16 Δ ∣ log ( 1 − p ) ∣ 2 ) (57) NM\ge\frac{2}{\lvert\log(1-p)\rvert}\log\left(\frac{16}{\Delta\lvert\log(1-p)\rvert^2}\right) \tag*{(57)} N M ≥ ∣ log ( 1 − p )∣ 2 log ( Δ ∣ log ( 1 − p ) ∣ 2 16 ) (57)
then inequality (41) holds for every k ≤ k ∗ k\le k^* k ≤ k ∗ .
Notice that the number of particles above depends on: the initial distribution of the particles (through the second and fourth moment of ∥ X 0 1 − x ∗ ∥ \lVert X_0^1-x^*\rVert ∥ X 0 1 − x ∗ ∥ in Δ \Delta Δ , and the term P ( ∥ X 0 1 − x ∗ ∥ ≤ r ) \mathbb{P}(\lVert X_0^1-x^*\rVert\le r) P (∥ X 0 1 − x ∗ ∥ ≤ r ) in p p p ); the parameters λ \lambda λ and σ \sigma σ ; the dimension d d d , through the term min { 1 2 , η T } d \min\left\{\frac{1}{2},\eta^T\right\}^d min { 2 1 , η T } d in p p p .
Numerical examples
In this section we test the performance of the proposed decentralized CBO algorithm on different benchmark problems. The code for the experiments is available at github.com/TimRoith/DecentralizedCBO and is based on the CBXPy package from [1 ] .
Notes on the implementation and heuristics
Algorithm 1 Decentralized Consensus-based optimization
Input: Initial ensemble X 0 X_0 X 0 , hyperparameters σ ≥ 0 \sigma\ge0 σ ≥ 0 , Δ t > 0 \Delta t > 0 Δ t > 0 , mixing matrix W W W
Initialize C ^ 0 i = ComputeConsensus ( X 0 M i , α 0 i ) \widehat{C}_0^i = \operatorname{ComputeConsensus}(X_0^{M_i}, \alpha_0^i) C 0 i = ComputeConsensus ( X 0 M i , α 0 i ) , Z 0 i = C ^ 0 i Z_0^i = \widehat{C}_0^i Z 0 i = C 0 i for i = 1 : N i = 1 : N i = 1 : N
while Not Terminate() do
for i = 1 : N i = 1 : N i = 1 : N do in parallel
X ~ k + 1 M i = X k M i − Δ t ( X k M i − Z k i ) + σ Noise ( X k M i − C ^ k i , Δ t ) \widetilde{X}_{k+1}^{M_i} = X_k^{M_i} - \Delta t(X_k^{M_i} - Z_k^i) + \sigma\operatorname{Noise}(X_k^{M_i} - \widehat{C}_k^i, \Delta t) X k + 1 M i = X k M i − Δ t ( X k M i − Z k i ) + σ Noise ( X k M i − C k i , Δ t )
PostStep()
C ^ k + 1 i = ComputeConsensus ( X k + 1 M i , α k i ) \widehat{C}_{k+1}^i = \operatorname{ComputeConsensus}(X_{k+1}^{M_i}, \alpha_k^i) C k + 1 i = ComputeConsensus ( X k + 1 M i , α k i )
for i = 1 : N i = 1 : N i = 1 : N do
Z k + 1 i = ∑ j ∈ N i W i j Z k j + ( C ^ k + 1 i − C ^ k i ) Z_{k+1}^i = \sum_{j \in\mathcal{N}_i} W_{ij} Z_k^j + (\widehat{C}_{k+1}^i - \widehat{C}_k^i) Z k + 1 i = ∑ j ∈ N i W ij Z k j + ( C k + 1 i − C k i )
We briefly describe the numerical implementation and specify, which heuristics are employed in the experiments. The pseudo-code for the proposed algorithm in (3) is presented in Algorithm 1. Therein the function Terminate() denotes a generic termination criterion, which we detail in the following sections. The function ComputeConsensus computes the consensus point as specified in (4) in a numerically stable way. In our case this is realized via the LogSumExp function, as in [7 Alg. 2] . Beyond that the role of the function PostStep and the sequence of parameters ( α k i ) (\alpha_k^i) ( α k i ) will be explained in § 3.1.1 . We slightly modify the notation in (3) to have the usual numerical interpretation as a time-discretized scheme. For this we set λ = Δ t \lambda= \Delta t λ = Δ t and multiply an additional factor Δ t \sqrt{\Delta t} Δ t to the noise part. Concretely, the function Noise in Algorithm 1 will be the anisotropic noise model from [11 ] , meaning that Noise ( z , Δ t ) = Δ t z ∘ ξ \operatorname{Noise}(z,\Delta t) = \sqrt{\Delta t}\,z \circ\xi Noise ( z , Δ t ) = Δ t z ∘ ξ , where ξ ∼ N ( 0 , I ) \xi\sim\mathcal{N}(0,I) ξ ∼ N ( 0 , I ) . We refer to [12 , 6 ] for a recent discussion on the numerical behavior of this model and use it throughout our experiments.
We highlight that in Algorithm 1, the first loop in lines 3–6 can indeed be parallelized, since there is no interaction across nodes. The synchronization happens in lines 7–8, where each node communicates with its neighbors. The total number of communications per step is ∑ i = 1 N ∣ N i ∖ { i } ∣ \sum_{i=1}^{N} \lvert\mathcal{N}_i \setminus\{i\}\rvert ∑ i = 1 N ∣ N i ∖ { i }∣ , where each communication exchanges the respective tracking variable of dimension d d d .
Remark 3.1. The communication could also be realized in an asynchronous fashion, which would remove the forced synchronization step. In this case each node sends the tracking variable to its neighbors, once it computed it. However, both the analysis and the numerical study of such a scheme go beyond the scope of the present work. Regarding the communication cost per step, we want to remark that this is not purely determined by the number of communications, but in particular by the practical realization of node communication and bandwidth per node. In our numerical examples we do not consider these details and instead only focus on the behavior of the scheme in (3) in a synthetic setting.
Remark 3.2. Within this section we will often employ N N N nodes running CBO in parallel without interaction as a baseline comparison. This can be recovered by choosing W = I W=I W = I and thus N i = { i } \mathcal{N}_i=\{i\} N i = { i } in the above formulation. The initialization ensures Z 0 i = C ^ 0 i Z_0^i=\widehat{C}_0^i Z 0 i = C 0 i and by induction, if Z k i = C ^ k i Z_k^i=\widehat{C}_k^i Z k i = C k i , then W = I W=I W = I yields
Z k + 1 i = Z k i + ( C ^ k + 1 i − C ^ k i ) = C ^ k i + ( C ^ k + 1 i − C ^ k i ) = C ^ k + 1 i . Z_{k+1}^i=Z_k^i+\left(\widehat{C}_{k+1}^i-\widehat{C}_k^i\right)=\widehat{C}_k^i+\left(\widehat{C}_{k+1}^i-\widehat{C}_k^i\right)=\widehat{C}_{k+1}^i. Z k + 1 i = Z k i + ( C k + 1 i − C k i ) = C k i + ( C k + 1 i − C k i ) = C k + 1 i .
Heuristics
Heuristic 1: Scheduling α \alpha α The choice of α \alpha α can greatly impact the performance of the CBO algorithm. In order not to obfuscate the results obtained in this work, we adopt a simplistic strategy used in other works like [7 , 2 ] : At the start of the dynamics the particles should explore more, while towards the end they should be confined more strongly towards the current best particle. This intuition leads to the following simple scheduling α k i = min { ι k ⋅ α 0 , α max } \alpha_k^i=\min\{\iota^k\cdot\alpha_0,\alpha_{\max}\} α k i = min { ι k ⋅ α 0 , α m a x } , where throughout this work, if not stated otherwise, we choose ι = 1.05 \iota=1.05 ι = 1.05 , α 0 = 10 − 4 \alpha_0=10^{-4} α 0 = 1 0 − 4 , α max = 10 9 \alpha_{\max}=10^9 α m a x = 1 0 9 .
Heuristic 2: Particle Clipping As noted in [2 ] it is favorable for CBO algorithms to enhance the exploration by choosing σ \sigma σ larger than theoretic results allow. In the following experiments we will also employ this heuristic, which however risks that the ensemble diverges, if particles are moved too far by high noise. To this end, we employ another heuristic, that restricts the particles to a problem dependent, rectangular domain Ω f = [ − a f , a f ] d \Omega_f=[-a_f,a_f]^d Ω f = [ − a f , a f ] d . Namely, in PostStep , for each node i = 1 : N i=1:N i = 1 : N we then perform the following modification:
X k + 1 , s ℓ ← min { max { X k + 1 , s ℓ , − a f } , a f } , for all ℓ ∈ M i , s = 1 : d . X_{k+1,s}^{\ell}\leftarrow\min\{\max\{X_{k+1,s}^{\ell},-a_f\},a_f\},\qquad\text{for all }\ell\in\mathcal{M}_i,s=1:d. X k + 1 , s ℓ ← min { max { X k + 1 , s ℓ , − a f } , a f } , for all ℓ ∈ M i , s = 1 : d .
This can be seen as infusing the problem with prior information about the function f f f , which however in our case will be only used as a safeguard, with very mild assumptions about the function, see Table 1 .
Table 1. Test problems and the domains they are typically optimized on. For our experiments, we initialize the particles uniformly within the displayed domain and set the clipping domain to a fixed factor of 4 times the initialization domain.
Heuristic 3: Resampling In practical scenarios, CBO algorithms can suffer from an early collapse, which means that all particles are effectively at the same position, although they did not reach the global minimizer yet. In our multi-node setting this does not immediately yield to stationarity, but instead to interesting dynamics, we describe in § 2.1.1 . However, as in the standard CBO case, this situation is unfavorable from the optimization point of view, because once the particles per node collapse, the information from objective function evaluations is disregarded and convergence towards the global minimizer is essentially lost. In order to circumvent such situations, we adopt the collapse prevention strategy from [11 ] : If at iteration k k k a certain collapse criterion is met at node i i i , the routine in PostStep will add independent Gaussian noise of scale σ i n d e p ≥ 0 \sigma^{\mathrm{indep}}\geq0 σ indep ≥ 0 , to expand the ensemble again:
X k + 1 ℓ ← X k ℓ + σ i n d e p Δ t ξ ℓ , ξ ℓ ∼ N ( 0 , I ) , for all ℓ ∈ M i . X_{k+1}^{\ell}\leftarrow X_k^{\ell}+\sigma^{\mathrm{indep}}\sqrt{\Delta t}\,\xi^{\ell},\qquad\xi^{\ell}\sim\mathcal{N}(0,I),\qquad\text{for all }\ell\in\mathcal{M}_i. X k + 1 ℓ ← X k ℓ + σ indep Δ t ξ ℓ , ξ ℓ ∼ N ( 0 , I ) , for all ℓ ∈ M i .
We consider two different collapse criteria, the first being based on how much the ensemble per node changed during one iteration. Namely, this criterion is met at node i i i , if ∑ ℓ ∈ M i ∥ X k + 1 ℓ − X k ℓ ∥ 2 < δ t h r e s h \sum_{\ell\in\mathcal{M}_i}\lVert X_{k+1}^{\ell}-X_k^{\ell}\rVert^2<\delta^{\mathrm{thresh}} ∑ ℓ ∈ M i ∥ X k + 1 ℓ − X k ℓ ∥ 2 < δ thresh with some given parameter δ t h r e s h \delta^{\mathrm{thresh}} δ thresh . The other criterion we consider, checks whether the best found loss value decreased during the last K ∈ N K\in\mathbb{N} K ∈ N iterations. Thus for k > K k>K k > K this criterion is met if
min t = ( k − K ) : k , ℓ ∈ M i f ( X t ℓ ) ≥ min t = 1 : ( k − K − 1 ) , ℓ ∈ M i f ( X t ℓ ) . \min_{t=(k-K):k,\,\ell\in\mathcal{M}_i} f(X_t^{\ell})\geq\min_{t=1:(k-K-1),\,\ell\in\mathcal{M}_i} f(X_t^{\ell}). t = ( k − K ) : k , ℓ ∈ M i min f ( X t ℓ ) ≥ t = 1 : ( k − K − 1 ) , ℓ ∈ M i min f ( X t ℓ ) .
We specify the concrete choice of these criteria below.
Choice of mixing matrix
We present the different mixing matrices W ∈ R N × N W \in\mathbb{R}^{N \times N} W ∈ R N × N employed in the following. Note, that this choice also determines the communication topology, through the sparsity pattern of W W W .
Full Allowing all nodes to communicate with each other with the same strength, we obtain the following doubly stochastic mixing matrix
W F u l l = 1 N ( 1 1 ⋯ 1 1 1 ⋯ 1 ⋮ ⋮ ⋱ ⋮ 1 1 ⋯ 1 ) . W^{\mathrm{Full}}=\frac{1}{N}\begin{pmatrix}1&1&\cdots&1\\1&1&\cdots&1\\\vdots&\vdots&\ddots&\vdots\\1&1&\cdots&1\end{pmatrix}. W Full = N 1 1 1 ⋮ 1 1 1 ⋮ 1 ⋯ ⋯ ⋱ ⋯ 1 1 ⋮ 1 .
Figure Full. Full topology for N = 6 N=6 N = 6 .
Ring topology Figuratively placing the available nodes in a ring, we only allow them to communicate with their direct neighbours. We assume a uniform communication strength controlled by a parameter θ ∈ [ 0 , 1 ] \theta\in[0,1] θ ∈ [ 0 , 1 ] and thus the communication is modelled by the following mixing matrix:
W θ r i n g = ( θ 1 − θ 2 0 ⋯ 0 1 − θ 2 1 − θ 2 θ 1 − θ 2 0 ⋯ 0 0 1 − θ 2 θ ⋱ ⋱ ⋮ ⋮ 0 ⋱ ⋱ ⋱ 0 0 ⋮ ⋱ 1 − θ 2 θ 1 − θ 2 1 − θ 2 0 ⋯ 0 1 − θ 2 θ ) , (58) W_{\theta}^{\mathrm{ring}}=\begin{pmatrix}\theta&\frac{1-\theta}{2}&0&\cdots&0&\frac{1-\theta}{2}\\\frac{1-\theta}{2}&\theta&\frac{1-\theta}{2}&0&\cdots&0\\0&\frac{1-\theta}{2}&\theta&\ddots&\ddots&\vdots\\\vdots&0&\ddots&\ddots&\ddots&0\\0&\vdots&\ddots&\frac{1-\theta}{2}&\theta&\frac{1-\theta}{2}\\\frac{1-\theta}{2}&0&\cdots&0&\frac{1-\theta}{2}&\theta\end{pmatrix}, \tag*{(58)} W θ ring = θ 2 1 − θ 0 ⋮ 0 2 1 − θ 2 1 − θ θ 2 1 − θ 0 ⋮ 0 0 2 1 − θ θ ⋱ ⋱ ⋯ ⋯ 0 ⋱ ⋱ 2 1 − θ 0 0 ⋯ ⋱ ⋱ θ 2 1 − θ 2 1 − θ 0 ⋮ 0 2 1 − θ θ , (58)
Figure Ring. Ring topology for N = 6 N=6 N = 6 .
which is indeed symmetric and doubly stochastic. In particular, we observe that W 1 r i n g = I W^{\mathrm{ring}}_1=I W 1 ring = I , i.e., θ = 1 \theta=1 θ = 1 recovers the case where N N N nodes perform independent CBO runs. We also consider the case where the node can connect to neighbors that are more than one “hop” away, for example the following 2-hop ring connects each node to 4 neighbours, defining μ = 1 − θ 4 \mu=\frac{1-\theta}{4} μ = 4 1 − θ :
W θ 2 h o p = ( θ μ μ 0 ⋯ 0 μ μ μ θ μ μ 0 ⋯ 0 μ μ μ θ μ ⋱ ⋱ ⋮ 0 0 μ μ ⋱ ⋱ ⋱ μ ⋮ ⋮ 0 ⋱ ⋱ ⋱ ⋱ 0 ⋮ 0 ⋮ ⋱ μ μ θ μ μ μ 0 ⋯ 0 μ μ θ μ μ μ 0 ⋯ 0 μ μ θ ) . W_{\theta}^{2\mathrm{hop}}=\begin{pmatrix}\theta&\mu&\mu&0&\cdots&0&\mu&\mu\\\mu&\theta&\mu&\mu&0&\cdots&0&\mu\\\mu&\mu&\theta&\mu&\ddots&\ddots&\vdots&0\\0&\mu&\mu&\ddots&\ddots&\ddots&\mu&\vdots\\\vdots&0&\ddots&\ddots&\ddots&\ddots&0&\vdots\\0&\vdots&\ddots&\mu&\mu&\theta&\mu&\mu\\\mu&0&\cdots&0&\mu&\mu&\theta&\mu\\\mu&\mu&0&\cdots&0&\mu&\mu&\theta\end{pmatrix}. W θ 2 hop = θ μ μ 0 ⋮ 0 μ μ μ θ μ μ 0 ⋮ 0 μ μ μ θ μ ⋱ ⋱ ⋯ 0 0 μ μ ⋱ ⋱ μ 0 ⋯ ⋯ 0 ⋱ ⋱ ⋱ μ μ 0 0 ⋯ ⋱ ⋱ ⋱ θ μ μ μ 0 ⋮ μ 0 μ θ μ μ μ 0 ⋮ ⋮ μ μ θ .
Figure Ring. Ring topology for N = 8 N=8 N = 8 .
Star topology We can assign a single node to be central in the sense, that all other nodes only communicate with this centre node. In the graph, this can be seen as a star topology, which is modelled as follows:
W s t a r = ( 1 N 1 N 1 N 1 N ⋯ 1 N 1 N 1 − 1 N 0 0 ⋯ 0 1 N 0 1 − 1 N 0 ⋯ 0 ⋮ ⋮ ⋱ ⋱ ⋱ ⋮ 1 N 0 ⋯ 0 0 1 − 1 N ) . W^{\mathrm{star}}=\begin{pmatrix}\frac{1}{N}&\frac{1}{N}&\frac{1}{N}&\frac{1}{N}&\cdots&\frac{1}{N}\\\frac{1}{N}&1-\frac{1}{N}&0&0&\cdots&0\\\frac{1}{N}&0&1-\frac{1}{N}&0&\cdots&0\\\vdots&\vdots&\ddots&\ddots&\ddots&\vdots\\\frac{1}{N}&0&\cdots&0&0&1-\frac{1}{N}\end{pmatrix}. W star = N 1 N 1 N 1 ⋮ N 1 N 1 1 − N 1 0 ⋮ 0 N 1 0 1 − N 1 ⋱ ⋯ N 1 0 0 ⋱ 0 ⋯ ⋯ ⋯ ⋱ 0 N 1 0 0 ⋮ 1 − N 1 .
Figure Star. Star topology for N = 6 N=6 N = 6 .
Consensus formation
As the first numerical study, we study the consensus formation in (3) , which was theoretically analyzed in § 2.1.1 . We focus on the ring mixing matrix W θ r i n g W_{\theta}^{\mathrm{ring}} W θ ring , since the parameter θ \theta θ allows us to vary the strength of the interaction, with θ = 1 \theta=1 θ = 1 corresponding to the case of no interaction. For the test problem we choose the Rastrigin function, see [24 ] for the definition, in dimension d = 17 d=17 d = 17 and let Algorithm 1 run for 2000 iterations with a step size of Δ t = 0.05 \Delta t = 0.05 Δ t = 0.05 . We display the results in Figure 1 for different values of θ \theta θ and noise parameters σ \sigma σ . The third column displays the evolution of the best current energy across all nodes, i.e.,
Figure 1. Consensus formation described in § 3.2 underlining the theory in § 2.1.1 . We choose N = 50 N = 50 N = 50 nodes with M = 20 M = 20 M = 20 particles per node in the ring topology W θ r i n g W_{\theta}^{\mathrm{ring}} W θ ring for different values of θ ∈ [ 0 , 1 ] \theta\in[0,1] θ ∈ [ 0 , 1 ] .
e k = min ℓ = 1 : N M f ( X k ℓ ) . e_k = \min_{\ell=1:NM} f(X_k^\ell). e k = ℓ = 1 : N M min f ( X k ℓ ) .
The first column displays the diameter within each node studied in Theorem 2.6. Namely we consider the diameter of each node separately and take the maximum value, across nodes i = 1 : N i = 1:N i = 1 : N and dimensions s = 1 : d s = 1:d s = 1 : d , i.e., the tracked quantity is given as
d k = max s = 1 : d max i = 1 : N diam ( X k s , i ) . d_k = \max_{s=1:d}\max_{i=1:N}\operatorname{diam}(X_k^{s,i}). d k = s = 1 : d max i = 1 : N max diam ( X k s , i ) .
The second column then considers the diameter studied in Theorem 2.8, which now takes the diameter across nodes and we thus refer to it as pooled , since particles from all nodes are pooled together. We then take the maximum value across the dimensions s = 1 : d s = 1:d s = 1 : d and thus track the following quantity
d k p o o l e d = max s = 1 : d diam ( X k s ) . d_k^{\mathrm{pooled}} = \max_{s=1:d}\operatorname{diam}(X_k^s). d k pooled = s = 1 : d max diam ( X k s ) .
For the runs shown in Figure 1 we deliberately exclude heuristic 2 and 3, in order to study cleanly the effect of consensus formation.
Small noise case Focusing on the first row, we observe that with a small noise parameter σ \sigma σ , for all parameters θ \theta θ there is a quick collapse of the per-node diameter, which has a negative impact on the optimization performance. For the pooled diameter, we first observe that in the case θ = 1 \theta= 1 θ = 1 there is visible no-convergence behavior. This is expected since in this case the different nodes do not interact with each other and there is no additional force pulling different nodes together. One could expect convergence here, if each separate node would converge to the unique minimizer of f f f , which however is not the case. This is in line with Theorem 2.8 since for θ = 1 \theta= 1 θ = 1 the corresponding graph G \mathcal{G} G is not connected thus violating Assumption 2.3 . For the case θ < 1 \theta< 1 θ < 1 we curiously observe oscillations, which are discussed in § 3.3 and we refer to as the consensus ballet . This is not the preferred situation from an optimization point of view, but is interesting form collective behavior perspective. While not being monotonic, the sequence d k p o o l e d d_k^{\mathrm{pooled}} d k pooled still appears to tend to zero confirming Theorem 2.8.
Intermediate noise case In the second row, we observe the numerical benefit of the algorithm when choosing appropriate hyperparameters. Due to the higher noise, the per-node collapse is slowed down and allows for the necessary exploration needed in CBO. The cases where the interaction is active, i.e., θ < 1 \theta< 1 θ < 1 greatly outperform the no-interaction case, which again fails to converge towards a good approximation in this setting. For θ < 1 \theta< 1 θ < 1 we also observe that d k p o o l e d d_k^{\mathrm{pooled}} d k pooled tends to zero confirming Theorem 2.8. For θ = 1 \theta= 1 θ = 1 the stagnation of d k p o o l e d d_k^{\mathrm{pooled}} d k pooled can be explained in the same way as in the small noise case. Interestingly, even though the higher exploration noise obfuscates the clear oscillations in the diameter, one can still observe them in the evolution of the energy. This hints at the fact, the consensus ballet described below occurs even for non-clustered nodes.
Oscillatory behavior in the consensus formation
A connection to the graph Laplacian
In our numerical study of the consensus formation in Figure 1 we observe oscillations appearing in the pooled diameter, especially in the case with small noise parameters σ \sigma σ . With low noise, the ensemble within each node quickly collapses and thus for illustrative purposes, we assume in the following, that each ensemble is already fully collapsed, i.e.,
P k i : = X k ℓ = X k ℓ ~ = C ^ k i , for all ℓ , ℓ ~ ∈ M i and all i ∈ { 1 , … , N } . P_k^i := X_k^\ell= X_k^{\tilde{\ell}} = \widehat{C}_k^i,\qquad\text{for all }\ell,\tilde{\ell}\in\mathcal{M}_i\text{ and all }i\in\{1,\ldots,N\}. P k i := X k ℓ = X k ℓ ~ = C k i , for all ℓ , ℓ ~ ∈ M i and all i ∈ { 1 , … , N } .
Since in this case the noise term vanishes and the system is deterministic, Algorithm 1 reduces to a linear update with two coupled states P k : = ( P k 1 , … , P k N ) P_k := (P_k^1,\ldots,P_k^N) P k := ( P k 1 , … , P k N ) , Z k : = ( Z k 1 , … , Z k N ) Z_k := (Z_k^1,\ldots,Z_k^N) Z k := ( Z k 1 , … , Z k N ) :
P k + 1 = P k − Δ t ( P k − Z k ) , Z k + 1 = W Z k + P k + 1 − P k = W Z k − Δ t ( P k − Z k ) , (59) \begin{aligned}
P_{k+1} &= P_k-\Delta t(P_k-Z_k),\\
Z_{k+1} &= WZ_k+P_{k+1}-P_k = WZ_k-\Delta t(P_k-Z_k), \tag*{(59)}
\end{aligned} P k + 1 Z k + 1 = P k − Δ t ( P k − Z k ) , = W Z k + P k + 1 − P k = W Z k − Δ t ( P k − Z k ) , (59)
which can also be written more compactly in the state U k = ( P k , Z k ) U_k=(P_k,Z_k) U k = ( P k , Z k )
U k + 1 = B U k , with B = ( ( 1 − Δ t ) I Δ t I − Δ t I W + Δ t I ) . U_{k+1}=BU_k,\qquad\text{with }B=\begin{pmatrix}(1-\Delta t)I & \Delta t I\\ -\Delta t I & W+\Delta t I\end{pmatrix}. U k + 1 = B U k , with B = ( ( 1 − Δ t ) I − Δ t I Δ t I W + Δ t I ) .
Let again γ 1 ≥ … ≥ γ N \gamma_1\geq\ldots\geq\gamma_N γ 1 ≥ … ≥ γ N denote the eigenvalues of W W W , then the eigenvalues of the matrix B B B are given as
γ i B = 1 + γ i 2 ± 1 2 ( 1 − γ i ) ( 1 − γ i − 4 Δ t ) . \gamma_i^B=\frac{1+\gamma_i}{2}\pm\frac{1}{2}\sqrt{(1-\gamma_i)(1-\gamma_i-4\Delta t)}. γ i B = 2 1 + γ i ± 2 1 ( 1 − γ i ) ( 1 − γ i − 4Δ t ) .
Thus we observe that the matrix B B B has complex eigenvalues, if one i = 1 : N i=1:N i = 1 : N satisfies
γ i < 1 and 1 − γ i 4 < Δ t , \gamma_i<1\qquad\text{and}\qquad\frac{1-\gamma_i}{4}<\Delta t, γ i < 1 and 4 1 − γ i < Δ t ,
which is also the case, in which we expect the solution of the simplified system in (59) to exhibit oscillatory behavior. For the ring matrix in (58) we have γ 1 = 1 \gamma_1=1 γ 1 = 1 and the second largest eigenvalue is given as
γ 2 = ( 1 − θ ) cos ( 2 π N ) + θ , \gamma_2=(1-\theta)\cos\left(\frac{2\pi}{N}\right)+\theta, γ 2 = ( 1 − θ ) cos ( N 2 π ) + θ ,
thus taking Δ t \Delta t Δ t less or equal than 1 − γ 2 4 \frac{1-\gamma_2}{4} 4 1 − γ 2 would ensure that all eigenvalues of B B B are real.
Alternatively, we can also try to interpret (59) as an explicit discretization of an ODE, for which we write
U k + 1 = U k − Δ t C U k , with C = ( I − I I 1 Δ t ( I − W ) − I ) . U_{k+1} = U_k - \Delta t\, C U_k, \qquad\text{with} \qquad C = \begin{pmatrix} I & -I \\ I & \frac{1}{\Delta t}(I-W)-I \end{pmatrix}. U k + 1 = U k − Δ t C U k , with C = ( I I − I Δ t 1 ( I − W ) − I ) .
If we want to consider the limit Δ t → 0 \Delta t \to0 Δ t → 0 we need to ensure that the lower right entry of C C C is well-defined, which is for example the case if W = I − Δ t L W = I - \Delta t L W = I − Δ t L for some matrix L L L . In the following we argue, that this matrix L L L can be seen as a graph Laplacian on the connectivity graph of the nodes. Since W W W is a doubly stochastic matrix its weighted degree matrix (with self-loops being counted once) is given as D = I D = I D = I . Thus L = 1 Δ t ( I − W ) L = \frac{1}{\Delta t}(I-W) L = Δ t 1 ( I − W ) is indeed the weighted graph Laplacian of the graph given by 1 Δ t W \frac{1}{\Delta t}W Δ t 1 W . Consider now the special case of the ring topology W θ r i n g W_{\theta}^{\mathrm{ring}} W θ ring , and choose θ = 1 − Δ t \theta= 1-\Delta t θ = 1 − Δ t , then we have that
L = 1 Δ t ( I − W θ r i n g ) = 1 Δ t ( Δ t − Δ t 2 0 ⋯ 0 − Δ t 2 − Δ t 2 Δ t − Δ t 2 0 ⋯ 0 0 ⋱ ⋱ ⋱ ⋯ ⋮ ⋮ ⋯ 0 − Δ t 2 Δ t − Δ t 2 − Δ t 2 0 ⋯ 0 − Δ t 2 Δ t ) = I − ( 1 2 1 2 0 ⋯ 0 1 2 1 2 0 1 2 0 ⋯ 0 0 ⋱ ⋱ ⋱ ⋯ ⋮ ⋮ ⋯ 0 1 2 0 1 2 1 2 0 ⋯ 0 1 2 0 ) , \begin{aligned}
L = \frac{1}{\Delta t}(I-W_{\theta}^{\mathrm{ring}}) \\
&= \frac{1}{\Delta t}
\begin{pmatrix}
\Delta t & -\frac{\Delta t}{2} & 0 & \cdots& 0 & -\frac{\Delta t}{2}\\
-\frac{\Delta t}{2} & \Delta t & -\frac{\Delta t}{2} & 0 & \cdots& 0\\
0 & \ddots& \ddots& \ddots& \cdots& \vdots\\
\vdots& \cdots& 0 & -\frac{\Delta t}{2} & \Delta t & -\frac{\Delta t}{2}\\
-\frac{\Delta t}{2} & 0 & \cdots& 0 & -\frac{\Delta t}{2} & \Delta t
\end{pmatrix}
= I -
\begin{pmatrix}
\frac{1}{2} & \frac{1}{2} & 0 & \cdots& 0 & \frac{1}{2}\\
\frac{1}{2} & 0 & \frac{1}{2} & 0 & \cdots& 0\\
0 & \ddots& \ddots& \ddots& \cdots& \vdots\\
\vdots& \cdots& 0 & \frac{1}{2} & 0 & \frac{1}{2}\\
\frac{1}{2} & 0 & \cdots& 0 & \frac{1}{2} & 0
\end{pmatrix},
\end{aligned} L = Δ t 1 ( I − W θ ring ) = Δ t 1 Δ t − 2 Δ t 0 ⋮ − 2 Δ t − 2 Δ t Δ t ⋱ ⋯ 0 0 − 2 Δ t ⋱ 0 ⋯ ⋯ 0 ⋱ − 2 Δ t 0 0 ⋯ ⋯ Δ t − 2 Δ t − 2 Δ t 0 ⋮ − 2 Δ t Δ t = I − 2 1 2 1 0 ⋮ 2 1 2 1 0 ⋱ ⋯ 0 0 2 1 ⋱ 0 ⋯ ⋯ 0 ⋱ 2 1 0 0 ⋯ ⋯ 0 2 1 2 1 0 ⋮ 2 1 0 ,
i.e., L L L is the random-walk graph Laplacian of the undirected graph connecting each node to its neighbors. Sending Δ t → 0 \Delta t \to0 Δ t → 0 in (59) with W 1 − Δ t r i n g W_{1-\Delta t}^{\mathrm{ring}} W 1 − Δ t ring , we obtain the ODE
U ˙ = ( − I I − I I − L ) U . (60) \dot{U} =
\begin{pmatrix}
-I & I\\
-I & I-L
\end{pmatrix}U. \tag*{(60)} U ˙ = ( − I − I I I − L ) U . (60)
The stationary states of this system are given by U = ( P , Z ) U = (P,Z) U = ( P , Z ) such that
P = Z , and L Z = 0 , P = Z, \qquad\text{and} \qquad LZ = 0, P = Z , and L Z = 0 ,
i.e., states where the consensus points and tracking variables coincide and solve the graph Laplace equation in each dimension s = 1 : d s = 1:d s = 1 : d . Since the graph associated to L L L is connected, this can only be true, if
Z 1 = Z 2 = … = Z N , Z^1 = Z^2 = \ldots= Z^N, Z 1 = Z 2 = … = Z N ,
i.e., all nodes share the same location in R d \mathbb{R}^d R d . While the numerical experiments indeed confirm a convergence to a single point, the dynamics exhibit oscillations, which we illustrate in the next section.
The consensus ballet
In Figure 2 we plot the evolution of the system with a small noise level σ = 0.01 \sigma= 0.01 σ = 0.01 in dimension d = 2 d = 2 d = 2 with the ring topology and θ = 0.5 \theta= 0.5 θ = 0.5 . As expected we can observe that per node the particles exhibit strong clustering towards their respective consensus point and are visually not distinguishable in the plot. The consensus points and tracking variables Z i k Z_i^k Z i k arrange in two approximately concentric rings, with the outer one consisting of the tracking variables. We display the number of each node that is assigned to it in the graph ordering in Figure 2 and observe that they are indeed ordered in the ring. We then observe that consensus points and tracking variables are pulled towards each other, but there is an overshooting effect, yielding each pair of consensus point and tracking variable to pass each other. This again yields two approximately concentric rings, but now the outer ring is the consensus points. Now the pairs are again pulled towards each other, finally resulting in a shrunken and flipped version of the initial state. The previously described process is then repeated cyclically while shrinking the diameter in each step. Due to rhythmic and coordinated behavior we refer to this as the consensus ballet.
Figure 2. The consensus ballet. The underlying test function is the Rastrigin function, we choose N = 20 N = 20 N = 20 nodes, Δ t = 0.05 \Delta t = 0.05 Δ t = 0.05 , σ = 0.01 \sigma= 0.01 σ = 0.01 and employ M = 20 M = 20 M = 20 particles per node.
We interpret this behavior using the ODE in (60) and assume w.l.o.g. that d = 1 d = 1 d = 1 since the dynamics are decoupled in the dimension. Denote by v 1 , … , v N ∈ R N v_1,\ldots,v_N \in\mathbb{R}^N v 1 , … , v N ∈ R N the orthonormal basis of eigenvectors of the graph Laplacian L L L , which exists since L L L is symmetric and by γ 1 L ≥ … ≥ γ N L \gamma_1^L \geq\ldots\geq\gamma_N^L γ 1 L ≥ … ≥ γ N L the corresponding real eigenvalues. We then consider the linear spaces V i = span { ( v i , 0 ) , ( 0 , v i ) } ⊂ R 2 N V_i = \operatorname{span}\{(v_i,0),(0,v_i)\} \subset\mathbb{R}^{2N} V i = span {( v i , 0 ) , ( 0 , v i )} ⊂ R 2 N and observe that V 1 + … + V N = R 2 N V_1+\ldots+V_N = \mathbb{R}^{2N} V 1 + … + V N = R 2 N .
The specific structure of the system matrix in (60) leaves each V i V_i V i invariant under the dynamics, namely take u = ( μ 1 v i , μ 2 v i ) ⊤ ∈ V i u=(\mu_1v_i,\mu_2v_i)^\top\in V_i u = ( μ 1 v i , μ 2 v i ) ⊤ ∈ V i with μ 1 , μ 2 ∈ R \mu_1,\mu_2\in\mathbb{R} μ 1 , μ 2 ∈ R , then
( − I I − I I − L ) u = ( ( μ 2 − μ 1 ) v i ( μ 2 ( 1 − γ i L ) − μ 1 ) v i ) ∈ V i . \begin{pmatrix} -I & I \\ -I & I-L \end{pmatrix}u=\begin{pmatrix} (\mu_2-\mu_1)v_i \\ (\mu_2(1-\gamma_i^L)-\mu_1)v_i \end{pmatrix}\in V_i. ( − I − I I I − L ) u = ( ( μ 2 − μ 1 ) v i ( μ 2 ( 1 − γ i L ) − μ 1 ) v i ) ∈ V i .
Thus when decomposing the solution U U U of (60) as follows
U ( t ) = ∑ i = 1 N ( μ 1 , i ( t ) v i μ 2 , i ( t ) v i ) U(t)=\sum_{i=1}^{N}\begin{pmatrix}\mu_{1,i}(t)v_i\\\mu_{2,i}(t)v_i\end{pmatrix} U ( t ) = i = 1 ∑ N ( μ 1 , i ( t ) v i μ 2 , i ( t ) v i )
with μ 1 , i ( t ) = ⟨ U ( t ) , ( v i , 0 ) ⊤ ⟩ \mu_{1,i}(t)=\langle U(t),(v_i,0)^\top\rangle μ 1 , i ( t ) = ⟨ U ( t ) , ( v i , 0 ) ⊤ ⟩ , μ 2 , i ( t ) = ⟨ U ( t ) , ( 0 , v i ) ⊤ ⟩ \mu_{2,i}(t)=\langle U(t),(0,v_i)^\top\rangle μ 2 , i ( t ) = ⟨ U ( t ) , ( 0 , v i ) ⊤ ⟩ ,
plugging it in the ODE yields
∑ i = 1 N ( μ ˙ 1 , i ( t ) v i μ ˙ 2 , i ( t ) v i ) = ∑ i = 1 N ( ( μ 2 , i ( t ) − μ 1 , i ( t ) ) v i ( μ 2 , i ( t ) ( 1 − γ i L ) − μ 1 , i ( t ) ) v i ) . \sum_{i=1}^{N}\begin{pmatrix}\dot{\mu}_{1,i}(t)v_i\\\dot{\mu}_{2,i}(t)v_i\end{pmatrix}=\sum_{i=1}^{N}\begin{pmatrix}(\mu_{2,i}(t)-\mu_{1,i}(t))v_i\\(\mu_{2,i}(t)(1-\gamma_i^L)-\mu_{1,i}(t))v_i\end{pmatrix}. i = 1 ∑ N ( μ ˙ 1 , i ( t ) v i μ ˙ 2 , i ( t ) v i ) = i = 1 ∑ N ( ( μ 2 , i ( t ) − μ 1 , i ( t )) v i ( μ 2 , i ( t ) ( 1 − γ i L ) − μ 1 , i ( t )) v i ) .
Thus it suffices to solve for each i = 1 : N i=1:N i = 1 : N the system
μ ˙ 1 , i ( t ) = μ 2 , i ( t ) − μ 1 , i ( t ) , μ ˙ 2 , i ( t ) = μ 2 , i ( t ) ( 1 − γ i L ) − μ 1 , i ( t ) \begin{aligned}
\dot{\mu}_{1,i}(t)&=\mu_{2,i}(t)-\mu_{1,i}(t),\\
\dot{\mu}_{2,i}(t)&=\mu_{2,i}(t)(1-\gamma_i^L)-\mu_{1,i}(t)
\end{aligned} μ ˙ 1 , i ( t ) μ ˙ 2 , i ( t ) = μ 2 , i ( t ) − μ 1 , i ( t ) , = μ 2 , i ( t ) ( 1 − γ i L ) − μ 1 , i ( t )
which expressed solely in μ 1 , i \mu_{1,i} μ 1 , i is the ODE for the damped harmonic oscillator
μ ¨ 1 , i ( t ) + γ i L ( μ ˙ 1 , i ( t ) + μ 1 , i ( t ) ) = 0 \ddot{\mu}_{1,i}(t)+\gamma_i^L(\dot{\mu}_{1,i}(t)+\mu_{1,i}(t))=0 μ ¨ 1 , i ( t ) + γ i L ( μ ˙ 1 , i ( t ) + μ 1 , i ( t )) = 0
with characteristic polynomial
a 2 + γ i L a + γ i L = 0. a^2+\gamma_i^L a+\gamma_i^L=0. a 2 + γ i L a + γ i L = 0.
Since L L L is also positive semi-definite, we have γ i L ≥ 0 \gamma_i^L\geq0 γ i L ≥ 0 for all i = 1 : N i=1:N i = 1 : N . As noted before, the null space of L L L is one dimensional and thus γ N L = 0 \gamma_N^L=0 γ N L = 0 and γ i L > 0 \gamma_i^L>0 γ i L > 0 for i = 1 : N − 1 i=1:N-1 i = 1 : N − 1 . Thus the equation for the N N N -th coefficient is solved for any C 1 , N , C 2 , N ∈ R C_{1,N},C_{2,N}\in\mathbb{R} C 1 , N , C 2 , N ∈ R by
μ 1 , N ( t ) = C 1 , N + C 2 , N t . \mu_{1,N}(t)=C_{1,N}+C_{2,N}t. μ 1 , N ( t ) = C 1 , N + C 2 , N t .
We furthermore have that 0 < γ i L < 4 0<\gamma_i^L<4 0 < γ i L < 4 for all i = 1 : N − 1 i=1:N-1 i = 1 : N − 1 and thus the roots of the characteristic polynomial are complex valued in this case. Thus the coefficient ODE is solved for any C 1 , i , C 2 , i ∈ R C_{1,i},C_{2,i}\in\mathbb{R} C 1 , i , C 2 , i ∈ R by
μ 1 , i ( t ) = e ν i t ( C 1 , i cos ( ω i t ) + C 2 , i sin ( ω i t ) ) , ν i = − γ i L 2 , ω i = 4 γ i L − ( γ i L ) 2 2 . \mu_{1,i}(t)=e^{\nu_i t}(C_{1,i}\cos(\omega_i t)+C_{2,i}\sin(\omega_i t)),\qquad\nu_i=-\frac{\gamma_i^L}{2},\quad\omega_i=\frac{\sqrt{4\gamma_i^L-(\gamma_i^L)^2}}{2}. μ 1 , i ( t ) = e ν i t ( C 1 , i cos ( ω i t ) + C 2 , i sin ( ω i t )) , ν i = − 2 γ i L , ω i = 2 4 γ i L − ( γ i L ) 2 .
The ballet described in Figure 2 is then the result of superimposing the above oscillating solitons across i = 1 : N i=1:N i = 1 : N run independently in each dimension. The possible dynamics are much more diverse than the ring structure displayed in the figure and are determined by the initial state and number of nodes. For illustrative purposes we provide as a companion an interactive tool at timroith.github.io/DecentralizedCBO/companion.html , which visualizes the solutions to the ODE for different configurations.
Hyperparameter study
In this section we examine how the proposed algorithm is influenced by its hyperparameters Δ t \Delta t Δ t and σ \sigma σ . We observe in Figure 1 that the choice of σ \sigma σ has a significant influence on the numerical performance and thus we want to study it in more detail here. As the test problem, we choose the Rastrigin function in dimension d = 100 d=100 d = 100 and perform 5, 000 iterations for each scheme in the following. For the mixing matrix, we choose in each experiment the ring matrix W θ r i n g W_\theta^{\mathrm{ring}} W θ ring with θ \theta θ being specified for each test.
Interplay between noise strengths and number of particles
We first study the interplay between the noise parameter σ \sigma σ and the number of particles per node M M M . In Figure 3 we display the numerical performance with the step size set to Δ t = 0.02 \Delta t=0.02 Δ t = 0.02 and the ring matrix W θ r i n g W_{\theta}^{\mathrm{ring}} W θ ring with three different parameters θ \theta θ . We observe, that node communication again leads to better results than θ = 1 \theta=1 θ = 1 . Beyond that, for all three cases there is a specific band visible in which the algorithms perform best. This band is sharper for θ < 1 \theta<1 θ < 1 , and no noticeable difference exists between the plots corresponding to two distinct values of θ < 1 \theta<1 θ < 1 , suggesting that the decentralized variant is slightly more sensitive to the choice of hyperparameters.
Figure 3. Interplay between the noise strength σ \sigma σ and the number of particles M M M for different parameters θ ∈ [ 0 , 1 ] \theta\in[0,1] θ ∈ [ 0 , 1 ] with the ring matrix W θ r i n g W_{\theta}^{\mathrm{ring}} W θ ring . The color value of each cell corresponds to the best objective value during a run of Algorithm 1 with the specified hyperparameters, averaged over 20 different seeds.
Interplay between step size and number of particles
In our second study, we examine the interplay between the step size Δ t \Delta t Δ t and the number of particles M M M for a fixed noise parameter σ = 2.5 \sigma=2.5 σ = 2.5 and ring parameter θ = 0.5 \theta=0.5 θ = 0.5 . In Figure 4 we observe a phase transition that has a similar shape across different numbers of nodes. The effect that is visible in all three panels, is that with an increasing number of particles per node, the step size should decrease for favorable numerical performance. As a side effect of this plot, we also see, that increasing the number of nodes helps the numerical performance overall, a behavior we study separately in Figure 7 .
Figure 4. Interplay between the step size Δ t \Delta t Δ t and the particles per node. The test problem is the Rastrigin function in d = 100 d=100 d = 100 with fixed noise parameter σ = 2.5 \sigma=2.5 σ = 2.5 .
Figure 7. (a) Ackley function. (b) Rastrigin function. Numerical performance with increasing problem dimension, across different number of nodes N N N .
Influence of the mixing matrix and frequency
In this section we examine how the mixing matrix influences the performance of the decentralized CBO algorithm. Furthermore, we also ask the question, whether the communication cost can be reduced, by synchronizing the nodes only every S S S steps in Algorithm 1.
Comparison of different mixing topologies
In our first test in Figure 5 we compare the performance of the described topologies in § 3.1.2 when varying the number of nodes, across different noise parameters σ > 0 \sigma> 0 σ > 0 . For all settings, we test on the Rastrigin function in dimension d = 20 d = 20 d = 20 , with Δ t = 0.05 \Delta t = 0.05 Δ t = 0.05 . The first notable result from Figure 5 is that different mixing matrices lead to very similar numerical performance. In particular there is no clear trend observable, which would make one of the topologies the preferable one. From a practical point of view, this suggests, that, whenever possible, working with the ring topology, which is favorable from a communication efficiency point of view, is indeed reasonable and seems not to lower the performance compared to other more costly choices.
Figure 5. Comparison between different mixing matrices. We observe that the connected topologies perform similarly and outperform the non-connected topology, i.e., W = I W = I W = I .
Variable Synchronization Frequency
On a practical level, the synchronization step in Algorithm 1 can be costly due to communications between the nodes. A natural question is, whether one can reduce the number of communications, by not synchronizing in every step of the CBO algorithm, but only every S ∈ N S \in\mathbb{N} S ∈ N steps. In this section, we consider the behavior of the algorithm, when replacing lines 7–8 in Algorithm 1 with the following modification:
for i = 1 : N do if mod ( k , S ) = 0 then Z k + 1 i = ∑ j ∈ N i W i j Z k j + ( C ^ k + 1 i − C ^ k i ) else Z k + 1 i = Z k i + ( C ^ k + 1 i − C ^ k i ) \begin{aligned}
&\text{for } i = 1 : N \text{ do}\\
&\quad\text{if } \operatorname{mod}(k,S) = 0 \text{ then}\\
&\qquad Z_{k+1}^{i} = \sum_{j\in\mathcal{N}_{i}} W_{ij}Z_{k}^{j} + \left(\widehat{C}_{k+1}^{i} - \widehat{C}_{k}^{i}\right)\\
&\quad\text{else}\\
&\qquad Z_{k+1}^{i} = Z_{k}^{i} + \left(\widehat{C}_{k+1}^{i} - \widehat{C}_{k}^{i}\right)
\end{aligned} for i = 1 : N do if mod ( k , S ) = 0 then Z k + 1 i = j ∈ N i ∑ W ij Z k j + ( C k + 1 i − C k i ) else Z k + 1 i = Z k i + ( C k + 1 i − C k i )
In Figure 6 we plot the numerical performance, when increasing the length of the period S S S , thus decreasing the communication cost of the algorithm. We use the Rastrigin and Ackley functions as the underlying test problems and refer to [24 , 28 ] for their definitions. Note, that if we let the CBO algorithm run for K ∈ N K \in\mathbb{N} K ∈ N iterations and per synchronization we have C ∈ N C \in\mathbb{N} C ∈ N communications, the total number of communications is ⌊ K S ⌋ ⋅ C \left\lfloor\frac{K}{S} \right\rfloor\cdot C ⌊ S K ⌋ ⋅ C . Notably, in Figure 6 we see that on Ackley for all topologies we can increase the period length to around S = 30 S = 30 S = 30 , without losing numerical performance. There is then a sharp interface, where increasing the period length even more, drastically decreases the performance. A possible explanation for this phenomenon is, that running the nodes independently for too long lets them diverge far apart, to a point, where even the averaging step cannot recover favorable dynamics. For Rastrigin, we can see a performance loss already for lower synchronization periods, also in this case we observe distinct behaviors across mixing topologies.
Figure 6. Numerical performance across longer synchronization periods described in § 3.5.2 . Each point on the graph is averaged over 20 independent runs.
For both methods, the mean energies increase up to some worst configuration, after which the mean energies then drop again towards the reference value where the total number of iterations corresponds to the period length, i.e., K = S K = S K = S , which means that effectively there was no interaction at all. This result is particularly interesting from a practical point of view, because it tells us that in certain scenarios we can reduce the communication cost, by lowering the number of synchronizations without loosing much numerical performance. However, this has to be done with care, because at a certain point the performance will degrade, depending on the underlying problem.
Behavior across problem dimensions
In this section we test how the number of nodes can influence the numerical performance of the decentralized CBO algorithm across varying problem dimensions. To this end, we fix σ = 2.5 \sigma= 2.5 σ = 2.5 , Δ t = 0.05 \Delta t = 0.05 Δ t = 0.05 , employ M = 20 M = 20 M = 20 particles per node and use the Ackley and Rastrigin functions as the underlying test problems. We again choose the ring matrix W θ r i n g W^{\mathrm{ring}}_{\theta} W θ ring with parameter θ = 1 2 \theta= \frac{1}{2} θ = 2 1 and the dynamics run for 5,000 iterations. In Figure 7 we plot the results with the specified settings, averaged over 10 different runs. In both cases, we observe that the difficulty of the problem increases with increasing dimension, where employing more nodes yields better numerical performance. However, solely increasing the number of nodes can significantly improve the performance only up to a certain number of nodes.
Benchmarks
In this section, we now perform a quantitative benchmark on different functions. We consider the Rastrigin, Ackley, Alpine, Styblinski–Tang, Lunacek Bi-Rastrigin and Katsuura functions and refer to [24 , 28 ] for their respective definitions. In order to prevent rewarding unwanted biases in the optimizers, we apply a random shift of the global optimum in every run. Denoting by g g g the respective function, we randomly sample a new vector a ∈ R d a \in\mathbb{R}^{d} a ∈ R d for every run, keep it fixed for this run, and then use f ( x ) = g ( x + a ) f(x) = g(x + a) f ( x ) = g ( x + a ) as the objective function. Furthermore, we use heuristic 2, the particle clipping, with the domain boundaries detailed in Table 1 . Furthermore, we now also employ heuristic 3, the resampling scheme.
Dimension d = 100 d = 100 d = 100
In Table 2 we report a quantitative benchmark in dimension d = 100 d = 100 d = 100 . Therein, we count a run as successful if the gap to the known optimal value f min f_{\min} f m i n , is below a certain threshold, namely
Table 2. Performance of different algorithms over 20 runs in dimension d = 100 d = 100 d = 100 . We report both the success rates and the median gap of the objective values to the optimal one.
f b e s t − f min < 0.0001 , f_{\mathrm{best} } - f_{\min} < 0.0001, f best − f m i n < 0.0001 ,
where in this case f b e s t f_{\mathrm{best}} f best denotes the best objective value that the respective optimizers recorded during their runs. This interpretation changes in the case of noisy objective functions detailed further below. In Table 2 we compare the numerical performance of different CBO algorithms, where for each algorithm we allow a total of 20,000 iterations. Therein, “Multi-run CBO” refers to running N N N different instances of CBO in parallel without communication. Equivalently, this is decentralized CBO with the mixing matrix W = I W = I W = I . To compare against a different zero-order optimizer, we include results obtained with the covariance matrix adaptation evolution strategy (CMA-ES) [23 ] , employing the pycma package [26 ] .
For the CBO runs with M = 20 M = 20 M = 20 particles we choose a step size of Δ t = 0.02 \Delta t = 0.02 Δ t = 0.02 and, using the insights from Figure 4 , a slightly smaller Δ t = 0.01 \Delta t = 0.01 Δ t = 0.01 for M = 160 M = 160 M = 160 . Using the trend seen in Figure 3 , for non-decentralized CBO we choose σ = 3 \sigma= 3 σ = 3 for M = 20 M = 20 M = 20 and σ = 5 \sigma= 5 σ = 5 for M = 160 M = 160 M = 160 . From the same plot we also observe that the decentralized version is more sensitive to choosing σ \sigma σ too big and thus we keep σ = 3 \sigma= 3 σ = 3 for both versions. Furthermore, for both decentralized versions we use the ring mixing matrix with parameter θ = 0.5 \theta= 0.5 θ = 0.5 .
We make comparisons based on the following questions which Table 2 gives answers to:
C1) Multi-run CBO vs Decentralized CBO : Given 8 nodes each with M = 20 M = 20 M = 20 agents, does our proposed node communication scheme have a benefit, over running independent runs in parallel?
→ Up to the Katsuura function (which we comment on below) this can always be answered positively, which is in line with our previous observation that communication provides a benefit in most cases.
C2) Serial CBO vs Decentralized CBO a): Decentralized CBO with M = 20 M = 20 M = 20 particles on N = 8 N = 8 N = 8 nodes implicitly evolves an ensemble of N × M = 160 N \times M = 160 N × M = 160 , which we assume distributed across different devices. Although this is not the main interest of the present paper one might ask how a serial CBO algorithm would perform given 160 particles, such that the number of objective function evaluations is matched.
→ The serial variant with M = 160 M = 160 M = 160 particles performs better than the decentralized version with only M = 20 M = 20 M = 20 . This result is expected since in this case the particles can directly communicate.
C3) Serial CBO vs Decentralized CBO b): Assume now each computational node allows for a maximum number of M = 160 M = 160 M = 160 particles to be handled. How much can the usage of N = 8 N = 8 N = 8 nodes improve upon a single one.
→ Using more nodes improves the performance on the Rastrigin function significantly. This is the interesting case for this table since this is the test where the serial variant does not perform well.
Remark 3.3. The Katsuura function defined in [24 ] has an extremely rugged landscape with 10 d 10^d 1 0 d local minimizers within [ − 5 , 5 ] d [-5,5]^d [ − 5 , 5 ] d . We first note, that the good performance of the serial CBO variants is surprising and we were not able to locate a similar performance in the literature. In particular, it appears that in this case the averaging across tracking variables has a negative impact on the numerical performance.
Dimension d = 1000 d = 1000 d = 1000
Beyond the previous scenario we test the optimizers for the high-dimensional case d = 1000 d = 1000 d = 1000 . In this case, we do not expect to find the global minimizer up to high precision, but we can still test how good the optimization performance is. In Table 3 we consider three benchmark functions and report only the median gap of the best found objective value to the optimal one. Note, that in this dimension the standard CMA-ES is not feasible because of the computational effort of building the full covariance matrix. Thus in this case, we instead employ the separable variant introduced in [36 ] as sep-CMA-ES, which uses a diagonal covariance matrix instead. Also note, that we allow 8 restarts to have a fair comparison to the decentralized version with 8 nodes.
Table 3. Benchmark in dimension d = 1000 d = 1000 d = 1000 , we report the median gap f b e s t − f min f_{\mathrm{best}} - f_{\min} f best − f m i n , where f b e s t f_{\mathrm{best}} f best is the best found objective value in one run of the respective algorithm and f min f_{\min} f m i n is the optimal value of the objective. The median is taken over 10 runs.
In Table 3 we can clearly see, that the decentralized CBO variant in this high-dimensional scenario outperforms the serial CBO variant and also the CMA-ES on the selected test problems.
Noisy objective functions
We now study the case, in which we only have access to an estimator of the objective function. To simulate this numerically, we add noise to the output, which we model by a stochastic function
f ^ ( x , ω ) : = f ( x ) + Ξ ( ω ) , \widehat{f}(x,\omega) := f(x) + \Xi(\omega), f ( x , ω ) := f ( x ) + Ξ ( ω ) ,
where Ξ : Ω → R \Xi: \Omega\to\mathbb{R} Ξ : Ω → R is a random variable on the probability space ( Ω , A , P ) (\Omega,\mathcal{A},\mathbb{P}) ( Ω , A , P ) . Note, that compared to Table 2 , we do not formulate a success criterion, since the additive noise makes a precise threshold under which the objective evaluations should fall less meaningful. Instead, we only report the median gap to the optimal value. In this case, also the value of f b e s t f_{\mathrm{best}} f best is not the best recorded value, since this is now biased by noise. Instead, we now take the output of each algorithm, denoted by x ˉ \bar{x} x ˉ and then report f b e s t = f ( x ˉ ) f_{\mathrm{best}} = f(\bar{x}) f best = f ( x ˉ ) . For CBO, the question then is, if this returned point x ˉ \bar{x} x ˉ should correspond to the consensus C ^ k \widehat{C}_k C k at the final iterate k k k , the particle x ~ \tilde{x} x ~ which resulted in the lowest value in f ^ \widehat{f} f for one specific noise realization, or for the decentralized version one of the tracking variables Z k i Z_k^i Z k i for i = 1 : N i = 1 : N i = 1 : N . In order to decide this, we take the following approach after the algorithm terminates: We evaluate f ^ ( C ^ k , ω ) \widehat{f}(\widehat{C}_k,\omega) f ( C k , ω ) for CBO, and f ^ ( Z k i , ω ) \widehat{f}(Z_k^i,\omega) f ( Z k i , ω ) for the decentralized variant, and additionally f ^ ( x ~ , ω ) \widehat{f}(\tilde{x},\omega) f ( x ~ , ω ) for both, on five different realizations ω \omega ω each and then return the point which resulted in the best median noisy objective value. The reported numbers in the tables are then evaluated in the original objective f f f without noise, a quantity the algorithms do not have access to.
Gaussian Noise
In Table 4 we report the performance when Law ( Ξ ) = N ( 0 , σ f 2 ) \operatorname{Law}(\Xi) = \mathcal{N}(0,\sigma_f^2) Law ( Ξ ) = N ( 0 , σ f 2 ) , where in our case, we choose σ f = 0.1 \sigma_f = 0.1 σ f = 0.1 for all functions. Additionally to the standard CMA-ES, here we also compare to a modified version, UH-CMA-ES [25 ] , which is specifically designed to handle noisy objective functions. Compared to Table 2 , we observe that the decentralized variants are more robust to noise in the objective function than the serial CBO variants.
Table 4. Performance of different algorithms over 20 runs with Gaussian noise added to the objective function. The reported value is the median objective value gap f b e s t − f min f_{\mathrm{best}} - f_{\min} f best − f m i n where f b e s t f_{\mathrm{best}} f best is calculated as described in § 3.8.1 .
Heavy-tailed noise
We also perform the previous experiment in a setting where the distribution of Ξ \Xi Ξ has heavier tails. Namely, we choose Ξ = s f ⋅ Ξ ~ \Xi= s_f \cdot\widetilde{\Xi} Ξ = s f ⋅ Ξ , where Law ( Ξ ~ ) \operatorname{Law}(\widetilde{\Xi}) Law ( Ξ ) is the Student’s t t t distribution with 2 degrees of freedom and we choose the scale s f = 0.1 s_f = 0.1 s f = 0.1 for all problems. The results are reported in Table 5 , where we can again observe the noise robustness of the decentralized variants.
Table 5. The same experiment as in Table 4 with heavy-tailed instead of Gaussian noise added to f f f .
Machine learning example
We now consider an application from machine learning, where we are given a finite labeled dataset T \mathcal{T} T and our task is to find a parametrized classifier h x h^x h x with parameters x ∈ R d x \in\mathbb{R}^d x ∈ R d that solves the associated classification problem. We choose for h x h^x h x a simple neural network as in [7 ] , which is defined with weight and bias W ~ ∈ R 784 × 10 \widetilde{W} \in\mathbb{R}^{784 \times10} W ∈ R 784 × 10 , b ∈ R 10 b \in\mathbb{R}^{10} b ∈ R 10 as follows
h x ( u ) : = SoftMax ( BN ( ReLU ( W ~ u + b ) ) ) . h^x(u) := \operatorname{SoftMax}(\operatorname{BN}(\operatorname{ReLU}(\widetilde{W}u+b))). h x ( u ) := SoftMax ( BN ( ReLU ( W u + b ))) .
For a vector z ∈ R d ~ z \in\mathbb{R}^{\widetilde d} z ∈ R d we set ReLU ( z ) i : = max { 0 , z i } \operatorname{ReLU}(z)_i := \max\{0,z_i\} ReLU ( z ) i := max { 0 , z i } , SoftMax ( z ) i : = exp ( z i ) ∑ j = 1 d ~ exp ( z j ) \operatorname{SoftMax}(z)_i := \frac{\exp(z_i)}{\sum_{j=1}^{\widetilde d}\exp(z_j)} SoftMax ( z ) i := ∑ j = 1 d e x p ( z j ) e x p ( z i ) and the batchnorm
BN ( z ) i ( b ) : = z i ( b ) − m ( z ) i s ( z ) i 2 + ϵ ( γ B N ) i + ( β B N ) i \operatorname{BN}(z)_i^{(b)} := \frac{z_i^{(b)}-m(z)_i}{\sqrt{s(z)_i^2+\epsilon}}(\gamma_{\mathrm{BN}})_i+(\beta_{\mathrm{BN}})_i BN ( z ) i ( b ) := s ( z ) i 2 + ϵ z i ( b ) − m ( z ) i ( γ BN ) i + ( β BN ) i
acting on a batch of inputs ( z ( 1 ) , … , z ( B ) ) (z^{(1)},\ldots,z^{(B)}) ( z ( 1 ) , … , z ( B ) ) with batch mean and standard deviation m ( z ) m(z) m ( z ) , s ( z ) s(z) s ( z ) , zero-division prevention ϵ > 0 \epsilon> 0 ϵ > 0 and trainable parameters γ B N , β B N \gamma_{\mathrm{BN}},\beta_{\mathrm{BN}} γ BN , β BN . This results in a total of d = 7840 + 3 ⋅ 10 = 7870 d = 7840 + 3 \cdot10 = 7870 d = 7840 + 3 ⋅ 10 = 7870 learnable parameters, which we collect in the parameter variable x = ( W ~ , b , γ B N , β B N ) x = (\widetilde{W},b,\gamma_{\mathrm{BN}},\beta_{\mathrm{BN}}) x = ( W , b , γ BN , β BN ) . The supervised learning task is then the following optimization problem
min x ∈ R d 1 # T ∑ ( u , v ) ∈ T ℓ ( h x ( u ) , v ) \min_{x \in\mathbb{R}^d}\frac{1}{\#\mathcal{T}}\sum_{(u,v)\in\mathcal{T}}\ell(h^x(u),v) x ∈ R d min # T 1 ( u , v ) ∈ T ∑ ℓ ( h x ( u ) , v )
where ℓ \ell ℓ is a loss function acting on the label space. In our experiments, we consider the differentiable cross-entropy ℓ c e ( v , v ~ ) = − ∑ j = 1 C v ~ j log ( v j ) \ell^{\mathrm{ce}}(v,\widetilde v)=-\sum_{j=1}^{C}\widetilde v_j\log(v_j) ℓ ce ( v , v ) = − ∑ j = 1 C v j log ( v j ) and the non-differentiable 0-1 loss given as
ℓ 0 − 1 ( v , v ~ ) = { 0 if argmax j = 1 , … , C v ~ j = argmax j = 1 , … , C v j , 1 else . \ell^{\mathrm{0-1}}(v,\widetilde v)=
\begin{cases}
0 & \text{if }\operatorname*{argmax}_{j=1,\ldots,C}\widetilde v_j=\operatorname*{argmax}_{j=1,\ldots,C}v_j,\\
1 & \text{else}.
\end{cases} ℓ 0 − 1 ( v , v ) = { 0 1 if argmax j = 1 , … , C v j = argmax j = 1 , … , C v j , else .
With every query to the function f f f , we do not consider the sum over all training pairs, but only randomly subsampled mini-batches. This means that the stochastic function we evaluate is given as
f ^ ( x , ω ) = 1 B ∑ ( u , v ) ∈ S ( ω ) ℓ ( h x ( u ) , v ) , \widehat f(x,\omega)=\frac{1}{B}\sum_{(u,v)\in S(\omega)}\ell(h^x(u),v), f ( x , ω ) = B 1 ( u , v ) ∈ S ( ω ) ∑ ℓ ( h x ( u ) , v ) ,
where S ( ω ) S(\omega) S ( ω ) is a randomly sampled subset S ( ω ) ⊂ T S(\omega) \subset T S ( ω ) ⊂ T with maximum size # S ( ω ) ≤ B ∈ N \#S(\omega) \le B \in\mathbb{N} # S ( ω ) ≤ B ∈ N .
In the first column of Table 6 we compare the performance of the decentralized CBO algorithm to the single-node version and SGD, where we consider classifiers trained on the MNIST dataset [31 ] and report the accuracy on the test set, which was not part of the training process. For B = 64 B = 64 B = 64 we observe a significant performance improvement when using multiple nodes in CBO. A possible explanation for this behavior is not only the increased total number of particles of decentralized CBO, but also that each individual node sees a different batch of the data, meaning that per iteration the multi-node version sees 20 (not necessarily distinct) mini-batches of data, whereas the single node version only 1. In order to study this effect, we increase the batch size to B = 512 B = 512 B = 512 with both methods and see that indeed the serial version improves a lot. However, the performance of the decentralized version is still better. Moreover, it should be noted that for many problems one cannot arbitrarily increase B B B since the associated batch of data would not fit into memory. Thus this is a real advantage of the decentralized version, since it preserves the favorable performance, even with a smaller batch size, split across different nodes.
Table 6. Results for the machine learning application on the MNIST dataset [31 ] . The reported results are the best accuracy on the test data set, taken over 5 different repeats of each experiment. In this case we modify the hyperparameters for CBO to Δ t = 0.4 \Delta t = 0.4 Δ t = 0.4 , σ = 0.1 \sigma= 0.1 σ = 0.1 , α 0 = 1 \alpha_0 = 1 α 0 = 1 and run for 37,500 iterations. Furthermore, we compare the results to a stochastic gradient descent scheme (SGD) using the same mini-batch loss and run for 10,000 iterations.
As expected, in Table 6 we observe that stochastic gradient descent (SGD) with many restarts still beats the CBO variants, which use only zero-order information. We thus furthermore consider the 0-1 loss, which is not differentiable and cannot be handled directly with SGD. Here, the decentralized version is more robust to this more difficult scenario than the single-node version.
Beyond that the decentralized approach opens up another interesting possibility, namely federating the data as in [9 ] . For this we now split up the dataset randomly (i.i.d.) into disjoint subsets T = T 1 ∪ … ∪ T N \mathcal{T} = \mathcal{T}_1 \cup\ldots\cup\mathcal{T}_N T = T 1 ∪ … ∪ T N , where node i i i only has access to its own version of the data T i \mathcal{T}_i T i . In Table 6 we can see that there is a slight drop in performance, however the decentralized CBO algorithm still performs surprisingly well even in this federated setting.
Concluding Remarks
We considered the global minimization of functions that can only be evaluated through a noisy, possibly biased, oracle, and we proposed a decentralized parallel variant of CBO in which each computational node evolves its own swarm towards a local tracking variable, updated through a single round of communication, without the need for a central coordinator. Under suitable assumptions on the method’s parameters and the underlying communication network, we proved that the agents achieve almost sure consensus. Moreover, under a hitting-probability assumption verified for a simplified dynamics, we proved convergence in expectation to the global minimizer within an explicitly bounded number of iterations.
The numerical studies confirmed the theoretical findings on the consensus formation. Moreover, different hyperparameter and ablation studies established that the usage of multiple computational agents together with our proposed communication scheme has a beneficial impact on the numerical performance in most cases. However, we observed that the algorithm is sensitive to the correct choice of hyperparameters. If chosen correctly, we established a strong optimization performance on various benchmarks up to dimension d = 1000 d = 1000 d = 1000 and stochastic objective functions. We also obtained good performance on a machine learning task, where in particular the non-differentiable 0-1 loss, which is not possible to optimize with SGD, seems promising. The positive results in the case where data is split across different nodes call for a more in depth numerical study of possible applications, beyond the toy examples provided here.
AI Methodology
Following the template available at https://simons.berkeley.edu/media/31229/download , Table 7 and the paragraph below describe how AI was involved in the research that led to this work and the preparation of this manuscript.
Table 7. AI Methodology
Details The research direction, the method and the approach to the theoretical analysis, including proofs, as well as the core numerical implementation of the proposed method were developed by the authors without the employment of any AI tool. Claude Opus 5.5 and Sonnet 5.5 were prompted to review the draft to check the correctness of the mathematical arguments, aid uniforming the notation and copy-editing the text. Claude Opus 5.5 was used to debug the core implementation, prepare the benchmarks, executables for hyperparameter studies and with preparing the plots for the paper. It was furthermore used to prepare the illustrations for the oscillatory behavior in § 3.3 .
Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them. This project has received funding from the European Research Council (ERC) under the European Union’s Horizon Europe research and innovation programme (grant agreement No. 101198055, project acronym NEITALG).
Acknowledgments
M.F. and T.R. acknowledge the support of the Munich Center for Machine Learning and the ERC Advanced Grant NEITALG, grant agreement No. 101198055.
G.M. acknowledges the INdAM - GNCS project “Scalable Algorithms for Machine Learning: Dimensionality Reduction, Stochastic and Distributed Optimization”, CUP E53C25002010001.
The authors gratefully acknowledge the computational and data resources provided by the Leibniz Supercomputing Centre (www.lrz.de ).