arXiv(opens in a new tab)cs.NEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.09699

The Modular CMA-ES: A Framework for Modern Evolution Strategies

Jacob de Nobel, Diederick Vermetten, Anna V. Kononova, Carola Doerr, Thomas Bäck

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Since their introduction, modern evolution strategies, such as the Covariance Matrix Adaptation Evolution Strategy (CMA-ES), have become established as powerful methods for continuous black-box optimization. This success has led to a wide range of proposed modifications, each designed to improve performance or behavior in specific optimization scenarios. However, because these developments have largely been introduced and studied in isolation, their interactions remain comparatively underexplored. In this paper, we present the Modular CMA-ES (ModCMA), a configurable framework that integrates a wide range of mechanisms from modern evolution strategies within a single implementation. By decomposing CMA-ES into modules with interchangeable options for sampling, selection and recombination, step-size adaptation, matrix adaptation, and restarting, ModCMA enables systematic exploration of a large design space of modern evolution strategies and facilitates the construction, comparison, and automated configuration of new algorithm variants. We illustrate the benefits of this modular approach through two example studies. First, we compare several matrix-adaptation mechanisms in terms of their computational cost and optimization performance. Second, we use automated algorithm configuration to specialize ModCMA to individual benchmark problems and analyze the resulting configurations. Together, these examples demonstrate how the framework can be used both to study individual algorithmic design choices and to explore their combinations in a systematic and reproducible manner.

Keywords: Evolution Strategies, CMA-ES, Continuous Optimization, Black-Box Optimization, Modular Algorithms, Algorithm Configuration

1 Introduction

Many real-world optimization problems can only be accessed as black boxes: the objective function is expensive, noisy, or lacks analytical structure, and gradient information is unavailable or unreliable. Even when the problem is not purely black-box in nature, methods that treat it as such can be effective, e.g., when problem knowledge is not linked to existing solution techniques, or when the effort required to integrate problem knowledge into a custom solver is too large. Evolution strategies (ES) (Rechenberg, 1973; Schwefel, 1965) provide a robust class of methods for such settings, with the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) (Hansen and Ostermeier, 2001) having emerged as one of the most widely used algorithms for continuous black-box optimization. CMA-ES combines strong empirical performance on benchmarks (Hansen, 2009b), a comparatively small set of sensitive hyperparameters, and strong invariance properties.

Over the years, numerous CMA-ES variants and extensions have been proposed. These include restart strategies for multimodal functions (Auger and Hansen, 2005; Hansen, 2009a), alternative sampling schemes such as mirrored and orthogonal sampling (Brockhoff et al., 2010; Wang et al., 2014), different step-size adaptation mechanisms (Hansen, 2008; Ait Elhara et al., 2013; Krause et al.,

2017), modifications of the covariance update (Ros and Hansen, 2008; Suttorp et al., 2009; Beyer and Sendhoff, 2017), and specialized mechanisms for dealing with boundary constraints (Dufossé and Hansen, 2021). Each of these contributions is typically introduced and evaluated in isolation, often with its own implementation and experimental protocol (van Rijn et al., 2016).

This fragmented development has two consequences. First, it is difficult to understand how different algorithmic components interact (van Rijn et al., 2017). For instance, the impact of a given sampling strategy may depend critically on the choice of matrix adaptation scheme or restart strategy. Second, practitioners face a practical barrier: selecting a suitable CMA-ES variant for a given application requires navigating a growing collection of specialized implementations, each with its own configuration interface and assumptions (Nikolikj et al., 2025b). As a result, many powerful ideas remain underexplored in combination, and advanced variants are less accessible to non-expert users.

A natural response to this situation is to view algorithmic design itself as a compositional problem. Earlier work on Modular Evolutionary Algorithms (ModEA) (van Rijn et al., 2016) and the first version of the modular CMA-ES (de Nobel et al., 2021) followed exactly this idea: they decomposed the algorithm into a set of modules, such as sampling, selection, step-size adaptation, matrix adaptation, and restarting, with multiple interchangeable options exposed through a configurable design space. This modularization enables systematic studies of how individual components influence performance (de Nobel et al., 2021; Nikolikj et al., 2024), facilitates automated algorithm configuration and dynamic algorithm selection (Vernetten et al., 2020, 2023b; Thomaser et al., 2023a; Long et al., 2024a; Thomson et al., 2025), and lowers the barrier for implementing and testing new CMA-ES variants.

The Modular CMA-ES has already been used to develop and evaluate new algorithmic ideas (Dinu et al., 2025; de Nobel et al., 2024c,b; Bonet-Monroig et al., 2023; de Nobel et al., 2025), and it is featured in several benchmarking studies (Fonseca et al., 2011; Vermetten et al., 2023c; van Stein et al., 2025; Vermetten et al., 2024, 2023a; Nikolikj et al., 2025a; Kononova et al., 2025). Moreover, the framework has been employed in studies of algorithm behaviour (Kostovska et al., 2022a; Jankovic et al., 2022; Vermetten et al., 2022b; van Stein et al., 2024a; Vermetten et al., 2022a) and in landscape-informed tuning and configuration (Kostovska et al., 2022b, 2023; Nikolikj et al., 2022; Kostovska et al., 2024). The practical value of treating the CMA-ES as a modular algorithm is demonstrated by its use in real-world optimization tasks, such as biological modeling (de Nobel et al., 2024a), mechanical engineering (Long et al., 2024b; Thomaser et al., 2023c; Long et al., 2025; Thomaser et al., 2023b) and optics (Patel et al., 2025).

In this paper, we present the current incarnation of the Modular CMA-ES, denoted ModCMA, a substantially extended and reengineered framework building on these earlier efforts (van Rijn et al., 2016; de Nobel et al., 2021). ModCMA provides a unified implementation of a wide range of CMA-ES variants within a single, component-based architecture. The framework cleanly separates the algorithm into coherent modules and offers multiple options for each, resulting in fourteen implemented modules (Table 1) and over 14 million possible CMA-ES instantiations. The core is reimplemented in C++ using EIGEN (Guennebaud et al., 2010) for efficient linear algebra, with a Python interface for convenient experimentation.

Beyond describing the framework itself, we use ModCMA as a vehicle to study aspects of modular algorithm design and configuration. In particular, we compare different matrix adaptation mechanisms in terms of computational cost and optimization performance, and we show how automated configuration methods can exploit modularity to tailor CMA-ES variants to specific problems.

Our main contributions are as follows:

  1. We introduce and document the current version of ModCMA, a modular CMA-ES framework integrating fourteen interchangeable modules covering sampling, selection, step-size adaptation, matrix adaptation, and restarting. The framework unifies many CMA-ES variants from the literature within a single, coherent implementation.

  2. We provide a systematic empirical comparison of matrix adaptation mechanisms, quantifying their computational trade-offs and optimization performance across the BBOB benchmark suite (Hansen et al., 2020). We show that efficient alternatives such as Cholesky- and matrix-based updates can match, and in some cases surpass, the standard covariance update while offering substantial runtime reductions.

  3. We demonstrate how ModCMA enables automated algorithm configuration by conducting an illustrative tuning experiment with SMAC Lindauer et al. (2022) on individual BBOB functions and by comparing the resulting specialized CMA-ES variants to established algorithms from the COCO archives COCO Platform (n.d.).

  4. We use the tuning data as a case study to show how ModCMA supports explainable analysis of algorithm configuration results. We then apply SHAP (Lundberg and Lee, 2017) to identify how module choices contribute to the performance of tuned configurations (van Stein et al., 2024b).

  5. We make ModCMA freely available as an open-source package under an MIT license at https://github.com/IOHprofiler/ModularCMAES.

The remainder of the paper is organized as follows. Section 2 introduces the modular decomposition of CMA-ES and provides an overview of the available modules and options. Sections 3–7 describe the components of the framework in detail. Section 8 zooms in on the matrix adaptation module, presenting runtime measurements and benchmarking experiments. Section 9 reports on the tuning study and the associated module analysis. Section 10 concludes with a discussion of the implications and directions for future work.

To ensure reproducibility, we made all code and data used throughout this paper, as well as additional figures, available in our Zenodo repository Anonymized (2026).

References (93)