Coevolution

Also known as: cooperative coevolution · competitive coevolution

On this page 7

Coevolution is an approach in evolutionary computation in which two or more populations evolve simultaneously and the fitness of an individual depends on interactions with individuals from the other populations, rather than on a fixed fitness function. It is used in artificial intelligence when a good objective is hard to write down directly, or when a problem naturally splits into interacting parts.

Two main forms exist. In competitive coevolution, populations act as adversaries, such as strategies and counter-strategies, so each side creates pressure on the other. In cooperative coevolution, each population evolves one component of a larger solution, and individuals are rewarded for how well they work together as a team.

How coevolution replaces a fixed fitness function

In a standard genetic algorithm, each candidate is scored by an absolute, static fitness function. Coevolution instead uses relative or subjective fitness: an individual is evaluated by pairing it with members of another population and observing the outcome, such as a game result or the quality of an assembled solution.

This makes the fitness landscape dynamic. As one population improves, the landscape seen by the other changes, which can drive continuous progress, often called an evolutionary arms race. The same feedback loop can also cause instability, because a score measured today may mean something different a few generations later.

Theoretical work frames this through solution concepts borrowed from game theory, such as Nash equilibria, Pareto-optimal sets of strategies or the best average performance against all opponents. Choosing a solution concept explicitly tells the algorithm what counts as a good outcome, and much of the research since the early 2000s shows that many classic failures come from leaving that choice implicit.

The table below contrasts the core elements of a coevolutionary algorithm with those of a single-population evolutionary algorithm.

ElementSingle-population algorithmCoevolutionary algorithm
FitnessAbsolute, from a fixed functionRelative, from interactions
LandscapeStatic during the runChanges as populations adapt
Evaluation costOne evaluation per individualMany pairings per individual
Progress signalMonotonic best fitnessHard to measure objectively
Typical riskPremature convergenceCycling and disengagement
Single-population evolution compared with coevolution

Competitive and cooperative coevolution

Competitive coevolution suits problems with an adversarial structure. Classic examples include evolving sorting networks against hard test cases, game-playing strategies against opponents, and predator and prey controllers in evolutionary robotics. Each population plays the role of a moving target for the other.

Cooperative coevolution, formalized in the 1990s by Potter and De Jong, decomposes a solution into subcomponents. Each subcomponent has its own population, and an individual is evaluated by combining it with representative collaborators from the other populations, commonly the current best of each. This divide-and-conquer approach helps on large, partially separable problems.

The table summarizes the main variants and where each applies.

VariantInteractionTypical application
Competitive, two-populationHosts against parasitesTest cases versus solutions
Competitive, single-populationIndividuals play each otherGame strategies, self-play
CooperativeSubcomponents form a teamHigh-dimensional optimization
Cooperative neuroevolutionNeurons or modules evolve separatelyNeural network controllers
MixedTeams compete against teamsMulti-agent learning
Main forms of coevolution

Pathologies of coevolutionary dynamics

Coevolution is known for characteristic failure modes that do not appear with a fixed objective. Practitioners must recognize them, because a run can look busy while making no real progress.

PathologySymptomCommon remedy
CyclingStrategies return to earlier formsHall of fame archive
DisengagementOne side always wins, gradient vanishesBalance difficulty, resource sharing
OverspecializationWins only against current opponentsDiverse opponent sampling
Mediocre stable statesPopulations settle on weak equilibriaPareto-based evaluation
Relative overgeneralizationCooperative teams prefer safe, poor partsOptimistic collaborator selection
Common coevolutionary pathologies

Cycling arises from intransitive relationships, as in rock, paper, scissors, where no strategy dominates. Disengagement occurs when one population becomes so strong that every opponent scores the same, leaving no useful selection signal. Relative overgeneralization is specific to cooperative coevolution: components that perform adequately with many partners are favored over components that perform best with the right partner.

Designing and evaluating a coevolutionary algorithm

Good design starts with the interaction scheme: how many opponents or collaborators each individual meets and how they are chosen. More pairings reduce noise but raise evaluation cost, which often grows with the product of population sizes in a full round-robin.

  • Keep an archive such as a hall of fame, so individuals are also tested against strong past opponents.
  • Measure progress externally with a fixed benchmark set, because internal fitness cannot show absolute improvement.
  • Use diversity mechanisms such as niching or fitness sharing to avoid overspecialization.
  • Choose collaborators carefully in cooperative setups, combining best and random partners.
  • Track lineages over time with techniques such as CIAO plots to detect cycling.

The following decision table helps match the method to the problem.

Problem situationRecommended setupReason
No explicit objective, adversarial taskCompetitive coevolution with archiveOpponents define difficulty
Thousands of decision variablesCooperative coevolution with groupingDecomposition reduces search space
Robust solutions under hard casesHost and parasite populationsParasites expose weaknesses
Clear, cheap fitness functionStandard evolutionary algorithmCoevolution adds needless cost
Choosing a coevolutionary setup

Coevolution in relation to other methods

Coevolution shares ideas with several neighboring techniques. Self-play in reinforcement learning, as in modern game agents, is a form of single-population competitive coevolution. Generative adversarial networks follow a similar two-player structure, although they are trained with gradients rather than selection.

It also connects to island models, where subpopulations evolve in parallel but share one objective, and to novelty search and quality diversity, which likewise avoid a single fixed objective. The defining feature of coevolution remains that fitness is produced by interaction between evolving entities.

In large-scale optimization, cooperative coevolution is often combined with variable grouping methods such as differential grouping, which detect interacting variables and place them in the same subpopulation. Subcomponent optimizers are frequently differential evolution or CMA-ES, so coevolution acts as a framework around other evolutionary algorithms rather than as a competitor to them.

Put simply

Coevolution means evolving several groups at once so that they shape each other. Nobody writes a fixed score. Instead, each candidate is judged by how it does against, or together with, the others.

Think of two chess clubs that only play each other. Each club improves because the other keeps getting better. That is the competitive kind. The cooperative kind is like a band, where each musician practices a part and is judged by how good the whole song sounds.

In practice

A research team designs sorting networks for 16 inputs and wants networks with as few comparators as possible. Testing every possible input is expensive, so they run competitive coevolution: one population of 500 networks and one population of 500 test cases.

Networks score points for sorting test cases correctly, while test cases score points for making networks fail. Over a few hundred generations, the test population concentrates on the hardest inputs, and the network population is pushed to handle them. A hall of fame keeps the strongest past test cases in play to prevent cycling.

At the end, the best networks are verified against all inputs. The coevolutionary run reaches compact, fully correct networks with far fewer evaluations than exhaustive testing would require in every generation.