Search

Search papers and lessons

Vicsek Model

Level 3 · 12 min read

The Vicsek model is a simple rule for moving particles that copy the average heading of their neighbours plus some noise, and it shows that a group can order itself into a moving flock through a phase transition.

On this page

  • Colour = topic mix
  • Calculus
  • Classical mechanics
  • Linear algebra
  • Thermal physics
  • Discrete math
  • Probability
  • ReadReady to readNot yet

TL;DR

The Vicsek model describes a group of particles that all move at the same speed and, at each step, turn to point along the average heading of their neighbours, with a small random error added. Its question is simple: when does the group end up moving in one common direction? The answer is a phase transition. With little noise the particles align into a moving flock, and with enough noise the headings scatter. The model matters because it shows that alignment of a whole group can appear from purely local rules, with no leader and no global plan.

Builds on: Phase Transition, Order Parameter · Leads to: Coordination of Groups of Mobile Autonomous Agents Using Nearest Neighbor Rules

Where it's used

Bird flocks and fish schools. Starlings in a murmuration and fish in a school move as a group in one direction for long stretches. Each animal responds to nearby neighbours, and the group's coordinated motion is the phenomenon the model was built to capture. Real flocks are far more complicated than the model, but the model is a standard reference point for how local alignment can produce a collective heading.

Swarms of robots. Groups of small mobile robots are sometimes programmed with a neighbour-averaging rule, because it needs no central controller and tolerates robots joining or leaving. Designers use Vicsek-type rules to study how much noise, in sensing or motion, a swarm can absorb before it stops moving together.

Active matter in the lab. Colloids of self-propelled particles, such as colloidal particles driven by electric fields, have been studied as physical systems in which a noise-driven order-disorder transition like the one in the model can be seen. These systems are a bridge between the abstract model and measurable physics.

How it works

We follow three particles moving in a plane. Each particle has the same speed, and each has a heading, which is the direction it points. Write headings as unit vectors: east is (1,0)(1, 0), north is (0,1)(0, 1). Particle A points east, particle B points north, and particle C points east. All three are close enough to see each other, so each counts all three as neighbours.

flowchart TD
  A["Each particle finds its neighbours within a fixed radius"] --> B["Add the neighbours' heading vectors"]
  B --> C["New heading = direction of that sum, plus a small random error"]
  C --> D["Every particle moves one step at the same speed"]
  D --> E["Measure how well the headings agree"]
  E --> A
  1. Find the neighbours. Each particle looks at every particle within a fixed distance, including itself. Here that is all three particles. Check: the neighbour set is the same for everyone, because they are close together.
  2. Add the headings. The sum of the three unit vectors is (1,0)+(0,1)+(1,0)=(2,1)(1, 0) + (0, 1) + (1, 0) = (2, 1). Check: the first and last components add to 2, the second to 1.
  3. Take the direction of the sum. The direction of (2,1)(2, 1) is about 27 degrees above east. This is the average heading. Check: it leans toward east, which two of the three particles point along.
  4. Update with no noise. Each particle turns to this average heading. Now all three point the same way, so they move as one group. Check: the spread of headings went from two directions to one.
  5. Add noise and repeat. Suppose each particle now adds a small random turn to its new heading. The headings no longer match exactly, so the group is less aligned. Check: the more noise, the more the headings scatter, and the less the group moves as one.

The key idea is in step 5. The rule is the same for every particle, and the only thing that changes the outcome is how much randomness is allowed. That balance between alignment and noise is what the rest of the lesson measures.

The math

Let there be NN particles in a plane. Particle ii has position xi\mathbf{x}_i, a velocity vi=v0 e(θi)\mathbf{v}_i = v_0 \, \mathbf{e}(\theta_i) with fixed speed v0v_0, and heading θi\theta_i, where e(θ)=(cos⁡θ,sin⁡θ)\mathbf{e}(\theta) = (\cos\theta, \sin\theta) is the unit vector at angle θ\theta. Let Ni(t)\mathcal{N}_i(t) be the set of particles within a fixed distance rr of particle ii at time tt, including ii itself.

Definition: Vicsek update rule

At each time step, every particle sets its new heading to the average heading of its neighbours, plus a noise term:

θi(t+1)=arg⁡ ⁣(∑j∈Ni(t)e(θj(t)))+ξi(t),\theta_i(t+1) = \operatorname{arg}\!\left(\sum_{j \in \mathcal{N}_i(t)} \mathbf{e}(\theta_j(t))\right) + \xi_i(t),

where arg⁡\operatorname{arg} is the angle of a vector and ξi(t)\xi_i(t) is drawn uniformly from the interval [−η/2,η/2][-\eta/2, \eta/2], with η\eta the noise strength. Then each particle moves one step of length v0v_0 in its new direction.

Each symbol in words: θi\theta_i is the heading of particle ii, Ni\mathcal{N}_i is its set of neighbours, η\eta is the width of the noise, and the argument of the sum is the direction of the summed unit vectors. The average is taken over vectors rather than over angles, which avoids the problem that angles wrap around.

Step 2 in symbols: the average heading

For the walkthrough, the sum over the three neighbours is e(0)+e(π/2)+e(0)=(1,0)+(0,1)+(1,0)=(2,1)\mathbf{e}(0) + \mathbf{e}(\pi/2) + \mathbf{e}(0) = (1,0) + (0,1) + (1,0) = (2, 1). Its angle is arg⁡(2,1)=arctan⁡(1/2)≈0.464\operatorname{arg}(2,1) = \arctan(1/2) \approx 0.464 radians, or about 26.6 degrees. Check: tan⁡(0.464)≈0.5\tan(0.464) \approx 0.5.

The order parameter

The natural order parameter is the length of the average velocity, normalised so that it lies between 0 and 1:

ϕ=1Nv0∣∑i=1Nvi∣.\phi = \frac{1}{N v_0}\left|\sum_{i=1}^{N} \mathbf{v}_i\right|.

If all particles point the same way, the vectors add up in full and ϕ=1\phi = 1. If their headings are spread uniformly, the vectors cancel and ϕ\phi is near 0. Check: this is the same as the magnetisation of a magnet, with headings playing the role of spin directions. In the walkthrough, after step 4 the three headings agree, so ϕ=1\phi = 1.

Step 5 in symbols: noise and the transition

Increasing η\eta makes the headings spread out, which lowers ϕ\phi. The model has a critical noise strength ηc\eta_c that separates a moving ordered phase from a disordered one at a given density. The 1995 paper reported that ϕ\phi fell as the noise grew, and compared the change with ordering in a magnet. The distinction between gradual and sudden transitions is discussed in Phase Transition. The schematic curve below shows the expected shape, not measured data.

00.20.40.60.8100.20.40.60.81noise strength, eta divided by its maximumorder parameter, phi
  • schematic: order parameter phi
A schematic picture of the transition. Below a critical noise level the particles move together; above it the order parameter falls to zero. The curve is an illustration of the shape, not a plot of simulation results.

Worked examples

Example
1. Tiny: two particles, a right angle apart

Particle 1 points along θ=0\theta = 0 and particle 2 points along θ=π/2\theta = \pi/2. There is no noise, and each counts both particles as neighbours.

  1. Sum of headings: (1,0)+(0,1)=(1,1)(1, 0) + (0, 1) = (1, 1).
  2. Direction of the sum: arctan⁡(1/1)=π/4\arctan(1/1) = \pi/4, which is 45 degrees.
  3. Both particles turn to 45 degrees. Check: they now have the same heading.
  4. Order parameter: each unit vector is (0.707,0.707)(0.707, 0.707), so the sum is (1.414,1.414)(1.414, 1.414) with length 2. Then ϕ=2/(2×1)=1\phi = 2 / (2 \times 1) = 1.

Interpretation: two particles that see each other align after one step with no noise, and the order parameter is 1.

Example
2. Standard: four particles, two in each direction

Four particles have headings 0, 0, π/2\pi/2 and π/2\pi/2, and all four are neighbours. There is no noise.

  1. Order parameter before the update: the unit vectors are (1,0)(1,0), (1,0)(1,0), (0,1)(0,1) and (0,1)(0,1). Their sum is (2,2)(2, 2), with length 8≈2.83\sqrt{8} \approx 2.83. So ϕ=2.83/4≈0.71\phi = 2.83 / 4 \approx 0.71. Check: the two directions cancel partly, so ϕ\phi is below 1.
  2. Sum of headings for the update: (2,2)(2, 2), which points at 45 degrees.
  3. After the update all four particles have heading π/4\pi/4. Check: they share one direction.
  4. Order parameter after the update: ϕ=4/4=1\phi = 4 / 4 = 1.

Interpretation: a noise-free update drives the group into full alignment in one step, and the order parameter rises from about 0.71 to 1.

Example
3. Realistic: a flock of 100 with an invented speed (try it last)

This example uses invented numbers for illustration. A flock of N=100N = 100 birds each fly at v0=2v_0 = 2 metres per second, and a measurement finds ϕ=0.8\phi = 0.8.

  1. Total velocity length: ∣∑vi∣=ϕNv0=0.8×100×2=160|\sum \mathbf{v}_i| = \phi N v_0 = 0.8 \times 100 \times 2 = 160 metres per second. Check: this is the length of the summed velocity vector.
  2. Average velocity of the flock: 160/100=1.6160 / 100 = 1.6 metres per second in the shared direction. Check: this is less than the speed of 2 because the birds do not all point the same way.
  3. Interpretation: the flock moves forward at about 1.6 metres per second, which is 80 percent of what it would be if every bird flew perfectly together.
  4. Try it: if the same flock's measured order parameter fell to ϕ=0.5\phi = 0.5, what is the length of the total velocity? Answer: 0.5×100×2=1000.5 \times 100 \times 2 = 100 metres per second. Check: the total falls in proportion to ϕ\phi.

Interpretation: the order parameter is a direct measure of how much of the flock's speed goes into a common direction.

Common mistakes and tradeoffs

It is tempting to think that ϕ=1\phi = 1 means the group is standing still. In fact ϕ\phi measures alignment, not speed. A perfectly aligned flock moves at full speed in one direction, and it is the ordered state of a moving group.

It is tempting to think the model describes real birds in detail. In fact it is a minimal model. Real flocks may interact with a fixed number of nearest neighbours rather than all neighbours within a radius, and they respond to more than headings. The model is useful because it isolates the local alignment rule and the role of noise.

It is tempting to think that more particles always make ordering easier. In fact the transition depends on both density and noise. At low density particles rarely meet their neighbours, and ordering is weaker at the same noise level.

It is tempting to think the noise is only a nuisance. In fact the noise is what makes the transition happen. Without noise every simulation ends fully aligned, so the interesting question is how much randomness the alignment can tolerate.

When to use it. Use the model to study how a group can align through local rules, and to test which ingredients, such as noise, density or interaction range, control whether the group moves together.

When not to use it. The model is a poor fit when the group's motion depends on leaders, forces or detailed physics, or when individual decisions depend on information that the model's neighbour-averaging rule cannot represent. Then a more detailed agent-based model is needed.

ApproachIngredientsMain strengthMain weakness
Vicsek modelNeighbour averaging, noise, constant speedSimple, shows a transitionIgnores forces and detailed behaviour
Consensus modelsAveraging rules without noiseMathematically clear, proves convergenceNo noise, so no transition
Detailed agent-based flockingSeparation, cohesion, alignmentCloser to real animalsMore parameters to tune

History

Craig Reynolds's 1987 model of "boids" showed that simple rules for separation, alignment and cohesion can produce realistic flocking in computer animation. His rules were rules of thumb, not a physical theory, and they showed that a group could look coordinated without a leader.

In 1995 Tamás Vicsek and colleagues published a simulation study in Physical Review Letters with a much simpler rule: align with neighbours, plus noise. They reported that the group's alignment fell as noise grew and that the change looked like a phase transition. The result connected flocking to the language of statistical physics and to the order parameter idea.

In 2003 Ali Jadbabaie, Jie Lin and A. Stephen Morse analysed a related neighbour-averaging rule without noise and proved that the headings converge to a common value under suitable conditions. That work, and the later studies of real bird flocks, helped establish the model as a standard reference. It caught on because a few lines of rule can be simulated easily and still raise deep questions about order.

Recap

  • The Vicsek model moves particles at constant speed, with each heading set to the average of its neighbours' headings plus noise.
  • The order parameter ϕ\phi measures alignment, from 0 for disorder to 1 for a fully aligned group.
  • With little noise the group aligns and moves as one. With enough noise the order parameter falls, which is a phase transition in the noise.
  • ϕ=1\phi = 1 is alignment, not stillness. The total velocity equals ϕNv0\phi N v_0.
  • Read next: Coordination of Groups of Mobile Autonomous Agents Using Nearest Neighbor Rules for the convergence result for neighbour-averaging rules, and Spontaneous Symmetry Breaking for the symmetry that the moving phase breaks.

Check yourself

QuestionRecall. What does the order parameter phi measure in the Vicsek model, and what values can it take?Show answer
It measures how well the particles' velocities point in the same direction, as the length of the summed velocity divided by Nv0N v_0. It lies between 0, for headings spread so the vectors cancel, and 1, for a fully aligned group.
QuestionCompute. Three particles have headings 0, 0 and π/2\pi/2, with no noise, and all are neighbours. What heading does every particle take after one update?Show answer
The sum of the unit vectors is (1,0)+(1,0)+(0,1)=(2,1)(1,0) + (1,0) + (0,1) = (2, 1). Its direction is arctan⁡(1/2)≈0.464\arctan(1/2) \approx 0.464 radians, about 26.6 degrees. Every particle takes this heading.
QuestionWhy. Why is the noise necessary for the phase transition to appear in the model?Show answer
Without noise, every update averages the headings of neighbours and the group converges to full alignment, so ϕ\phi is always 1 after a few steps. The transition is a competition between the alignment rule, which orders the group, and the noise, which disorders it. Only when the noise is strong enough to beat alignment does the order parameter fall.
QuestionApplied. A researcher wants to know whether a real flock is ordered. Why is the order parameter more informative than the average speed of the birds?Show answer
Average speed can be high even when birds move in random directions, and it can be low for a group that is aligned but slowed by an obstacle. The order parameter uses the vector sum of velocities, so it measures how much of the motion shares a direction. A flock with high speed but random headings has a low order parameter, which is the distinction the question depends on.

Sources