Abstract
Bayesian optimization over the latent spaces of deep autoencoder models (DAEs) has recently emerged as a promising new approach for optimizing challenging black-box functions over structured, discrete, hard-to-enumerate search spaces (e.g., molecules). Here the DAE dramatically simplifies the search space by mapping inputs into a continuous latent space where familiar Bayesian optimization tools can be more readily applied. Despite this simplification, the latent space typically remains high-dimensional. Thus, even with a well-suited latent space, these approaches do not necessarily provide a complete solution, but may rather shift the structured optimization problem to a high-dimensional one. In this paper, we propose LOL-BO, which adapts the notion of trust regions explored in recent work on high-dimensional Bayesian optimization to the structured setting. By reformulating the encoder to function as both an encoder for the DAE globally and as a deep kernel for the surrogate model within a trust region, we better align the notion of local optimization in the latent space with local optimization in the input space. LOL-BO achieves as much as 20 times improvement over state-of-the-art latent space Bayesian optimization methods across six real-world benchmarks, demonstrating that improvement in optimization strategies is as important as developing better DAE models.
Introduction
Optimizing structured objects—such as molecules, proteins, or circuits—is notoriously difficult because these spaces are discrete, combinatorial, and high-dimensional. A common strategy to address this is Latent Space Bayesian Optimization (LS-BO). LS-BO utilizes a Deep Autoencoder (DAE) to map these discrete objects into a continuous, lower-dimensional latent space where standard optimization tools can be applied.
However, two major hurdles often impede the success of LS-BO. First, even "compressed" latent spaces often retain 50–200 dimensions, which remains too high for global Bayesian Optimization (BO) to search efficiently. Second, there is a significant locality mismatch: standard DAEs are trained for reconstruction, not optimization. Consequently, two points that are close in latent space might decode into wildly different structures, breaking the "smoothness" assumption that BO relies on for accurate surrogate modeling.
The LOL-BO Framework
We introduce Local Latent Space Bayesian Optimization (LOL-BO), a framework designed to overcome these challenges through three key innovations: local search, adaptive latent spaces, and robust representations.
Local Search via Trust Regions
Instead of attempting to model the entire latent space globally, LOL-BO restricts its search to a "trust region"—a small hyper-rectangle centered around the current best-found point. This approach, inspired by the TuRBO algorithm, prevents the optimizer from getting lost in high-dimensional "voids" where the surrogate model's uncertainty is high and its predictions are unreliable. By focusing on local refinement, the optimizer can navigate the high-dimensional latent space more effectively.
Adaptive Latent Space and Joint Training
To resolve the locality mismatch, we move beyond static Variational Autoencoders (VAEs). We derive a new objective function (ELBO) that jointly trains the VAE and the Gaussian Process (GP) surrogate model. This forces the encoder to function as a "deep kernel," warping the latent space so that proximity in the latent space corresponds to similarity in the objective value (e.g., a specific chemical property). This joint inference allows the optimization objective to "talk back" to the latent representation, creating a task-specific geometry that is much smoother and easier to navigate.
Robust Representations with SELFIES
LOL-BO utilizes SELFIES (Self-Referencing Embedded Strings) rather than the traditional SMILES representation for molecular tasks. SELFIES is a string representation where every possible permutation results in a valid molecule. When paired with a Transformer-based VAE architecture, this approach significantly reduces "noise" in the objective function. Because every point in the latent space decodes to a valid molecule, the optimizer does not waste evaluations on invalid syntax or "dead zones."
Experimental Evaluation
We evaluated LOL-BO across several high-dimensional benchmarks, ranging from symbolic regression to complex drug discovery tasks.
- Arithmetic Expressions: Optimizing mathematical strings to fit a target curve.
- Penalized log P: A standard molecular property task involving solubility and octanol-water partition coefficients.
- Guacamol Benchmarks: Three challenging tasks (Perindopril, Ranolazine, and Zaleplon MPO) requiring high fingerprint similarity to specific drugs.
- DRD3 Docking: A high-fidelity task from the Therapeutics Data Commons (TDC) involving simulated physical binding to a dopamine receptor.
Key Results
LOL-BO demonstrated massive performance gains over previous state-of-the-art methods. On the penalized log P task, LOL-BO achieved a score of approximately 545, representing a 20x+ improvement over the previous best of ~26. In the computationally expensive DRD3 docking task, LOL-BO reached top-tier performance using 10x fewer oracle evaluations than competing methods, highlighting its extreme sample efficiency.
Furthermore, LOL-BO consistently outperformed both BO-based baselines and specialized genetic algorithms (such as GraphGA) on the most difficult molecular similarity tasks in the Guacamol suite.
Discussion and Conclusion
The success of LOL-BO suggests that the optimization strategy—specifically the choice between local and global search—is just as critical as the underlying model architecture. By aligning the latent space with the optimization objective through joint training, we can create landscapes that are more amenable to local search.
While LOL-BO offers significant improvements, it does introduce computational overhead due to the periodic retraining of the Transformer VAE. Additionally, the current framework is optimized for single-objective tasks, whereas drug discovery often requires balancing multiple competing properties. Future work will explore multi-objective extensions and further efficiency gains. Ultimately, LOL-BO represents a significant step forward in making Bayesian optimization a practical tool for the design of complex, structured objects.
Summary updated