NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data-driven Prior Learning for Bayesian Optimisation

Sigrid Passano Hellan, Christopher G. Lucas, Nigel H. Goddard

TL;DR

This paper introduces PLeBO, a novel method for Bayesian Optimization (BO) that learns "priors" for the hyperparameters of its underlying Gaussian Process model. This allows PLeBO to effectively transfer knowledge between optimization tasks that have similar shapes of their objective functions, even if their optimal inputs differ, leading to better performance with fewer evaluations.

What Problem Does This Paper Address?

Bayesian Optimization (BO) is a powerful technique for finding the optimal settings of expensive-to-evaluate black-box functions. A common way to speed up BO is through transfer learning, where knowledge gained from optimizing similar tasks is used to inform the optimization of a new task. However, most existing transfer learning methods for BO rely on a strong assumption: that the optimal inputs for previous tasks are also near-optimal for the new task. This assumption is often violated in real-world scenarios, limiting the applicability of these methods. This paper addresses this limitation by proposing a transfer learning approach that only assumes similarity in the shape of the optimization landscapes, not necessarily the location of the optima.

Methods

The core of the paper is the Prior Learning for Bayesian Optimisation (PLeBO) method. PLeBO operates under the assumption that different optimization tasks share similar underlying function shapes, which can be captured by similar Gaussian Process (GP) hyperparameters. Instead of fixing these hyperparameters or assuming they are identical across tasks, PLeBO learns a prior distribution over these hyperparameters. This is achieved through a hierarchical model: each task has its own GP hyperparameters, which are drawn from a shared hyperprior distribution.

The method involves two main stages:

  1. Preprocessing: Using Markov Chain Monte Carlo (MCMC) methods (specifically, the NUTS sampler), PLeBO learns the posterior distribution of the shared hyperprior parameters ($\eta$) and the individual task hyperparameter distributions ($\theta_n$).
  2. Optimization: During the optimization of a new task, PLeBO uses these learned priors to inform the acquisition function. It does this by importance weighting candidate hyperparameter sets drawn from the learned prior distribution, effectively accounting for the uncertainty in the hyperparameter estimates. This allows PLeBO to better approximate the underlying function, especially when only a few function evaluations are available.

Datasets

The paper evaluates PLeBO on two types of benchmarks:

  • Synthetic Data: A set of 10 tuning optimization tasks and 100 test tasks were generated. These tasks were designed to specifically test the difference between direct transfer (where optima are shared) and prior transfer (where shapes are shared).
  • Air Pollution Data: Real-world data from satellite measurements of NO2 air pollution levels. Two benchmark datasets were used:
  • Strong Benchmark: 50 test tasks and 10 tuning tasks with similar problems.
  • Selection Benchmark: 100 test tasks and 10 tuning tasks where the maximal pollution levels in the tuning tasks were intermediate to those in the test tasks, testing robustness to shifts in the distribution.

Key Insights and Ideas

  • Shape vs. Location: The most significant insight is the decoupling of "optimal input location" from "optimization landscape shape" for effective transfer learning. PLeBO demonstrates that similarity in shape is a weaker, yet often more practical, assumption than similarity in optimal input locations.
  • Learned Priors as Knowledge: By learning a distribution over GP hyperparameters, PLeBO effectively encodes knowledge about the typical "shape" of the optimization problems encountered. This learned prior acts as a more informed starting point than generic or hand-crafted priors.
  • Robustness to Landscape Differences: The paper shows that PLeBO performs well even when the optima of the tuning and test tasks are far apart, a scenario where direct transfer methods fail.
  • Few-Shot Learning Advantage: PLeBO's ability to better approximate the underlying function with learned priors is particularly beneficial in low-data regimes (few function evaluations), a common challenge in BO.

Key Results

  • Improved Performance: PLeBO generally finds good input values in fewer iterations compared to no-transfer methods (like EI and RandomSearch) and direct transfer methods.
  • Prior Transfer Advantage: Prior transfer methods, including PLeBO, consistently outperform direct transfer methods when the optima are not shared but the shapes are similar.
  • Synthetic Benchmark Success: On the synthetic benchmark, PLeBO and a version using true hyperparameters (TruePLeBO) performed best, supporting the idea that accurate hyperparameter estimation is crucial.
  • Real-World Performance: PLeBO showed competitive performance on the air pollution benchmarks, demonstrating its applicability to real-world problems. While it didn't always outperform other prior transfer methods like "Shared" (which uses a single set of HPs), it showed a significant advantage over no-transfer and direct-transfer approaches.
  • Computational Cost: PLeBO's preprocessing step is computationally more expensive than baselines due to MCMC sampling. However, its optimization step is manageable, and the cost is amortized over many evaluations. The runtime of the optimization step is about 6.7 seconds on average, compared to 0.13 seconds for EI.

Limitations and Future Work

  • Computational Cost: The preprocessing step involving MCMC can be time-consuming, although it's a one-time cost. The optimization step's cost scales with the number of candidate hyperparameter sets ($H$), which can be adjusted.
  • Weaker Assumption, Less Direct Information: While prior transfer is more general, it doesn't directly leverage information about the location of optima, which can sometimes lead to less dramatic improvements over simpler methods like EI compared to direct transfer when optima are shared.
  • Future Work: The authors suggest exploring ways to better exploit the learned HP choices, evaluating PLeBO on a wider range of benchmarks, and investigating the impact of the number of candidate hyperparameter sets ($H$) on performance and computational cost. They also mention that the approach is modular and can be combined with different acquisition functions.

Summary updated

BibTeX
@inproceedings{hellan2023data,
  author = {Sigrid Passano Hellan and Christopher G. Lucas and Nigel H. Goddard},
  title = {{Data-driven Prior Learning for Bayesian Optimisation}},
  booktitle = {ReALML @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=D0fdIDnsWZ},
}
Figure