Probabilistic Matrix Factorization for Automated Machine Learning

Nicoló Fusi, Rishit Sheth, Melih ElibolNeurIPS 2018

Introduction

This paper treats the challenge of picking the best machine learning pipeline as a recommendation problem, similar to how streaming services suggest movies. By using Probabilistic Matrix Factorization (PMF) to "transfer knowledge" from thousands of previous experiments, the authors' method identifies high-performing models and hyperparameters for new datasets significantly faster than current state-of-the-art tools.

The Cold-Start Problem in AutoML

Building a high-performance machine learning model is fundamentally a "pipeline" problem. Practitioners must choose a preprocessing method (like PCA or scaling), select a model type (like an SVM or Random Forest), and then fine-tune dozens of hyperparameters.

Standard Bayesian Optimization (BO) is the go-to tool for this task, but it has a major flaw: it struggles with high-dimensional spaces that mix continuous numbers (like learning rates) with categorical choices (like which model algorithm to use). Furthermore, most BO tools start from scratch for every new dataset, ignoring the "common sense" gained from thousands of previous ML experiments. The authors aim to solve this "cold-start" problem by leveraging a massive history of prior runs across hundreds of different datasets.

Methodology: Collaborative Filtering meets Bayesian Optimization

The authors propose a framework that combines Collaborative Filtering with Bayesian Optimization to navigate the complex pipeline space.

  1. Discretization: Instead of searching an infinite continuous space, they define a large set of 42,000 "instantiated" pipelines (specific combinations of preprocessing and models).
  2. Probabilistic Matrix Factorization (PMF): They create a massive matrix where rows are pipelines and columns are datasets. Each entry represents the performance (e.g., accuracy) of a pipeline on a dataset.
  3. Latent Space Embedding: Using a Gaussian Process Latent Variable Model (GP-LVM), they project these 42,000 pipelines into a low-dimensional (20D) "latent space." Pipelines that perform similarly across datasets end up close together in this space.
  4. Sequential Search: When a new dataset arrives, the model evaluates a few "warm-start" pipelines. It then uses an acquisition function (Expected Improvement) to navigate the latent space and pick the next most promising pipeline to evaluate, iteratively refining its recommendation.

The study utilizes the OpenML repository, evaluating 553 datasets and 42,000 unique pipelines implemented via scikit-learn. The resulting performance matrix had roughly 21% missing entries due to computational failures—a real-world constraint that the PMF model handled gracefully.

Key Insights

  • The "Netflix Effect" for ML: The core insight is that datasets have "preferences." If Dataset A and Dataset B both respond well to a specific Random Forest, they are likely to both respond well to a similar Gradient Boosted Tree.
  • Unsupervised Structure: Even though the model wasn't explicitly told which pipelines were Random Forests or Naive Bayes, the latent space naturally clustered similar models together based purely on performance data. This recovered the underlying taxonomy of machine learning algorithms.
Latent space embeddings of different ML algorithms showing natural clustering.
  • Low Dimensionality: Despite the complexity of ML pipelines, their performance can be effectively captured in a relatively small 20-dimensional latent space. This confirms that many hyperparameters are redundant or highly correlated.
  • Robustness to Sparse Data: The model still outperformed competitors even when 90% of the prior experimental data was removed, showing that the collaborative filtering approach is incredibly efficient at extracting signal from noise.

Experimental Results

The authors compared their PMF approach against auto-sklearn (the winner of the ChaLearn AutoML competition) and several random search baselines.

Average rank of different methods over iterations, demonstrating PMF's superior performance.
  • Superior Ranking: PMF consistently achieved a better (lower) average rank across test datasets compared to auto-sklearn and random baselines.
  • Faster Convergence: PMF reached high-performance levels in significantly fewer iterations than other methods.
  • Regret Reduction: In terms of "regret" (the gap between the chosen model and the theoretical best), PMF showed a steeper decline, meaning it finds near-optimal solutions much faster than the current state-of-the-art.

Limitations and Future Work

While highly effective, the approach has notable constraints:

  • Fixed Search Space: Because the method relies on a fixed set of instantiated pipelines, it cannot discover a pipeline outside the original 42,000-set. It trades infinite search capacity for highly efficient search.
  • Metadata Integration: Surprisingly, adding dataset metadata (like the number of features or classes) didn't improve performance. Future work could involve more sophisticated "dual embeddings" to better utilize dataset-specific information.
  • Computational Cost: While the search process is fast, the initial training of the PMF model on 42,000 pipelines across 500+ datasets is a massive one-time computational investment.

Ultimately, the authors suggest using their method to quickly find the right "neighborhood" of high-performing models, and then using traditional Bayesian Optimization to perform final, granular hyperparameter tweaks.

Summary updated

BibTeX
@inproceedings{fusi2018probabilistic,
  author = {Nicoló Fusi and Rishit Sheth and Melih Elibol},
  title = {{Probabilistic Matrix Factorization for Automated Machine Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure