Docsity

Analysis of Convergence Time in Graph Algorithms: Undirected and Directed Graphs, Slides of Business Management and Analysis

Partial preview of the text

Download Analysis of Convergence Time in Graph Algorithms: Undirected and Directed Graphs and more Slides Business Management and Analysis in PDF only on Docsity!

“Naive” Information Aggregation

(Consensus and Averaging)

“Naive” Information Aggregation

(Consensus and Averaging)

The Setting

  • n agents
    • starting values xi(0)
  • reach consensus on some x∗, with either:
    • mini xi(0) ≤ x∗^ ≤ maxi xi(0) (consensus)
    • x∗^ = x^1 (0) +^ · · ·^ +^ xn(0) n

(averaging)

  • averaging when xi ∈ {− 1 , +1} (voting)
  • simple updates, such as: xi :=

xi + xj 2

Social sciences

  • Merging of “expert” opinions
  • Evolution of public opinion
  • Evolution of reputation
  • focus on modeling, analysis (descriptive)

Engineering

  • Distributed computation and sensor networks
    • Fusion of individual estimates
    • Distributed Kalman filtering
    • Distributed optimization (Bertsekas & JNT, 89)
    • Distributed reinforcement learning
  • Networking
    • Load balancing (Cybenko, 89) and resource allocation
    • Clock synchronization (Li & Rus, 06)
    • Reputation management in ad hoc networks
    • Network monitoring
  • Multiagent coordination and control
    • Coverage control
    • Monitoring
    • Creating virtual coordinates for geographic routing
    • Decentralized task assignment
    • Flocking 30

The DeGroot opinion pooling model

x (^) i(t + 1) =

∑ j

a (^) ij x (^) j(t) a (^) ij ≥ 0 , ∑ j a (^) ij = 1

x(t + 1) = Ax(t) A: stochastic matrix

  • Markov chain theory −→ convergence of At
  • x(t + 1) = A(t)x(t): mixing conditions for nonstationary Markov chains (Chatterjee and Seneta, 1977)

Asynchronous

a (^) ij(t): nonzero dij(t): delay of a (^) ij(t): nonzero whenever i dij(t): delay of that messa

Convergence time (time to get close to “steady-state”)

Equal weight to all neighbors Undirected graph: exponential(n) Directed graph: O(n^3 ), tight

Better results for special graphs (Erd¨os-R´enyi, geometric, small world)

The DeGroot op

x (^) i(t + 1) =

∑ j

a (^) ij x (^) j(t)

x(t + 1) = Ax(t)

  • Markov chain theory −
  • x(t + 1) = A(t)x(t): mixing conditions for n (Chatterjee and Seneta

Θ(n^2 ) for line graphs

Convergence time (time to get close to “steady-state”)

Equal weight to all neighbors Undirected graph: exponential(n)

Directed graph: O(n^3 ), tight

Convergence time (time to get close to “steady-state”)

Equal weight to all neighbors Directed graphs: exponential(n)

Undirected graphs: O(n^3 ), tight (Landay and Odlyzko, 1981)

Better results for special graphs (Erd¨os-R´enyi, geometric, small world)

Convergence time (time to get c

Equal weight to all neighbors Directed graphs: exponential(n)

Undirected graphs: O(n^3 ), tight

Better results for special graphs (Erd¨os-R´enyi, geometric, small w

Averaging algorithms

  • A doubly stochastic: 1 ′^ A x = 1 ′^ x
    • positive diagonal
    • nonzero entries are ≥ α > 0
    • convergence to x∗^ = x^1 (0)+··· n+xn(0)
    • convergence time = O(n^2 /α)
  • V (x) =

∑ i

(xi − x∗)^2 is a Lyapunov function

convergence time = O(n^2 /α)

40

  • Key fact: over B time steps |∆V^ | V

≥ α 2 n^2 (Nedic, Ozdaglar, Olshevsky & JNT, 08)

  • bidirectional graph, natural algorithm:

xi := xi + 1 2 n

∑ neighbors j

(x (^) j − x (^) i)

α ∼ 1 n

=⇒ convergence time = O(n^3 ) (tight)

ey fact: over B time steps |∆V^ | V

≥ α 2 n^2 dic, Ozdaglar, Olshevsky & JNT, 08)

idirectional graph, natural algorithm:

xi := xi + 1 2 n

∑ neighbors j

(x (^) j − x (^) i)

1 n

=⇒ convergence time = O(n^3 ) (tight)

  • Key fact: over B time steps |∆V^ | V

≥ α 2 n^2 (Nedic, Ozdaglar, Olshevsky & JNT, 08)

  • bidirectional graph, natural algorithm:

xi := xi + 1 2 n

∑ neighbors j

(x (^) j − x (^) i)

α ∼ 1 n

convergence time = O(n^3 )

convergence time = Ω(n^3 )

Averaging algorithms

  • A doubly stochastic: 1 ′^ A x = 1 ′^ x
    • positive diagonal
    • nonzero entries are ≥ α > 0
    • convergence to x∗^ = x^1 (0)+··· n+x^ n(0)
    • convergence time = O(n^2 /α)
  • V (x) =

∑ i

(x (^) i − x∗) 2 is a Lyapunov function

convergence time = O(n^2 /α)

40

  • Key fact: over B time steps |∆V^ | V

≥ α 2 n^2

  • bidirectional graph, natural algorithm:

xi := xi + 1 2 n

∑ neighbors j

(x (^) j − x (^) i)

α ∼ 1 n

convergence time = O(n^3 )

Averaging algorithms

  • A(t) doubly stochastic: 1 ′^ A(t) x = 1 ′^ x
    • positive diagonal
    • nonzero entries are ≥ α > 0
    • strong connectivity over B time steps
    • convergence to x∗^ = x^1 (0)+··· n+x^ n(0)
    • convergence time = O(n^2 /α)
  • V (x) =

∑ i

(x (^) i − x∗) 2 is a Lyapunov function

convergence time = O(n^2 /α)

31

Averaging algorithms

  • A doubly stochastic: 1 ′^ A x = 1 ′^ x
    • positive diagonal
    • nonzero entries are ≥ α > 0
    • convergence to x∗^ = x^1 (0)+··· n+x^ n(0)
    • convergence time = O(n^2 /α)
  • V (x) =

∑ i

(x (^) i − x∗) 2 is a Lyapunov function

convergence time = O(n^2 /α)

40

  • Key fact: over B time steps |∆V^ | V

≥ α 2 n^2 (Nedic, Ozdaglar, Olshevsky & JNT, 08)

  • bidirectional graph, natural algorithm:

xi := xi + 1 2 n

∑ neighbors j

(x (^) j − x (^) i)

α ∼ 1 n

=⇒ convergence time = O(n^3 ) (tight)

ey fact: over B time steps |∆V^ | V

≥ α 2 n^2 dic, Ozdaglar, Olshevsky & JNT, 08)

idirectional graph, natural algorithm:

xi := xi + 1 2 n

∑ neighbors j

(x (^) j − x (^) i)

1 n

=⇒ convergence time = O(n^3 ) (tight)

  • Key fact: over B time steps |∆V^ | V

≥ α 2 n^2 (Nedic, Ozdaglar, Olshevsky & JNT, 08)

  • bidirectional graph, natural algorithm:

xi := xi + 1 2 n

∑ neighbors j

(x (^) j − x (^) i)

α ∼ 1 n

convergence time = O(n^3 )

convergence time = Ω(n^3 )

Averaging algorithms

  • A doubly stochastic: 1 ′^ A x = 1 ′^ x
    • positive diagonal
    • nonzero entries are ≥ α > 0
    • convergence to x∗^ = x^1 (0)+··· n+x^ n(0)
    • convergence time = O(n^2 /α)
  • V (x) =

∑ i

(x (^) i − x∗) 2 is a Lyapunov function

convergence time = O(n^2 /α)

40

  • Key fact: over B time steps |∆V^ | V

≥ α 2 n^2

  • bidirectional graph, natural algorithm:

xi := xi + 1 2 n

∑ neighbors j

(x (^) j − x (^) i)

α ∼ 1 n

convergence time = O(n^3 )

Averaging algorithms

  • A(t) doubly stochastic: 1 ′^ A(t) x = 1 ′^ x
    • positive diagonal
    • nonzero entries are ≥ α > 0
    • strong connectivity over B time steps
    • convergence to x∗^ = x^1 (0)+··· n+x^ n(0)
    • convergence time = O(n^2 /α)
  • V (x) =

∑ i

(x (^) i − x∗) 2 is a Lyapunov function

convergence time = O(n^2 /α)

31

Averaging algorithms

  • A doubly stochastic: 1 ′^ A x = 1 ′^ x
    • positive diagonal
    • nonzero entries are ≥ α > 0
    • convergence to x∗^ = x^1 (0)+··· n+x^ n(0)
    • convergence time = O(n^2 /α)
  • V (x) =

∑ i

(x (^) i − x∗) 2 is a Lyapunov function

convergence time = O(n^2 /α)

40

Averaging algorithms
  • A doubly stochastic: 1 ′^ A x = 1 ′^ x
    • positive diagonal
    • nonzero entries are ≥ α > 0
    • convergence to x∗^ = x^1 (0)+··· n+x^ n(0)
    • convergence time = O(n^2 /α)
  • V (x) = ∑ i

(x (^) i − x∗) 2 is a Lyapunov function

convergence time = O(n^2 /α)

ring: O(n^2 ) Conjecture: any doubly stoch. on ring is Ω(n^2 )

  • Fixed matrix A, subject to given graph/zero patterns optimize A via SDP (Boyd & Xiao, 2003)
  • i.i.d. random graphs: same (in expectation) as fixed graphs; convergence rate ←→ “mixing times”
  • Fairly arbitrary sequence of graphs/matrices A(t): worst-case analysis
  • “equal-neighbor model”: x (^) i := average of messages and own value
  • bidirectional model: ∀ t: i → j iff i ← j
  • doubly stochastic A(t): sum & average preserving
Asynchronous co

x (^) i(

a (^) ij(t): nonzero whe

dij(t): delay of tha

(J

a (^) ij(t): nonzero whenever i rece

dij(t): delay of that message

zero-delay case: x(t + 1) = A(t

Asynchronous computation model

Time-Varying/Chaotic Environments

x i(t + 1) =

j

a ij(t) x j

t − dij(t)

a ij(t): nonzero whenever i receives message from

dij(t): delay of that message

Asynchronous co

(JNT, Bertsekas, Athans, 1986)

a (^) ij(t): nonzero whenever i receives message from j

dij(t): delay of that message

zero-delay case: x(t + 1) = A(t)x(t) (inhomogeneous chain) 27

j

: nonzero whenever i receives message from

: delay of that message

Asynchronous co

(JNT, Bertsekas, Athans, 1986)

x (t + 1) =

a

x (^) i(t + 1) =

j

a (^) ij(t)x (^) j(t)

henever i receives message from j

at message

24

x i(t + 1) =

j

a ij(t) x j

t − dij(t)

a ij(t): nonzero whenever i receives message from

dij(t): delay of that message

Asynchronous co

(JNT, Bertsekas, Athans, 1986)

x i(t + 1) =

j

a

x (^) i(t + 1) =

∑ j

a (^) ij(t)x (^) j(t)

a (^) ij(t): nonzero whenever i receives message from j

dij(t): delay of that message 24

x(t + 1) = A(t)x(t) (inhomogeneous Markov chain)

Docsity.com

Convergence result

x (^) i(t + 1) =

∑ j

a (^) ij(t)x (^) j

( t)

  • a (^) ii(t) > 0; a (^) ij(t) > 0 =⇒ a (^) ij(t) ≥ α > 0
  • “strong connectivity in bounded time”: over B time steps “communication graph” is strongly connected
  • Convergence to consensus: ∀ i : x (^) i(t) → x∗^ = convex combination of initial values

Proof outline

  • convergence at the rate of a geometric progression
  • “convergence time”: exponential in n and B
    • even for the equal neighbor model, with symmetric graph at each time

Proof outline

  • convergence at the rate of a geometric progression
  • “convergence time”: exponential in n and B
    • even for the equal neighbor model, with symmetric graph at each time

Docsity.com

as |xi| ≥ 1 / √ n some node has opposite si ast 1 / √ n some gap at least 1/n^1.^5 teps, communicate across gap: V improves by ∼ rgence time: O(n^3 /α) α ∼ 1 /degree −→ nt for simultaneous contributions of all gaps: O egree bounded −→ 1 /α bounded −→ O(n^2 ) g in time-varying graphs: than consensus on fixed graphs

Averaging algorithms – analysis

  • Suppose initially ∑ i x (^) i(0) = 0, ∑ i x^2 i = 1

some node has |xi| ≥ 1 / √ n some node has opposite sign total gap at least 1/ √ n some gap at least 1/n^1.^5

  • Over B steps, communicate across gap: V improves by ∼ α/n^3
    • Convergence time: O(n^3 /α) α ∼ 1 /degree −→ O(n^4
    • Account for simultaneous contributions of all gaps: O(n^2 /α)
    • Keep degree bounded −→ 1 /α bounded
  • Averaging in time-varying bidirectional graphs:

no harder than consensus on fixed graphs Averaging in Time-Varying Setting

  • x(t + 1) = A(t)x(t)
    • A(t) doubly stochastic, for all t
    • O(n^2 /α) bound remains valid!
  • Improved convergence rate
    • Exchange “load” with only one neighbor at a time
    • can use α = O(1)
    • convergence time: O(n^2 )
  • Is there a Ω(n^2 ) bound to be discovered?

Averaging in Time-Varying Setting

  • x(t + 1) = A(t)x(t)
    • A(t) doubly stochastic, for all t
    • O(n^2 /α) bound remains valid!
  • Improved convergence rate
    • Exchange “load” with only one neighbor at a time
    • can use α = O(1)
    • convergence time: O(n^2 )

41

  • Key fact: over B time steps |∆V

V

  • bidirectional graph, natural algorit

xi := xi + 1 2 n ∑ neighbors α ∼ 1 n convergence time = O(n^3 ) convergence time = Ω(n^3 ) Averaging in Time-Varying Setting

  • x(t + 1) = A(t)x(t)
    • A(t) doubly stochastic, for all t
    • O(n^2 /α) bound remains valid!
  • Improved convergence rate
    • exchange “load” with up to two neighbors at a time
    • can use α = O(1)
    • convergence time: O(n^2 )
  • Is there a Ω(n^2 ) bound to be discovered?

42

The Voting Problem

  • Deciding majority when xi(0) ∈ {− 1 , 1 } [is average> 0?]
    • Do it without moving real numbers around?
    • Impose memory limitations
    • Fixed but unknown graphs
    • Anonymous nodes, all running same code
  • Idea: move −1s and +1s around
    • cancel them when they meet
    • see what is left
  • Randomized algorithm possible
    • one bit of extra memory (plus needs for randomization) (B´en´ezit, Thiran & Vetterli, 09)
  • Deterministic O(n^2 ) algorithm possible
    • use O(log(degree)) bits at each node (Hendrickx, Olshevsky & JNT, 09)
    • is this memory unavoidable?
    • Can the time be improved? 45

The Voting Problem

  • Deciding majority when xi(0) ∈ {− 1 , 1 } [is average> 0?]
    • Do it without moving real numbers around?
    • Impose memory limitations
    • Fixed but unknown graphs
    • Anonymous nodes, all running same code
  • Idea: move −1s and +1s around
    • cancel them when they meet
    • see what is left
  • Randomized algorithm possible
    • one bit of extra memory (plus needs for randomization) (B´en´ezit, Thiran & Vetterli, 09)
  • Deterministic O(n^2 ) algorithm possible
    • use O(log(degree)) bits at each node (Hendrickx, Olshevsky & JNT, 09)
    • is this memory unavoidable?
    • Can the time be improved? 45

The Voting Problem

  • Deciding majority when xi(0) ∈ {− 1 , 1 } [is average> 0?]
    • Do it without moving real numbers around?
    • Impose memory limitations
    • Fixed but unknown graphs
    • Anonymous nodes, all running same code
  • Idea: move −1s and +1s around
    • cancel them when they meet
    • see what is left
  • Randomized algorithm possible
    • one bit of extra memory (plus needs for randomization)
  • Deterministic O(n^2 ) algorithm possible
    • use O(log(degree)) bits at each node (Hendrickx, Olshevsky & JNT, 09)
    • is this memory unavoidable?
    • Can the time be improved? 45

The Voting Problem

  • Deciding majority when xi(0) ∈ {− 1 , 1 } [is average> 0?]
    • Do it without moving real numbers around?
    • Impose memory limitations
    • Fixed but unknown graphs
    • Anonymous nodes, all running same code
  • Idea: move −1s and +1s around
    • cancel them when they meet
    • see what is left
  • Randomized algorithm possible
    • one bit of extra memory (plus needs for randomization) (B´en´ezit, Thiran & Vetterli, 09)
  • Deterministic O(n^2 ) algorithm possible
    • use O(log(degree)) bits at each node
    • is this memory unavoidable?
    • Can the time be improved?

Closing Thoughts

Engineering

  • Bayesian versus naive
    • Bayesian: when we have reasonable statistical assumptions
    • Naive: when we know what we want to compute and it is a simple function
    • Pose models of computation and find the best possible

Social Networks

  • What are the plausible models?

Closing Thoughts

Engineering

  • Bayesian versus naive
    • Bayesian: when we have reasonable statistical assumptions
    • Naive: when we know what we want to compute and it is a simple function
    • Pose models of computation and find the best possible

Social Networks

  • What are the plausible models?