Self-Correcting Bayesian Optimization through Bayesian Active Learning

Carl Hvarfner, Erik Orm Hellsten, Frank Hutter, Luigi Nardi

Introduction

Bayesian Optimization (BO) has become the standard for optimizing expensive black-box functions, relying heavily on Gaussian Processes (GPs) to provide a probabilistic surrogate of the objective. However, the efficacy of a GP is fundamentally tied to its hyperparameters—such as lengthscales and noise levels—which dictate the model's behavior. Traditionally, these hyperparameters are either fixed via Maximum Likelihood Estimation (MLE) or marginalized out in a Fully Bayesian treatment.

This paper introduces SCoreBO (Self-Correcting Bayesian Optimization), a novel framework that challenges the "set-and-forget" approach to hyperparameters. By treating hyperparameter estimation as an active learning task integrated directly into the optimization loop, SCoreBO "self-corrects" its understanding of the objective function, leading to significantly faster convergence, especially in complex and high-dimensional search spaces.

The Challenge: Hyperparameter Uncertainty

In standard BO, acquisition functions (like Expected Improvement) are designed to find the global optimum based on the current surrogate model. They do not inherently prioritize reducing uncertainty about the model's own parameters. If the initial hyperparameter estimates are poor—which is common in the early stages of optimization with limited data—the acquisition function may focus on sub-optimal regions, leading to "stuck" optimization loops.

While Fully Bayesian BO attempts to account for this by averaging over a posterior distribution of hyperparameters, the authors argue that this is insufficient. Even a fully Bayesian approach can be crippled by a bad prior if the acquisition logic does not explicitly seek to resolve disagreements between potential model configurations.

Methodology: SAL and SCoreBO

The authors propose a two-tiered solution to integrate active learning into the optimization process:

1. Statistical distance-based Active Learning (SAL)

SAL is a new acquisition function designed for pure active learning. It identifies points for sampling by measuring the "disagreement" between different hyperparameter settings. This disagreement is quantified using statistical distances, such as Hellinger or Wasserstein distances. By sampling where different hyperparameter sets predict the most divergent outcomes, SAL effectively "breaks the tie" and refines the model's calibration.

2. Self-Correcting Bayesian Optimization (SCoreBO)

SCoreBO extends the SAL principle to the optimization setting. Drawing inspiration from information-theoretic methods like Joint Entropy Search, SCoreBO identifies points that best learn the model parameters specifically relevant to finding the global maximum. It asks: "Where should I sample to best learn the model parameters that matter for finding the optimum?"

To maintain computational feasibility, SCoreBO utilizes a fully Bayesian treatment via the No-U-Turn Sampler (NUTS) and approximates statistical distances through moment matching. This allows the method to scale to complex models without prohibitive overhead.

Experimental Results and Key Insights

The researchers evaluated SCoreBO across a diverse range of benchmarks, from classic synthetic functions to high-dimensional real-world tasks.

  • High-Dimensional Efficiency: In a 25-dimensional Ackley task, SCoreBO demonstrated a unique ability to identify the four truly "active" dimensions much faster than vanilla BO. This "self-correction" allows it to ignore noise dimensions that typically confuse standard algorithms.
  • Synergy with Complex Models: SCoreBO excels when paired with sophisticated surrogate models like SAASBO (sparse priors) or HEBO (input/output warpings). These models have numerous hyperparameters that are difficult to tune manually; SCoreBO’s explicit focus on learning these parameters allows these complex models to reach their full potential.
  • Real-World Performance: On a 180-dimensional weighted Lasso model and a 388-parameter SVM hyperparameter tuning task, SCoreBO significantly outperformed traditional BO methods. It also showed state-of-the-art performance on deep learning HPO tasks from the PD1 suite, including Large Language Models.

Discussion and Limitations

While SCoreBO offers a powerful correction to standard BO, it is not without trade-offs. The reliance on MCMC (NUTS) for a fully Bayesian treatment introduces significant computational overhead compared to simple MAP estimation. This makes SCoreBO most appropriate for scenarios where the objective function is expensive to evaluate, justifying the extra time spent on the acquisition step.

Additionally, the authors noted a potential for "model mismatch." If the chosen kernel cannot represent the true underlying function (e.g., using a stationary kernel for a highly non-stationary function), SCoreBO may engage in perpetual over-exploration as it tries to resolve an unresolvable disagreement in the posterior.

Conclusion

SCoreBO represents a significant shift in how we view the relationship between surrogate models and acquisition functions. By treating the model's own hyperparameters as active targets for learning, SCoreBO provides a robust, self-correcting mechanism that excels in the high-dimensional and complex landscapes where traditional Bayesian Optimization often falters.

Summary updated

BibTeX
@inproceedings{hvarfner2023self,
  author = {Carl Hvarfner and Erik Orm Hellsten and Frank Hutter and Luigi Nardi},
  title = {{Self-Correcting Bayesian Optimization through Bayesian Active Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=dX9MjUtP1A},
}
Figure