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.
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.
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