Local Latent Space Bayesian Optimization over Structured Inputs

Natalie Maus, Haydn Thomas Jones, Juston Moore, Matt Kusner, John Bradshaw, Jacob R. Gardner

Abstract / TL;DR Searching for high-performing structured objects like molecules is a complex combinatorial problem. The authors introduce LOL-BO (Local Latent Space Bayesian Optimization), a framework that significantly improves this search process. By combining local "trust regions" with a latent space jointly trained to align with the optimization objective, LOL-BO achieves up to a 20x improvement over previous state-of-the-art methods.

The Challenge of Structured Optimization

Optimizing discrete, structured objects—such as drug-like molecules or complex arithmetic expressions—is notoriously difficult because the search space is combinatorial. You cannot simply "nudge" a molecule's atoms to incrementally test its effectiveness; a single structural change might render the molecule chemically invalid.

To navigate this, researchers often employ Latent Space Bayesian Optimization (LS-BO). This technique uses a Deep Autoencoder (DAE) to map discrete objects into a continuous, high-dimensional latent space. Bayesian Optimization (BO) is then applied within this continuous space to find optimal points, which are subsequently decoded back into new objects.

However, two major hurdles limit the effectiveness of standard LS-BO:

  1. High Dimensionality: Even though the latent space is continuous, it often spans hundreds of dimensions. Standard BO tools, such as Expected Improvement, struggle to explore such vast spaces efficiently.
  2. The Smoothness Gap: Standard autoencoders are trained primarily to reconstruct inputs, not to smooth the optimization objective. Consequently, a tiny step in the latent space might lead to a massive, unpredictable jump in the objective value (e.g., toxicity or binding affinity), violating the core smoothness assumptions that BO relies upon.

The LOL-BO Framework

To overcome these limitations, the authors propose LOL-BO, which introduces two primary innovations to the LS-BO pipeline:

1. Local Trust Regions

Instead of attempting to model the entire high-dimensional latent space simultaneously, LOL-BO restricts its search to a "trust region"—a small hyper-rectangle centered around the best point found so far. Adapted from the TuRBO algorithm, this localized approach prevents the optimizer from getting lost in high-dimensional "dead zones" and focuses computational effort where it is most likely to yield improvements.

2. Adaptive Joint Latent Space

Rather than relying on a fixed, pre-trained autoencoder, LOL-BO dynamically updates the encoder during the optimization process. The authors derive a novel objective function (a joint ELBO) that forces the encoder to serve a dual purpose: it must reconstruct the data globally while simultaneously acting as a "deep kernel" for the Gaussian Process surrogate model locally. This joint training ensures that points close together in the latent space actually share similar objective values, effectively smoothing the space.

Additionally, LOL-BO replaces the brittle SMILES string representation for molecules with SELFIES, paired with a Transformer-based VAE architecture. This combination ensures that almost every point in the latent space decodes into a chemically valid molecule.

Experimental Benchmarks and Key Results

The framework was rigorously evaluated across six real-world benchmarks, including Penalized logP (water-octanol partition coefficients), Arithmetic Expressions, three Guacamol Benchmarks (Perindopril, Ranolazine, and Zaleplon MPO), and DRD3 Receptor Docking (a high-fidelity binding affinity task from the Therapeutics Data Commons).

The results highlight several critical insights:

  • Massive Performance Gains: On the penalized logP task, LOL-BO achieved a score of ~545, compared to the previous state-of-the-art (T-LBO) score of ~26—a staggering 20x improvement.
  • Exceptional Sample Efficiency: In the computationally expensive DRD3 docking task, LOL-BO discovered high-performing molecules using 10x fewer oracle calls than competing methods on the TDC leaderboard.
  • Optimization Strategy Outweighs Architecture: The authors demonstrated that how the latent space is searched is just as critical as the VAE model itself. Even when paired with an older VAE architecture (JTVAE), the local trust region approach significantly outperformed global search methods.
  • Robust Consistency: LOL-BO consistently outperformed baselines across all three Guacamol tasks, proving that the local approach is robust to diverse molecular objectives.

Limitations and Future Directions

While LOL-BO represents a significant leap forward, it does come with trade-offs. Updating the full encoder—especially a Transformer—during the optimization loop introduces computational overhead compared to updating a simple Gaussian Process. The authors mitigate this by retraining the VAE periodically (e.g., every 10 failures/successes) rather than at every step.

Furthermore, the authors candidly note a quirk of the penalized logP benchmark: while LOL-BO "crushed" the metric, the resulting molecules were often chemically nonsensical (e.g., infinitely long carbon chains). This underscores a broader need within the chemistry community for more realistic objective functions, rather than indicating a flaw in the optimizer itself.

Looking ahead, the principles behind LOL-BO—specifically the alignment of local latent spaces with optimization objectives—hold immense promise for scaling to larger "foundation models" in chemistry and protein design.

Summary updated

BibTeX
@inproceedings{maus2022local,
  author = {Natalie Maus and Haydn Thomas Jones and Juston Moore and Matt Kusner and John Bradshaw and Jacob R. Gardner},
  title = {{Local Latent Space Bayesian Optimization over Structured Inputs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=nZRTRevUO-},
}
Figure