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.
- Initialize a population of random or minimal networks.
- Evaluate every network on the task to obtain fitness.
- Select parents, apply mutation and crossover, and form the next generation.
- 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 element | Typical method | Main trade-off |
|---|---|---|
| Weights only | Evolution strategies, CMA-ES, genetic algorithms | Simple and scalable, but topology is fixed |
| Topology and weights | NEAT and its variants | Finds compact networks, but scales poorly to very large models |
| Indirect encodings | HyperNEAT, compositional pattern networks | Exploits regularity, but harder to tune |
| Architectures for gradient training | Evolutionary neural architecture search | Strong results, but very high compute cost |
| Learning rules or hyperparameters | Evolved plasticity, population-based training | Improves adaptation, but adds an outer loop |
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.
| Mechanism | Problem it addresses | How it works |
|---|---|---|
| Historical markings | Crossover between different topologies | Innovation numbers align matching genes |
| Speciation | New structures eliminated before tuning | Similar genomes compete mainly within a species |
| Complexification | Searching needlessly large spaces | Start minimal and add nodes gradually |
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.
| Aspect | Neuroevolution | Backpropagation |
|---|---|---|
| Required signal | Scalar fitness per candidate | Differentiable loss and gradients |
| Sample efficiency | Low; many evaluations needed | High for supervised learning |
| Parallel scaling | Near-linear across workers | Limited by synchronization |
| Exploration | Population-wide, resists local optima | Local, follows the gradient |
| Architecture search | Native capability | Requires an external search method |
| Practical model size | Thousands to millions of parameters | Up to billions of parameters |
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.
| Situation | Recommended choice | Reason |
|---|---|---|
| Sparse or delayed reward | Evolution strategies on weights | No need for credit assignment through time |
| Unknown minimal architecture | NEAT-style topology evolution | Grows only the structure that is needed |
| Deceptive objective | Novelty search or MAP-Elites | Rewards diverse behavior, not only fitness |
| Large labeled dataset | Gradient training instead | Evolution wastes evaluations here |
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.