In a competitive coevolutionary algorithm, fitness against the current population cannot distinguish progress from cycling, disengagement or stagnation; only tests against fixed opponents, such as champions of earlier generations, can. In our runs (50 individuals, 300 generations, 30 seeds), the champion's relative fitness stayed flat in both a transitive numbers game and rock-paper-scissors, while the numbers grew from 0.5 to about 15 and the rock-paper-scissors mean strategy circled the Nash equilibrium about 17 times. Master fitness rose by 1.993 from first to last champion in the numbers game and by 0.002 in rock-paper-scissors. Two populations started three units apart disengaged, and neither improved. Lotka-Volterra cycles are only an analogy. CIAO, master and dominance tournaments each have a blind spot.
Two runs of a coevolutionary algorithm produce equally flat fitness curves. In each, a population of 50 strategies plays a two-player game against itself, every individual against every other. In each, the best individual's average score shows no upward trend over the last 200 generations. In the first run the strategies are numbers and the larger number wins. By the end the population's average value has grown from 0.5 to about 15, and later champions almost always beat earlier ones. In the second run the game is rock-paper-scissors. The population rotates from rock to paper to scissors and back about 17 times, and the final champion is no better than the first. If the fitness curve cannot tell real progress from going in circles, how can we tell? By testing each generation's champion against champions of earlier generations, which do not change.
This is the problem the name Red Queen has come to stand for in evolutionary computation. Fitness in a competitive coevolutionary algorithm is measured against other evolving individuals, so it is relative. A constant relative fitness can hide steady progress, endless cycling or stagnation, because the opponents improve, or merely change, as fast as the individual being measured.
First we meet the biological hypothesis that gave the effect its name, and the Lotka-Volterra predator-prey equations as an analogy for coupled oscillation. Then we name the failure modes of coevolutionary algorithms: cycling, disengagement, forgetting and mediocre stable states. Two experiments make them visible, one with a single population and one with two. Finally we test the methods proposed to measure progress when fitness cannot, and the remedies built on them. The script tools/experiments/evolution/red_queen.py in the site repository produces every number quoted for the two runs above. The article builds on competitive coevolution, which introduces relative fitness and the hall of fame.
The Red Queen hypothesis in biology
Leigh Van Valen compiled published data on how long fossil taxa had lasted, across groups from foraminifera to mammals. For each group he plotted how many taxa survived for a given length of time. On a logarithmic scale the survivorship curves were close to straight lines. A straight line means that a taxon's probability of going extinct in the next interval does not depend on how long it has already existed. An old genus is as likely to disappear as a young one.
Van Valen (1973) stated this as a law of constant extinction, and proposed an explanation.
- The effective environment of any group of organisms deteriorates at a stochastically constant rate.
- The deterioration comes mainly from other species rather than from the physical environment. Every improvement in a species' predators, prey, competitors or parasites makes its own environment worse.
- So a species must keep evolving merely to hold its position. Van Valen framed the interactions within an adaptive zone as approximately zero-sum: one species' gain is another's loss.
He named the idea after the Red Queen in Lewis Carroll's Through the Looking-Glass (1871), who tells Alice, "Now, here, you see, it takes all the running you can do, to keep in the same place."
Two points matter for what follows. First, Van Valen's claim was about extinction rates in the fossil record, a law with exceptions, as Solé (2022) notes in a retrospective. The Red Queen was his explanation for it. Second, the hypothesis concerns a lineage's chance of persisting, which stays roughly constant while the organisms keep changing. It does not say whether the changes accumulate. An arms race, in which predators and prey both become steadily faster, is consistent with it. So is a cycle, in which traits come and go. That ambiguity is exactly what makes coevolutionary algorithms hard to monitor.
Predator and prey: the Lotka-Volterra analogy
Two populations that push each other around can keep changing forever without either winning. The classic picture of such a pair is the predator-prey model of Lotka (1925) and Volterra (1926). With $x$ prey and $y$ predators,
$$\frac{dx}{dt} = \alpha x - \beta x y, \qquad \frac{dy}{dt} = \delta x y - \gamma y.$$
The first equation is the prey equation. Without predators the prey grow exponentially at rate $\alpha$. Encounters between predators and prey occur at a frequency proportional to $xy$, and each removes prey at rate $\beta$. The second is the predator equation: predators die at rate $\gamma$ without food and increase at rate $\delta$ per encounter. All four constants are positive.
Here is the plan. We find the equilibrium, then a quantity that never changes along a solution. A conserved quantity traps each solution on one closed curve, so the populations must cycle.
The equilibrium. The equations factor as $dx/dt = x(\alpha - \beta y)$ and $dy/dt = y(\delta x - \gamma)$. With both populations present, both derivatives are zero only where $\alpha - \beta y = 0$ and $\delta x - \gamma = 0$. That gives an interior equilibrium at $x^* = \gamma/\delta$ and $y^* = \alpha/\beta$. Away from it the populations oscillate.
The conserved quantity. The function
$$V(x, y) = \delta x - \gamma \ln x + \beta y - \alpha \ln y$$
is constant along every solution. By the chain rule its time derivative is $(\delta - \gamma/x)\,dx/dt + (\beta - \alpha/y)\,dy/dt$, which is
$$(\delta - \gamma/x)\,x(\alpha - \beta y) + (\beta - \alpha/y)\,y(\delta x - \gamma) = (\delta x - \gamma)(\alpha - \beta y) - (\alpha - \beta y)(\delta x - \gamma) = 0.$$
Closed orbits. A solution therefore stays on one level curve of $V$, and the level curves are closed. $V$ is a sum of a function of $x$ and a function of $y$. The first, $\delta x - \gamma \ln x$, has second derivative $\gamma/x^2 > 0$, so it is convex. It is smallest at $x^*$, where its derivative $\delta - \gamma/x$ is zero, and it grows without bound as $x$ approaches 0 or infinity. The second, $\beta y - \alpha \ln y$, has second derivative $\alpha/y^2 > 0$, is smallest at $y^*$, where its derivative $\beta - \alpha/y$ is zero, and grows without bound as $y$ approaches 0 or infinity. So $V$ is convex with a single minimum at the equilibrium. The region where $V$ is at most a given level above the minimum is then bounded and convex, and its boundary, the level curve, is a closed curve around the equilibrium. No point of such a curve is an equilibrium, so the velocity is never zero on it. On this closed and bounded curve the speed therefore has a positive minimum, and the direction of motion along the curve cannot reverse without passing through zero. The solution goes around the curve at no less than that speed and returns to its starting point in finite time: it is periodic. Each starting point stays on its own cycle forever, spiraling neither into the equilibrium nor out to extinction. The equilibrium is neutrally stable.
Small cycles. Write $u = x - x^*$ and $v = y - y^*$ and keep only first-order terms. Since $\alpha - \beta y = -\beta v$ and $\delta x - \gamma = \delta u$, the equations become
$$\frac{du}{dt} = -\beta x^* v = -\frac{\beta\gamma}{\delta}\, v, \qquad \frac{dv}{dt} = \delta y^* u = \frac{\alpha\delta}{\beta}\, u.$$
Differentiating the first and substituting the second gives $d^2u/dt^2 = -\alpha\gamma\, u$, the equation of an oscillation with angular frequency $\sqrt{\alpha\gamma}$. Small cycles therefore have period $2\pi/\sqrt{\alpha\gamma}$. With $u = \cos(\sqrt{\alpha\gamma}\, t)$, the first equation gives $v = (\delta\sqrt{\alpha\gamma}/(\beta\gamma)) \sin(\sqrt{\alpha\gamma}\, t)$, which peaks a quarter period after $u$ does: the predators lag the prey.
The script checks this numerically. It integrates the equations with the fourth-order Runge-Kutta method (step 0.001, 50 time units) for $\alpha = 1$, $\beta = 0.1$, $\gamma = 1.5$ and $\delta = 0.075$. The equilibrium is $(20, 10)$, and the small-oscillation period is $2\pi/\sqrt{1.5} = 5.130$.
Example (a small orbit and a large one). The table follows orbits from four starting points. The period from $(19, 10)$, beside the equilibrium, is 5.132, close to the linear prediction; from $(10, 5)$ it is 5.480, because large cycles are slower.
| Start $(x_0, y_0)$ | Prey range | Predator range | Period | Prey peak to predator peak |
|---|---|---|---|---|
| (10, 5) | 7.93 to 40.60 | 3.09 to 23.28 | 5.480 | 0.898 |
| (15, 8) | 14.17 to 27.24 | 6.52 to 14.54 | 5.187 | 1.104 |
| (19, 10) | 19.00 to 21.03 | 9.39 to 10.64 | 5.132 | 1.252 |
| (20, 10) | stays at 20 | stays at 10 | none | none |
$V$ drifted by at most $3.4 \times 10^{-14}$ of its value. The lag in the last column rises toward the quarter period, $5.130/4 \approx 1.28$, as the orbits shrink.
Only an analogy. The model describes the numbers of two species, with no heredity, variation or selection on traits. The populations of a coevolutionary algorithm have fixed sizes, and what changes is which strategies they contain. The neutral cycles are also fragile: adding prey self-limitation, for instance, makes the equilibrium attract the orbits. To see it, replace the prey's growth term $\alpha x$ by $\alpha x(1 - x/K)$ for a capacity $K > \gamma/\delta$. The equilibrium moves to $x^* = \gamma/\delta$, $y^* = (\alpha/\beta)(1 - x^*/K)$. Take $V = \delta(x - x^* \ln x) + \beta(y - y^* \ln y)$, which for the original equations is the $V$ above. The prey equation is now $dx/dt = x\,[-(\alpha/K)(x - x^*) - \beta(y - y^*)]$ and the predator equation is $dy/dt = y\,\delta(x - x^*)$. The chain rule gives $dV/dt = \delta(1 - x^*/x)\,dx/dt + \beta(1 - y^*/y)\,dy/dt$, so
$$\frac{dV}{dt} = \delta(x - x^*)\left[-\frac{\alpha}{K}(x - x^*) - \beta(y - y^*)\right] + \beta(y - y^*)\,\delta(x - x^*) = -\frac{\alpha\delta}{K}(x - x^*)^2.$$
$V$ no longer stays constant: it never increases, and it falls whenever $x \ne x^*$. That alone does not prove convergence, since $V$ could level off above its minimum. Two more facts finish the argument.
First, the convexity argument above applies to the new $V$, with $y^*$ at its new value, so each set where $V$ is at most a given value is a closed bounded region inside the positive quadrant. A solution starts in one such region and, since $V$ never increases, never leaves it. So it stays bounded and away from extinction.
Second, LaSalle's invariance principle says that a solution trapped in such a region approaches the largest set of whole solutions on which $dV/dt = 0$ (Khalil, 2002, §4.2). Here that set lies on the line $x = x^*$. A solution cannot stay on that line except at the equilibrium, because there $dx/dt = -\beta x^*(y - y^*)$, which is not zero for $y \ne y^*$.
So every solution with both species present approaches the equilibrium. With $K = 100$ and the constants above, the script's orbit from $(10, 5)$ ends within 0.001 of the new equilibrium $(20, 8)$ after 200 time units. What the analogy does capture is the coupling. Each population's growth depends on the other's state, and the delay between them produces oscillation rather than convergence.
A precise mathematical relative exists. Hofbauer and Sigmund (1998, Theorem 7.5.1) show that the replicator equation, the standard model of frequency-dependent selection among $n$ strategies, is equivalent to a Lotka-Volterra system with $n - 1$ species. For rock-paper-scissors the continuous-time replicator equation also has a neutrally stable equilibrium surrounded by closed orbits. Its discrete-time version, which corresponds to fitness-proportional selection in a generational algorithm, spirals away from the equilibrium (Ficici, 2004, §3.5).
Relative fitness hides progress
Back to the two flat fitness curves. In an ordinary evolutionary algorithm, fitness is a fixed function of the individual. In a coevolutionary algorithm it is a function of the individual and the opponents or partners it was evaluated with (Eiben and Smith, 2015, ch. 15). Ficici (2004, §3.3) calls the measured quality contextual. In a zero-sum game, a good individual tested against superior opponents looks poor, and a mediocre one tested against poor opponents looks superior. Monitoring the population's mean or best fitness therefore cannot reveal whether behavior is improving.
Floreano and Nolfi (1997) describe the same problem from inside a predator-prey robotics experiment. Progress by one population is achieved at the expense of the other's fitness, and the fitness landscape of each changes continually with its competitor. They call this continual change the Red Queen effect. Evolutionary robotics describes the field their experiment belongs to, from Floreano and Mondada's first neural controllers evolved on a physical robot.
Ficici (2004, §3.5) separates the Red Queen from cycling. The need to keep evolving to maintain fitness is present both when strategies cycle and when two populations are in a genuine arms race. Monitoring fitness cannot tell the two apart, and the methods later in this article were developed for that reason.
Pathologies of coevolutionary algorithms
What exactly can go wrong behind a flat fitness curve? The research literature names a set of recurring failure modes, which competitive coevolution listed briefly. Ficici (2004, ch. 3) reviews them one by one, and Popovici, Bucci, Wiegand and de Jong (2012) survey them in a broader account of coevolutionary algorithms.
Cycling in intransitive games. A superiority relation is intransitive when A beats B and B beats C, yet C beats A. Rock-paper-scissors is the smallest example. Its only Nash equilibrium is to play each move with probability $1/3$. But a population that drifts toward rock rewards paper, a population of paper rewards scissors, and so on. Selection favors whatever beats the current majority, and the population chases its own tail. Ficici lists reported cycles in cellular-automaton classification, time-series prediction, and pursuit and evasion (Ficici, 2004, §3.5.1).
Disengagement and loss of gradient. Selection needs differences in fitness. If no test can distinguish between the individuals being tested, the search has lost its gradient. When the tests come from a second population, the two populations are said to be disengaged. The typical case is a two-population system in which one side becomes so much stronger that every one of its members beats every member of the other. Then every individual in both populations receives the same score, selection becomes uniform random, and both populations drift.
Watson and Pollack (2001) designed minimal two-population "numbers games" to make these dynamics visible. In them, the drift eventually brings the populations back into contact, but at the cost of losing traits (Ficici, 2004, §3.4.1). Proposed remedies include slowing the stronger population until the weaker catches up, and rewarding moderate rather than total success against opponents (Ficici, 2004, §3.4.2).
Forgetting. A trait is forgotten when the population loses it and later would benefit from having it again. Ficici (2004, §3.6) distinguishes three causes.
- The trait may be selected against, which is the intransitive cycle again.
- It may be selectively neutral and lost to drift because selection pressure has become too narrow. Watson and Pollack (2001) call this focusing.
- It may be selected for but hard to keep, which points to a missing elitism mechanism.
Mediocre stable states. Pollack and Blair (1998) gave this name to a self-learning system that settles into an equilibrium of its own learning dynamics without becoming good at the task. A student and a teacher might narrow the game to a style both can handle, aim for draws, or collude, for example by throwing alternate games. Their conjecture that the dice keep backgammon out of such states is described in competitive coevolution. A mediocre stable state is the static counterpart of cycling: the fitness record is flat because nothing is changing, not because everything is.
Solution concepts. Ficici's thesis argues that these pathologies are symptoms of a single underlying problem. A solution concept specifies which individuals, or which sets or mixtures of individuals, count as solutions in an interactive domain. Every coevolutionary algorithm implements some solution concept, by design or by accident. The pathologies appear when the implemented concept differs from the one the experimenter intended (Ficici, 2004). For example, Ficici argues that the standard replicator dynamics implement no solution concept at all for rock-paper-scissors, since they never converge. He reads cycling as a sign that a solution concept has been implemented improperly (Ficici, 2004, §3.5). The Nash equilibrium and the set of Pareto-nondominated individuals, both discussed below, are two explicit solution concepts that algorithms have been built around.
Experiment: coevolving rock-paper-scissors
Now to the two runs of the opening, cycling and steady progress in the simplest setting where they occur. Both games are symmetric and zero-sum, and both use the same algorithm:
- one population of $N = 50$ individuals, in which every individual plays every member;
- fitness is the mean payoff;
- parents are chosen by binary tournament, and each child is mutated by adding Gaussian noise with $\sigma = 0.05$;
- no crossover and no elitism.
Each game was run for 300 generations with 30 seeds. Results are medians with interquartile ranges.
- Rock-paper-scissors. An individual is a mixed strategy $p = (p_R, p_P, p_S)$, a probability for each move. The payoff to $p$ against $q$ is the expected score $p^\top A q$, where $A$ gives 1 for a win, $-1$ for a loss and 0 for a draw. Negative probabilities after mutation are set to zero and the vector is renormalized.
- Arms race. A transitive control, a one-dimensional numbers game. An individual is a real number $x$, and $x$ beats $y$ whenever $x > y$ (payoff 1 for a win, $-1$ for a loss, 0 for a tie).
Example (mean fitness is always zero). The population's mean fitness is exactly zero in every generation of both games, whatever the run does. The payoffs are antisymmetric, $u(q, p) = -u(p, q)$, where $u(p, q)$ is the payoff to $p$ against $q$. The mean fitness is $\frac{1}{N^2}\sum_i \sum_j u(p_i, p_j)$. Every term $u(p_i, p_j)$ is canceled by its partner $u(p_j, p_i)$, and the diagonal terms $u(p_i, p_i)$ are zero.
The best individual's fitness is what an experimenter would plot, and it says almost nothing. In the arms race it is 0.980 in every generation: the champion beats all 49 others and ties itself. In rock-paper-scissors it averages 0.078 [0.071, 0.085] over generations 100 to 199 and 0.073 [0.069, 0.078] over generations 200 to 299.
External measures, which the algorithm never sees, tell the two runs apart. In the arms race the mean genome value climbs from 0.503 [0.486, 0.522] to 15.145 [14.965, 15.320]. In rock-paper-scissors the useful external measure is the exploitability of the population's mean strategy $m$. It is the most that an opponent choosing its best response could win per game against $m$. Against $m = (m_R, m_P, m_S)$, rock wins $m_S - m_P$ per game, paper $m_R - m_S$ and scissors $m_P - m_R$, and the exploitability is the largest of the three. All three are 0 at the Nash equilibrium, and against pure rock paper wins 1, so the measure runs from 0 at the Nash equilibrium to 1 for a pure strategy. Over generations 100 to 299 it averages 0.225 [0.214, 0.238], and it does not fall.
Instead the mean strategy circles the equilibrium, always in the direction rock to paper to scissors. It makes 17.2 [16.2, 18.0] full turns in 300 generations, about one turn every 17 generations. In seed 0 the mean strategy is 48% rock at generation 240, 43% paper at 244, 50% scissors at 252, and 53% rock again at 260. Neither the neutral orbits of the continuous replicator equation nor the outward spiral of the discrete one describes this run. Our own reading is that mutation pulls the population toward the center of the simplex while selection pushes it outward, so the cycle settles at a noisy, roughly constant amplitude.
Experiment: two populations, engaged and disengaged
The one-population arms race shows progress hidden by relative fitness. The same happens with two populations, as in Hillis's hosts and parasites. A two-population version shows the hidden progress from a different side, and adds the opposite failure.
The script tools/experiments/evolution/red_queen_extra.py runs a minimal two-population numbers game in the spirit of Watson and Pollack (2001), with details of our own.
- Hosts and parasites are real numbers, and a host beats a parasite when its number is larger.
- Each population has 50 members, every host meets every parasite, and each individual's fitness is the fraction of the other population it beats.
- Each population is then replaced by binary tournament selection and Gaussian mutation with $\sigma = 0.05$, for 300 generations and 30 seeds.
Two starts are compared: both populations uniform on $[0, 1)$, and parasites uniform on $[3, 4)$, so that every parasite beats every host from the first generation.
From the level start, the arms race of the one-population game reappears with two populations. The hosts' mean value rises from 0.503 [0.486, 0.522] to 14.758 [14.534, 14.922], and the parasites' from 0.510 to 14.739. The two medians stay within a few hundredths of each other. Meanwhile the hosts' mean relative fitness, averaged over generations 50 to 299, is 0.549 [0.437, 0.629].
Individual runs swing much more than the median suggests. In seed 0 the hosts' mean relative fitness ranges from 0.02 to 1.00 after generation 50. Across runs, the longest spell with one side ahead lasts a median of 86.5 generations (54 to 152). Yet the largest gap between the two population means in seed 0 after generation 50 is 0.32, about six times the mutation's standard deviation. A lead that relative fitness reports as total dominance is, in absolute terms, small. Both populations improve by about 0.05 per generation, and their relative fitness says nothing about it. This is the Red Queen in its plainest form.
From the separated start, the populations are disengaged. Every host loses every contest, so every host has fitness 0 and every parasite has fitness 1. Binary tournament selection on equal fitness picks parents uniformly at random, and both populations drift. After 300 generations the hosts' mean is 0.594 [−0.022, 0.931] and the parasites' 3.679 [3.418, 4.108]: scarcely changed in the median, but more spread out. Only 4 of the 30 runs made contact at any point, those four first at a median of generation 259. The parasites have no reason to improve, since nothing tests them. The hosts have no way to, since every host scores the same. The relative fitness record is perfectly informative about one thing, that the populations have lost contact, and about nothing else.
Example (unequal mutation sizes). Start the populations level, but give the parasites mutations ten times larger than the hosts' ($\sigma = 0.2$ against $0.02$). The arms race does not continue. In red_queen_extra.py the hosts' mean relative fitness, averaged over generations 50 to 299, was 0.004 [0.003, 0.006]. The populations were engaged in a median of a third of the generations, and only 3 of 30 runs were engaged at the end. The parasites' mean reached 5.836 against the hosts' 2.821. The faster side ran away, the populations disengaged on their own, and the contest stopped teaching either side anything.
The demo runs the same game one seed at a time. With equal mutation sizes and no head start it reproduces the arms race. A head start of 3 for the parasites reproduces disengagement, and unequal mutation sizes let one side pull ahead until contact is lost.
Measuring progress
If fitness against the current population cannot show progress, what can? Each of the three methods below answers by fixing the opponents: it compares individuals with opponents from the past, which do not change.
CIAO plots
Cliff and Miller (1995) proposed testing the best individual of each generation against the best opponents of every earlier generation. They called this current individual vs. ancestral opponents (CIAO). The results form a lower-triangular matrix $C$, with $C[g, h]$ the score of generation $g$'s champion against generation $h$'s, for $h \le g$. If coevolution is making progress, later champions should beat earlier ones, and the matrix should fill with wins below the diagonal. Floreano and Nolfi (1997) applied the method to their predator and prey robots. They likened the patterns in their CIAO plots to a tartan: periods of relative stasis interrupted by short, radical changes of behavior.
The CIAO matrix for rock-paper-scissors, seed 0, every fourth generation from 240 to 268:
| $g$ \ $h$ | 240 | 244 | 248 | 252 | 256 | 260 | 264 | 268 |
|---|---|---|---|---|---|---|---|---|
| 240 | 0 | |||||||
| 244 | 0.17 | 0 | ||||||
| 248 | 0.00 | 0.09 | 0 | |||||
| 252 | −0.13 | 0.07 | 0.07 | 0 | ||||
| 256 | −0.17 | −0.02 | 0.09 | 0.08 | 0 | |||
| 260 | 0.22 | −0.19 | −0.12 | 0.05 | 0.21 | 0 | ||
| 264 | 0.23 | −0.09 | −0.12 | −0.03 | 0.11 | 0.13 | 0 | |
| 268 | −0.15 | 0.18 | 0.08 | −0.07 | −0.19 | 0.07 | 0.16 | 0 |
Each champion beats the champions of the last few generations and loses to some older ones. The bands of positive and negative entries run roughly parallel to the diagonal. The champion of generation 260 plays rock 47% and paper 48% of the time. It beats the rock-heavy champion of generation 240 (72% rock), and loses to the champion of generation 244, which plays mostly paper and scissors.
The same run, averaged over generations 100 to 299, shows the pattern by lag. The score against the champion $k$ generations back is:
- positive for $k = 1$ to 9 (largest, 0.12, at $k = 4$ and 5);
- about zero at $k = 10$;
- negative from $k = 11$ to 20 (lowest, $-0.06$, at $k = 14$ to 16);
- within $\pm 0.02$ beyond that.
Over the 30 runs, the mean of all entries below the diagonal is 0.003 [0.003, 0.004]. The champions as a whole beat their ancestors no more often than they lose to them. In the arms race every entry below the diagonal in the same window of seed 0 is 1.00, and the mean over all pairs is 0.999 [0.998, 0.999].
Drawn as images, the two matrices look nothing alike, and this is how CIAO plots are meant to be read. Each row is one champion, and each cell to the left of the diagonal is its score against an ancestor.
Three patterns are worth knowing.
- A solid lower triangle is the signature of steady progress.
- Stripes parallel to the diagonal are the signature of a cycle, since they mean that the outcome depends on the lag $g - h$ alone.
- A lower triangle that fades from color near the diagonal to neutral far from it would mean that champions beat their recent ancestors but not their distant ones. That is the pattern forgetting would be expected to leave.
Master tournaments
A CIAO plot must be read by eye. Can its information be reduced to one number per generation? Yes. Floreano and Nolfi (1997) used a master tournament: each generation's best individual is tested against the best competitors of all generations, and its average score is its master fitness. The method identifies something the fitness record cannot: the generation that produced the best individuals. In a coevolutionary run that need not be the last.
Example (master fitness in a perfect arms race). Suppose every champion beats all earlier champions and loses to all later ones, over $G = 300$ generations. Then the last champion's master fitness is higher than the first's by $598/300 = 1.993$. To see this, count the games. The champion of generation $g$ (counting from 0) wins $g$ games, ties itself, and loses $G - 1 - g$. Its master fitness is
$$\frac{g - (G - 1 - g)}{G} = \frac{2g - G + 1}{G},$$
which rises in a straight line from $-299/300 = -0.997$ for the first champion to $+0.997$ for the last. The bound of 2 is out of reach only because each champion ties itself.
The experiment agrees. The master fitness of the final champion minus that of the first is 1.993 [1.993, 1.993] in the arms race. In rock-paper-scissors it is 0.002 [−0.007, 0.019], and every champion's master fitness stays within a few hundredths of zero.
A master tournament ranks individuals by how many collected opponents they beat, which hides intransitivity. Stanley and Miikkulainen (2004) point out that if strategy A beats 499 of 500 opponents and B beats 498, the master tournament ranks A above B even if B beats A head-to-head.
Dominance tournaments
Stanley and Miikkulainen (2004) describe a stricter alternative, the dominance tournament. They used it to monitor coevolution of neural-network controllers evolved with NEAT in a robot duel.
- The first generation's champion is the first dominant strategy.
- A later generation's champion becomes the next dominant strategy only if it beats every dominant strategy found so far.
The resulting sequence contains no cycles by construction, so each new level is strictly better than all earlier levels in head-to-head play. Evaluating a candidate can stop at its first loss, which makes the method cheaper than a master tournament. In their experiments, 13 runs reached between 11 and 19 dominance levels in 500 generations.
In our experiment a champion is counted as beating a dominant strategy when its payoff exceeds 0.01. The arms race produces 270 [267, 271.75] dominant strategies, the last one in generation 299 in every run. Rock-paper-scissors produces 8 [6, 9], the last one at generation 67 [37, 111]. Once a few levels exist, any new champion that beats the latest one loses to an earlier one. The hierarchy stops growing even though the population keeps moving.
The dominance tournament has a known weakness of its own. Ficici (2004, ch. 8) shows it in one of Watson and Pollack's numbers games. There the sequence of dominant strategies converges onto a strategy that is itself dominated by the Nash equilibrium. The Nash strategy only ties that strategy rather than beating it, and so can never enter the hierarchy. A strict monitoring criterion avoids false progress but can also miss real progress.
Remedies: memory, Pareto coevolution and archives
Measuring progress diagnoses the pathologies. The remedies in this section are attempts to build algorithms in which they do not arise.
Memory. Most remedies for forgetting and cycling keep a record of good individuals and use it during evaluation. The best known is the hall of fame of Rosin and Belew (1997), described in competitive coevolution. Testing against past champions penalizes a strategy that beats only the current population but loses to old champions. Ficici (2004, §3.6.2) describes most memory mechanisms in the literature as variants of this best-of-generation scheme, differing in how many past champions they keep and how many they sample. He proposes instead a Nash memory built around the Nash equilibrium as the solution concept (Ficici, 2004, ch. 8).
Pareto coevolution. Ficici and Pollack (2001) treated the opponents an individual meets as separate objectives, in the sense of multi-objective optimization. Pareto coevolution does not sum an individual's results into a single score. It compares results opponent by opponent, and keeps the individuals that are Pareto-nondominated: no other individual does at least as well against every opponent and strictly better against one. Intransitivity is then not averaged away. An individual that is the only one to beat some opponent stays nondominated.
Ficici and Pollack also rewarded tests for distinctions, for revealing a difference between two learners, which addresses disengagement directly. They applied the method to coevolving cellular-automaton rules and initial conditions for a density classification task (Ficici, 2004, §3.4.2 and ch. 7).
A small outcome matrix of our own shows what the change of view does. Four learners face five tests, and an entry of 1 means the learner passes the test (computed by tools/experiments/evolution/red_queen_extra.py):
| T1 | T2 | T3 | T4 | T5 | Total | Dominated by | |
|---|---|---|---|---|---|---|---|
| L1 | 1 | 1 | 0 | 0 | 1 | 3 | L2 |
| L2 | 1 | 1 | 1 | 0 | 1 | 4 | none |
| L3 | 0 | 0 | 0 | 1 | 1 | 2 | none |
| L4 | 1 | 0 | 1 | 0 | 1 | 3 | L2 |
Example (totals against dominance). A selection scheme that keeps the two learners with the highest totals keeps L2 and one of L1 or L4, while Pareto coevolution keeps L2 and L3. Summing the rows ranks L2 first and L3 last. Compared test by test, L2 passes everything L1 and L4 pass and one more test each, so it dominates both. But nothing dominates L3, which is the only learner to pass T4. Pareto coevolution keeps $\{L2, L3\}$: the best all-round learner and the one with a skill no other learner has.
On the test side, T5 is passed by everyone and so distinguishes no pair of learners. T2 and T3 each distinguish 4 of the 6 pairs, and T1 and T4 3 each. A test like T5, however easy to pass, carries no information for selection. Hillis made the same observation about random test cases that every network sorted (see competitive coevolution).
Archives with guarantees. De Jong's Incremental Pareto-Coevolution Archive (IPCA) keeps an archive of nondominated learners together with a test archive. A test is added when it reveals a new distinction between learners. For Pareto coevolution, the archive's quality never decreases, and any detectable improvement can enter it (de Jong, 2004a). The cost is size. No tests are removed, so the test archive grows throughout the run, and de Jong leaves bounding it as an open question. The Layered Pareto-Coevolution Archive (LAPCA) bounds the archive by keeping only a fixed number of Pareto layers of learners (de Jong, 2004b).
Limits
The Red Queen is a useful name for a measurement problem and an imprecise one for anything more. Van Valen's hypothesis concerned extinction rates of real lineages, and the Lotka-Volterra equations concern population sizes. Neither says anything specific about strategies in a coevolutionary algorithm. The precise statements are game-theoretic:
- relative fitness cannot by itself show progress;
- intransitive games produce cycles under selection;
- whether a run is improving depends on the solution concept that defines improvement.
The monitoring methods trade cost against reliability. CIAO and master tournaments need a number of games quadratic in the number of generations, and master fitness averages over cycles. Dominance tournaments are cheaper and cycle-free but can stall on a dominated strategy. The experiment here is deliberately small, a game of three moves with exact expected payoffs. Real applications sample opponents and evaluate noisily. They must also decide how much of the evaluation budget to spend measuring the present population rather than searching for a better one.
What we have learned
A flat fitness curve in a coevolutionary run can mean an arms race, a cycle, disengagement or a mediocre stable state. Relative fitness cannot tell them apart, because the opponents change as fast as the individuals being measured. Only comparisons with fixed opponents can: CIAO plots, master tournaments and dominance tournaments, each with its own blind spot. Memory, Pareto coevolution and archives try to keep the pathologies from arising at all.
Throughout this topic, the variation operators were fixed in advance, and only the populations and their fitness changed. In the next topic, evolution strategies, the algorithm tunes its own mutation instead, adapting the size and shape of its steps to the problem as it goes. It begins with the (1+1) ES and the 1/5 success rule.
References
- Carroll, L. (1871). Through the Looking-Glass, and What Alice Found There. Macmillan. record
- Cliff, D., and Miller, G. F. (1995). Tracking the red queen: Measurements of adaptive progress in co-evolutionary simulations. In Advances in Artificial Life: Third European Conference on Artificial Life (ECAL 1995), Lecture Notes in Computer Science 929, 200–218. Springer. record
- de Jong, E. D. (2004a). The incremental Pareto-coevolution archive. In Genetic and Evolutionary Computation, GECCO 2004, Lecture Notes in Computer Science 3102, 525–536. Springer. record
- de Jong, E. D. (2004b). Towards a bounded Pareto-coevolution archive. In Proceedings of the 2004 Congress on Evolutionary Computation, 2341–2348. IEEE. record
- Eiben, A. E., and Smith, J. E. (2015). Introduction to Evolutionary Computing, 2nd ed., chapter 15. Springer. record · 35 pages
- Ficici, S. G. (2004). Solution Concepts in Coevolutionary Algorithms. Doctoral dissertation, Brandeis University. record
- Ficici, S. G., and Pollack, J. B. (2001). Pareto optimality in coevolutionary learning. In Advances in Artificial Life: Sixth European Conference on Artificial Life (ECAL 2001), Lecture Notes in Computer Science 2159, 316–325. Springer. record
- Floreano, D., and Nolfi, S. (1997). God save the red queen! Competition in co-evolutionary robotics. In J. R. Koza et al. (eds.), Genetic Programming 1997: Proceedings of the Second Annual Conference, 398–406. Morgan Kaufmann. record
- Hofbauer, J., and Sigmund, K. (1998). Evolutionary Games and Population Dynamics. Cambridge University Press. record
- Khalil, H. K. (2002). Nonlinear Systems, 3rd ed., §4.2. Prentice Hall. record
- Lotka, A. J. (1925). Elements of Physical Biology. Williams and Wilkins. record
- Pollack, J. B., and Blair, A. D. (1998). Co-evolution in the successful learning of backgammon strategy. Machine Learning, 32(3), 225–240. record · 2 pages
- Popovici, E., Bucci, A., Wiegand, R. P., and de Jong, E. D. (2012). Coevolutionary principles. In G. Rozenberg, T. Bäck, and J. N. Kok (eds.), Handbook of Natural Computing, 987–1033. Springer. record · 2 pages
- Rosin, C. D., and Belew, R. K. (1997). New methods for competitive coevolution. Evolutionary Computation, 5(1), 1–29. record · 2 pages
- Solé, R. (2022). Revisiting Leigh Van Valen's "A New Evolutionary Law" (1973). Biological Theory, 17(2), 120–125. record
- Stanley, K. O., and Miikkulainen, R. (2004). Competitive coevolution through evolutionary complexification. Journal of Artificial Intelligence Research, 21, 63–100. record · 2 pages
- Van Valen, L. (1973). A new evolutionary law. Evolutionary Theory, 1, 1–30. record
- Volterra, V. (1926). Fluctuations in the abundance of a species considered mathematically. Nature, 118, 558–560. record
- Watson, R. A., and Pollack, J. B. (2001). Coevolutionary dynamics in a minimal substrate. In L. Spector et al. (eds.), Proceedings of the Genetic and Evolutionary Computation Conference (GECCO 2001), 702–709. Morgan Kaufmann. record · 2 pages
Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 8 revisions