TL;DR
Instead of wasting optimization budget on expensive global sampling to characterize a black-box problem, this paper demonstrates that we can accurately predict an algorithm's performance using data from its own initial search trajectory. Testing on the popular CMA-ES algorithm, the authors show that this trajectory-based approach achieves prediction accuracies surprisingly close to traditional, costly global sampling methods, offering a path toward zero-overhead dynamic algorithm selection.
What Problem Does This Paper Address?
In black-box optimization, we often face a meta-problem: given a new, completely unknown optimization problem, which algorithm from our toolbox should we use?
A popular solution is Exploratory Landscape Analysis (ELA). ELA samples the problem space to calculate mathematical features (like ruggedness or dimensionality) that describe the "fitness landscape," allowing machine learning models to select the best algorithm. However, there is a catch: standard ELA requires a significant number of initial random samples (typically $30d$ to $50d$, where $d$ is the problem dimension) just to compute these features. If your total evaluation budget is small, this upfront cost completely eats up the performance gains of choosing a better algorithm.
The authors ask a compelling question: Can we bypass this expensive probing phase by using the search trajectory that a default algorithm is already generating?
Methods
The authors evaluate this idea using the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) on 5-dimensional problems.
- The Setup: They run CMA-ES for a total budget of 500 function evaluations. They collect data from the first 250 evaluations (the trajectory) and attempt to predict the final solution quality (target precision) at evaluation 500.
- The Features: They extract 38 classic ELA landscape features from the trajectory points using the R package
flacco. Crucially, they also extract 5 internal state variables (SV) of the CMA-ES algorithm at the 250th evaluation (e.g., step-size, evolution path lengths, and Mahalanobis mean distance) to see if the algorithm's internal state carries clues about the landscape. - The Machine Learning: They train Random Forest regressors. Following recent best practices, they train two distinct models: an unscaled model to predict raw target precision and a log-model to predict the order of magnitude of the precision. These are combined into a hybrid model using an optimized switching threshold ($\tau$).
Datasets
The approach was benchmarked using the BBOB (Black-Box Optimization Benchmarking) suite from the COCO platform. The experiments utilized the first 5 instances of all 24 noiseless BBOB functions in dimension $d=5$.
Key Insights and Ideas
- Trajectory Bias is a Manageable Obstacle: Trajectory data is highly biased because optimization algorithms actively steer toward promising regions rather than sampling uniformly. Despite this lack of uniformity, the trajectory points still contain enough global landscape information to make highly accurate performance predictions.
- Algorithm States Provide a Modest Boost: Internal algorithm states (like how much the CMA-ES step size has shrunk) act as an implicit sensor for the landscape. Combining these state variables with trajectory ELA features consistently yielded the best results.
- Feature Selection Backfires: The authors attempted to use state-of-the-art feature selection methods (like Boruta and Recursive Feature Elimination) to find a parsimonious feature set. Surprisingly, reducing the feature set slightly worsened prediction accuracy, implying that Random Forests benefit from the redundant, full feature portfolio in this domain.
Key Results
- Trajectory vs. Global Probing: When comparing the trajectory-based approach to a "perfect world" scenario where global uniform samples are given for free, the accuracy gap was remarkably small. The global approach achieved an average absolute prediction error of 4.7, while the trajectory approach achieved 6.2.
- Error Reduction via Feature Fusion: As shown in the per-function breakdown, combining trajectory ELA features with internal state variables (ELA+SV) consistently minimized absolute prediction errors across the majority of the 24 BBOB functions.
- The Hybrid Advantage: The combined model (switching between log and unscaled models based on threshold $\tau$) consistently outperformed either standalone model, achieving an overall Root Mean Squared Error (RMSE) of 10.25 for the trajectory-based ELA+SV portfolio.
Limitations and Future Work
While promising, the authors note several limitations that pave the way for future research:
- Single-Algorithm Focus: The study only predicts the performance of CMA-ES using a CMA-ES trajectory. True automated algorithm selection requires using one algorithm's trajectory to predict whether we should switch to a different algorithm entirely.
- Ignoring Time: The current feature extraction treats the first 250 points as a static cloud, ignoring the sequential, longitudinal nature of the trajectory. Utilizing Recurrent Neural Networks (RNNs) could capture this temporal data more effectively.
- Scale: The experiments were restricted to 5-dimensional problems; scaling this approach to higher dimensions remains an open question.
Summary updated