Impact of Training Instance Selection on Automated Algorithm Selection Models for Numerical Black-box Optimization

Konstantin Dietrich, Diederick Vermetten, Carola Doerr, Pascal KerschkearXiv 2024

TL;DR

This paper investigates how the choice of training instances impacts the generalization of automated algorithm selection (AAS) models in numerical black-box optimization. By evaluating different instance selection strategies on a massive dataset of generated functions, the authors reveal that training models solely on classic benchmark suites generalizes poorly, and that the choice between random and diversity-based training depends heavily on the target test set distribution.

What Problem Does This Paper Address?

In black-box optimization, no single algorithm excels at solving every problem. Automated Algorithm Selection (AAS) attempts to solve this by using machine learning to map a problem's characteristics—often captured via Exploratory Landscape Analysis (ELA) features—to the best-performing optimizer in a portfolio.

However, a major bottleneck is generalization. AAS models trained on standard, well-known benchmark suites (like the Black-Box Optimization Benchmarking (BBOB) suite) frequently underperform when faced with new, unseen problem distributions. This paper tackles a fundamental question: How should we select training instances from a problem space to build AAS models that generalize well to diverse test sets?

Methods

The authors built an AAS pipeline using the following components:

  1. Problem Generation: They leveraged the recently proposed Multi-Affine BBOB (MA-BBOB) function generator to create a vast, smooth transition space of optimization problems by combining standard BBOB functions.
  2. Feature Engineering: They extracted 74 ELA features using the Pflacco Python package, filtering them down to 29 uncorrelated features to avoid redundancy.
  3. Algorithm Portfolio: They selected a portfolio of 7 diverse optimization algorithms (after removing the highly dominant modCMA to ensure a healthy level of performance complementarity).
  4. Machine Learning Model: An XGBClassifier was trained to predict the best algorithm based on the 29 ELA features.

To study the impact of instance selection, they compared three training set selection strategies:

  • BBOB Components: Training only on the original, rescaled BBOB functions.
  • Random Selection: Sampling uniformly at random from the generated problem space.
  • Greedy Diversity Selection: An iterative approach that selects instances maximizing the Manhattan distance in the ELA feature space to ensure high diversity.

Datasets

The authors generated a massive dataset consisting of 11,800 MA-BBOB functions split across dimensions $d=2$ and $d=5$. They also utilized 120 rescaled instances of the original BBOB suite to serve as the baseline component functions.

Key Insights and Ideas

  • The BBOB Generalization Trap: Training an algorithm selector exclusively on standard BBOB functions fails completely when evaluating on the broader MA-BBOB space. Standard benchmarks simply do not cover enough of the feature space to teach the model how to generalize.
  • Feature Space vs. Problem Density: Greedy diversity selection succeeds in spreading training instances evenly across the ELA feature space. In contrast, random sampling naturally clusters where the problem generator's density is highest.
Figure 3: Visualization of the selected two-dimensional in- stance sets, using the same PCA projection as in Fig. 2. The left column shows five of the uniformly sampled sets of size 120 and the right column shows five of the greedily sampled sets. Colored points are BBOB functions, using the colorbar from the bottom of Fig. 2. As expected, the greedily sampled function sets are more evenly spread in feature space while the uniform randomly sampled sets are more likely to occupy the area with the highest function density.
  • No Free Lunch for Training Distributions: There is no single "best" sampling strategy. If your test set is randomly drawn from the general problem distribution, a randomly sampled training set performs best because the distributions match. However, if the test set is highly diverse and equally distributed, diversity-based training shines.

Key Results

The performance was measured by the percentage of the gap closed between a Single Best Solver (SBS) and the theoretical Virtual Best Solver (VBS).

  • Small Training Sets ($N=24, 120$): Models trained on BBOB functions failed to outperform the Single Best Solver on unseen data, often yielding negative gap closure. With 120 training instances, the randomly trained model closed 22% of the VBS-SBS gap on unseen data, outperforming the greedily selected diversity model (11%).
  • Mitigating Mismatch with Size: As the training set size increased (up to 3,600 instances), the performance gap between random and greedy selection narrowed significantly. Increasing the volume of training data effectively mitigates the negative effects of a mismatched training/testing distribution.
Figure 8: Mean percentage of VBS-SBS gap closed for the two-dimensional case. The performance is averaged over all models trained on all repetitions of subsets given by the rows and evaluated on all evaluation data set repetitions (with the exception of the training data set). Even with rather small training data set sizes, the VBS-SBS gap can be closed to a certain degree, as long as the training set distribution matches the test set distribution. It is possible to mitigate the disadvantage of non-matching training and test data set distributions by increasing the training data set size.

Limitations and Future Work

While the MA-BBOB generator allowed for a controlled, large-scale analysis, it still operates within the boundaries of an "academic" benchmark suite. Real-world optimization problems may exhibit landscape features not captured by this generator.

Additionally, evaluating algorithms to collect training data is computationally expensive. Future work will focus on more efficient instance selection techniques, such as leveraging algorithm "footprints" (selecting problems where algorithms show distinct performance differences) and exploring heterogeneous or non-overlapping training sets to maximize learning efficiency.

Summary updated

BibTeX
@misc{dietrich2024impact,
  author = {Konstantin Dietrich and Diederick Vermetten and Carola Doerr and Pascal Kerschke},
  title = {{Impact of Training Instance Selection on Automated Algorithm Selection Models for Numerical Black-box Optimization}},
  year = {2024},
  eprint = {2404.07539},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.07539},
}
Figure