Algorithm Selection via Meta-learning and Sample-based Active Testing

Salisu Mamman Abdulrahman, Pavel Brazdil, Jan N. van Rijn, Joaquin Vanschoren

Abstract

Selecting the optimal machine learning algorithm for a new dataset is a computationally intensive task. Traditional methods like Active Testing often require exhaustive evaluations on full datasets, leading to significant time overhead. This paper proposes Active Sample-based Testing (ASbT), a meta-learning framework that utilizes historical performance data and rapid evaluations on small data subsets to identify top-performing algorithms efficiently. Furthermore, the authors introduce the A3R metric, which integrates accuracy and runtime to prioritize "fast and good" models. Experimental results on OpenML datasets demonstrate that ASbT achieves near-optimal performance much faster than standard active testing baselines.

Introduction

The "Algorithm Selection Problem" has been a central challenge in machine learning for decades. Given the vast array of available algorithms and hyperparameter configurations, testing every candidate on a large dataset is often infeasible. Current strategies typically rely on Average Ranking (Top-N), which tries algorithms based on historical success, or Active Testing, which iteratively selects candidates based on previous results. However, standard Active Testing requires full cross-validation (CV) at each step, making it prohibitively slow for large-scale datasets.

Methodology

Active Sample-based Testing (ASbT)

To address the latency of full evaluations, the authors propose ASbT. The core innovation is the use of "proxy" tests on small samples of the target dataset. If an algorithm performs well on a small subset, it is prioritized for a full evaluation. This approach leverages the observation that relative algorithm performance often stabilizes even with limited data.

Algorithm 1: The ASbT workflow for iterative algorithm selection and evaluation.

The workflow involves identifying a set of candidate algorithms and datasets, then performing a leave-one-out cycle where a new dataset is represented by its small-sample performance to generate a loss curve.

The A3R Metric

Traditional selection methods focus solely on accuracy. However, in practical applications, the trade-off between performance and computational cost is critical. The authors utilize the Approximate Accuracy and Accelerated Rise (A3R) metric, which balances the success rate (SR) against runtime (T). To prevent extreme speed differences from overshadowing accuracy, the time ratio is dampened using an $N^{th}$ root.

Table showing the dampening effect of the Nth root on a time ratio of 1,000 as N increases.

As shown in the table above, increasing the value of $N$ (where $N=2^C$) significantly reduces the impact of large runtime disparities, allowing accuracy to remain a primary factor in the selection process. This ensures that a slightly more accurate but significantly slower algorithm does not automatically rank higher than a fast, high-performing alternative.

Experimental Setup

The proposed methods were evaluated using a meta-dataset derived from OpenML:

  • Algorithms: 53 parameterized learning algorithms from the Weka workbench.
  • Datasets: 39 diverse datasets.
  • Evaluation: A leave-one-out cross-validation strategy was employed, where the system used knowledge from 38 datasets to recommend algorithms for the 39th.

Results and Discussion

The study yielded several key insights:

  1. Efficiency of Small Samples: Testing on as few as 181 data points provided a sufficient signal to rank algorithms effectively. This drastically reduces the initial search time.
  2. Superiority of A3R: Incorporating runtime into the ranking process via the A3R metric consistently outperformed accuracy-only rankings. It naturally prioritizes efficient algorithms that deliver high performance.
  3. Performance Gains: ASbT variants reached lower loss levels significantly faster than "Full CV" active testing methods when measured against actual elapsed time on a log scale.

Conclusion

Active Sample-based Testing offers a robust solution to the algorithm selection problem by combining meta-learning with efficient small-sample proxies. While the current study focused on 53 algorithms with default parameters, future work will aim to scale ASbT to handle the vast hyperparameter search spaces typical of modern machine learning. Additionally, exploring more complex and high-dimensional datasets will further validate the generalizability of the A3R-driven selection process.

Summary updated

BibTeX
@inproceedings{abdulrahman2015algorithm,
  author = {Salisu Mamman Abdulrahman and Pavel Brazdil and Jan N. van Rijn and Joaquin Vanschoren},
  title = {{Algorithm Selection via Meta-learning and Sample-based Active Testing}},
  booktitle = {MetaSel@PKDD/ECML},
  year = {2015},
}
Figure