Biology · Collective behaviour

Ten thousand fireflies, no conductor

On a warm night in early June, in a patch of old-growth forest near Elkmont, Tennessee, thousands of fireflies flash on and off together. Not roughly together — together to within a fraction of a second, again and again, for hours. Nobody is leading them. There is no queen firefly blinking the beat. Each insect is running on its own tiny clock, and the synchrony is something the whole group builds by itself, one nudge at a time.

A forest that blinks in unison

The insect responsible is Photinus carolinus, a species found in scattered pockets of the Appalachian Mountains. It was the first North American firefly ever caught doing this, and it's still one of only a couple of species here known to pull it off (a rare South Carolina species, Photuris frontalis, does something similar in Congaree National Park). Watchers in the Great Smoky Mountains describe a burst of roughly four to eight flashes over a few seconds, then eight to twelve seconds of total darkness before the next burst — a slow strobe rolling across an entire hillside, all the insects on the same beat.

Synchronised fireflies aren't only an Appalachian trick. Along tidal rivers in Thailand and Malaysia, whole mangrove trees full of a different genus, Pteroptyx, flash in step night after night — a spectacle travellers were already writing home about more than a century ago. The two swarms turn out to work in subtly different ways, which is where this gets interesting.

No leader, just a rule

The classic explanation, worked out by mathematicians Renato Mirollo and Steven Strogatz in 1990, treats each firefly as a tiny pendulum. It swings around a cycle at its own natural pace, and every time it swings past the bottom, the firefly flashes and starts again. Left alone, hundreds of these pendulums would drift in and out of step forever, each keeping its own time.

The trick is a single rule: when a firefly sees a neighbour flash, it nudges its own clock forward a little, as if the sight of someone else's flash gives it a small shove toward its own next one. That's the entire mechanism — no counting, no memory, no signal that means "let's sync up." Mirollo and Strogatz proved that a group of these simple oscillators, all nudging each other this way, will almost always lock into a single shared rhythm, no matter how scrambled they start. A flash from one firefly nudges its neighbours, whose flashes nudge theirs, and the nudges ripple outward until the whole group is moving as one pulse.

That tidy picture fits the Southeast Asian mangrove fireflies well — each one really does keep its own steady rhythm and adjusts it by watching others. The Smoky Mountains turned out to be stranger: researchers found that a lone Photinus carolinus, flashing by itself, doesn't keep a rhythm at all — its bursts come at random intervals. Put around fifteen or more of them together, though, and the group produces those tidy bursts every dozen seconds anyway. The rhythm isn't hiding inside any single insect; it's something the crowd builds only by watching each other.

Try it: build a swarm from scratch

Below is a field of fireflies, each running the nudge-your-neighbour rule. Coupling controls how hard a flash nudges nearby clocks forward. Sight controls how far each firefly can see. Tap the field to drop in a new firefly; use the torch to blind a patch of them and watch the swarm recover.

sync
0%

Tap anywhere on the field to add a firefly. Turn the torch on, then tap to disrupt a patch of them.

Each dot keeps its own clock and flashes when the clock completes a cycle. A flash nudges every clock within sight range forward by an amount set by coupling. Bigger sight and stronger coupling both speed up how fast the field locks into a single beat.

Things to try:

The simulation gives every firefly a genuine internal rhythm and has it adjust that rhythm by watching others — the Mirollo–Strogatz picture that fits fireflies like the Southeast Asian Pteroptyx. It's a simplified model of one real mechanism, not a lab recording of Photinus carolinus, whose own rhythm (as above) seems to appear only once a crowd forms.

Why a shove is enough

What makes the maths satisfying is how little each firefly needs to know. It doesn't sense the group's average phase, or count how many neighbours are flashing, or remember anything about the past. It reacts to one thing — a flash it just saw — with one response: nudge forward a bit. Because a firefly that's already close to its own flash needs only a small nudge to tip over, while one that's far from flashing gets pulled further, the nudges act like a ratchet: they can only pull clocks closer together, never further apart. Repeat that over thousands of flashes and the whole field falls into step, the same way a room of people clapping arrhythmically will often drift into one shared clap without anyone calling the beat.

The same style of local rule turns up well outside insects: cells in the heart's natural pacemaker fire in step this way, some models of neurons synchronising use near-identical maths, and engineers have borrowed pulse-coupled sync for keeping wireless sensor networks or arrays of lasers ticking together without a shared clock signal. A swarm of fireflies is a working demonstration that a shared rhythm doesn't need a conductor — it just needs everyone glancing at their neighbours and giving their own clock a small, honest shove.