Cooperative coevolution evolves each part of a problem in its own population and scores an individual by the joint solution it forms with members of the others. It pays when the parts interact weakly or predictably, and can stall where no single part can improve when they do not. In our runs (30 seeds, 100,000 evaluations), CCGA-1 reached the 16-bit optimum of 20-variable Rastrigin, $2.42 \times 10^{-5}$, in at least three quarters of runs, against the GA's median of 12.23. On the rotated function both coevolutionary versions ended near 108, against the GA's 54. Crediting partners by average favors robust actions over optimal ones: in the climbing game averaging found the optimum in 3 of 30 runs, optimistic credit in 28.
Suppose we want to minimize Rastrigin's function of 20 variables, a standard multimodal test problem, with a genetic algorithm that encodes each variable in 16 bits. The usual approach evolves one population of 320-bit chromosomes. Every change to one variable is then judged together with the current values of the other 19. An alternative gives each variable its own population of 16-bit chromosomes and evolves the 20 populations separately. A candidate value for one variable is judged by plugging it into a complete solution assembled from good values of the others. In 30 runs of 100,000 evaluations each, the second approach found the best point the 16-bit encoding can represent in at least three quarters of the runs. The first was still far from the optimum. Rotate the same function, so that the variables no longer act independently, and the ranking reverses. When does splitting a problem among populations that work together pay off, and why can it fail so completely? It pays off when the parts interact weakly or in predictable ways. It can fail badly when the best value of one part depends on the others, because each population changes only its own part and the search can stop at a point where no single part can improve, as it does on the rotated function.
The second approach is cooperative coevolution. A problem is decomposed into parts, each part evolves in its own population (a species), and individuals are rewarded for how well they work with the members of the other species. Competitive coevolution scores an individual by contests against other evolving individuals. Cooperative coevolution scores it by its contribution to a joint solution. Both make fitness relative: an individual's score depends on which members of the other populations it is evaluated with, and it changes as they evolve.
First we build Potter and De Jong's architecture and see how it assigns credit. Then the separable and rotated versions of Rastrigin's function show why the interaction between variables decides the outcome. Next come the choice of collaborators, and a pathology called relative overgeneralization, followed exactly on a small two-agent game. Finally we scale the idea to thousands of variables and connect it to the evolution of neural networks. The article assumes the relative fitness of competitive coevolution, and Eiben and Smith (2015, ch. 15) give a short textbook treatment.
The architecture
How can a population that holds only part of a solution be given a fitness at all? Potter and De Jong (1994) answered with the cooperative coevolutionary genetic algorithm (CCGA). Its elements are these:
- a species represents a subcomponent of a solution;
- complete solutions are assembled from representative members of each species;
- an individual's credit is the fitness of the complete solutions it takes part in;
- each species is evolved by a standard genetic algorithm;
- when needed, the number of species should itself evolve.
Species are genetically isolated. They mate only within their own population and interact only through evaluation.
For function optimization the decomposition is given: one species per variable. Their first algorithm, CCGA-1, works as follows.
- Initialize one population per variable. Evaluate each individual by combining it with a randomly chosen individual from each of the other species.
- Evolve the species in turn, round robin. For the current species, apply selection, crossover and mutation as in an ordinary GA. Evaluate each new individual by combining it with the current best individual of every other species. Those representatives are held fixed while this species is evaluated.
Potter and De Jong called this the simplest form of credit assignment imaginable. They noted its resemblance to numerical methods that optimize one variable at a time while holding the others fixed. Such methods work well when the variables are reasonably independent and poorly when they interact. That remark is the key to everything that follows.
The first comparison. They compared CCGA-1 with a standard GA that differed only in using a single population. Both used:
- 16 bits per variable;
- fitness-proportional selection with a scaling window, and elitism;
- two-point crossover, and mutation at one over the chromosome length;
- populations of 100 and 100,000 evaluations, averaged over 50 runs.
On four multimodal functions, Rastrigin (20 variables), Schwefel (10), Griewangk (10) and Ackley (30), CCGA-1 was significantly better in both final value and speed. Its advantage was smallest on Griewangk, whose product term couples the variables. On the two-variable Rosenbrock function, whose curved valley couples the variables strongly, CCGA-1 did much worse than the GA.
They attributed this to the greedy credit assignment and tried a second version, CCGA-2. It evaluates each new individual twice, once with the best members of the other species and once with randomly chosen members, and keeps the better result. CCGA-2 matched the GA on Rosenbrock, at the cost of slightly worse performance than CCGA-1 on Rastrigin. There was also a computational bonus. Decoding a 16-bit chromosome is cheaper than decoding a full one, and on the 30-variable Ackley function the standard GA took about six times as long for the same number of evaluations.
The general architecture. Potter and De Jong (2000) developed the design further, with credit assignment at two levels.
- Within a species, the representatives of the other species are fixed during evaluation. An individual's fitness therefore differs from its rivals' only through its own contribution, and no attempt is made to divide credit among species.
- Between species, a species whose members contribute too little is removed. When the best collaboration stops improving by a set amount within a set number of generations, a new, randomly initialized species is added. Both the number of species and their roles can then emerge.
On a string-matching task they showed that the species came to cover different niches of the target set, with an appropriate number of species. They then applied the architecture to growing cascade neural networks, adding a species for each new hidden unit. Species interact only through occasional exchange of representatives, so the architecture parallelizes naturally, much as island models do. Different species can also use different representations.
So CCGA-1 won on four functions and lost on one whose variables interact. The next section shows that interaction between variables can decide the outcome, on a function built to isolate it.
Separable and non-separable problems
A function is separable if it can be optimized one variable at a time: the best value of each variable does not depend on the values of the others. Rastrigin's function,
$$f(\mathbf{x}) = 10n + \sum_{i=1}^{n} \left( x_i^2 - 10 \cos(2 \pi x_i) \right),$$
is a sum of one-variable terms, one for each of the $n$ variables $x_i$. It is therefore separable however many local minima it has. There is one near each integer point of the box $[-5.12, 5.12]^n$, $11^n$ in all. Rotating the coordinate system gives $f(R\mathbf{x})$ for an orthogonal matrix $R$. The shape of the function is unchanged, but every variable is now mixed into every term, so the function is no longer separable. In the terms of fitness landscapes, a separable function has no epistasis between its variables, and rotation adds it without changing the landscape's shape. An algorithm that adapts its search directions is unaffected: CMA-ES learns a rotated ellipsoid's axes and solves it in about as many evaluations as the unrotated one. Rosenbrock's function,
$$f(\mathbf{x}) = \sum_{i=1}^{n-1} \left[ 100 (x_{i+1} - x_i^2)^2 + (1 - x_i)^2 \right],$$
couples each variable to its neighbors.
Best response in two dimensions
Here is the idea. An algorithm that moves one variable at a time can travel only along the axes, and a rotated function may have no good path along them. Two dimensions show this exactly.
Strip CCGA-1 down to its logic by letting each species be a perfect optimizer of its own variable. A species step replaces $x_1$ by the value that minimizes $f$ with $x_2$ held at its current value, and the next step does the same for $x_2$. This is coordinate-wise best response, the idealized limit of the round-robin scheme. For a separable function, $f(x_1, x_2) = g(x_1) + h(x_2)$, and the term $h(x_2)$ is a constant while $x_1$ is being chosen. The best $x_1$ therefore does not depend on $x_2$ at all, and one sweep finds the global minimum from any starting point. Rotating the function by 30° breaks this. The best value of $x_1$ now depends on where $x_2$ is, and each species can still move only along its own axis.
The script tools/experiments/evolution/cooperative_examples.py computes the steps from $(3.3, -2.7)$ on a grid of step 0.0005.
- Separable: $(3.3, -2.7) \to (0, -2.7) \to (0, 0)$, with $f = 0$.
- Rotated: $(3.3, -2.7) \to (0.728, -2.7) \to (0.728, -0.493) \to (0.861, -0.493) \to (0.861, -0.498)$. After that neither variable can move, and $f = 0.995$.
From 1,000 random starting points in the box, best response reached the global minimum every time on the separable function. On the rotated one it did so 11.2% of the time, with a median final value of 1.990 (quartiles 0.995 and 3.980).
The point where it stops has a name from game theory. Treat each variable as a player, all of them minimizing the same $f$. A Nash equilibrium is a point where no player can do better by changing its own move alone. An algorithm that evaluates each variable against the best values of the others can come to rest at such points. On a non-separable function many of them are not the optimum.
The experiment
On Rastrigin's function, the two-dimensional picture predicts what real genetic algorithms do in 20 dimensions. The script tools/experiments/evolution/cooperative_coevolution.py in the site repository compares a GA, CCGA-1 and CCGA-2 on the three functions with 100,000 evaluations each. The settings follow Potter and De Jong with three changes:
- binary tournament selection in place of fitness-proportional selection with a scaling window;
- the standard constant 10 in Rastrigin's function, where they used 3;
- 10 variables for Rosenbrock's function, where they used 2.
Rastrigin's function has 20 variables, as in their study, and the rotated version is our addition. The best value found, median and interquartile range over 30 seeded runs:
| Function | GA | CCGA-1 | CCGA-2 |
|---|---|---|---|
| Rastrigin, separable | 12.23 [9.71, 15.22] | $2.42 \times 10^{-5}$ [$2.42 \times 10^{-5}$, $2.42 \times 10^{-5}$] | $1.02 \times 10^{-4}$ [$7.27 \times 10^{-5}$, $2.42 \times 10^{-4}$] |
| Rastrigin, rotated | 54.29 [47.78, 63.86] | 109.4 [98.75, 134.1] | 107.5 [96.26, 115.9] |
| Rosenbrock, 10 variables | 8.15 [7.60, 8.95] | 3.25 [1.88, 6.47] | 4.00 [0.46, 6.64] |
On the separable function, CCGA-1 reached $2.42 \times 10^{-5}$ in at least three quarters of the runs. That is the optimum of the 16-bit grid. No 16-bit value lies exactly at 0, and the nearest, $x_i \approx -7.8 \times 10^{-5}$, contributes $1.2 \times 10^{-6}$ per variable. Both coevolutionary versions ended below the GA in all 30 runs, and after 10,000 evaluations CCGA-1 was already at 1.56 against the GA's 28.9.
Rotation reversed the result. The GA's median more than quadrupled, from 12 to 54, while both coevolutionary versions ended near 108. Each beat the GA in only 1 of 30 runs. A species controls one coordinate and can move only along that axis. After rotation, no axis is a direction along which the function can be optimized on its own.
The curves show when the outcome is decided. On the rotated function both coevolutionary versions had essentially stopped by 10,000 evaluations. CCGA-1's median was 110.9 then and 109.4 at the end. The two-dimensional example stopped in the same way, at its first point where no single-axis move helped. The GA changes all coordinates at once through crossover and mutation, and it kept improving: from a median of 68.4 at 10,000 evaluations to 55.9 at 50,000 and 54.3 at the end.
Example (Rosenbrock's function in 10 variables). Potter and De Jong's CCGA-1 lost badly to the GA on Rosenbrock's function, whose neighboring variables interact, but in our 10-variable version it did not. In this setup CCGA-1 ended below the GA in 29 of 30 runs and CCGA-2 in 27. The interaction between neighboring variables, though real, did not defeat the coevolutionary versions. The experiment differs from theirs in dimension (10 variables rather than 2) and in selection, and the GA itself stalled near 8. The comparison illustrates a point Wiegand (2003) argued at length. Whether a problem is separable does not by itself determine whether cooperative coevolution helps. What matters is the kind of interaction.
Collaborators and credit
If the kind of interaction matters, the way an individual meets its partners must matter too. Every cooperative coevolutionary algorithm decides which members of the other species an individual is evaluated with, and how to turn several evaluations into one fitness value. CCGA-1 uses one collaborator per species, the current best. CCGA-2 uses two, the best and a random one, and takes the better result. Wiegand, Liles and De Jong (2001) studied these choices empirically, and Wiegand (2003) describes them as three attributes of a collaboration method:
- Sample size: how many collaborators from each other species. Each one costs an evaluation, and with several species the costs multiply.
- Selective bias: how collaborators are chosen, from uniformly at random to always the best.
- Credit assignment: how the results are combined, optimistic (the maximum), hedge (the mean) or pessimistic (the minimum).
Wiegand (2003) tested these choices on constructed test problems.
- A single collaborator was best when the interactions between variables did not cross the boundaries between populations.
- More collaborators helped when they did. Specifically, they helped when the effect of a change to one population's part could not be predicted in sign or magnitude from the parts alone.
- Increasing the sample size helped more than biasing it toward the best, which he noted agrees with the earlier study.
- For static optimization, optimistic credit assignment was typically a good choice.
Relative overgeneralization
Why should optimism help? It counters a problem that goes beyond sampling noise: cooperative coevolution is not, in general, an optimizer. Wiegand (2003) calls the problem relative overgeneralization. Populations are attracted toward regions of the search space where many strategies perform well relative to the individuals they are paired with. Those regions may be far from the optimum.
The climbing game of Claus and Boutilier (1998), a test problem from multiagent reinforcement learning, shows the effect, and it is our second running example. Two agents each choose one of three actions, and both receive the same payoff for the joint action (as used by Panait, Luke and Wiegand, 2006):
| $b = 0$ | $b = 1$ | $b = 2$ | |
|---|---|---|---|
| $a = 0$ | 11 | $-30$ | 0 |
| $a = 1$ | $-30$ | 7 | 6 |
| $a = 2$ | 0 | 0 | 5 |
The best joint action is $(0, 0)$, worth 11. Now suppose each agent is judged by how it does with a partner who chooses at random.
Example (the optimal action ranks last). Against a partner who picks each action with probability $1/3$, the row agent's action 2 earns the most on average and the optimal action 0 earns the least. Action 0 gets $(11 - 30 + 0)/3 = -6.33$ on average, action 1 gets $(-30 + 7 + 6)/3 = -5.67$ and action 2 gets $(0 + 0 + 5)/3 = 1.67$. Judged by average performance with whatever partners the other population currently holds, the optimal action looks worst. It is punished heavily whenever the partner is not also optimal. The safe actions, which do moderately well with any partner, are the "jack-of-all-trades" choices that Panait, Luke and Wiegand (2006) describe the populations being drawn to.
A natural misreading is that this is just a local optimum, or bad luck in sampling partners. Panait, Luke and Wiegand stress that it is neither. In their analysis, even with infinite populations and no variation operators, the coevolutionary dynamics are not necessarily attracted to the optimum. A GA under the same conditions would be attracted to the unique maximum. Their remedy biases each individual's fitness toward an estimate of the payoff it would receive with its ideal collaborator, weighting the two parts with a parameter $\delta$.
A continuous version
The same effect appears with continuous actions, where it is easier to see. Take two agents choosing $x$ and $y$ in $[0, 1]$, with a joint payoff of our own construction:
- a tall, narrow peak of height 10 at $(0.8, 0.8)$, a Gaussian of standard deviation 0.05;
- a broad hill of height 6 centered at $(0.25, 0.25)$, a Gaussian of standard deviation 0.25;
- the payoff is the larger of the two.
An agent's action $x$ can be credited in two ways. Hedge credit averages the payoff over partners spread uniformly across $[0, 1]$. Optimistic credit takes the payoff with the best partner. The script cooperative_examples.py computes both on a grid of 1,001 points:
Averaged over partners, the credit is highest at $x = 0.25$ (3.16). The optimal action $x = 0.8$ earns only 1.51, because it pays well only with a partner within a few hundredths of 0.8. With the best partner, $x = 0.8$ earns 10 and $x = 0.25$ earns 6. A population of agents credited by averages climbs the broad hill. Each action is judged by how it does with typical partners, and typical partners favor the robust choice. This is relative overgeneralization in a picture.
Following the climbing game exactly
Back to the climbing game. Its dynamics can be followed exactly, without sampling, by treating both populations as infinitely large. Here is the plan: compute each action's fitness against the other population, apply selection to the shares, then apply mutation.
- Fitness. Each action's fitness $f_a$ is its expected payoff against the other population's current mixture.
- Selection. Binary tournament selection gives action $a$, now holding share $p_a$, the new share $p_a^2 + 2p_a \sum_{c:\, f_c < f_a} p_c$. It is selected when both draws are $a$, or when one is $a$ and the other a less fit action $c$. No two actions tie here.
- Mutation. Mutation at rate 0.05 replaces a share 0.05 of each population with uniformly random actions.
The payoff table is not symmetric. Row action 1 against column action 2 pays 6, but row action 2 against column action 1 pays 0. So the row population $A$ and the column population $B$ take different paths. Starting from equal shares (computed by cooperative_examples.py, three decimals for shares, two for fitness):
| Generation | $A$: shares of actions 0, 1, 2 | $A$: fitness | $B$: shares of actions 0, 1, 2 | $B$: fitness |
|---|---|---|---|---|
| 0 | 0.333, 0.333, 0.333 | −6.33, −5.67, 1.67 | 0.333, 0.333, 0.333 | −6.33, −7.67, 3.67 |
| 1 | 0.122, 0.333, 0.544 | 0.00, −5.88, 2.72 | 0.333, 0.122, 0.544 | −8.66, −1.33, 4.72 |
| 2 | 0.108, 0.122, 0.770 | −1.90, 1.71, 3.85 | 0.122, 0.108, 0.770 | −2.48, −2.39, 4.58 |
| 4 | 0.017, 0.120, 0.863 | −0.48, 5.39, 4.80 | 0.018, 0.022, 0.960 | −3.41, 0.32, 5.03 |
| 6 | 0.017, 0.405, 0.578 | −0.34, 5.41, 4.83 | 0.017, 0.018, 0.966 | −11.97, 2.33, 5.32 |
| 8 | 0.017, 0.837, 0.146 | −0.34, 5.41, 4.83 | 0.017, 0.018, 0.966 | −24.92, 5.35, 5.75 |
| 10 | 0.017, 0.963, 0.020 | −1.30, 5.44, 4.67 | 0.017, 0.050, 0.933 | −28.72, 6.24, 5.88 |
| 12 | 0.017, 0.966, 0.018 | −6.17, 5.60, 3.86 | 0.017, 0.212, 0.771 | −28.78, 6.25, 5.88 |
| 14 | 0.017, 0.966, 0.018 | −17.74, 5.99, 1.93 | 0.017, 0.598, 0.385 | −28.78, 6.25, 5.88 |
| 17 | 0.017, 0.966, 0.018 | −28.69, 6.35, 0.10 | 0.017, 0.962, 0.021 | −28.78, 6.25, 5.88 |
Read the table in three phases.
- The safe action spreads. Action 2 is the best reply to a uniform partner in both populations and holds 77% of each by generation 2. Action 0, the optimum, falls by generation 4 to the floor of about 0.017 that mutation provides.
- $A$ moves first. With $B$ playing mostly 2, $A$'s action 1 earns more than its action 2 (5.39 against 4.80 at generation 4), and $A$ moves to action 1 by generation 10.
- $B$ follows. $B$'s action 2 stays best while $A$ still plays 2, because column action 1 earns 0 against it. Once $A$ plays 1, $B$'s action 1 earns 7 against action 2's 6, and $B$ follows by generation 17.
Both settle on $(1, 1)$, payoff 7. Action 0, punished by the $-30$ against action 1, never recovers.
Optimism changes the outcome completely. Credit each action with the expected best of five random partners, and the same calculation sends action 0 to 0.966 of both populations by generation 6. At the start its expected best payoff in $A$ is 9.43, against 6.72 and 4.34 for actions 1 and 2. The advantage only grows as partners learn to play it.
Finite populations
Finite populations, with sampling noise, behave the same way in most runs. The second part of cooperative_coevolution.py runs two populations of 20 agents on this game, each individual being one action. Each run lasts 50 generations, with binary tournament selection and a mutation rate of 0.05, under five collaboration schemes. The number of the 30 runs ending with each joint action held by a majority of both populations:
| Scheme | $(0, 0)$, payoff 11 | $(1, 1)$, payoff 7 | $(2, 2)$, payoff 5 | $(1, 2)$, payoff 6 |
|---|---|---|---|---|
| Best of the other population | 5 | 25 | 0 | 0 |
| One random partner | 9 | 21 | 0 | 0 |
| Average over the whole population | 3 | 19 | 1 | 7 |
| Best and one random, maximum | 28 | 2 | 0 | 0 |
| Maximum over 5 random partners | 28 | 2 | 0 | 0 |
Averaging over the entire partner population, the most thorough evaluation of the five, found the optimum least often. The populations usually settled on $(1, 1)$, by the same three phases as the exact calculation. Action 2 does best against a random partner and spreads first. Once partners mostly play 2, action 1 earns 6 against them where action 2 earns 5, so action 1 takes over. Action 0 stays unattractive because it pays $-30$ against action 1.
The two optimistic schemes, which credit an individual with its best result, found $(0, 0)$ in 28 of 30 runs. Weakening the penalty helps averaging. With $-30$ replaced by $-20$, $-10$, $-5$ and $0$, averaging found the optimum in 5, 6, 8 and 15 runs, while the optimistic scheme found it in 28 every time.
One result deserves a second look. Choosing the best collaborator from the previous generation, close to what CCGA-1 does, sounds optimistic, but it is not optimistic in this sense. It pairs every individual with the same partner, the one that scored highest in its own population, not with the partner that would be best for that individual. It found the optimum in only 5 runs.
Large-scale optimization
So far the decomposition was given: one species per variable, or one per agent. Cooperative coevolution returned to prominence as a way to optimize functions of hundreds or thousands of variables, where standard evolutionary algorithms degrade. There the decomposition is the difficulty. One species per variable fails on non-separable functions, as the rotated Rastrigin function showed, and the variable interactions are rarely known in advance.
Random grouping
Yang, Tang and Yao (2008) proposed random grouping. It runs in cycles:
- split the $n$ variables at random into $m$ groups of $s = n/m$ variables each;
- optimize each group in turn with a differential evolution algorithm, for a fixed budget;
- redraw the split at the start of the next cycle.
Two interacting variables are therefore not kept apart permanently. In each cycle they share a group with probability $1/m$ (Yang, Tang and Yao treat each variable's group as an independent uniform choice; with groups of exactly $s$ variables the probability is $(s-1)/(n-1)$, which is 0.0991 rather than 0.1 in the example below), independently of other cycles. The number of cycles in which they share a group is then binomial. Yang, Tang and Yao showed that over $N$ cycles the probability that the two share a group in at least $k$ of them is
$$P_k = \sum_{r=k}^{N} \binom{N}{r} \left( \frac{1}{m} \right)^{r} \left( 1 - \frac{1}{m} \right)^{N - r}.$$
Example (1,000 variables in 10 groups). With $n = 1000$ variables in $m = 10$ groups of 100 and $N = 50$ cycles, a given pair of interacting variables is very likely to share a group at least once: $P_1 = 1 - 0.9^{50} = 0.9948$. Even sharing a group at least twice has $P_2 = P_1 - 50 \times 0.1 \times 0.9^{49} = 0.9662$. The calculation covers a pair of variables, though. For a group of $v$ interacting variables, the first may fall in any group and each of the other $v - 1$ must fall in the same one, so by the same $1/m$ rule all $v$ land together with probability $(1/m)^{v-1}$ per cycle. With $v = 5$ and $m = 10$ that is $10^{-4}$, and over 50 cycles the chance of it happening even once is $1 - (1 - 10^{-4})^{50}$, about 0.5% (our calculation). With groups of exactly 100 variables the figures change little. The pair probability $99/999$ gives $P_1 = 0.9946$ and $P_2 = 0.9648$. Five variables share a group with probability $\tfrac{99}{999} \cdot \tfrac{98}{998} \cdot \tfrac{97}{997} \cdot \tfrac{96}{996} \approx 9.1 \times 10^{-5}$ per cycle, which is 0.46% over 50 cycles.
Their algorithm, DECC-G, also used adaptive weighting. After each cycle it evolves a vector of weights, one per group, that scale each group's variables together. It was tested on benchmark functions of up to 1,000 variables.
Differential grouping
Omidvar, Li, Mei and Yao (2014) proposed instead to find the interactions before optimizing. Differential grouping rests on a simple test.
- Perturb variable $x_i$ by $\delta$ and record the change in $f$.
- Set another variable $x_j$ to a different value and repeat.
- If the two changes differ, $x_i$ and $x_j$ interact.
For $f(x_1, x_2) = x_1^2 + x_1 x_2 + x_2^2$ with $\delta = 1$, the change is $f(1, 0) - f(0, 0) = 1$ at $x_2 = 0$. At $x_2 = 1$ it is $f(1, 1) - f(0, 1) = 3 - 1 = 2$, so the variables interact. For $x_1^2 + x_2^2$ both changes are 1.
The test is sound in one direction. Call $x_i$ and $x_j$ non-interacting when $f$ can be written as $g + h$, where $g$ does not depend on $x_j$ and $h$ does not depend on $x_i$. Perturbing $x_i$ then changes $f$ by the change in $g$ alone, and that change is the same whatever value $x_j$ has. So two different changes rule out such a split: the variables interact. This is Theorem 1 of Omidvar, Li, Mei and Yao (2014). The converse does not hold. Equal changes at the two points tested do not show that the variables are separate. For $f = x_i^2 x_j^2$ on an interval symmetric about 0, moving $x_i$ from one end to the other changes $f$ by 0 whatever $x_j$ is, although the two variables interact.
The algorithm applies the test to pairs of variables, with a threshold $\epsilon = 10^{-3}$ on the difference. It puts each variable in which the test detects an interaction with $x_i$ into $x_i$'s group. A variable linked to $x_i$ only through a third variable, as in a chain like Rosenbrock's, is not detected by the test against $x_i$.
Example (the cost of finding the groups). For 1,000 variables, differential grouping spends far more evaluations on a fully separable function than on one whose variables form 20 interacting groups of 50: 1,001,000 against 21,000. The count follows from the test. A scan takes one variable $x_i$ from the list still to be tested and compares it with every other variable on the list. It needs 2 evaluations for the change in $f$ at the starting point and 2 more for each other variable, so a scan of a list of $r$ variables costs $2 + 2(r - 1) = 2r$ evaluations. (This counts the change at the starting point once per scan, as Omidvar and colleagues do in their analysis; their Algorithm 1 as printed recomputes it for every pair.) A variable that joins a group is removed from the list.
- Twenty groups of 50. Suppose the test detects every pair of variables within a group. Each scan then finds one whole group and removes its 50 variables, so the 20 scans see lists of 1,000, 950, and so on down to 50 variables. The cost is $2(1000 + 950 + \cdots + 50) = 2 \times 10{,}500 = 21{,}000$.
- Fully separable. Nothing interacts, so nothing is detected. Each scan removes only its own variable, and the 1,000 scans see lists of 1,000, 999, and so on down to 1. The cost is $2(1000 + 999 + \cdots + 1) = 2 \times 500{,}500 = 1{,}001{,}000$.
On the 20 functions of the CEC 2010 large-scale benchmark, all with 1,000 variables, differential grouping grouped the interacting variables perfectly on 13 functions. It had low accuracy on almost all the variants of Rosenbrock's function, which the authors left for further study.
Neuroevolution
Neural networks offer a natural decomposition into neurons, and cooperative coevolution became an important approach in neuroevolution. Evolving neural network weights describes the two main methods and their results; here we place them in the architecture of this article.
- SANE (Moriarty and Miikkulainen, 1996) evolves a single population of neurons, and each neuron's fitness depends on the networks it took part in. Potter and De Jong (2000) point out that rewarding neurons for how well they collaborate maintains diversity in the population and produces a form of emergent decomposition. In a later version, as they describe it, a second population of network blueprints records combinations of neurons that work well together. A neuron's fitness is then the average of the five best networks it took part in.
- ESP (Gomez and Miikkulainen, 1997) makes the decomposition explicit, with one species for each hidden-unit position. Gomez and Miikkulainen introduced it to evolve networks with memory. They combined it with incremental evolution on a prey-capture task, evaluating the population first on easier versions of the task and then on harder ones.
In ESP the species are positions in a fixed architecture. NEAT instead evolves whole networks and uses species to protect new structure, a different use of the word. The course's final project, coevolving soft robots with NEAT, evaluated and inherited each robot's body and controller together, which its report calls single-population cooperative coevolution. There is no separate population of controllers to pair with bodies, as there would be in the architecture described here.
What we have learned
Cooperative coevolution pays off when a problem decomposes into parts that interact weakly or in predictable ways. Separable and partially separable functions, teams of agents with distinct roles, and networks of specialized units all qualify. It shrinks each population's search space, parallelizes naturally, and allows different representations for different parts. It has two costs. The decomposition is either supplied by hand or learned at a price in evaluations. And the relative fitness can favor robust partners over optimal ones, as the climbing game showed when averaging settled on $(1, 1)$. The separable and rotated versions of Rastrigin's function, identical in shape and opposite in outcome, show both sides.
In the climbing game, the populations settled and stayed settled. In competitive coevolution they may never settle, or may settle on something mediocre, while their relative fitness stays flat throughout. The next article, Red Queen dynamics in coevolution, shows how to tell whether such a run is making progress: by testing each generation's best individual against fixed opponents from earlier generations.
References
- Claus, C., and Boutilier, C. (1998). The dynamics of reinforcement learning in cooperative multiagent systems. In Proceedings of the Fifteenth National Conference on Artificial Intelligence (AAAI-98), 746–752. AAAI Press. record
- Eiben, A. E., and Smith, J. E. (2015). Introduction to Evolutionary Computing, 2nd ed., chapter 15. Springer. record · 35 pages
- Gomez, F., and Miikkulainen, R. (1997). Incremental evolution of complex general behavior. Adaptive Behavior, 5(3–4), 317–342. record · 2 pages
- Moriarty, D. E., and Miikkulainen, R. (1996). Efficient reinforcement learning through symbiotic evolution. Machine Learning, 22(1–3), 11–32. record · 2 pages
- Omidvar, M. N., Li, X., Mei, Y., and Yao, X. (2014). Cooperative co-evolution with differential grouping for large scale optimization. IEEE Transactions on Evolutionary Computation, 18(3), 378–393. record
- Panait, L., Luke, S., and Wiegand, R. P. (2006). Biasing coevolutionary search for optimal multiagent behaviors. IEEE Transactions on Evolutionary Computation, 10(6), 629–645. record
- Potter, M. A., and De Jong, K. A. (1994). A cooperative coevolutionary approach to function optimization. In Y. Davidor, H.-P. Schwefel and R. Männer (eds.), Parallel Problem Solving from Nature: PPSN III, Lecture Notes in Computer Science 866, 249–257. Springer. record
- Potter, M. A., and De Jong, K. A. (2000). Cooperative coevolution: An architecture for evolving coadapted subcomponents. Evolutionary Computation, 8(1), 1–29. record
- Wiegand, R. P. (2003). An Analysis of Cooperative Coevolutionary Algorithms. Doctoral dissertation, George Mason University. record
- Wiegand, R. P., Liles, W. C., and De Jong, K. A. (2001). An empirical analysis of collaboration methods in cooperative coevolutionary algorithms. In L. Spector et al. (eds.), Proceedings of the Genetic and Evolutionary Computation Conference (GECCO-2001), 1235–1242. Morgan Kaufmann. record
- Yang, Z., Tang, K., and Yao, X. (2008). Large scale evolutionary optimization using cooperative coevolution. Information Sciences, 178(15), 2985–2999. record
Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 7 revisions