Practical Transfer Learning for Bayesian Optimization

Matthias Feurer, Benjamin Letham, Frank Hutter, Eytan BakshyOpenReview 2021

TL;DR

This paper introduces a novel, hyperparameter-free ensemble method for Bayesian Optimization (BO) called RGPE, which leverages knowledge from previous optimization runs to accelerate new ones. RGPE significantly outperforms existing transfer learning methods for hyperparameter optimization, achieving state-of-the-art results across a large suite of benchmarks.

What Problem Does This Paper Address?

Hyperparameter optimization (HPO) is a crucial but often time-consuming step in machine learning. Bayesian Optimization (BO) is a popular technique for HPO due to its data efficiency. However, when the same machine learning model is repeatedly optimized across different datasets, valuable information from previous optimization runs is often discarded. This paper addresses the challenge of effectively transferring knowledge from prior BO runs to accelerate optimization on new, related tasks. The authors aim to develop a method that is scalable, hyperparameter-free, doesn't require task-specific descriptors, and guarantees no significant performance degradation compared to standard BO.

Methods

The core of the paper is the Ranking-Weighted Gaussian Process Ensemble (RGPE). RGPE combines multiple Gaussian Processes (GPs) – one for the current "target" task and several "base" models trained on previous tasks – into a single ensemble model. The key innovations are:

  • Agnostic Bayesian Ensemble Learning (ABE) for Weighting: Instead of relying on hand-tuned weights or meta-features, RGPE uses ABE to probabilistically determine the weight of each base model and the target model. This weighting is based on how well each model can rank the observed data points on the target task, effectively learning which models are most useful at each stage of optimization.
  • Weight Dilution Prevention: To prevent a large number of potentially irrelevant base models from diluting the ensemble's effectiveness, a mechanism is introduced to probabilistically "drop" base models that are unlikely to outperform the target model. This ensures that the ensemble focuses on the most promising models and also provides a theoretical guarantee of not performing substantially worse than vanilla BO.
  • Transfer Acquisition Function (TAF) Integration: The authors show how their RGPE ensemble can be combined with a transfer acquisition function (TAF) to further improve performance, leading to their recommended method, RGPE(TAF).

Datasets

The authors evaluated their methods on six benchmark problems:

  • SVM (5,4D) and XGBoost (10D): Surrogate benchmarks derived from OpenML.org data, representing evaluations on 38 binary datasets.
  • GLMNET (2D): Another surrogate benchmark constructed from generalized linear model data.
  • LCBench (NNt,7D): A neural network benchmark from Auto-Pytorch, trained on 35 OpenML AutoML tasks.
  • AdaBoost (g,2D) and SVM (g,6D): Grid benchmarks on 50 datasets, inspired by previous work.

Key Insights and Ideas

  • ABE is a powerful, hyperparameter-free approach to model weighting: By framing model selection as a ranking problem, ABE avoids the need for manual tuning of weights or meta-features, making the transfer learning process more robust and generalizable.
  • Weight dilution prevention is crucial for scalability and theoretical guarantees: Dropping underperforming base models not only makes the ensemble more efficient but also provides a theoretical bound on performance, ensuring that transfer learning doesn't significantly harm optimization.
  • Ignoring base model variance can be beneficial: Surprisingly, the authors found that explicitly using the predictive variance of base models in the ensemble sometimes led to worse performance, possibly because it could mislead the optimization process in regions where the target model was already certain.
  • RGPE(TAF) is the new state-of-the-art: The combination of the RGPE ensemble with the transfer acquisition function consistently outperformed existing methods across a wide range of benchmarks.

Key Results

  • State-of-the-art performance: RGPE(TAF) consistently outperformed standard BO baselines (GP, random search) and prior transfer HPO methods (TST-R, WAC, ABLR, GCP+Prior) across all six benchmarks.
  • Significant speedups: The proposed methods substantially reduced optimization time compared to standard BO.
  • Scalability: RGPE was shown to be significantly faster than multi-task Gaussian processes, making it suitable for problems with many tasks.
  • Robustness: The methods demonstrated robust performance across different benchmarks and did not require hyperparameter tuning for the transfer learning components.

Limitations and Future Work

  • Model limitations: The proposed methods are limited to probabilistic models (like GPs) and cannot be directly applied to models like Tree Parzen Estimators.
  • Search space complexity: The current evaluations are limited to spaces well-modeled by Gaussian processes, and extending to more complex spaces (e.g., those handled by Auto-sklearn) is a promising direction.
  • BO library dependency: The performance of the transfer learning methods is dependent on the underlying BO library's ability to perform well on its own.
  • Future work: The authors suggest exploring other acquisition functions to handle noise more explicitly and investigating multi-fidelity settings. They also propose exploring random forests or neural networks as base models for more complex search spaces.

Summary updated

BibTeX
@misc{feurer2021practical,
  author = {Matthias Feurer and Benjamin Letham and Frank Hutter and Eytan Bakshy},
  title = {{Practical Transfer Learning for Bayesian Optimization}},
  year = {2021},
  url = {https://openreview.net/forum?id=ZAxzXPSSLAw},
  howpublished = {OpenReview},
}
Figure