Team & payroll

Swarm intelligence: what ants teach us about sharing out work

An ant colony with no manager finds the shortest path to food. How it does it, why forgetting is part of its intelligence, and lessons for a small team.

The Wroke team Published 6 min read
Many small green dots moving along two paths between two circles, the short path full of them and the long one almost empty
In this article 5
  1. The experiment: a bridge with two branches
  2. From ants to algorithms
  3. The part everyone misses: evaporation
  4. Five lessons for a small company
  5. Frequently asked questions

An ant colony has no project manager. Nobody assigns tasks and nobody sees the whole picture. Yet the colony organises itself to bring food back along the shortest path. How?

The experiment: a bridge with two branches

Marco Dorigo and Thomas Stützle, of the Université libre de Bruxelles, describe in a chapter on ant colony optimization an experiment by Deneubourg and colleagues with a laboratory colony of Argentine ants. They connected the nest to a food source with a bridge of two branches, one longer than the other, and watched which branch the ants chose over time.

The result: although there could be some random swings at the start, in most experiments all the ants ended up using the shorter branch.

The explanation is simple, as the chapter sets out:

  1. At first nobody knows

    There is no trail on either branch, so the ants choose roughly equally, half one way and half the other.

  2. The shorter path comes back first

    Ants that took the short branch reach the food and return before the others, so they leave their trail on the short branch twice before the rest have finished their trip.

  3. Trail attracts trail

    The next ant leans towards the branch with more trail on it. So trail builds up faster on the short branch, until most ants use it.

No ant decided the short branch was better. The decision emerged from many small choices, each one reading what the previous ones left behind.

The bridge experiment in three stages: ants spread over both branches, then leaning to the short one, then all on it
In each stage the nest is on the left and the food on the right, with the short branch on top. 1: ants spread evenly. 2: the trail on the short branch is wider and ants lean towards it. 3: all ants on the short branch

From ants to algorithms

In 1991 Dorigo and colleagues proposed the first algorithm inspired by this behaviour, called Ant System. The chapter says it could not compete with the best methods of its time, but it opened the door to much stronger versions. Today these algorithms are used for problems such as scheduling, assembly line balancing and routing data in networks.

The idea: artificial ants build solutions step by step and leave a digital trail on the parts of good solutions, so later generations lean towards them. The chapter notes that the trail is laid in proportion to how good the solution is, as some real ants lay a stronger trail the better the food source.

The part everyone misses: evaporation

This is the key idea. In every ant colony algorithm, the trail evaporates over time. The chapter explains that evaporation is needed to avoid the algorithm converging too quickly on a worse region, and that it implements a useful form of forgetting, favouring the exploration of new areas.

Let us see why with a simple model. The numbers are for illustration.

A colony of 20 ants has used a long path for 100 rounds, and a lot of trail has built up on it. Then a new path opens, half the length. Each ant picks its path according to the trail, and leaves a stronger trail on the shorter path. We repeated the experiment 200 times for each level of forgetting:

Trail that evaporates each round When most ants moved to the new path New path's share at the end
None Never 0%
2% Never 0%
5% Never 1%
10% After 110 rounds 99%
20% After 20 rounds 97%
The new path's share of ants round by round after it opens, at three levels of forgetting
Across: rounds, with the dashed line the moment the new path opens. Grey is no forgetting: it stays at zero. Light green is 10%: it switches slowly. Dark green is 20%: it switches within a few rounds

A colony that never forgets stays on the old path forever. Not because ants are foolish, but because the trail of the past is stronger than any new attempt. The more it forgets, the faster it switches. But look at the last row: a lot of forgetting leaves slightly more ants wandering away from the best path. Memory and forgetting need a balance.

Five lessons for a small company

Ants are not a company; this is an analogy, not a recipe. But the same mechanisms exist in every team:

  1. Leave a trail others can read

    An ant does not explain things to others; it leaves a trail in place. In a team: what you learned on a task, write in the task itself, where the next person will look, not in a message that gets lost.

  2. A good solution wins by repetition

    Nobody announced that the short branch was best. It became best because it gave a faster result, so more ants took it. In a team: make the way that works visible, so it is easy for others to repeat.

  3. Old habits have a strong trail

    "This is how we always do it" is a trail built up over years. As in the model, a better new way does not win on its own against a trail that strong.

  4. Plan to forget

    Every so often, review the ways you work: templates, steps, who handles what. The question is not "does it work?" but "is it still the best we have?".

  5. Leave room to experiment

    Some ants take a different path by chance, and that is how the shorter path is found. In a team: try a new way on a small project, before deciding the old one is the only one.

We wrote about resilience engineering and how systems succeed because people adjust their work to conditions. Ants are an example: no fixed plan, just constant adjustment.

Frequently asked questions

What is swarm intelligence?

The ability of a group of simple individuals, such as ants or bees, to solve complex problems without a leader, through simple rules and indirect communication.

What is ant colony optimization?

A family of algorithms inspired by ants, begun in 1991. Artificial ants build solutions and leave a digital trail on the parts of good solutions, so later generations lean towards them, and the trail evaporates over time.

How do ants find the shortest path?

Ants that take the shorter path return sooner, so their trail builds up faster on that path, and the next ants lean towards the path with more trail.

Why does the trail evaporate?

Because a trail that never fades makes the colony stick with the first solution it found, even when a better one appears. Evaporation is a useful kind of forgetting that leaves room to discover something new.

Sources

Read next

All articles

Ready to try Wroke with your team?

Create your company's workspace for free, bring your team in, and get going in minutes.

Get Started