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

Bayesian Optimization via Continual Variational Last Layer Training

Paul Brunzema, Mikkel Jordahn, John Willes, Sebastian Trimpe, Jasper Snoek, James Harrison

Introduction

Bayesian Optimization (BO) is the go-to method for optimizing "black-box" functions that are expensive to evaluate, such as tuning massive machine learning models or designing new drugs. To function effectively, BO relies on a surrogate model—a mathematical stand-in that predicts the function's value and, crucially, its uncertainty.

This paper introduces a novel approach to BO that utilizes Variational Bayesian Last Layer (VBLL) networks as surrogate models. By bridging the gap between neural network optimization and Gaussian Process (GP) conditioning, the authors develop an efficient "continual learning" algorithm that matches GP performance on simple tasks while significantly outperforming them on complex, high-dimensional problems.

The Challenge with Surrogate Models

For years, Gaussian Processes (GPs) have been the gold standard in BO because they handle uncertainty beautifully and update quickly. However, GPs struggle with high-dimensional data or complex "non-Euclidean" correlations unless a bespoke "kernel" (a similarity function) is manually designed.

Bayesian Neural Networks (BNNs) present an obvious high-capacity alternative. Unfortunately, they are notoriously difficult to train online and often provide unreliable uncertainty estimates, leading to poor performance in the small-data regimes typical of BO.

The VBLL Approach

The authors build on Variational Bayesian Last Layers (VBLLs). In this architecture, a standard neural network acts as a feature extractor, but only the very last layer is treated as Bayesian (using Gaussian weights). The paper introduces several technical innovations to make this work for BO:

  • The Variational-Conditioning Bridge: The authors prove that optimizing the variational objective of a VBLL is mathematically equivalent to exact conditioning in a GP. This allows them to treat the last layer like a parametric GP with a learned kernel.
  • Continual Learning Loop: Instead of retraining the entire neural network every time a new data point is collected, they use fast, recursive "rank-1 Cholesky updates" for the last layer.
  • Event-Triggered Retraining: To save time, the model only performs a full "re-train" of the entire backbone when the log-predictive likelihood of new data falls below a certain threshold.
  • Analytic Thompson Sampling: Because the model is parametric, they can draw a sample from the posterior weights to create a deterministic function and then optimize that function directly using standard tools (like L-BFGS-B). This is much more efficient than the discrete sampling used for standard GPs.

Key Results and Insights

The authors evaluated their approach on a wide range of benchmarks, from classic synthetic functions (Branin, Ackley, Hartmann) to high-dimensional tasks (a 200D "NNdraw" problem, a 25D "Pestcontrol" task) and multi-objective real-world design problems.

Superior Performance on Complex Tasks

Unlike standard GPs, which are non-parametric and scale cubically with the number of data points, VBLLs are parametric. This makes them inherently more scalable. On complex tasks like Pestcontrol and Lunarlander, VBLLs consistently outperformed GPs and other BNN architectures. On simpler classic benchmarks, they matched the performance of well-tuned GPs.

Optimization performance across various benchmarks

Massive Speedups via Continual Learning

The "aha moment" of the paper is that you don't need to update the entire neural network backbone at every step. Updating just the last layer provides the necessary local adjustments, while the backbone only needs occasional updates to refine the global feature representation.

The event-triggered continual learning (ET CL) scheme reduced total runtime by 60% to 85% compared to retraining the model at every step, with virtually no loss in optimization quality.

Event-triggered continual learning maintains performance while reducing runtime

Robustness and Stability

The experiments showed that VBLLs are significantly more robust to observation noise than other BNN variants like Last Layer Laplace Approximations (LLLA). Furthermore, in multi-objective optimization, standard acquisition functions often "crash" due to numerical issues. The authors demonstrated that using Thompson Sampling with VBLLs bypasses these issues entirely, allowing for a more refined approximation of the Pareto front.

Limitations and Future Work

While highly effective, the model still requires tuning of hyperparameters like the "Wishart scale" (which acts as a prior on noise) and the retraining threshold. Additionally, in the 200D NNdraw task, the event-triggering mechanism occasionally caused the model to stop retraining too early, leading to performance plateaus.

Future directions include exploring more advanced "model selection" criteria to decide when to retrain, and investigating how different neural network architectures (such as Transformers) might further improve the feature extraction backbone.

Summary updated

BibTeX
@inproceedings{brunzema2025bayesian,
  author = {Paul Brunzema and Mikkel Jordahn and John Willes and Sebastian Trimpe and Jasper Snoek and James Harrison},
  title = {{Bayesian Optimization via Continual Variational Last Layer Training}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=1jcnvghayD},
}
Figure