43
Abelian Distributed Processors Lionel Levine (Department of Mathematics, MIT) Dartmouth Computer Science Colloquium October 7, 2009 Lionel Levine Abelian Distributed Processors

Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Abelian Distributed Processors

Lionel Levine

(Department of Mathematics, MIT)

Dartmouth Computer Science Colloquium

October 7, 2009

Lionel Levine Abelian Distributed Processors

Page 2: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Talk Outline

I The strong convergence problem in distributed systems.

I Dhar’s model of abelian distributed processors.I The abelian sandpile model.

I The halting problem for sandpiles: robust and explosivebackgrounds.

I Proof ideas: Least Action Principle.I Conjectures about pattern formation.

Joint work with Anne Fey (TU Delft) and Yuval Peres (Microsoft).

Lionel Levine Abelian Distributed Processors

Page 3: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Mathematical Model of a Distributed Network

I Finite or infinite graph G .

I At each vertex v is a finite automaton (“processor”) withstate space Σv and input alphabet M.

I Each processor has a stack of “messages” mi ∈M.I Process a message by

I Popping it off the stack.I Updating internal state.I Sending zero, one or multiple messages to neighbors.

Lionel Levine Abelian Distributed Processors

Page 4: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Mathematical Model of a Distributed Network

I Formally: for each v and each edge e incident to v , we aregiven maps

Tv : Σv ×M → Σv (new internal state)

Te : Σv ×M →M∗ (messages sent along e)

where M∗ =⋃

n≥0Mn.

I Each processor acts on its messages in first-in-first-out order.

I Input: User sends one or more messages to one processor.

I Output: Final states of the processors when all stacks areempty.

Lionel Levine Abelian Distributed Processors

Page 5: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Abelian Distributed Processors

I “In many applications, especially in computer science, oneconsiders such networks where the speed of the individualprocessors is unknown, and where the final state and outputsgenerated should not depend on these speeds. Then it isessential to construct the network so that the order at whichmessages arrive to the processors is immaterial.

– Deepak Dhar (1999)

Lionel Levine Abelian Distributed Processors

Page 6: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

A Wish List

Regardless of the order in which individual processors act:

I The halting status is the same.

I If the computation halts, then the final output is the same.

I The run time (total number of messages processed) is thesame.

I The local run times are the same.

I The list of messages processed by a given processor is thesame.

But are there any interesting examples...?

Lionel Levine Abelian Distributed Processors

Page 7: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Are there any interesting examples...?

Yes!

Lionel Levine Abelian Distributed Processors

Page 8: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

The Abelian Sandpile Growth Model

I Start with a pile of n chips at the origin in the d-dimensionalinteger lattice Zd .

I Any site with at least 2d chips is unstable, and topples bysending one chip to each neighbor.

I This may create further unstable sites, which also topple.I Continue until there are no more unstable sites.

I Abelian property: The final stable configuration does notdepend on the order of topplings!

I Even better, the number of times a given vertex topples doesnot depend on the order of topplings.

Lionel Levine Abelian Distributed Processors

Page 9: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Sandpile of 1,000,000 chips in Z2

Lionel Levine Abelian Distributed Processors

Page 10: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Abelian Sandpiles as Distributed Processors

I State spaceΣv = {0,1, . . . ,dv −1}

where dv is the degree of vertex v .

I Only one type of message: |M|= 1. (think of messages aschips)

I Transition

Tv : Σv → Σv

j 7→ j + 1 (mod dv )

I Number of messages sent along an edge e = (v ,w):

Te(j) =

{0 if j ≤ dv −2

1 if j = dv −1.

Lionel Levine Abelian Distributed Processors

Page 11: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Different Perspectives on ADP

Abelian Distributed Processors can be viewed:

I as a growth model

I as a discrete dynamical system

I as a means of associating algebraic invariants to graphs(e.g., sandpile group)

I as a cellular automaton

I as a model of self-organization and pattern formation

Lionel Levine Abelian Distributed Processors

Page 12: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Growing Sandpiles on a General Background

I Let each site x ∈ Zd start with σ(x) chips.(σ(x)≤ 2d −1)

I We call σ the background configuration.

I Place n additional chips at the origin.

I Let Sn,σ be the set of sites that topple.

Lionel Levine Abelian Distributed Processors

Page 13: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Constant Background σ≡ h

h = 2 h = 1 h = 0

Lionel Levine Abelian Distributed Processors

Page 14: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

The Square Sandpile: d = h = 2

Lionel Levine Abelian Distributed Processors

Page 15: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Closeup of the Lower Left Corner

Lionel Levine Abelian Distributed Processors

Page 16: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Three types of Background σ

I Robust: σ+nδo stabilizes in finitely many topplings, for all n.I Ex: σ≡ h for h ≤ 2d −2.

I Weakly robust: σ +nδo stabilizes for all n, but may requireinfinitely many topplings.

I Ex: σ(x) =

{2d −1 if x1 is even

2d −2 if x1 is odd.

I Explosive: σ +nδo does not stabilize for large n (every site

in Zd topples infinitely often).I Ex: σ≡ 2d −1.

Lionel Levine Abelian Distributed Processors

Page 17: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Cubical Sandpiles

I Let h = 2d −2 (the maximum robust constant background).

I In this case, Fey and Redig showed that the sandpile Sn,h is acube in Zd of radius ≤ n.

I We’d like to improve this bound to something of order n1/d .

Lionel Levine Abelian Distributed Processors

Page 18: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Growth Rate of The Cube

I Theorem (Fey-L.-Peres) Let Sn,2 be the set of sites in Z2

that topple if n+ 2 chips start at the origin and 2 chips startat every other site in Z2. Then for any ε > 0, we have

Sn,2 ⊂ Qr

for all sufficiently large n, where

r =

(2√π

+ ε

)√n

andQr = {x ∈ Z2 : |x1|, |x2| ≤ r}.

I Similar bound with r = Θ(n1/d) in d dimensions, for anyconstant background h ≤ 2d −2.

Lionel Levine Abelian Distributed Processors

Page 19: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Bootstrapping From Small Values of h

I Theorem (L.-Peres) Let Sn,h be the set of sites visited by theabelian sandpile in Zd , starting from n chips at the origin andconstant background h ≤ d −1. Then(

Ball of volumen−o(n)

2d −1−h

)⊂Sn,h⊂

(Ball of volume

n+o(n)

d −h

).

I Improves earlier bounds of Le Borgne and Rossin, Fey andRedig.

Lionel Levine Abelian Distributed Processors

Page 20: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

(Disk of area n/3)⊂ Sn ⊂ (Disk of area n/2)

Lionel Levine Abelian Distributed Processors

Page 21: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Odometer Function

I u(x) = number of times x topples.

I Discrete Laplacian:

∆u(x) = ∑y∼x

u(y)−2d u(x)

= chips received− chips emitted

= τ◦(x)− τ(x)

where τ is the initial unstable chip configurationand τ◦ is the final stable configuration.

Lionel Levine Abelian Distributed Processors

Page 22: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Stabilizing Functions

I Given a chip configuration τ on Zd and a functionu1 : Zd → Z, call u1 stabilizing for τ if

τ + ∆u1 ≤ 2d −1.

I If u1 and u2 are stabilizing for τ, then

τ + ∆min(u1,u2)≤ τ + max(∆u1,∆u2)

= max(τ + ∆u1,τ + ∆u2)

≤ 2d −1

so min(u1,u2) is also stabilizing for τ.

Lionel Levine Abelian Distributed Processors

Page 23: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Least Action Principle

I Let τ be a chip configuration on Zd that stabilizes afterfinitely many topplings, and let u be its odometer function.

I Least Action Principle:

If u1 : Zd → Z≥0 is stabilizing for τ, then u ≤ u1.

I So the odometer is minimal among all nonnegative stabilizingfunctions:

u(x) = min{u1(x) |u1 ≥ 0 is stabilizing for τ}.

I “Sandpiles are lazy.”

Lionel Levine Abelian Distributed Processors

Page 24: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Proof of LAP

I Odometer function u, stabilizing function u1. Want u ≤ u1.

I Perform legal topplings in any order, without allowing anysite x to topple more than u1(x) times, until no such topplingis possible.

I Get a function u′ ≤ u1 and chip configuration τ′ = τ + ∆u′.

I If τ′ is stable, then u′ = u by the abelian property.

I Otherwise, τ′ has some unstable site y , and u′(y) = u1(y).

I Further topplings according to u1−u′ can only increase thenumber of chips at y .

I But y is stable in τ + ∆u1. ⇒⇐

Lionel Levine Abelian Distributed Processors

Page 25: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Background Modification

I Want to bound the sandpile Sn,h when h ≥ d .I Idea: Construct a stabilizing function u1 that

I Clears out the background height h in a strip containing theorigin down to height d −1.

I Piles up the cleared out chips to height 2d−1 on either side ofthe strip.

I By the known bound when h = d −1, we can take the strip tohave width cn1/d , and the n chips at the origin will stabilizewithout leaving the strip.

Lionel Levine Abelian Distributed Processors

Page 26: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Constructing u1

I Can take

u1(x1, . . . ,xd) = w(x1, . . . ,xd) +g(x1)

whereI w is the odometer function for d −1 +nδo .I g : Z→ Z satisfies

∆g(x) =

{d −1−h, 0 < |x | ≤ r0

2d −1−h, r0 < |x | ≤ r1

and g is supported on the interval [−r1, r1].A piecewise quadratic g does the trick.

I u1 is stabilizing if we take ri = cin1/d for suitable c0,c1.

Lionel Levine Abelian Distributed Processors

Page 27: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Bounding One Dimension At A Time

I By the Least Action Principle, the sandpile Sn,h is containedin the support of u1, which is the infinite strip

S1 ={

(x1, . . . ,xd) ∈ Zd : |x1| ≤ r1}.

I But the same argument works for strips in all coordinatedirections, so in fact Sn,h is contained in the cube

S1∩ . . .∩Sd ={x ∈ Zd : max |xi | ≤ r1

}.

Lionel Levine Abelian Distributed Processors

Page 28: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Example: d = h = 2

2 +nδo + ∆min(u1,u2) 2 +nδo + ∆u

radius 2√π

√n ≈ 1.13

√n emperical radius ≈ 0.75

√n

I Blue sites have height 3, aqua 2, yellow 1, red 0.

I Orange sites on the left have negative height.

Lionel Levine Abelian Distributed Processors

Page 29: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

What We’ve Shown

I For any constant background h ≤ 2d −2 in Zd , the sandpileSn,h has diameter of order n1/d .

I What about backgrounds with even more chips?

I Constant background h = 2d −1 is too much.(2d −1 + δo explodes!)

I What if most sites start with 2d−2 chips, and just a few have2d −1 chips?

Lionel Levine Abelian Distributed Processors

Page 30: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

A Few Extra Chips Produce An Explosion

I Let (β(x))x∈Zd be independent Bernoulli random variables

β(x) =

{1 with probability ε

0 with probability 1− ε.

I Theorem (Fey-L.-Peres) For any ε > 0, with probability 1, thebackground 2d −2 + β on Zd is explosive.

I i.e., for large enough n, adding n chips at the origin causesevery site in Zd to topple infinitely many times.

I Same is true if the extra chips start on an arbitrarily sparselattice L⊂ Zd , provided L meets every coordinate plane{xi = k}.

Lionel Levine Abelian Distributed Processors

Page 31: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

How to Prove An Explosion

I Claim: If every site in Zd topples at least once, thenevery site topples infinitely often.

I Otherwise, let x be the first site to finish toppling.

I Each neighbor of x topples at least one more time, so xreceives at least 2d additional chips.

I So x must topple again. ⇒⇐

Lionel Levine Abelian Distributed Processors

Page 32: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Straley’s Argument for Bootstrap Percolation

I Let Ek be the event that each face of the cube Qk starts withat least one extra chip. Then

P(E ck )≤ 2d(1− ε)k .

I By Borel-Cantelli, with probability 1 almost all Ek occur.

Lionel Levine Abelian Distributed Processors

Page 33: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

An Explosion In Progress

I Sites colored black are unstable. All sites in Z2 will toppleinfinitely often!

Lionel Levine Abelian Distributed Processors

Page 34: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

So 2d −2 is the critical value?

I Not so fast! It depends where the extra chips are added...

I For m ≥ 1 let

Λ(m) = {x ∈ Zd : m 6 |xi for all i = 1, . . . ,d}.

I Theorem (Fey-L.-Peres) For any m, the background

σ = 2d −2 + 1Λ(m)

on Zd is robust.I In fact, the set of sites that topple still has diameter order n1/d .

Lionel Levine Abelian Distributed Processors

Page 35: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Lots of Fuel, But No Explosion!

I All sites have background height 3, except those in every fifthrow and column have background height 2.

Lionel Levine Abelian Distributed Processors

Page 36: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

A Mystery: Scale Invariance

I Big sandpiles look like scaled up small sandpiles!

I Let σn(x) be the final number of chips at x in the sandpileof n particles on Zd .

I Squint your eyes: for x ∈ Rd let

fn(x) =1

a2n

∑y∈Zd

||y−√nx ||≤an

σn(y).

where an is a sequence of integers such that

an ↑ ∞ andan√n↓ 0.

Lionel Levine Abelian Distributed Processors

Page 37: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Scale Invariance Conjecture

I Conjecture: There is a sequence an and a functionf : Rd → R≥0 which is locally constant almost everywhere,such that fn→ f at all continuity points of f .

Lionel Levine Abelian Distributed Processors

Page 38: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Two Sandpiles of Different Sizes

n = 100,000 n = 200,000

(scaled down by√

2)

Lionel Levine Abelian Distributed Processors

Page 39: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Locally constant “steps” of f correspond to periodicpatterns:

Lionel Levine Abelian Distributed Processors

Page 40: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

A Mystery: Dimensional Reduction

I Our argument used simple properties of one-dimensionalsandpiles to bound the diameter of higher-dimensionalsandpiles.

I Deepak Dhar pointed out that there seems to be a deeperrelationship between sandpiles in d and d −1 dimensions...

Lionel Levine Abelian Distributed Processors

Page 41: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Dimensional Reduction Conjecture

I σn,d : sandpile of n chips on background h = 2d −2 in Zd .

I Conjecture: For any n there exists m such that

σn,d(x1, . . . ,xd−1,0) = 2 + σm,d−1(x1, . . . ,xd−1)

for almost all x sufficiently far from the origin.

Lionel Levine Abelian Distributed Processors

Page 42: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

A Two-Dimensional Slice of A Three-Dimensional Sandpile

d = 3 (slice through origin) d = 2h = 4 h = 2

n = 5,000,000 m = 46,490

Lionel Levine Abelian Distributed Processors

Page 43: Lionel Levine (Department of Mathematics, MIT) Dartmouth ...pi.math.cornell.edu/~levine/dartmouth-oct09-condensed.pdf(Department of Mathematics, MIT) Dartmouth Computer Science Colloquium

Thank You!

References:

I D. Dhar, The abelian sandpile and related models,http://arxiv.org/abs/cond-mat/9808047

I A. Fey, L. Levine, Y. Peres, Growth rates and explosions insandpiles, http://arxiv.org/abs/0901.3805

Lionel Levine Abelian Distributed Processors