Search

Search papers and lessons

Coordination of Groups of Mobile Autonomous Agents Using Nearest Neighbor Rules

Ali Jadbabaie, Jie Lin, A. Stephen Morse · 2003

Jadbabaie, Lin and Morse proved that the Vicsek flocking rule, where each agent copies the average heading of its neighbours, makes all headings converge if neighbours link up often enough over time.

On this page

  • Colour = topic mix
  • Probability
  • Calculus
  • Linear algebra
  • Control systems
  • Discrete math
  • Stochastic processes
  • Sign in to see your progress

TL;DR

Vicsek and colleagues showed in 1995 that a flock of simple particles can line up their headings using one local rule: each particle turns toward the average heading of the neighbours it can see. Simulations showed it works, but nobody had a proof. Jadbabaie, Lin and Morse gave one. If the neighbour links, taken together over time, keep the group connected across bounded windows, every heading converges to a common direction.

Where you'll see it: the foundation of distributed consensus in multi-robot systems, sensor networks and drone swarms, where no agent knows the whole group.

The problem

Flocks of birds and schools of fish line up without a leader. Vicsek's 1995 model reproduced this with particles that move at constant speed and only change their heading. Each step, a particle averages its heading with the headings of particles within a fixed radius and adopts that average. The simulations showed a transition: at low noise the headings align, and at high noise they do not.

The gap was the proof. Earlier analyses of flocking models usually assumed a fixed neighbour graph, meaning that each agent always had the same neighbours. In the Vicsek model that assumption is false: particles move, so the neighbour sets change every step. Analysing a system whose connections keep changing is much harder, and before this paper there was no general argument that the headings must converge when they do.

Key idea

Treat the group as one system that changes its rule at each step. At time tt the neighbour relationships form a graph, and the rule depends only on which graph is active. The state is the vector of headings. Each step multiplies this vector by a matrix chosen by the current graph (a switched system, see Switched Linear System). The question becomes: when products of such matrices are taken over a long time, do they flatten the state to a single common value?

The answer is yes, under a weak condition. The graphs do not need to be connected at any single step. It is enough that, over each window of bounded length, the union of the graphs is connected. In words: information can flow between any two agents within each window, even if it takes several hops and several steps.

flowchart LR
  A[Each agent sees neighbours within a radius] --> B[Graph changes with positions]
  B --> C[Heading update: average over self and neighbours]
  C --> D[Each step: state times a stochastic matrix]
  D --> E{Graphs jointly connected over each bounded window?}
  E -->|yes| F[All headings converge to one common value]
  E -->|no| G[Convergence not guaranteed by this argument]

The method

The heading model

Let xi(t)x_i(t) be the heading of agent ii at discrete time tt. Let Ni(t)\mathcal{N}_i(t) be the set of neighbours of ii at time tt, including ii itself by convention. The leaderless rule is

xi(t+1)=1∣Ni(t)∣∑j∈Ni(t)xj(t)x_i(t+1) = \frac{1}{\lvert \mathcal{N}_i(t) \rvert} \sum_{j \in \mathcal{N}_i(t)} x_j(t)

Each agent averages the headings of itself and its neighbours. This is the local averaging rule studied in Multi-Agent Consensus. Here ∣Ni(t)∣\lvert \mathcal{N}_i(t) \rvert counts the agents in the set, and the sum runs over the set.

Graphs and matrices

Let GG be a simple undirected graph on the vertices {1,…,n}\{1, \dots, n\}, with Adjacency Matrix AGA_G (entry 11 when two agents are neighbours, 00 otherwise) and degree matrix DGD_G (diagonal, with the number of neighbours of each agent). The paper writes the update as one matrix equation,

x(t+1)=Fσ(t) x(t),FG=(I+DG)−1(I+AG),x(t+1) = F_{\sigma(t)}\, x(t), \qquad F_G = (I + D_G)^{-1}(I + A_G),

where σ(t)\sigma(t) is the index of the graph active at time tt. The matrix FGF_G has three useful properties. Each row is nonnegative and sums to 11, so FGF_G is a stochastic matrix (a transition matrix). Dividing by 1+1 + degree is what makes each row sum to 11. Each diagonal entry is positive, since every agent keeps some weight on its own heading. And the matrix has the sparsity pattern of the graph.

The paper does not model how σ(t)\sigma(t) depends on the positions of the agents. It treats σ(t)\sigma(t) as any switching signal from a set of graphs, which is more general than what the physical model produces, and proves results for all such signals that satisfy the connectivity condition.

The main theorem

A collection of graphs on the same vertices is jointly connected if their union, with edges pooled, is a connected graph. A single graph can be disconnected while a collection of such graphs is jointly connected, which is exactly what happens when two agents are never neighbours at the same time but are linked through a third agent at different times.

The paper's main theorem says the following. Suppose there is an infinite sequence of contiguous time intervals of bounded length, and across each interval the graphs active during it are jointly connected. Then there is a constant θˉ\bar\theta such that lim⁡t→∞xi(t)=θˉ\lim_{t \to \infty} x_i(t) = \bar\theta for every agent ii. The constant depends only on the initial headings and the graphs.

The proof rests on a classical result of Wolfowitz (1963). Call a stochastic matrix SIA if it is stochastic, indecomposable and aperiodic, which means its powers converge to a matrix with all rows equal. Wolfowitz showed that if every finite product drawn from a finite set of matrices is SIA, then every infinite product from the set converges to such a rank-one limit. The paper shows that the product of matrices over a jointly connected window is SIA, and the bounded window length keeps the set of possible window products finite. That finiteness is why the theorem needs bounded windows.

Leader following

The paper adds a leader, agent 00, that moves with a fixed heading. Followers update as before, and include the leader in their neighbour sets when it is in range. Under a similar connectivity condition, all followers converge to the leader's heading.

Why not a Lyapunov function

A standard way to prove stability of a switched linear system is to find one quadratic Lyapunov function V(x)=x⊤PxV(x) = x^\top P x, with PP positive definite, that decreases under every possible switch. The paper's convergence proof does not use such a function. It works with products of stochastic matrices instead, which handles arbitrary switching among the graphs as long as the connectivity condition holds.

Results

The paper's results are theorems, not numerical tables, so their content is structural.

  • Discrete convergence. If each window of bounded length is jointly connected, headings converge to a common value. If the graph is connected at every step, this is the special case of windows of length one.
  • Leader following. Followers converge to the leader's heading under a bounded-window connectivity condition that includes the leader.
  • Method. Convergence is proved for any switching signal, not just the one the physical model produces, using products of stochastic matrices rather than a common quadratic Lyapunov function.

Why it mattered

The paper turned a simulation result into a theorem. It made clear that convergence of a changing-neighbour system comes from products of stochastic matrices, not from a fixed graph. That idea became the basis of most later distributed consensus work: a group can agree on a value using only local averages, as long as the information network is connected over time.

Many follow-up results generalised the setup, including directed graphs, delays, and communication losses, and analysed how fast the convergence happens. Consensus averaging is now a building block of distributed estimation, formation control and sensor networks. The Vicsek model itself remains a standard test case in active-matter physics and collective behaviour.

The proof technique also showed control engineers that product-based arguments can succeed for switched systems where a single quadratic Lyapunov function is hard to find.

Reading guide

Read in this order and keep the following prerequisites nearby.

Check yourself

QuestionRecall: why does the paper use a time-varying matrix rather than one fixed matrix?Show answer
Because the neighbour sets change as the agents move, so the graph, and therefore the update matrix, changes from step to step. A fixed-matrix analysis does not apply.
QuestionComputation: three agents with headings 00, 11, 22 and neighbour sets {1,2}\{1,2\}, {1,2,3}\{1,2,3\}, {2,3}\{2,3\} (each including the agent itself). What are the headings after one step?Show answer
Agent 1 averages 00 and 11, giving 0.50.5. Agent 2 averages 00, 11 and 22, giving 11. Agent 3 averages 11 and 22, giving 1.51.5. The new headings are 0.50.5, 11, 1.51.5.
QuestionWhy: why is the bounded-window condition needed in the main theorem and not only the requirement that the union of all graphs is connected?Show answer
Stochastic matrices alone do not guarantee convergence of long products. The argument needs a finite set of window products that are each SIA, and bounded windows keep that set finite. Without the bound, that step of the proof fails.
QuestionApplied: a swarm of drones uses this rule, but a gust of wind keeps two drones out of range of each other for long stretches, while a third drone is in range of both. Does the theorem apply?Show answer
Yes, provided that within every bounded window the three drones are linked, directly or through the third drone. Two drones never being neighbours is allowed, because the condition is joint connectivity over the window, not connectivity at each step.

Sources

Read the full paper

Ali Jadbabaie, Jie Lin, A. Stephen Morse, 2003.