Deep Learning for Bayesian Optimization of Scientific Problems with High-Dimensional Structure

Samuel Kim, Peter Y Lu, Charlotte Loh, Jamie Smith, Jasper Snoek, Marin Soljacic

Introduction

Bayesian optimization (BO) has emerged as a powerful framework for the global optimization of "expensive" black-box functions—scenarios where each evaluation, such as a high-fidelity physics simulation or a wet-lab experiment, incurs significant time or financial cost. Traditionally, BO relies on Gaussian Processes (GPs) as surrogate models to navigate the search space by balancing exploration and exploitation.

However, standard GPs face two critical limitations in scientific domains. First, their computational complexity scales cubically with the number of observations, making them unsuitable for large datasets. Second, they struggle to incorporate high-dimensional, structured inputs like images or molecular graphs without complex, hand-crafted kernels. This paper proposes replacing GPs with Bayesian Neural Networks (BNNs) to transform BO into a "gray-box" optimizer capable of leveraging domain-specific architectures and auxiliary simulation data.

The "Gray-Box" Advantage: Auxiliary Information

Scientific simulations are rarely true black boxes; they often produce rich intermediate data before arriving at a final objective value. For instance, calculating the scattering efficiency of a nanoparticle requires first simulating its full light-scattering spectrum. Standard BO typically discards this intermediate information.

Figure 1: Comparison of standard GP-based BO (c) and the proposed BNN-aux approach (d) for nanoparticle optimization. The BNN predicts the full scattering spectrum (b) as auxiliary data to improve the prediction of the final objective.

By training BNNs to predict these high-dimensional intermediate vectors $z$ (e.g., a spectrum) rather than just the scalar objective $y$, the model is forced to learn a more consistent physical representation of the system. This acts as a powerful form of implicit regularization, significantly improving sampling efficiency.

Methods and Inductive Biases

To handle structured data, the researchers employ specific neural architectures that provide beneficial inductive biases:

  • Convolutional Neural Networks (CNNs): Used for physical topologies (images), allowing the model to natively understand spatial symmetries like translation and rotation.
  • Graph Neural Networks (GNNs): Used for molecular optimization to capture the connectivity of atoms.

To manage the computational overhead of training neural networks within an iterative BO loop, the authors utilize "warm starts" combined with cosine annealing learning rates. This allows the BNN to quickly adapt to new data points by fine-tuning the previous iteration's weights rather than retraining from scratch.

High-Dimensional Topology Optimization

A primary benchmark for this approach is the optimization of photonic crystal topologies. Here, the goal is to arrange silicon and vacuum in a $32 \times 32$ grid (1,024 dimensions) to maximize a "photonic band gap."

Figure 5: Photonic crystal optimization workflow. The Bayesian CNN (f) processes the unit cell image (a-c) to predict the Density of States (d) as auxiliary information, outperforming the standard GP (e) in high-dimensional search.

In this high-dimensional task, the Bayesian CNN (BCNN) with auxiliary information achieved objective values nearly double those of the best GP baselines. The CNN architecture's ability to interpret the structure as a topology—rather than a collection of independent pixels—proved decisive.

Key Results and Insights

The study evaluated the BNN-based BO across three realistic scientific benchmarks: multilayer nanoparticles, photonic crystal topology, and the QM9 molecular dataset. Several key insights emerged:

  1. Scalability: BNNs handle high-dimensional auxiliary outputs (e.g., a 500-dimensional spectrum) with negligible extra computational cost compared to a single scalar output. Multi-output GPs, by contrast, scale poorly in these regimes.
  2. Speed: In molecular property optimization, the Bayesian GNN was approximately 800 times faster per iteration than specialized "GraphGP" models while maintaining or exceeding optimization performance.
  3. Robustness of Ensembles: Among various Bayesian methods, Deep Ensembles (training multiple networks with different initializations) emerged as the most robust and practical method for estimating uncertainty in scientific BO tasks.

Conclusion and Future Work

By integrating deep learning architectures into the Bayesian optimization loop, this work demonstrates that we can move beyond the limitations of Gaussian Processes for complex scientific discovery. While BNNs require more careful hyperparameter tuning than GPs, their ability to exploit high-dimensional structure and auxiliary "gray-box" data makes them a superior choice for modern physics and chemistry problems. Future research may focus on incorporating more rigid physical constraints directly into the network layers and exploring advanced MCMC techniques for better posterior estimation.

Summary updated

BibTeX
@article{kim2022deep,
  author = {Samuel Kim and Peter Y Lu and Charlotte Loh and Jamie Smith and Jasper Snoek and Marin Soljacic},
  title = {{Deep Learning for Bayesian Optimization of Scientific Problems with High-Dimensional Structure}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=tPMQ6Je2rB},
}
Figure