Metalearning Approaches for Algorithm Selection I (Exploiting Rankings)

Pavel Brazdil, Jan N. van Rijn, Carlos Soares, Joaquin VanschorenCognitive 2022 · OpenAlex

Abstract

This chapter explores a metalearning approach to the algorithm selection problem by leveraging historical performance metadata to generate algorithm rankings. The methodology operates in two phases: an offline phase where rankings are aggregated from prior tasks, and an online phase where these rankings guide the testing of algorithms on a new target dataset. A key innovation is the integration of accuracy and runtime into a single evaluation measure (A3R'), which optimizes anytime performance. While primarily demonstrated in classification, this discrete ranking approach is applicable to hyperparameter optimization (HPO) and the combined algorithm selection and hyperparameter optimization (CASH) problem.

Introduction: The Algorithm Selection Challenge

In machine learning, selecting the optimal algorithm or workflow for a specific dataset is a non-trivial task. The "Algorithm Selection Problem" typically involves a trade-off between the time spent searching for a model and the final performance achieved. Brute-force evaluation of all possible candidates is often computationally prohibitive.

Traditional metalearning attempts to predict absolute performance metrics for algorithms on new tasks. However, this paper argues that predicting the relative order of algorithms is a more robust and efficient strategy. By focusing on rankings, researchers can prioritize testing the most promising models first, significantly reducing the time to find a high-performing solution.

Methodology: A Two-Phase Ranking Framework

The proposed approach utilizes a structured framework to transform historical performance data into actionable recommendations.

The metalearning framework for generating algorithm rankings from performance metadata.

1. The Offline Phase (Metadata Collection)

In the offline phase, a portfolio of algorithms is evaluated across a diverse set of historical datasets (e.g., from the UCI Repository or OpenML). This process generates a performance matrix that records metrics like accuracy and runtime. These absolute values are then converted into rankings for each dataset. These individual rankings are subsequently aggregated into a single "global" ranking using methods such as Average Ranking (AR) or Median Ranking (MR).

2. The Online Phase (Recommendation)

When a new target dataset is encountered, the system provides the pre-computed global ranking as a recommendation. The user follows a "Top-n" strategy, testing algorithms in the suggested order. This allows for high-quality results to be found early in the search process, which is critical for "anytime" performance where the search might be interrupted at any moment.

Ranking Strategies and the A3R' Measure

The nature of the rankings can vary depending on the available data and the desired granularity. Rankings may be linear and complete, where every algorithm is ordered, or partial/incomplete, where only a subset of top performers is identified.

Visual representation of different ranking structures and their corresponding set/rank definitions.

Balancing Performance and Efficiency: The A3R' Measure

A critical component of this methodology is the A3R' measure, which moves beyond pure accuracy by incorporating runtime. Testing a highly accurate but extremely slow model may be less beneficial than testing a slightly less accurate model that runs significantly faster. The A3R' measure combines performance ($P$) and runtime ($T$) using a scaling factor ($Q$):

$$A3R'_{a_j}^{d_i} = \frac{P_{a_j}^{d_i}}{(T_{a_j}^{d_i})^Q}$$

By adjusting $Q$, the system can be tuned to prioritize speed. In practice, even a small $Q$ value (e.g., 1/64) effectively steers the ranking toward "fast and good" algorithms, drastically improving the efficiency of the online phase.

Key Insights and Results

The research yields several important findings regarding the efficacy of ranking-based metalearning:

  • Efficiency Gains: The most significant result is a 100x speedup in finding near-optimal models. In experiments, rankings using the A3R' measure reached a 1% accuracy loss threshold in under 100 seconds, compared to over 10,000 seconds for accuracy-only rankings.
  • Robustness: The Average Ranking method (AR*) using the combined measure proved remarkably resilient to missing data, maintaining high performance even when 50% of the historical metadata was unavailable.
  • Global vs. Local: While global rankings are effective, they risk overlooking "specialist" algorithms that excel only on specific types of data.

Conclusion and Future Work

Ranking-based metalearning provides a simple yet powerful tool for algorithm selection. However, several challenges remain. The current approach requires continuous hyperparameters to be discretized, which can be sub-optimal. Furthermore, as machine learning workflows grow in complexity (incorporating preprocessing and feature selection), the search space expands, necessitating more advanced aggregation techniques like Data Envelopment Analysis (DEA). Future research will focus on "local" rankings that use dataset metafeatures to provide more personalized recommendations.

Summary updated

Abstract

Summary This chapter discusses an approach to the problem of algorithm selection, which exploits the performance metadata of algorithms (workflows) on prior tasks to generate recommendations for a given target dataset. The recommendations are in the form of rankings of candidate algorithms. The methodology involves two phases. In the first one, rankings of algorithms/workflows are elaborated on the basis of historical performance data on different datasets. These are subsequently aggregated into a single ranking (e.g. average ranking). In the second phase, the average ranking is used to schedule tests on the target dataset with the objective of identifying the best performing algorithm. This approach requires that an appropriate evaluation measure, such as accuracy , is set beforehand. In this chapter we also describe a method that builds this ranking based on a combination of accuracy and runtime, yielding good anytime performance. While this approach is rather simple, it can still provide good recommendations to the user. Although the examples in this chapter are from the classification domain, this approach can be applied to other tasks besides algorithm selection, namely hyperparameter optimization (HPO), as well as the combined algorithm selection and hyperparameter optimization (CASH) problem. As this approach works with discrete data, continuous hyperparameters need to be discretized first.
BibTeX
@inproceedings{brazdil2022metalearning,
  author = {Pavel Brazdil and Jan N. van Rijn and Carlos Soares and Joaquin Vanschoren},
  title = {{Metalearning Approaches for Algorithm Selection I (Exploiting Rankings)}},
  booktitle = {Cognitive},
  year = {2022},
  doi = {10.1007/978-3-030-67024-5\_2},
}
Figure