Speeding up algorithm selection using average ranking and active testing by introducing runtime

Salisu Mamman Abdulrahman, Pavel Brazdil, Jan N. van Rijn, Joaquin VanschorenMachine Learning 2018 · DOI

Abstract

Algorithm selection is a critical task in machine learning, traditionally focused on maximizing predictive accuracy. However, this approach often ignores the significant computational costs associated with high-performing models. This paper introduces A3R, a multi-objective measure that balances accuracy and runtime. By integrating A3R into Average Ranking and Active Testing strategies, the authors demonstrate a significant acceleration in identifying top-performing algorithms, even with incomplete meta-data.

Introduction

In the current landscape of machine learning, practitioners are faced with an overwhelming number of algorithms and hyperparameter configurations. Selecting the optimal model for a new dataset—a process known as meta-learning—is often treated as a search for the highest accuracy. However, this "accuracy-only" paradigm frequently leads to recommending computationally expensive models early in the search, wasting time that could be used to evaluate multiple faster, slightly less accurate alternatives.

The A3R Measure: Balancing Performance and Time

To address this inefficiency, the authors propose the A3R measure (a refined version of the Adjusted Ratio of Ratios). A3R treats algorithm selection as a multi-objective optimization problem, penalizing slow algorithms unless they offer substantial accuracy improvements.

The A3R formula compares a candidate algorithm ($a_j$) to a reference algorithm ($a_{ref}$): $$A3R = \frac{SuccessRate(a_j) / SuccessRate(a_{ref})}{(Runtime(a_j) / Runtime(a_{ref}))^P}$$

The parameter $P$ acts as a "knob" to control the trade-off: a higher $P$ prioritizes speed, while $P=0$ reduces the measure to pure accuracy.

Behavior of the ARR (A3R) measure across different runtime ratios and accuracy differences.

Selection Strategies: AR and AT

The authors integrated A3R into two primary selection frameworks:

  1. Average Ranking (AR): A baseline approach that ranks algorithms based on their historical performance across various datasets.
  2. Active Testing (AT): An iterative strategy that selects the next algorithm to test based on its likelihood of outperforming the current best, updating its knowledge in real-time.

Evaluation via Loss-Time Curves

Traditional evaluation metrics often fail to capture the efficiency of a search process. The authors advocate for the use of Loss-Time curves, which plot accuracy loss against the logarithm of time. This visualization emphasizes how quickly a system converges to a "good enough" solution.

An example of a Loss-Time curve, showing how accuracy loss decreases over time.

The primary metric derived from these curves is Mean Interval Loss (MIL)—the area under the loss-time curve. A lower MIL indicates a more efficient selection process.

Key Results and Insights

The experimental results, conducted on a meta-dataset of 53 algorithms and 39 OpenML datasets, were conclusive:

  • Efficiency Gains: The upgraded Average Ranking (AR) achieved an MIL of 0.531, vastly outperforming the accuracy-only version (AR0) which had an MIL of 22.11. Similarly, the upgraded Active Testing (AT) (MIL 0.736) significantly beat its accuracy-only counterpart (AT0) (MIL 3.108**).
  • The Accuracy Paradox: The study revealed that accuracy-only systems can actually perform worse as they gain more data, as they tend to converge on the most accurate but slowest models, exhausting the time budget prematurely.
  • Robustness: The proposed heuristic (AR*-MTA-H) proved effective even when the historical meta-dataset was up to 50% incomplete.

Conclusion

By demonstrating that "fast and good" is often superior to "slow and perfect" in the initial stages of model selection, this research provides a practical framework for developing more responsive AutoML systems. Future work will focus on automatically tuning the $P$ parameter and extending these methods to regression and unsupervised learning tasks.

Summary updated

BibTeX
@article{abdulrahman2018speeding,
  author = {Salisu Mamman Abdulrahman and Pavel Brazdil and Jan N. van Rijn and Joaquin Vanschoren},
  title = {{Speeding up algorithm selection using average ranking and active testing by introducing runtime}},
  journal = {Machine Learning},
  year = {2018},
  doi = {10.1007/s10994-017-5687-8},
}
Figure