Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

50
Order by Disordered Action in Swarms Gerardo Beni University of California Riverside

Transcript of Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Page 1: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Order by Disordered Action in Swarms

Gerardo Beni

University of California Riverside

Page 2: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Goal

To show that

for swarms

lack of synchronicity

is not a hindrance

but an advantage

Page 3: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

• ~ 102-10<<23 units

• ~ identical

• ~ short-range

• No centralizationNo common clock

System considered

Page 4: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

What these systems are expected to do

• Tasks beyond the capability of a single unit

• Emergent collective ‘bio-like’ behavior

Page 5: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Collective bio-behavior

• Self-organization

• Growth

• Development

• Reproduction

• Adaptation

• Learningultimately depend on pattern formation

Page 6: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Engineering problem

• Designing systems capable of carrying out Collective bio-behavior (CBB) tasks– Many difficulties– One common difficulty in most CBB tasks:

engineering a method of pattern formation

Page 7: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Engineering pattern formation

• Several methods for CBB design have been proposed

• Most methods are imported from Physics and/or Computer Science

Page 8: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Some methods for engineering pattern formation

• Force fields

• Non-linear dynamics

• PDE

• Diffusion-reaction models

• Cellular automata

• Evolutionary algorithms

• Stochastic processes

Page 9: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

All* methods listed previously share one basic feature:

they evolve according to a common clock– Explicitly– Implicitly (as in most centralized controls)

_________(*) There are always some exceptions

Page 10: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Bio systems have no(*) common clock

But, the most prevalent modes of evolution of engineered systems are:

Parallel (synchronous)

Sequential (asynchronous)

require a common clock

_____________(*) There are always some exceptions

Page 11: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Swarm model based on difference equations

• Advantages– Quantitative– Predictable

• Challenge– Swarms are ‘decentralized’ and ‘not

synchronous’– Difference equations are ‘centralized and

synchronous’

Page 12: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Difference equations from differential equations

• Example: diffusion equation

2

2

x

uK

t

u

Page 13: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Diffusion difference eqn.

= Time step/(spatial step)2

)2( )(1

)()(1

)()1( ki

ki

ki

ki

ki uuuKuu

2xt

Page 14: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Solution by forward evolution

i

k k+1t

i-1

i+1

x

Note: Synchronicity in x common clock updates

Page 15: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Generalization:difference eqns. maps

• map is a more general concept

• A map is a formula that describes a new state in terms of the previous state.

• Most current research using maps focuses on non-linear maps (attractors, chaos,etc.)

Page 16: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Linear maps are also interesting

vuHu kk )()1(

u, v are N-dim vectors and H is a NxN matrix

Page 17: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Definition of Swarm as a map

• Vague definition: – Swarm is some sort of self-organizing entity

• Less vague definition:– Swarm is a self-updating map

• Math definition: next slide

Page 18: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Swarm(*) definition• A vector S such that any of its component

(i=1...N) updates S on local time ti according to a function si of S

• si is often more conveniently written as a function ui of a function vi(S,ti) : si = ui (vi(S,ti))

• In this way we can separate the function that singles out the components to update from the mode of updating them

• An example is the case of vi being linear, and ui being non linear or, e.g., stochastic.

______________(*) not intended to establish what a “swarm” is; this is simply an operational definition

Page 19: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Compare Swarms witha well known case of maps:

The numerical solutions of linear systems

using iterative methods

Page 20: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Numerical solution of linear systems

bAu

)( )(1)()1( kkk AubWuu

System to solve

Iterative solution of this system

NOTE: algorithms differ by the choice of the ‘conditioning matrix’ W

Page 21: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Classic iterative methods

• Jacobi

• Gauss-Seidel

• Jacobi over-relaxation JOR

• Successive over-relaxation SOR

LDW

DW

DW 1

LDW 1

Page 22: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Convergence

• Iterative schemes are generally recast as

AWIH

bWHuu kk

1

1)()1(

•Convergence depends only on H•A necessary and sufficient condition is :

spectral radius of H (H) < 1

Page 23: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Role of spectral radius

• Spectral radius (max modulus of eigenvectors)

• Convergence iff

• Asymptotic rate of convergence

H

HR ln

1H

Page 24: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Forward evolution

i

k k+1t

i-1

i+1

x

Note: Synchronicity in x and ‘centralized control’ updates

Page 25: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Synchronous updating

i

k k+1t

i-1

i+1

xJacobi and JOR iterative methods

Page 26: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Sequential updating

i

k k+1t

i-1

i+1

xGauss-Seidel and SOR iterative methods

Page 27: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Swarm updating

i

k k+1t

i-1

i+1

x

Partial Random Synchronicity

Page 28: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Swarm updating methods

• Quantized over-relaxation method

• Gradient method

1

1

1

i

i

i

bAu

bAu

bAu Do nothing

1;1 )(1

)1(1

)()1(

k

iki

ki

ki uuuu

1;1 )(1

)1(1

)()1(

k

iki

ki

ki uuuu

i i

ki

ki

ki

bAuE

u

Esignuu

2

)()()1(

)(

Page 29: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Quantized over-relaxation

• +converges in many cases

• -proof restricts norm of A

• -proof is only a sufficient condition

• -Only 1-dim cases (practically) solvable

Page 30: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Gradient Method

• +Converges

• -Needs one level more neighbors than interacting units

• -slow

Page 31: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Modified iterative scheme

• Iterative scheme for solving

AWIH

bWHuu kk

1

1)()1(

bAu

• Modified iterative scheme

Page 32: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Sequential updating

• Basic Idea: from the synchronous iteration matrix form ‘row matrices’

H H H

H H H

H H H

1 0 0

0 1 0

H H H

1 0 0

H H H

0 0 1

H H H

0 1 0

0 0 1

Page 33: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Repetitiveness

1 0 0

0 1 0

H H H

H H H

0 1 0

0 0 1

1 0 0

0 1 0

H H H

1 0 0

H H H

0 0 1

Same matrices appear more than once in an updating cycle

Page 34: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

‘Randomness’

1 0 0

0 1 0

H H H

1 0 0

H H H

0 0 1

H H H

0 1 0

0 0 1

1 0 0

0 1 0

H H H

1 0 0

H H H

0 0 1

H H H

0 1 0

0 0 1

Updating cycles are not identical

Page 35: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Partial synchronicity

1 0 0

H H H

H H H

1 0 0

H H H

0 0 1

H H H

0 1 0

H H H

Some matrices update more than one component

Page 36: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Basic Decomposition

• From synchronous to sequential – a special case of asynchronous order

H H H

H H H

H H H

1 0 0

0 1 0

H H H

1 0 0

H H H

0 0 1

H H H

0 1 0

0 0 1

Page 37: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Asynchronous set

1 0 0

0 1 0

H H H

1 0 0

H H H

0 0 1

H H H

0 1 0

0 0 1

Shuffle the matrices and consider all possible permutations

H = synchronous

H”’ = asynchronous (even)

H”’(odd) = asynchronous (odd)

Notation

Page 38: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Proof of convergence: step 1Asynchronicity

Case Spectral radius of H

Spectral radius of H’’’

Spectral radius of Hodd’’’

(i) <1 <1 <1 or 1

(ii) <1 1

(iii) 1 <1 <1 or 1

(iv) 1 1

Asynchronous conditions for convergence for case (i) and (iii) are not strict

Page 39: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Proof of convergence: step 2aRepetition

(ABCD) = (DABC) = (CDAB)=….= (any cyclic permutation)

• Insert extra matrix in H’’’ IH@N IH@(N-1)... IH@i... IH@2 IH@1

1 0 0

0 1 0

H H H

IH@3 • Notation

IH@N IH@(N-1)... IH@i... IH@2 IH@1 = IH@i H”’

Page 40: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Proof of convergence: step 2bRepetition

Notation -norm

N

jjiaA

1,max

1@ iHI

1@ iHIIn general Assume(1)

(1) And (2) not strict assumptions: (1) works e.g. whenever H”’ has zero diagonal as , e.g., in Jacobi(2) works if norm is replaced with L-norm (a suitable L matrix always )

''''''''' @@ ppiHpiH HHIHI

In general (H”’) < 1 1''' pH Assume (2)

( IH@i Hp''') < 11'''@ piH HI

Page 41: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Proof of convergence: step 3aPartial synchronicity

H H H

0 1 0

0 0 1

1 0 0

H H H

0 0 1

1 0 0

0 1 0

H H H

1 0 0

H H H

0 0 1

H H H

0 1 0

H H H

Intermediate between H and H”’

Page 42: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Case Spectral radius of H

Spectral radius of H’’’

Spectral radius of Hodd’’’

(i) <1 <1 <1 or 1

(ii) <1 1

(iii) 1 <1 <1 or 1

(iv) 1 1

Asynchronous conditions for convergence

Partial synchronicitySync/Async Transition

Synchronous/Async Transition

Page 43: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Repetition may lead to convergence:1@

iHI1@

iHIIn general Assume(1)

''''''''' @@ ppiHpiH HHIHI

In general (H”’) < 1 1''' pH Assume (2)

1'''@ piH HI

1''' pH

Diverges Converges

Page 44: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Results• main result: convergence under broad

conditions makes pattern engineering by swarms feasible

• Useful result: Rate of convergence ~ log (H)• Surprising results :

-Sync/Async Transition

-Convergence in cases of synchronous and/or asynchronous non convergence

Page 45: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Convergence

• Much broader range of conditions than previous swarm methods:

(includes, e.g., 2-dim 2nd order diff. eqs.)

• Under this broad range of conditions:– Partially Synchronously random-updating

linear maps reach same fixed point as their synchronously updating counterparts

Page 46: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Rate of convergence

• Swarm ~ r• SOR ~2 r• JOR ~ r• LQOR < r• Swarm gradient << r

r (number of cycles)-1

Page 47: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Clocktime vs. rate of convergence

• Average updating time of a unit : t• Number of units: N• Average time of an update cycle : T• JOR (synchronous) : T=t• SOR (sequential) : T=Nt• Clock time to converge• JOR : ~t/r• SOR : ~Nt/2r

Page 48: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Synchronous/Asynchr. transition

• Swarm may converge even when synchronous updating does not, if the synchronicity is reduced below a critical level.

Page 49: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

Reason for convergence in cases of synch. and/or asynchr. non-convergence

• Some updating orders are inaccessible in synchronous and/or asynchronous cases

• Fluctuations make accessible more updating orders, some of which lead to convergence

• Example: (H)=1.304

(H”’p(even))= 1.063

(H”’p(odd))=2.18

00.87-0.87

0.8700.435

0.87-435.00

H

Effective contraction sequences: IH@3 IH@2 IH@3 and IH@3 IH@1

IH@3

Page 50: Order by Disordered Action in Swarms Gerardo Beni University of California Riverside.

End

Thank you for your attention