TL;DR
Trajectory-based algorithm selection eliminates the costly computational overhead of traditional landscape analysis by extracting problem features directly from an optimization algorithm's active search path. By combining this on-the-fly characterization with strategic "warm-starting," the framework can dynamically switch to a better-suited solver mid-run, significantly outperforming standalone algorithms when high performance complementarity exists.
What Problem Does This Paper Address?
In black-box optimization (BBO), users try to find optimal solutions for complex systems where the underlying mathematical formula is unknown. Because different algorithms excel at different types of problem landscapes (e.g., smooth vs. rugged), researchers use Per-Instance Algorithm Selection (PIAS) to pick the best tool for the job.
Traditionally, this relies on Exploratory Landscape Analysis (ELA)—a preprocessing step where the problem is sampled and evaluated to characterize its "landscape" features before any actual optimization begins. However, in real-world applications like crash tests or clinical trials, evaluating a single point can be incredibly expensive. Spending a large portion of your computational budget just to choose an algorithm is a luxury many cannot afford.
This paper addresses the "feature extraction tax" by utilizing a trajectory-based approach: gathering landscape data from the points an algorithm is already evaluating during its initial search phase, and using that data to decide whether to switch to a different, more promising algorithm via a "warm-start."
Methods
The authors propose a two-stage dynamic optimization pipeline:
- The Base Phase ($A1$): The optimization starts with a modular Covariance Matrix Adaptation Evolution Strategy (CMA-ES) for a fixed budget of 154 function evaluations (in a 5-dimensional space).
- Feature Extraction & Prediction: The exact search points traversed by CMA-ES are fed into the
flaccoR package to calculate trajectory-based ELA features. A Random Forest regression model uses these features to predict the performance of five potential secondary algorithms ($A2$) for the remaining budget. - The Switch & Warm-Starting ($A2$): The pipeline switches to the algorithm predicted to perform best. Crucially, rather than starting from scratch, the new algorithm is warm-started using information from the first phase. For population-based algorithms (DE, PSO, CMA-ES), the new population centers around the best-so-far solution. For the quasi-Newton method (BFGS), the CMA-ES covariance matrix is directly converted into an estimate of the inverse Hessian matrix.
The portfolio consists of five diverse algorithms: BFGS, CMA-ES, Differential Evolution (DE), Multi-Level Single Linkage (MLSL), and Particle Swarm Optimization (PSO).
Datasets
The approach was evaluated using the BBOB (Black-Box Optimization Benchmarking) noiseless testbed from the COCO environment.
- Scope: 24 benchmark functions.
- Instances: The first 5 instances of each function in 5 dimensions.
- Volume: 10 independent runs per instance across all algorithm configurations, culminating in a dataset of 6,000 total optimization runs.
Key Insights and Ideas
- Log-Transforming Targets is Essential: Optimization performance values (target precisions) rapidly span multiple orders of magnitude as a solver approaches an optimum. The authors found that training Random Forest models on raw precision values yielded poor predictive power ($R^2$). Training on log-transformed precision values dramatically stabilized the models, pushing $R^2$ scores from near-zero up to the 0.6–0.9 range.
- The "Best" Algorithm Depends on the Remaining Budget: The optimal algorithm to switch to changes depending on how much budget is left. For instance, BFGS dominates short remaining budgets because its sophisticated warm-start (using the inverse Hessian approximation) gives it an immediate edge. However, on complex functions, population-based methods like CMA-ES eventually catch up and overtake it over longer horizons.
Key Results
- Full Portfolio Performance: For small remaining budgets (e.g., 100 evaluations), BFGS heavily dominated the landscape. The algorithm selector correctly identified this, choosing BFGS in 972 out of 1,200 runs, performing nearly identically to a standalone BFGS strategy.
- Mitigating the Single Best Solver: When BFGS was excluded from the portfolio to test a more competitive mix (where CMA-ES was the dominant single best solver), the trajectory-based algorithm selector successfully beat every individual standalone algorithm. For a remaining budget of 900 evaluations, the selector achieved a mean loss of 0.21, compared to 0.45 for standalone CMA-ES.
Limitations and Future Work
While promising, the authors note several limitations ripe for future research:
- Basic Warm-Starting: The current warm-starting techniques are straightforward. For population-based methods, transferring only the single best point discards valuable distributional data accumulated by the initial CMA-ES run. Developing a universal, information-rich warm-starting mechanism is a key next step.
- Fixed Switching Point: The switch from $A1$ to $A2$ always occurs after a rigid number of evaluations (154). An ideal system would feature an adaptive switching policy that decides to switch only when it senses the base algorithm has stalled or hit an unfavorable landscape type.
- Sensitivity to Outliers: Evaluating performance on a per-run basis makes the model sensitive to stochastic outliers. A more robust framework is required to better handle the inherent randomness of BBO algorithms.
Summary updated