[Paper Review] Pre-trained Gaussian Processes for Bayesian Optimization
This paper introduces HyperBO, a Bayesian optimization framework that pre-trains Gaussian process priors on data from related tasks using a KL divergence-based loss, enabling more efficient hyperparameter tuning. The method achieves significantly lower regret and up to 3x faster convergence than state-of-the-art baselines on complex deep learning and multi-task benchmarks.
Bayesian optimization (BO) has become a popular strategy for global optimization of expensive real-world functions. Contrary to a common expectation that BO is suited to optimizing black-box functions, it actually requires domain knowledge about those functions to deploy BO successfully. Such domain knowledge often manifests in Gaussian process (GP) priors that specify initial beliefs on functions. However, even with expert knowledge, it is non-trivial to quantitatively define 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. We detail what pre-training entails for GPs using a KL divergence based loss function, and propose a new pre-training based BO framework named HyperBO. Theoretically, we show bounded posterior predictions and near-zero regrets for HyperBO without assuming the "ground truth" GP prior is known. To verify our approach in realistic setups, we collect a large multi-task hyperparameter tuning dataset by training tens of thousands of configurations of near-state-of-the-art deep learning models on popular image and text datasets, as well as a protein sequence dataset. Our results show that on average, HyperBO is able to locate good hyperparameters at least 3 times more efficiently than the best competing methods on both our new tuning dataset and existing multi-task BO benchmarks.
Motivation & Objective
- To address the challenge of specifying informative priors in Bayesian optimization when domain expertise is limited or unavailable.
- To automate prior specification by learning functional priors from data on related tasks, reducing reliance on expert intuition.
- To develop a scalable, data-driven prior learning framework for Gaussian processes that improves posterior generalization in Bayesian optimization.
- To demonstrate that pre-trained GPs lead to better optimization performance, especially in complex, high-dimensional hyperparameter tuning scenarios.
- To provide theoretical guarantees on regret and posterior consistency without assuming knowledge of the true GP prior.
Proposed method
- Pre-train a Gaussian process prior using a KL divergence-based loss function to align the GP's functional distribution with observed functions from related tasks.
- Use a large-scale multi-task hyperparameter tuning dataset—comprising tens of thousands of deep learning model configurations—to train the GP prior.
- Apply the pre-trained GP as a prior in Bayesian optimization, replacing hand-specified kernels or priors.
- Integrate the pre-trained GP into a GP-UCB acquisition function for active learning and uncertainty-aware exploration.
- Theoretical analysis shows bounded posterior predictions and near-zero regret under mild assumptions, even with model misspecification.
- Leverage information gain and mutual information bounds to control regret and ensure convergence.
Experimental results
Research questions
- RQ1Can pre-training Gaussian process priors on related tasks improve Bayesian optimization performance in hyperparameter tuning?
- RQ2How does the performance of HyperBO compare to standard BO methods and random search in complex deep learning settings?
- RQ3What theoretical guarantees can be provided for regret and posterior accuracy when using pre-trained GPs?
- RQ4To what extent does prior learning reduce the need for expert-specified kernel hyperparameters?
- RQ5Can pre-trained GPs generalize across diverse tasks such as image classification, NLP, and protein sequence modeling?
Key findings
- HyperBO achieves at least 3 times more efficient hyperparameter search than the best competing methods on both the new multi-task tuning dataset and classic benchmarks.
- The pre-trained GP prior leads to significantly better posterior mean and uncertainty estimates compared to non-pretrained GPs, especially in early optimization stages.
- Theoretical analysis shows that HyperBO achieves near-zero regret and bounded posterior predictions even when the true GP prior is unknown.
- The method reduces regret by leveraging shared functional structure across related tasks, improving sample efficiency.
- Empirical results show that pre-training on diverse deep learning configurations leads to priors that generalize well across image, text, and biological sequence tasks.
- The KL-based pre-training objective effectively captures functional correlations and smoothness patterns from training data, improving optimization fidelity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.