MAP-Elites, short for Multi-dimensional archive of phenotypic elites, is an evolutionary computation algorithm that searches for a large collection of diverse, high-performing solutions rather than a single optimum. It divides a user-defined behavior space into cells and keeps, in each cell, the best solution discovered so far, which is called the elite of that cell.
Introduced by Jean-Baptiste Mouret and Jeff Clune in 2015, MAP-Elites became the reference method of quality diversity optimization. Its output is often called an illumination map, because it reveals how performance varies across the whole range of behaviors, not only at the peak of the fitness landscape.
How MAP-Elites fills its archive
MAP-Elites needs two functions besides the genetic representation: a fitness function that measures quality, and a behavior descriptor function that maps each solution to a point in a low-dimensional feature space. The feature space is discretized into a grid, and each grid cell is a niche that can hold at most one solution.
The algorithm runs a simple loop. After an initial batch of random solutions, it repeatedly selects elites uniformly at random from the archive, applies mutation and sometimes crossover, evaluates the offspring, and computes their descriptors. An offspring enters its cell if the cell is empty or if it outperforms the current elite there.
- Generate and evaluate an initial set of random solutions.
- Place each solution into the cell that matches its behavior descriptor.
- Select a parent uniformly from the occupied cells.
- Create offspring with variation operators and evaluate them.
- Replace the cell elite only when the offspring has higher fitness.
- Repeat until the evaluation budget is exhausted.
Because competition happens only within each cell, a mediocre solution with an unusual behavior survives as long as nothing better exists in its niche. These stepping stones often lead to high-performing solutions that a pure objective-driven search would never reach.
Key components and parameters
The behavior descriptor is the most consequential design decision in MAP-Elites, because it defines which kinds of diversity the algorithm preserves. The table below lists the main settings and what they control.
| Setting | Typical values | What it affects |
|---|---|---|
| Behavior descriptor | 2 to 6 hand-chosen features | Which kinds of diversity are kept |
| Grid resolution | 10 to 100 bins per dimension | Archive size and selection pressure per niche |
| Initial random batch | Hundreds to thousands | Starting coverage of the space |
| Mutation operator | Gaussian or iso-line variation | Step size between parent and child |
| Evaluation budget | Thousands to millions | Final coverage and elite quality |
Grid size grows exponentially with descriptor dimension: ten bins in six dimensions already yields one million cells. For that reason, practitioners keep descriptors low-dimensional or use CVT-MAP-Elites, which replaces the regular grid with a fixed number of centroids computed by centroidal Voronoi tessellation.
Variants of MAP-Elites
Many extensions of MAP-Elites keep the archive principle but change how offspring are generated or how niches are defined. The following table summarizes the most widely used variants.
| Variant | Main change | When it helps |
|---|---|---|
| CVT-MAP-Elites | Centroidal Voronoi niches | Descriptors with many dimensions |
| CMA-ME | CMA-ES emitters generate offspring | Continuous search spaces needing efficiency |
| PGA-MAP-Elites | Adds policy gradient variation | Neural policies for robot control |
| CMA-MAE | Annealed acceptance threshold | Balancing exploration and quality |
| AURORA | Learns descriptors with an autoencoder | No obvious hand-crafted features |
| Multi-objective MAP-Elites | Stores a Pareto front per cell | Several competing objectives |
MAP-Elites compared with related methods
MAP-Elites sits between pure fitness optimization and pure novelty search. A standard genetic algorithm or CMA-ES converges toward one optimum and risks premature convergence, while novelty search rewards behavioral difference alone and ignores quality. MAP-Elites optimizes quality locally while enforcing diversity globally through its archive.
| Approach | Search goal | Diversity mechanism | Output |
|---|---|---|---|
| Genetic algorithm | Single best solution | Mutation and population size only | One optimum |
| Niching methods | Several optima in genotype space | Fitness sharing or crowding | A few peaks |
| Novelty search | Behavioral novelty | Novelty archive | Diverse but unranked behaviors |
| NSGA-II | Trade-offs between objectives | Crowding distance on the Pareto front | Pareto front |
| MAP-Elites | Best solution per behavior | Grid of behavior niches | Illumination map |
The distinction from niching deserves emphasis. Classical niching measures similarity in genotype or objective space and typically discovers a handful of separate peaks. MAP-Elites measures similarity in a user-defined behavior space, so two genetically very different solutions compete for the same cell when they behave alike. This makes the algorithm well suited to domains where behavior matters more than encoding, such as robot locomotion, game level design and the generation of diverse test scenarios for autonomous systems.
Measuring results and avoiding common mistakes
MAP-Elites runs are evaluated with quality diversity metrics: coverage is the fraction of cells filled, maximum fitness is the best elite, and the QD-score is the sum of all elite fitness values, usually after shifting fitness to be nonnegative. Comparisons between runs are meaningful only with identical grids and descriptors.
- Poorly chosen descriptors produce diversity that users do not care about.
- Noisy fitness evaluations let lucky solutions occupy cells permanently; re-evaluation or averaging is required.
- Overly fine grids spread the budget thinly and leave elites weak.
- Unbounded descriptor ranges waste cells; ranges should be set from domain knowledge.
Computational cost is the other practical constraint. Each offspring requires a full fitness evaluation, often a physics simulation or a training run, so large archives demand parallel evaluation in batches. Modern libraries such as pyribs and QDax run thousands of evaluations simultaneously on accelerators, which turns experiments that once took days into runs of minutes or hours.
Understanding it simply
Most search methods hunt for one single winner. MAP-Elites does something different. It draws a map of possible styles and keeps the best example of every style.
Think of a sports club that wants one top athlete for each body type and playing position. It does not drop a good short sprinter just because a tall sprinter is faster. In the end, the club has a strong option for every situation. That is the core idea: variety and quality at the same time.
Applied in practice
A research team builds a six-legged walking robot and wants it to keep moving if a leg is damaged in the field. Before deployment, they run MAP-Elites in simulation for about 20 million evaluations. The behavior descriptor records how much of the time each of the six legs touches the ground, and fitness is forward walking speed.
The resulting archive holds thousands of distinct gaits, from gaits that rely heavily on all legs to gaits that barely use one of them. When a leg breaks during a test, the robot uses the map as a prior and tries a few promising gaits on the real hardware. Within a few minutes and about a dozen trials, it finds a gait that recovers most of its original speed, a result that a single optimized gait could not provide.