MAP-Elites

Also known as: Multi-dimensional archive of phenotypic elites

On this page 7

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.

  1. Generate and evaluate an initial set of random solutions.
  2. Place each solution into the cell that matches its behavior descriptor.
  3. Select a parent uniformly from the occupied cells.
  4. Create offspring with variation operators and evaluate them.
  5. Replace the cell elite only when the offspring has higher fitness.
  6. 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.

SettingTypical valuesWhat it affects
Behavior descriptor2 to 6 hand-chosen featuresWhich kinds of diversity are kept
Grid resolution10 to 100 bins per dimensionArchive size and selection pressure per niche
Initial random batchHundreds to thousandsStarting coverage of the space
Mutation operatorGaussian or iso-line variationStep size between parent and child
Evaluation budgetThousands to millionsFinal coverage and elite quality
Main MAP-Elites settings and their effects

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.

VariantMain changeWhen it helps
CVT-MAP-ElitesCentroidal Voronoi nichesDescriptors with many dimensions
CMA-MECMA-ES emitters generate offspringContinuous search spaces needing efficiency
PGA-MAP-ElitesAdds policy gradient variationNeural policies for robot control
CMA-MAEAnnealed acceptance thresholdBalancing exploration and quality
AURORALearns descriptors with an autoencoderNo obvious hand-crafted features
Multi-objective MAP-ElitesStores a Pareto front per cellSeveral competing objectives
Common MAP-Elites variants

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.

ApproachSearch goalDiversity mechanismOutput
Genetic algorithmSingle best solutionMutation and population size onlyOne optimum
Niching methodsSeveral optima in genotype spaceFitness sharing or crowdingA few peaks
Novelty searchBehavioral noveltyNovelty archiveDiverse but unranked behaviors
NSGA-IITrade-offs between objectivesCrowding distance on the Pareto frontPareto front
MAP-ElitesBest solution per behaviorGrid of behavior nichesIllumination map
How MAP-Elites differs from neighboring approaches

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.