Neuroevolution

On this page 8

Neuroevolution is the use of evolutionary algorithms to design or train artificial neural networks, optimizing their connection weights, their architecture or both by repeated selection and variation instead of by gradient descent. Within evolutionary computation, it is the branch that treats a neural network as the phenotype produced from an evolved genome and judges it by a fitness function measured on a task.

The approach is especially useful when gradients are unavailable, noisy or misleading, as in reinforcement learning with sparse rewards, control of physical systems and open-ended search for novel behaviors. It also offers a natural way to search over network topologies, which gradient-based training cannot do directly.

How neuroevolution searches for neural networks

A neuroevolution run maintains a population of candidate networks. Each candidate is decoded from its genome, evaluated on the task, and assigned a fitness score such as cumulative reward, prediction accuracy or distance traveled by a simulated robot.

The algorithm then applies selection to favor better candidates and genetic operators to create offspring. Mutation perturbs weights or adds nodes and connections; crossover combines parts of two parent networks. Over many generations, the population climbs the fitness landscape without ever computing a derivative of the loss.

  1. Initialize a population of random or minimal networks.
  2. Evaluate every network on the task to obtain fitness.
  3. Select parents, apply mutation and crossover, and form the next generation.
  4. Repeat until fitness stops improving or a compute budget is exhausted.

Because each evaluation is independent, the loop is embarrassingly parallel. Large runs distribute thousands of evaluations across CPU cores, which is a major reason the method became competitive again in deep reinforcement learning.

What neuroevolution can evolve

Neuroevolution methods differ mainly in what the genome encodes. The choice determines the size of the search space and which problems the method suits.

Evolved elementTypical methodMain trade-off
Weights onlyEvolution strategies, CMA-ES, genetic algorithmsSimple and scalable, but topology is fixed
Topology and weightsNEAT and its variantsFinds compact networks, but scales poorly to very large models
Indirect encodingsHyperNEAT, compositional pattern networksExploits regularity, but harder to tune
Architectures for gradient trainingEvolutionary neural architecture searchStrong results, but very high compute cost
Learning rules or hyperparametersEvolved plasticity, population-based trainingImproves adaptation, but adds an outer loop
Targets of neuroevolution and their trade-offs

Direct encodings store every weight explicitly in the genome, so genome size grows with network size. Indirect encodings store a compact rule that generates the network, which lets a small genome describe a large, regular structure such as a symmetric controller for a legged robot.

Key mechanisms in topology-evolving methods

NEAT, short for NeuroEvolution of Augmenting Topologies, introduced three ideas that remain standard reference points for evolving structure. Each solves a specific problem that earlier attempts encountered.

MechanismProblem it addressesHow it works
Historical markingsCrossover between different topologiesInnovation numbers align matching genes
SpeciationNew structures eliminated before tuningSimilar genomes compete mainly within a species
ComplexificationSearching needlessly large spacesStart minimal and add nodes gradually
Core mechanisms introduced by NEAT

Speciation is a form of niching: it protects innovation long enough for new structures to optimize their weights. Without it, a freshly added node usually lowers fitness at first and is removed by selection before it can prove useful.

Neuroevolution compared with gradient-based training

Neuroevolution and backpropagation are complementary rather than competing tools. Gradient descent is far more sample-efficient when a differentiable loss exists, while evolution tolerates discontinuities and explores more broadly.

AspectNeuroevolutionBackpropagation
Required signalScalar fitness per candidateDifferentiable loss and gradients
Sample efficiencyLow; many evaluations neededHigh for supervised learning
Parallel scalingNear-linear across workersLimited by synchronization
ExplorationPopulation-wide, resists local optimaLocal, follows the gradient
Architecture searchNative capabilityRequires an external search method
Practical model sizeThousands to millions of parametersUp to billions of parameters
Neuroevolution versus backpropagation

Hybrid approaches combine both strengths. Evolutionary architecture search evolves a network design and trains each candidate with gradients, while population-based training evolves hyperparameters during ordinary gradient training.

Where neuroevolution is applied

Neuroevolution is most valuable in control and decision tasks where the reward arrives late, the simulator is not differentiable or deceptive local optima trap gradient methods. Typical domains include robot locomotion, game playing, adaptive controllers and automated design.

SituationRecommended choiceReason
Sparse or delayed rewardEvolution strategies on weightsNo need for credit assignment through time
Unknown minimal architectureNEAT-style topology evolutionGrows only the structure that is needed
Deceptive objectiveNovelty search or MAP-ElitesRewards diverse behavior, not only fitness
Large labeled datasetGradient training insteadEvolution wastes evaluations here
Choosing neuroevolution for a problem

Interest in the field has risen and fallen with available compute. Early work in the late 1980s and 1990s evolved small fixed networks for control benchmarks such as pole balancing. NEAT appeared in 2002, and in 2017 large-scale experiments showed that simple evolution strategies could rival deep reinforcement learning on Atari games and simulated locomotion when run on many parallel workers.

Practitioners usually start with modest population sizes, often between 50 and 1,000 candidates, and tune mutation strength before anything else. Logging fitness statistics per generation and per species makes stagnation visible early, which saves hours of wasted computation.

Limitations and common pitfalls

The main limitation is computational cost: every fitness evaluation may require a full episode in a simulator, and populations of hundreds run for hundreds of generations. Weight-only methods also struggle as parameter counts grow very large, because random mutations rarely improve a high-dimensional network.

  • Poorly designed fitness functions produce networks that exploit simulator flaws instead of solving the task.
  • Noisy evaluations mislead selection unless fitness is averaged over several trials.
  • Loss of diversity leads to premature convergence on mediocre solutions.
  • Uncontrolled growth of topologies increases evaluation time without improving fitness.

The short version

Neuroevolution builds AI brains the way nature breeds animals. It starts with many random networks. It tests each one on a task. The best ones get copied with small random changes. The weak ones are dropped.

After many rounds, the networks become surprisingly good at the task. Nobody has to tell them exactly how to improve. They only need a score that says which attempt did better.

Where it makes a difference

A research team wants a walking controller for a four-legged robot. The physics simulator is not differentiable, and the robot earns a reward only for the distance it covers in 20 seconds. Gradient-based reinforcement learning makes slow progress because most early attempts simply fall over and receive almost no signal.

The team switches to an evolution strategy with a population of 256 controllers, running evaluations in parallel on a cluster of 128 CPU cores. Each generation takes about a minute. After roughly 300 generations, the best controller produces a stable, symmetric gait that covers several meters per run. The team then adds novelty search to discover alternative gaits, which helps when the robot later operates on uneven ground.