Abstract
Bayesian optimization (BO) is a popular paradigm for global optimization of expensive black-box functions, but there are many domains where the function is not completely a black-box. The data may have some known structure (e.g. symmetries) and/or the data generation process may be a composite process that yields useful intermediate or auxiliary information in addition to the value of the optimization objective. However, surrogate models traditionally employed in BO, such as Gaussian Processes (GPs), scale poorly with dataset size and do not easily accommodate known structure. Instead, we use Bayesian neural networks, a class of scalable and flexible surrogate models with inductive biases, to extend BO to complex, structured problems with high dimensionality. We demonstrate BO on a number of realistic problems in physics and chemistry, including topology optimization of photonic crystal materials using convolutional neural networks, and chemical property optimization of molecules using graph neural networks. On these complex tasks, we show that neural networks often outperform GPs as surrogate models for BO in terms of both sampling efficiency and computational cost.
Introduction
In scientific discovery, researchers often search for optimal designs—such as nanoparticle configurations or molecular structures—that exhibit specific physical properties. These searches are typically "expensive," involving time-consuming simulations or lab experiments. Bayesian Optimization (BO) has emerged as a standard strategy for these black-box optimization problems, using a "surrogate model" to guide the search and minimize the number of trials.
However, traditional BO relies heavily on Gaussian Processes (GPs), which face two significant limitations in modern scientific contexts. First, GPs scale cubically ($O(N^3)$) with the number of data points, becoming computationally prohibitive as datasets grow. Second, GPs treat inputs as flat vectors, failing to exploit the inherent spatial or topological structures (like images or graphs) common in physics and chemistry.
Deep Bayesian Optimization Framework
To overcome these hurdles, this work proposes a "Deep Bayesian Optimization" framework that replaces GPs with Bayesian Neural Networks (BNNs). This shift enables the use of specialized architectures like Convolutional Neural Networks (CNNs) for physical images and Graph Neural Networks (GNNs) for molecules, baking "inductive biases" directly into the optimization process.
A core innovation of this framework is the use of Auxiliary Information. In many scientific simulations, the process yields high-dimensional intermediate data (e.g., an optical spectrum) before arriving at a final scalar objective (e.g., a performance score). While traditional BO discards this intermediate data, the proposed BNN-aux model is trained to predict the full intermediate state $z$. Because the mapping from $z$ to the final objective $y$ is usually a known, computationally cheap physical calculation, this approach forces the model to learn a richer, physically consistent representation of the system.
Efficient Training and Scalability
Training BNNs can be computationally intensive if done from scratch at every iteration. The authors address this by using "warm starts"—initializing the network with weights from the previous iteration—and employing cosine annealing learning rates. This allows the model to adapt quickly to new data points. Unlike GPs, BNNs (particularly deep ensembles) scale linearly with the number of samples, making them far more suitable for large-scale optimization tasks.
Experimental Results
The framework was evaluated on three benchmarks: multilayer nanoparticle scattering, photonic crystal topology optimization, and organic molecule search (QM9).
The results demonstrate that BNNs, especially when augmented with auxiliary information, consistently outperform standard GPs and random search in complex tasks. In the nanoparticle tasks (Figure 4), the "Ensemble-aux" method reached near-optimal values significantly faster than the standard "Ensemble" approach. Notably, while GP-based methods can perform well, they are computationally limited; the "GP-aux" lines in Figure 4 terminate early due to the prohibitive cubic scaling costs of Gaussian Processes as more data is collected.
In the molecular optimization task, the BNN approach was nearly 800 times faster than a GraphGP baseline after 100 samples. The study also found that Deep Ensembles provided robust uncertainty estimates, which are critical for balancing exploration and exploitation during the search.
Conclusion
By integrating deep learning architectures and auxiliary physical data into Bayesian Optimization, this framework provides a scalable and flexible path for complex scientific design. While BNNs require more careful hyperparameter tuning than GPs, their ability to respect physical symmetries and handle high-dimensional data makes them a superior choice for modern scientific problems. Future work may explore more advanced Bayesian inference techniques to further refine uncertainty estimation in highly complex scientific landscapes.
Summary updated