Algorithm Selection as Recommendation: From Collaborative Filtering to Dyad Ranking

Alexander Tornede, Marcel Wever2018

Introduction

Algorithm Selection (AS) is a critical task in automated machine learning (AutoML) and optimization. Given the "No Free Lunch" theorem, which posits that no single algorithm performs optimally across all possible problem instances, the goal of AS is to identify the most suitable tool for a specific context. Traditionally, this has been treated as a regression problem—predicting the exact performance metric (e.g., runtime or accuracy) for every candidate algorithm. However, this approach is often unnecessarily complex and data-intensive. This paper proposes a paradigm shift, reframing AS as a dyad ranking problem, where the objective is to learn relative preferences rather than absolute scores.

Problem Formulation and the Dyad Approach

In the dyad ranking framework, we consider pairs $(x, y)$, where $x$ represents the features of a problem instance and $y$ represents the features of a candidate algorithm. This approach bridges the gap between traditional AS and collaborative filtering. While collaborative filtering typically treats items (algorithms) as anonymous IDs, dyad ranking leverages explicit features for both the problem and the algorithm.

A sparse matrix representing the performance of various algorithms across different problem instances, illustrating the data scarcity challenge in AS.

As shown in the figure above, the available performance data is often extremely sparse. Obtaining a full matrix of results is computationally prohibitive, especially when dealing with thousands of potential algorithm configurations. By focusing on rankings, the model can learn from incomplete data more effectively than regression-based methods.

Methodology: PLNet and Feature Representation

The authors utilize PLNet, a neural network architecture designed to learn a Plackett-Luce (PL) model. Instead of outputting a scalar performance value, the network learns a probability distribution over possible rankings of algorithms for a given instance.

Feature Engineering

To characterize problem instances and algorithms effectively, the following representations are used:

  • Problem Features (Landmarkers): The performance of simple, computationally inexpensive "landmarker" algorithms (e.g., Naive Bayes or a Decision Stump) is used to capture the inherent difficulty and characteristics of a dataset.
  • Algorithm Features: Algorithms are represented by their hyperparameter configurations. A unified feature vector is created to represent the union of all possible parameters across the entire algorithm space, allowing the model to learn the impact of specific architectural choices.

Experimental Results

The proposed method was evaluated on an AutoML task involving 29 classification datasets from OpenML and a massive library of 5,927 machine learning pipelines. The model was trained using varying amounts of pairwise comparisons.

Data Efficiency and Rank Correlation

A key finding of this research is the extreme data efficiency of the dyad ranking approach. The model achieves superior performance even when trained on a small fraction of the total possible comparisons.

Kendall’s tau correlation for the dyad ranking model compared to various baselines. The model surpasses traditional nearest-neighbor and average-performance methods with minimal training data.

As illustrated in the plot above, the dyad ranking approach (represented by the dots) consistently improves as more pairwise comparisons are added, quickly surpassing baselines such as 1-Nearest Neighbor (1-nn) and average performance. With as few as 500 comparisons per training dataset, the model provides highly accurate rankings, demonstrating that precise numerical performance data is often unnecessary for effective selection.

Top-k Recommendation Performance

In practical scenarios, users often require a small "portfolio" of high-quality recommendations. In tests finding the best pipeline, Dyad Ranking (DR) achieved a performance gap of only 0.032 from the theoretical "Oracle" best when considering the top 3 recommendations. This significantly outperformed the 1-NN baseline, which had a gap of 0.045.

Conclusion and Future Work

By treating algorithm selection as a recommendation problem through dyad ranking, this work demonstrates that relative performance data is sufficient—and often superior—to exact numerical scores for building effective AS systems. This approach is more practical for real-world "race" scenarios where only the winners are observed. Future research will focus on more sophisticated algorithm feature representations and comparisons against state-of-the-art collaborative filtering techniques in domains beyond AutoML, such as SAT solving and combinatorial optimization.

Summary updated

BibTeX
@misc{tornede2018algorithm,
  author = {Alexander Tornede and Marcel Wever},
  title = {{Algorithm Selection as Recommendation: From Collaborative Filtering to Dyad Ranking}},
  year = {2018},
  doi = {10.58895/ksp/1000098736-8},
}
Figure