Thought Toys · Emergence · Exhibit 32

Fireflies that sync

A meadow of fireflies, each blinking to its own private beat — no leader, no conductor, no clock. Let each one only glance at its neighbours and tug its rhythm a little their way. Turn that tug up slowly and nothing happens… until, past one sharp threshold, the whole field suddenly pulses as one.

On the left, a field of firefly dots that brighten and dim as they blink. On the right, a ring showing each firefly's position in its blink cycle as a dot on a circle, with an amber arrow from the centre whose length is the order parameter r — short when the fireflies are scattered, long when they are synchronized and bunched on one side.

order r — · coupling — · threshold —

your turn — drag the coupling up past the threshold and watch the meadow snap into one pulse

What you're seeing

On the left, every dot is a firefly, blinking through its cycle — bright at the top of the beat, dark at the bottom. Each one has its own natural tempo, so at first they flicker in a hopeless mess. On the right is the same crowd drawn as a clock face: each firefly sits where it is in its cycle, and the amber arrow points to their average. When the dots are smeared all around the ring the arrow is a stub — that's the order r, a single number for how together they are: 0 scattered, 1 as one.

Now turn up the coupling — how hard each firefly tugs its own timing toward the ones it can see. For a while, nothing: a little pull isn't enough to overcome the spread of tempos, and the crowd stays scattered. Then you cross a threshold, and the meadow tips. A few fireflies fall into step; their combined flash is now bright enough to pull in a few more; those pull in more. The arrow lengthens, the dots on the ring collapse into a single travelling clump, and the whole field blinks together. Nobody decided to. There is no lead firefly and no signal to obey — only thousands of tiny nudges that, past a critical strength, agree.

This is one of the deepest tricks in nature's book, and it is everywhere: fireflies along a riverbank in Thailand, pacemaker cells that fire your heartbeat as one, the clapping of an audience drifting into rhythm, power-grid generators locking to the same 50 hertz. Drag the spread of rhythms wider and watch the threshold climb — the more different the individuals, the harder they must listen to ever agree.

The rule, exactly. Each firefly i has a phase θi (where it is in its blink) and a natural speed ωi. Everyone nudges toward the crowd: i/dt = ωi + K·r·sin(ψ − θi) where K is the coupling and r·e is the crowd's average phase (this is exactly the sum of every pairwise pull, (K/N)·Σ sin(θj − θi), rewritten through the mean field). Kuramoto's 1975 result: for a spread of rhythms there is a sharp critical coupling. For a uniform spread on ±γ it is Kc = 4γ / π Below it, r ≈ 0 forever; above it, r climbs toward 1. Verified in node (improve/verify/32-kuramoto.js): r stays near 0 below Kc and rises past 0.5 right at Kc and toward 1 above it. Counter-examples: with no coupling (K=0) the crowd never syncs (r stays at the scattered-crowd level ≈ 1/√N); and tripling the spread triples Kc, so a coupling that synced a narrow crowd fails on a wide one — the threshold scales with the disorder, it is not a fixed magic number.

Also in Emergence: Small-world networks →

All 16 in Emergence
  1. 01Phantom Traffic Jams
  2. 02Schelling's Segregation
  3. 07Conway's Game of Life
  4. 107Half a link each is dust. One link each is a web.
  5. 11Percolation
  6. 15Reaction & diffusion
  7. 18Sandpiles & self-organized criticality
  8. 22Diffusion-limited aggregation
  9. 29The simplest rule that makes complexity
  10. 32Fireflies that sync — you are here
  11. 41Small-world networks
  12. 43The Ising model
  13. 45Preferential attachment
  14. 81Nobody panicked, and the factory went haywire
  15. 84The tragedy of the shared field
  16. 88Nobody's leading. The flock turns as one.

← the cabinet · Thought Toys — a cabinet of explorable explanations. Exhibit 32.