Skip to main content
QUICK REVIEW

[Paper Review] A Study of Bayesian Neural Network Surrogates for Bayesian Optimization

Yucen Lily Li, Tim G. J. Rudner|arXiv (Cornell University)|May 31, 2023
Gaussian Processes and Bayesian InferenceComputer Science5 citations
TL;DR

This paper evaluates Bayesian neural networks (BNNs) as surrogate models for Bayesian optimization, comparing various inference methods—including Hamiltonian Monte Carlo, deep ensembles, and infinite-width BNNs—against standard Gaussian processes. It finds that infinite-width BNNs and HMC-inferred finite BNNs outperform standard GPs in high-dimensional and non-stationary settings, while full stochasticity is not consistently beneficial, suggesting that architectural priors matter more than stochasticity in small-data Bayesian optimization.

ABSTRACT

Bayesian optimization is a highly efficient approach to optimizing objective functions which are expensive to query. These objectives are typically represented by Gaussian process (GP) surrogate models which are easy to optimize and support exact inference. While standard GP surrogates have been well-established in Bayesian optimization, Bayesian neural networks (BNNs) have recently become practical function approximators, with many benefits over standard GPs such as the ability to naturally handle non-stationarity and learn representations for high-dimensional data. In this paper, we study BNNs as alternatives to standard GP surrogates for optimization. We consider a variety of approximate inference procedures for finite-width BNNs, including high-quality Hamiltonian Monte Carlo, low-cost stochastic MCMC, and heuristics such as deep ensembles. We also consider infinite-width BNNs, linearized Laplace approximations, and partially stochastic models such as deep kernel learning. We evaluate this collection of surrogate models on diverse problems with varying dimensionality, number of objectives, non-stationarity, and discrete and continuous inputs. We find: (i) the ranking of methods is highly problem dependent, suggesting the need for tailored inductive biases; (ii) HMC is the most successful approximate inference procedure for fully stochastic BNNs; (iii) full stochasticity may be unnecessary as deep kernel learning is relatively competitive; (iv) deep ensembles perform relatively poorly; (v) infinite-width BNNs are particularly promising, especially in high dimensions.

Motivation & Objective

  • To investigate whether Bayesian neural networks (BNNs) can serve as effective alternatives to Gaussian process (GP) surrogates in Bayesian optimization.
  • To evaluate a broad range of BNN inference methods, including Hamiltonian Monte Carlo, stochastic MCMC, deep ensembles, and infinite-width limits.
  • To assess the impact of stochasticity, representation learning, and non-stationarity on optimization performance across diverse problem types.
  • To determine whether tailored inductive biases in BNNs improve optimization efficiency compared to standard GP surrogates.
  • To provide an unbiased evaluation framework for surrogate model selection in Bayesian optimization, free from model-specific design bias.

Proposed method

  • Employs fully stochastic multilayer BNNs with approximate inference via Hamiltonian Monte Carlo (HMC), stochastic gradient MCMC, and deep ensembles.
  • Considers infinite-width BNNs, which correspond to Gaussian processes with non-stationary kernels derived from neural network architectures.
  • Evaluates partially stochastic models such as deep kernel learning (DKL), where only the last layer is Bayesian.
  • Uses Monte Carlo acquisition functions that require only posterior samples, enabling use of non-GP surrogates without closed-form predictive distributions.
  • Employs a diverse benchmark suite including synthetic, real-world, and high-dimensional problems with varying input types (discrete/continuous), dimensionality, and objectives (single/multi).
  • Performs controlled comparisons across 5 trials per benchmark, reporting mean performance with standard error.

Experimental results

Research questions

  • RQ1Does the use of Bayesian neural networks as surrogates improve optimization performance compared to standard Gaussian processes?
  • RQ2How do different approximate inference procedures for finite-width BNNs (e.g., HMC, deep ensembles, SG-MCMC) compare in Bayesian optimization?
  • RQ3Is full stochasticity in BNNs necessary for performance gains, or can deterministic representations (e.g., via infinite-width limits or DKL) be sufficient?
  • RQ4How do BNN surrogates perform on non-stationary and high-dimensional optimization problems where GPs struggle?
  • RQ5Can representation learning from deep architectures provide a benefit in Bayesian optimization, or is the inductive bias of the neural network architecture more important?

Key findings

  • Hamiltonian Monte Carlo (HMC) is the most effective approximate inference method for fully stochastic BNNs, consistently outperforming stochastic gradient MCMC and deep ensembles.
  • Deep ensembles perform surprisingly poorly in Bayesian optimization despite strong performance in other ML settings, suggesting they are not well-suited for small-data optimization.
  • Infinite-width BNNs are particularly effective in high-dimensional optimization, often outperforming both finite-width BNNs and standard GPs, indicating that architectural priors are highly valuable.
  • Partially stochastic deep kernel learning (DKL) is competitive with fully stochastic BNNs, suggesting that full parameter stochasticity may not be necessary for performance gains.
  • Standard Gaussian processes remain competitive on standard benchmarks due to strong priors and exact inference, but are outperformed by BNNs in non-stationary and multi-objective settings.
  • No single surrogate model dominates across all problems, highlighting the need for tailored inductive biases based on the specific characteristics of the optimization objective.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.