Abstract
When faced with a specific optimization problem, choosing which algorithm to use is always a tough task. Not only is there a vast variety of algorithms to select from, but these algorithms often are controlled by many hyperparameters, which need to be tuned in order to achieve the best performance possible. Usually, this problem is separated into two parts: algorithm selection and algorithm configuration. With the significant advances made in Machine Learning, however, these problems can be integrated into a combined algorithm selection and hyperparameter optimization task, commonly known as the CASH problem. In this work we compare sequential and integrated algorithm selection and configuration approaches for the case of selecting and tuning the best out of 4608 variants of the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) tested on the Black Box Optimization Benchmark (BBOB) suite. We first show that the ranking of the modular CMA-ES variants depends to a large extent on the quality of the hyperparameters. This implies that even a sequential approach based on complete enumeration of the algorithm space will likely result in sub-optimal solutions. In fact, we show that the integrated approach manages to provide competitive results at a much smaller computational cost. We also compare two different mixed-integer algorithm configuration techniques, called irace and Mixed-Integer Parallel Efficient Global Optimization (MIP-EGO). While we show that the two methods differ significantly in their treatment of the exploration-exploitation balance, their overall performances are very similar.
Introduction
In black-box optimization, practitioners must navigate two interlinked hurdles: Algorithm Selection (identifying the best algorithm variant) and Algorithm Configuration (tuning its hyperparameters). Traditionally, these tasks are handled sequentially: a user selects a "standard" algorithm based on default performance and subsequently tunes it. However, this approach assumes that the relative performance of algorithms remains stable across different hyperparameter settings—an assumption this paper challenges.
Using the Modular CMA-ES framework, which allows for 4,608 unique combinations of 11 algorithmic modules, we investigate the Combined Algorithm Selection and Hyperparameter optimization (CASH) problem. We specifically focus on tuning three critical hyperparameters ($c_1, c_c, c_\mu$) across the 24 benchmark functions of the BBOB suite.
The Ranking Flip: The Pitfall of Sequential Selection
A core finding of this study is that the ranking of algorithm variants is highly sensitive to hyperparameter settings. A variant that appears mediocre with default settings may become a top performer once properly tuned. This "ranking flip" suggests that selecting an algorithm based on default performance—the hallmark of sequential methods—is fundamentally flawed.
As shown in the visualization above, the relative ranks of configurations change drastically when moving from default to optimized parameters. This instability proves that complete enumeration of the algorithm space using default parameters likely leads to sub-optimal choices.
Integrated (CASH) vs. Sequential Approaches
We compared two integrated CASH methods—irace (iterated racing) and MIP-EGO (surrogate-based optimization)—against sequential strategies. The integrated methods treat algorithmic modules as categorical hyperparameters, searching the combined space of modules and parameters simultaneously.
Key Results
- Efficiency: Integrated methods achieved results competitive with robust sequential approaches while using 6x fewer function evaluations (25,000 vs. 150,000).
- Performance: Both integrated methods significantly outperformed the "Naïve" sequential approach, which only tunes the single best-performing variant under default settings.
- Tool Comparison: While
iraceslightly outperformedMIP-EGOon 14 of 24 functions, both provided substantial improvements over default configurations.
Discussion and Conclusion
The results demonstrate that the "best" optimization algorithm for a task depends heavily on its configuration. Integrated CASH approaches provide a more efficient and effective path to high performance than traditional sequential selection.
Future work should expand the hyperparameter set to include variables like population size and explore "online" selection, where algorithm modules are dynamically adjusted during the optimization process. Additionally, improving how CASH solvers handle conditional dependencies—where certain hyperparameters only exist if specific modules are active—remains a priority for the field.
Summary updated