← Bonabeau AppsApps

The eye in the loop

Craig Reynolds's work, from boids in 1987 to EvoFlock in 2026, read as one long experiment in a single design question of interactive evolutionary computation: who, or what, judges fitness?

The flock above is live. Move the pointer through it to play predator.

An evolutionary algorithm needs three things: a way to describe candidates (a genome), a way to vary them, and a way to decide which ones survive. Interactive evolutionary computation is the family of methods where a person supplies that last part. Reynolds's 2010 camouflage paper traces the idea to the Blind Watchmaker software that came with Dawkins's 1986 book, and to Karl Sims's 1991 system for breeding textures by eye.

Reynolds's papers cover every position a judge can take. In the flocking work an animator watches the motion and turns knobs. In the camouflage work a person plays predator and clicks on the prey that stand out. Later a hand-written function takes that role, then a population of learning predators, and in 2026 a stated objective tunes the flock model that started the whole line. This page lets you sit in each of those seats.

Every demo below is a small JavaScript model written for this page from the descriptions in the papers. None is Reynolds's code. Where a demo simplifies or substitutes something, the caption says so.

One question, several kinds of judge

Each row is a kind of judge. Select a work to see what it did and who decided what was good. Dashed entries are Bond and Kamil's blue jay experiments, which Reynolds cites as closely related work.

1987. Three rules, tuned by eye

The boids paper replaced scripted paths with simulated birds that each steer from local perception. Reynolds lists three behaviors, in order of decreasing precedence: collision avoidance (do not hit nearby flockmates), velocity matching (match their velocity), and flock centering (stay close to them). The flock is what happens when every bird does this at once.

There is no fitness function anywhere in that paper. The behaviors are, in its words, programmed in by the animator, and the animator is also the one who looks at the result and decides whether it reads as a flock. That is the starting position: a person as both designer and judge, with no algorithm between them.

Set the three weights yourself

Pointer over the canvas scatters the flock.

A 2D model with 140 boids on a wrap-around field. The two meters are measurements borrowed from the 2026 EvoFlock paper, shown here so you can compare your eye with a number: the share of birds whose nearest neighbor is 2 to 4 body lengths away, and how well each bird's heading agrees with its nearest neighbor's.

1999. Steering, a vocabulary for motion

"Steering Behaviors for Autonomous Characters" splits motion into three levels: goal setting and strategy at the top, steering in the middle, locomotion at the bottom. It then catalogs the middle level: seek, flee, pursuit, evasion, offset pursuit, arrival, obstacle avoidance, wander, path following, wall following, containment, flow field following, unaligned collision avoidance, separation, cohesion, alignment, flocking, and leader following.

Most of these reduce to one line. Compute the velocity you would like to have, subtract the velocity you have, and apply the difference as a force, truncated to what the vehicle can produce. For evolutionary purposes this paper matters because it turns behavior into a small set of numeric parameters and composable parts. Those are the knobs a person tunes by hand, and the same knobs become the genome in EvoFlock.

One vehicle, one behavior

velocitydesired velocitysteering force = desired velocity minus velocity

Breeding flocks by eye

Put those two papers together with interactive evolution and you get the most direct form of the idea: show a person several flocks, each driven by a different parameter set, and let them pick the ones to breed. EvoFlock's related-work section notes that Funes, Orme, and Bonabeau did this in 2004, using an interactive genetic algorithm to find individual behaviors that produce interesting group behavior, and called it an inverse problem.

Try it. Each panel runs the same flock model with its own ten-number genome. Select the flocks you like and breed. Nothing here scores them; the small numbers under each panel are only reported, so you can see where your taste and the metrics agree.

Generation 1

Selected flocks carry over unchanged. The rest are replaced by children: each gene comes from one of two selected parents, then some genes are nudged at random.

A genome for pictures

The camouflage work needs something harder to evolve than ten numbers: a color pattern. Reynolds represents a pattern as a program, a nested expression of texture generators (spots, gratings, noise) and operators that take textures as input (blend, warp, colorize). His texture synthesis library had 52 such elements in 2010; the later papers call it TexSyn. He treats this as a stand-in for morphogenesis, the developmental process that puts patterns on real animals.

A program is a tree, and trees can be bred. Genetic programming crossover takes a random subtree from one parent and splices it over a random subtree of the other. Reynolds describes it as random, syntax-aware cut and paste. A second operator, which he calls jiggle, nudges the numeric constants at the leaves.

Cross two texture programs

Parent A (recipient)

Parent B (donor)

Offspring

The highlighted code is the subtree that came from the donor. This page uses ten texture elements of its own (five generators, five operators) in place of TexSyn.

2010. You are the predator

"Interactive Evolution of Camouflage" puts a person in the role natural selection gives to a hungry bird. The screen shows a background photograph with ten disk-shaped prey on it, each wearing an evolved texture. The player clicks the most conspicuous one, it disappears, and they click the next, five times. The five that were eaten are removed from the population and replaced with newly bred textures. The five that were overlooked survive.

Three design choices in that paper are worth noticing as interactive evolution. Fitness is binary, life or death, so the player never has to give a score. The task is relative: pick the worst of what is on screen, which is quick and needs little thought. And the texture programs never see the background. They can only learn about it from which of them got eaten.

When we see leaf-eating insects green, and bark-feeders mottled-gray; alpine ptarmigan white in winter, the red-grouse the colour of heather, and the black-grouse that of peaty earth, we must believe that these tints are of service to these birds and insects in preserving them from danger.Charles Darwin, On the Origin of Species, 1859, quoted at the opening of Reynolds's paper

Eat the five prey that stand out most


Round 1   Clicks 0

One survivor from each round

Population of 60 texture programs, cohorts of 10, 5 eaten per round, offspring by crossover between two survivors of the same round plus jiggle. Reynolds used populations of 100 or 120 split into 4 or 5 semi-isolated groups, and photographs for backgrounds; the backgrounds here are generated. The saliency eye is a hand-built detector described in the coevolution section below, offered so you can fast-forward.

The paper is frank about what this costs. A typical run was 1,000 cohorts, about 5,000 clicks. At one click per second that is roughly an hour and a half, and Reynolds reports he was slower than that and could not keep at it for more than 15 to 30 minutes at a sitting. He also flags the risk of experimenter bias: the person who proposed the hypothesis was the predator, and a player who knows how clicks map to fitness can end up sparing a pattern because it is interesting. Some runs still produced prey good enough that he overlooked them until he counted and found one missing.

His two proposals for getting past the endurance limit were to spread the clicking over many people on the internet, and to build a synthetic predator. The second is the 2023 paper.

2002. What a real predator adds

Before Reynolds's game, Alan Bond and Alan Kamil ran the same loop with a non-human judge. Captive blue jays searched for digital moths on a computer screen and pecked the ones they found. The moths had a virtual chromosome and evolved by genetic algorithm, with detected moths much less likely to reproduce. Across 100 generations the moths became harder to find, and also more varied in appearance than moths in control lines.

The variety is the part a simple fitness function would miss. A jay that has just found several moths of one pattern gets better at spotting that pattern and worse at the others, an effect called a searching image. Common patterns get eaten more than their share, so rare ones have an advantage. Their 2006 follow-up added patchy backgrounds and found that the birds' search strategy changed with the layout of the habitat, which in turn changed what evolved. The judge has a psychology, and the psychology shapes the outcome.

A toy model of searching-image predation

Each panel shows the share of eight moth patterns over 100 generations, starting from a population with one pattern. This is a deliberately minimal model (200 moths, equally cryptic patterns, rare mutation between patterns) made to show the frequency-dependent mechanism. It is not Bond and Kamil's moth genetics or their data.

2011. Write the judge down, then let a person choose

In "Evolving textures from high level descriptions" Reynolds moves the person to the other end of the process. A designer wants textures in some style. The style is written once as a fitness function, genetic programming runs unattended and produces a catalog of textures that satisfy it, and the designer scans the catalog and keeps the ones they like. Evolution handles the tractable part and the human visual system handles the part that is hard to encode.

One of the four styles in the paper is "a textured grey image with a small amount of colour accent". Its fitness is five criteria multiplied together: the share of pixels that are clearly gray or clearly colored, how close the colored share is to a target, a mild preference for midrange brightness, local brightness variation, and variety within the accent color. Multiplying means any one low score vetoes the rest.

Evolve a catalog of gray textures with an accent color

A simplified version of the paper's criteria, measured on a 20 by 20 sample of each texture. Four separate populations of 40 evolve for 12,000 tournament steps in total, and the best three of each are shown, so a population that never found the style shows up as low-fitness tiles. Select a tile to keep it and to see how it scored on each criterion. The paper used a population of 100 for up to 50 generations.

The paper also reports the standard hazard of a written judge. Evolution found simplistic textures that satisfied the function, including a whole class built on one operator. Reynolds first removed two operators from the function set for some runs, then added the fifth criterion above to discourage them. A person in the loop would have rejected those textures at a glance.

2023. Evolve the judge too

"Coevolution of Camouflage" replaces the clicking human with a second population. Prey are still texture programs under genetic programming. Predators are convolutional neural networks that look at an image and output one position: where they think the most conspicuous prey is. Each simulation step draws three prey and three predators and puts the prey on a random crop of a background photo. If the most accurate predator's guess lands inside a prey disk, that prey is eaten and replaced by the offspring of the other two. If the least accurate predator misses everything and has caught prey on fewer than 40% of its last 20 attempts, it starves and is replaced.

Predators also learn during their lifetime, fine-tuning on the images they have hunted in. Because every image is synthetic, the true prey positions are known and no hand labeling is needed. A typical run in the paper is 12,000 steps with 400 prey and 40 predators, about three and a half hours on a laptop. Some background sets are easy and some are hard, with a hard set succeeding in perhaps a half or a third of runs.

What was a person's judgment is now a population under selection, with its own fitness defined by the prey. Reynolds notes the family resemblance to generative adversarial networks, and states that the goal is different: a model of a biological system that can be used for experiments that cannot be done in nature.

Three prey, three predators, one step at a time

predator guesses, thickest is the most accurateeaten

Eight prey sampled from the current population.


Step 0   Eaten 0   Starved 0

evolving, learning predators (best of three)fixed eye that never adapts

Share of the last 150 steps in which a prey was found.

The structure follows the paper: tournaments of three, the worst prey removed, starvation at 40% of the last 20 hunts. The scale is smaller (120 prey, 12 predators) and the predator is a substitute. In place of a neural network, each predator here weighs six hand-built contrast measurements (color, fine texture, and coarse texture, each compared with the immediate surroundings and with the whole image) plus a memory of what recently hunted prey looked like. The weights evolve by mutation; the memory is the lifetime learning. The fixed eye plays the part of the paper's static quality metric, which tracks progress by how often a pre-trained, non-adapting detector fails. This substitute eye is much weaker than a trained network, so on some backgrounds the prey outrun it within a couple of thousand steps.

2026. State the goal and let evolution turn the knobs

EvoFlock returns to boids with the tools from the camouflage work. A flock model has many numeric parameters whose effects interact, so tuning by hand, the method of 1987, becomes a slow cycle of edits and tests. EvoFlock treats the model as a black box with 15 parameters and asks the user for an objective function. A genetic algorithm does the rest in about two hours on a laptop.

The objective for basic flocking has three parts, each scored from 0 to 1 over every bird at every step: nearest-neighbor distance between 2 and 4 body diameters, speed in a target range, and obstacle avoidance. The avoidance score is the fraction of collision-free bird-steps raised to the 500th power, so a handful of collisions is enough to sink it. The three are multiplied into one number. The paper reports that the vivid alignment of a flock did not need its own objective. It seems to emerge from keeping proper spacing while moving fast around obstacles.

The optimizer is the one from the camouflage work: pick three at random, delete the worst, replace it with a child of the other two. The person is no longer inside the loop. Their judgment now takes the form of an objective, which is easier to state than a parameter set and can be extended. The paper shows this by adding a fourth objective for curvier flight when the result looked too smooth, at a cost of about an hour of programming.

Tune by hand, then hand over to the genetic algorithm

Scores of the flock on screen, refreshed every 5 simulated seconds.

Move the sliders, or start the search.

A 2D model with ten parameters, a population of 40 parameter sets, and 900 tournament steps. Each evaluation runs 40 boids for 10 simulated seconds, twice with different starting positions, and keeps the worse score; the first 2 seconds are not scored. The paper's model is 3D with 15 parameters, 200 boids for 500 steps, four runs per evaluation, a population of 300 and 30,000 steps. The alignment meter is reported but never used as an objective.

What changed and what stayed the same

Read as interactive evolutionary computation, the sequence is a steady relocation of human judgment. It starts inside the loop, one decision per candidate. It ends outside the loop, expressed once as an objective or delegated to an adversary, with a person inspecting results at the end.

JudgeWhereCost of one judgmentWhat it is good atReported weakness
Animator's eyeBoids 1987, steering 1999Watch a simulation, adjust, repeatKnows what a flock should look likeEvoFlock: changing one aspect of the motion changes others, so tuning is tedious
Live predatorBlue jays 2002, 2006; human player 2010About one click per second at best; 5,000 clicks per runReal perception, including searching images and attentionFatigue after 15 to 30 minutes; experimenter bias
Hand-written functionTexture styles 2011A few thousand tests per run, unattendedCheap, repeatable, produces whole catalogsTrivial solutions that exploit the function; needs a person to cull
Evolving, learning adversaryCoevolution 2023About 1 second per step, 12,000 stepsAdapts as the prey adapt; no labels, no clicksSuccess depends on the background; hard sets fail in many runs
Stated objectiveEvoFlock 2026About 0.25 seconds per flock simulationThe person specifies what they want and need not know how to get itRun-to-run variation (best fitness typically near 0.83, as low as 0.76, across 38 identical runs); parameters tuned for cluttered spaces do poorly in open space

Several mechanics persist through all of it, and they look like lessons carried over from the interactive setting.

Sources

Everything above is drawn from the twelve documents supplied with the request.

  1. Reynolds, C. W. (1987). Flocks, Herds, and Schools: A Distributed Behavioral Model. Computer Graphics 21(4), SIGGRAPH '87.
  2. Reynolds, C. W. (1999). Steering Behaviors for Autonomous Characters. Game Developers Conference 1999.
  3. Reynolds, C. (2006). Big Fast Crowds on PS3. Sandbox Symposium 2006.
  4. Reynolds, C. (2010). Interactive Evolution of Camouflage. Proceedings of ALife XII.
  5. Reynolds, C. (2011). Interactive Evolution of Camouflage. Artificial Life 17(2).
  6. Reynolds, C. (2016). Evolving textures from high level descriptions. Int. J. Arts and Technology 9(1). Revised from EvoMUSART 2011.
  7. Reynolds, C. (2023). Coevolution of Camouflage. Proceedings of ALIFE 2023.
  8. Reynolds, C. (2025). Camouflage From Coevolution of Predator and Prey. Artificial Life 31(2).
  9. Reynolds, C. (2026). EvoFlock: evolved inverse design of multi-agent motion. arXiv:2606.25280.
  10. Bond, A. B. and Kamil, A. C. (2002). Visual predators select for crypticity and polymorphism in virtual prey. Nature 415, 609-613.
  11. Whitfield, J. (2002). Computerized moths diversify to survive. Nature news, 7 February 2002.
  12. Bond, A. B. and Kamil, A. C. (2006). Spatial heterogeneity, predator cognition, and the evolution of color polymorphism in virtual prey. PNAS.