XOR is the classic problem a neural network cannot solve without a hidden unit. Given a network with two hidden units, a genetic algorithm finds weights for XOR after a median of 840 evaluations. Asked to start with no hidden units and discover that one is needed, it faces a different problem. This topic is about evolution designing the network itself, its structure as well as its weights, when the only feedback is a score.
Neuroevolution uses evolutionary algorithms to design neural networks. In its simplest form, the structure is fixed and evolution searches only the weights. That needs no gradient, so it works when the only feedback is a score at the end of an episode, as in many control and game-playing tasks.
More ambitious methods evolve the structure as well: which neurons exist, how they connect, and what each computes. That raises two problems a bit-string genetic algorithm never meets:
- Two networks can compute the same function with their hidden units in different orders, so crossing them can produce nonsense.
- New structure usually performs worse at first, before its weights are tuned, so selection tends to remove it before it can prove useful.
NeuroEvolution of Augmenting Topologies (NEAT), published by Kenneth Stanley and Risto Miikkulainen in 2002, answered both. It marks every new gene with a historical innovation number, so that crossover can line up matching parts of different networks. It divides the population into species, so that new structure competes mainly within its own niche. And it starts from minimal networks and adds structure by mutation, so that networks grow only as far as selection rewards.
The topic runs in four steps:
- weights alone: a fixed network, and what goes wrong when two good networks are crossed;
- structure: NEAT's genome, its markings and its species;
- scale: CPPNs and HyperNEAT, which encode a large network as a function of the geometry of its neurons, and evolutionary search for deep image-recognition architectures;
- the course's final project, NEAT evolving the bodies and controllers of simulated soft robots.
XOR runs through the first three articles, with one fitness, $(4 - \sum \lvert \text{error} \rvert)^2$, so a hand-built network, a from-scratch NEAT and its speciation experiments can be compared directly. All of them meet the same fitness trap at 9.
Articles
Evolving networks
- Evolving neural network weights: when a person fixes the network, evolution can find its weights, and crossing two good networks can destroy what both had. A seeded genetic algorithm on XOR against mutation alone and random search, competing conventions, SANE and ESP, and where evolution competes with gradient-based training.
- NEAT: NeuroEvolution of Augmenting Topologies: networks of different shapes are crossed by lining up their genes by history, and new structure survives long enough to be tuned because it competes within its own species. Historical markings, crossover worked by hand, complexification, and the paper's results beside a reimplementation over 100 seeds.
- Speciation in NEAT: how NEAT decides which networks compete with which, and how new structure disappears from the population without it. The compatibility distance, fitness sharing, stagnation, dynamic thresholds, and XOR with speciation switched off.
Indirect encodings and architecture search
- CPPNs and HyperNEAT: a small evolved network states a rule once and expands it into the connections of a much larger one. Pattern-producing networks and the regularities they produce, HyperNEAT's substrates with one CPPN queried at five resolutions, and what a bias toward regularity costs.
- Evolutionary neural architecture search: when gradient descent trains the weights, evolution can design the architecture, and on a table of trained cells it beats random search. Regularized (aging) evolution against reinforcement-learning search, weight sharing, random-search baselines, an aging experiment on NAS-Bench-101, and population-based training.
From my course work
- Coevolving soft robots with NEAT: the body evolves along with its controller, and single runs show that the system works without ranking its parts. The course's final project, a from-scratch NEAT that evolved voxel bodies and their controllers in EvoGym, presented as a single-run case study with the design of a controlled follow-up.
Related topics
Neuroevolution relies on the selection and variation machinery of genetic algorithms. Its problem of evolving structure parallels that of genetic programming, and NEAT's speciation is a form of the fitness sharing described in selection pressure and premature convergence. Evolving bodies and controllers together is an instance of coevolution. Evolution strategies are often used for weight-only neuroevolution at scale, and evolutionary robotics continues the soft-robot line of work.
What comes next
Evaluating fitness is usually the expensive part of an evolutionary algorithm. The next topic, parallel and coevolutionary algorithms, covers running it in parallel, and what changes when the population is split or when fitness depends on other evolving individuals. It begins with master-slave parallel evaluation.
References
- Stanley, K. O., and Miikkulainen, R. (2002). Evolving neural networks through augmenting topologies. Evolutionary Computation, 10(2), 99–127. record · 5 pages
- Yao, X. (1999). Evolving artificial neural networks. Proceedings of the IEEE, 87(9), 1423–1447. record · 2 pages
Reviewed: verified, 16 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 16 Nov 2026 · 3 revisions