Skip to content

Review: Illuminating Search Spaces by Mapping Elites

Citation

  • Mouret, J.-B. & Clune, J. (2015). Illuminating search spaces by mapping elites. arXiv:1504.04909.
  • DOI

Abstract

Nearly all science and engineering fields use search algorithms, which automatically explore a search space to find high-performing solutions: chemists search through the space of molecules to discover new drugs; engineers search for stronger, cheaper, safer designs, scientists search for models that best explain data, etc. The goal of search algorithms has traditionally been to return the single highest-performing solution in a search space. Here we describe a new, fundamentally different type of algorithm that is more useful because it provides a holistic view of how high-performing solutions are distributed throughout a search space. It creates a map of high-performing solutions at each point in a space defined by dimensions of variation that a user gets to choose. This Multi-dimensional Archive of Phenotypic Elites (MAP-Elites) algorithm illuminates search spaces, allowing researchers to understand how interesting attributes of solutions combine to affect performance, either positively or, equally of interest, negatively. For example, a drug company may wish to understand how performance changes as the size of molecules and their cost-to-produce vary. MAP-Elites produces a large diversity of high-performing, yet qualitatively different solutions, which can be more helpful than a single, high-performing solution. Interestingly, because MAP-Elites explores more of the search space, it also tends to find a better overall solution than state-of-the-art search algorithms. We demonstrate the benefits of this new algorithm in three different problem domains ranging from producing modular neural networks to designing simulated and real soft robots. Because MAP-Elites (1) illuminates the relationship between performance and dimensions of interest in solutions, (2) returns a set of high-performing, yet diverse solutions, and (3) improves the state-of-the-art for finding a single, best solution, it will catalyze advances throughout all science and engineering fields.


Most search returns one winner and discards the rest of the space it passed through. Mouret and Clune draw the distinction between an optimization algorithm, which returns the single highest-performing solution, and an illumination algorithm, which returns the highest-performing solution in each region of a user-chosen, low-dimensional feature space. An illumination algorithm therefore reports how performance varies across the feature space, which they call a phenotype-fitness map. It is a superset of optimization: the best cell of the map is also a global optimum.

The algorithm

MAP-Elites keeps a map from each cell of the feature space to the best solution found there, the cell's elite. Three user-supplied functions define a problem: a performance \( f(x) \) to be maximized, a feature descriptor \( b(x) \) that places a solution in the feature space, and a variation operator that makes a new candidate from an existing one. The feature space is low-dimensional by design and is discretized into cells at a granularity set by the available computation.

After seeding the map with a few random solutions, the loop repeats: draw a random occupied cell, vary its elite to make a candidate \( x' \), compute the candidate's descriptor \( b(x') \) and performance \( f(x') \), and store \( x' \) in cell \( b(x') \) when that cell is empty or when \( x' \) beats its current occupant. Placement is a plain keep-if-better rule; there is no temperature and no acceptance ratio. Because the descriptor is many-to-one, many distinct solutions can map to the same cell, and only the best is kept.

Two observations explain why the map fills with high performers. First, most organisms descend from parents near them in the feature space, and none of those the authors sampled from a parent more than halfway across the map; but many high-performing elites descend not from an immediate neighbor but from a high-performing neighbor a medium distance away (their Fig. 4). Purely local search would miss those. Second, the whole archive of high performers acts as a reservoir of stepping stones: tracing the ancestry of a final elite shows lineages that traverse large parts of the feature space, so a good solution in one region seeds the discovery of good solutions in regions a search confined to one region would not reach. Keeping only an archive, with no separate population, also avoids the cycling that afflicts novelty-based methods, since the archive never forgets where it has already been.

Measuring an illumination run

The paper defines four quality measures. Global performance is the best solution found anywhere, divided by the best possible. Global reliability and precision (opt-in reliability) average, over all fillable cells or over the cells a run filled, the performance relative to the best possible in each cell. Coverage is the fraction of fillable cells the run filled. Across all three test domains MAP-Elites scores higher on reliability, precision, and coverage than a traditional evolutionary algorithm, novelty search with local competition, and random sampling, and it is competitive on global performance.

Place in the quality-diversity literature

MAP-Elites is one of the founding algorithms of quality-diversity (QD) search, the study of methods that return a collection of solutions that are at once high-performing and diverse rather than a single optimum. Its immediate ancestors are novelty search and its local-competition variant (Lehman and Stanley 2011), in which a solution competes on performance only against others that are near it in feature space. That idea of local competition is what separates QD from a traditional evolutionary algorithm, and in MAP-Elites it becomes competition within a cell. The paper itself compares MAP-Elites with novelty search with local competition. The many variants since 2015 are later work, outside this paper; the review of Chatzilygeroudis et al. (2021) surveys them, and the quality-diversity community keeps a categorized bibliography at quality-diversity.github.io/papers.

Relevance to Hifuku

Hifuku is an illumination algorithm applied to phylogenetics. The feature space is the two-dimensional chart of tree space; the feature descriptor is a tree's barycentric coordinate on that chart; the performance is the alignment log-likelihood, computed exactly by the Felsenstein recursion; and the variation operators are the tree moves (NNI, SPR, branch slide, branch scale). The elite archive keeps the highest-likelihood tree per niche, so the output is a map of the likelihood landscape rather than a single maximum-likelihood tree. The tree is both the genome and the phenotype, a direct encoding with no decoding step. The paper's coverage and precision measures are the basis of Hifuku's optional rate rule, which halts when the rates of new niches and of elite improvement both fall below thresholds. The default halt is on the growth of the archive's QD-score, a later measure of Pugh et al. (2016) related to the paper's global reliability (see the theory overview, Section 5 and Section 6.1).