TL;DR
CoBO (Correlated latent space Bayesian Optimization) significantly improves the optimization of complex, discrete data like molecules and mathematical expressions. By explicitly aligning the geometry of a Variational Autoencoder's (VAE) latent space with the objective function's values, it creates a smoother, more searchable landscape that consistently outperforms existing state-of-the-art methods.
The Challenge of Discrete Search Spaces
Bayesian Optimization (BO) is a go-to strategy for finding the maximum of "black-box" functions that are expensive to evaluate. However, BO struggles with discrete or structured data—such as chemical strings or source code—because it typically requires a continuous search space.
To solve this, researchers often use Latent Space Bayesian Optimization (LBO). In LBO, a deep generative model like a VAE maps discrete inputs into a continuous, low-dimensional "latent space," where the optimization takes place.
The problem? Standard VAEs are trained to reconstruct data, not to organize it by its "quality" or objective value. This creates an inherent gap: two points that are close in the latent space might have wildly different objective values. This results in a jagged, unpredictable landscape that is incredibly difficult for the BO's surrogate model (usually a Gaussian Process) to learn, often leading the optimizer to get stuck in suboptimal regions.
The CoBO Solution
To bridge this gap, the authors propose CoBO, which introduces three key mechanisms to ensure the latent space is actually useful for optimization:
- Lipschitz Regularization ($L_{Lip}$): This is the core innovation. The authors mathematically prove that reducing the Lipschitz constant of the mapping increases the correlation between latent distances and objective differences. By penalizing the model if points that are close in latent space have very different objective values, CoBO forces the latent space to be "smooth" relative to the optimization goal.
- Loss Weighting: Since optimization only cares about finding the best solutions, CoBO uses a weighting scheme that prioritizes the reconstruction and smoothness of "promising" areas—regions with high objective values. This ensures the VAE is most accurate where it matters most.
- Trust Region Recoordination: Many modern BO methods search within a small "trust region" to remain efficient. Because CoBO updates the VAE during the optimization process, the coordinates of the "best" point can shift. CoBO re-maps the current best point through the updated encoder to re-center the search box, preventing the optimizer from getting lost.
Key Insights and Performance
The most striking insight from CoBO is that simply making a space continuous isn't enough; the metric of that space must reflect the objective. By adding Lipschitz regularization, the authors increased the Pearson correlation between latent distance and objective difference from a noisy ~0.2 to a robust ~0.7. Qualitative analysis shows that without CoBO, the latent landscape is a chaotic mess of high and low values. With CoBO, the space becomes a clear, navigable gradient where high-value points cluster together.
The authors evaluated CoBO on nine distinct tasks across three benchmarks, achieving state-of-the-art performance in all nine tasks:
- Guacamol Benchmark: Across seven challenging molecule design tasks (e.g., finding molecules similar to Zaleplon or maximizing "Median molecules 2" scores), CoBO consistently found higher-scoring molecules within the same evaluation budget compared to strong baselines like LOL-BO and TuRBO.
- Therapeutics Data Commons (TDC): In the DRD3 task, which involves finding molecules with high docking scores (binding affinity) to a specific protein, CoBO was significantly more efficient at finding high-affinity molecules. This is critical for real-world drug discovery where every "oracle call" is expensive.
- Arithmetic Expression Fitting: CoBO also excelled at finding mathematical formulas that match a target curve using a Grammar VAE.
Limitations and Future Work
While CoBO represents a significant step forward, the authors acknowledge a few key areas for consideration:
- Computational Overhead: Jointly training a VAE with pairwise Lipschitz penalties adds complexity. While they use sparse Gaussian Processes to keep the BO part efficient, the VAE retraining step remains a computationally heavy part of the pipeline.
- Future Directions: The paper suggests that this "correlated latent space" approach could be extended to other generative architectures beyond VAEs, potentially opening doors for even more complex structural optimization.
- Broader Impacts: While powerful for drug discovery, such optimization tools could theoretically be misused to design toxic or harmful chemicals, highlighting the need for responsible use and safety constraints in deployment.
Summary updated