Pre-training helps Bayesian optimization too

Zi Wang, George E. Dahl, Kevin Swersky, Chansoo Lee, Zelda Mariet +4 more
7/7/2022
cs.LGcs.AIstat.ML

No official code found. Best implementation: google-research/hyperbo (103 stars, Apache-2.0, last commit 2026-01-09).

Abstract

Bayesian optimization (BO) has become a popular strategy for global optimization of many expensive real-world functions. Contrary to a common belief that BO is suited to optimizing black-box functions, it actually requires domain knowledge on characteristics of those functions to deploy BO successfully. Such domain knowledge often manifests in Gaussian process priors that specify initial beliefs on functions. However, even with expert knowledge, it is not an easy task to select a prior. This is especially true for hyperparameter tuning problems on complex machine learning models, where landscapes of tuning objectives are often difficult to comprehend. We seek an alternative practice for setting these functional priors. In particular, we consider the scenario where we have data from similar functions that allow us to pre-train a tighter distribution a priori. To verify our approach in realistic model training setups, we collected a large multi-task hyperparameter tuning dataset by training tens of thousands of configurations of near-state-of-the-art models on popular image and text datasets, as well as a protein sequence dataset. Our results show that on average, our method is able to locate good hyperparameters at least 3 times more efficiently than the best competing methods.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Pre-trained Gaussian processes for Bayesian optimization

1038Python, Jupyter NotebookOct 19, 20219 months agoApache-2.0
bayesian-methodsbayesian-optimizationdeep-learninghyperparameter-tuningmachine-learning

Similar Papers

Cite this paper

@article{wang2022pretraining,
  title  = {Pre-training helps Bayesian optimization too},
  author = {Zi Wang and George E. Dahl and Kevin Swersky and Chansoo Lee and Zelda Mariet and Zachary Nado and Justin Gilmer and Jasper Snoek and Zoubin Ghahramani},
  year   = {2022},
  eprint = {2207.03084},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.03084v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.03084.svg)](https://codeofpaper.com/paper/2207.03084)

Discussion