NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

High-Dimensional Bayesian Optimisation with Variational Autoencoders and Deep Metric Learning

Antoine Grosnit, Rasul Tutunov, Alexandre Max Maraval, Ryan-Rhys Griffiths, Alexander I. Cowen-Rivers, Lin Yang, Lin Zhu, Wenlong Lyu, Zhitang Chen, Jun Wang, Jan Peters, Haitham Bou-AmmararXiv 2021

Introduction

Bayesian Optimisation (BO) is a powerful framework for optimizing expensive "black-box" functions, such as those found in drug discovery or neural architecture search. However, BO faces significant challenges when dealing with high-dimensional, structured data like molecules or graphs. Standard approaches often map these inputs into a low-dimensional continuous "latent space" using Variational Autoencoders (VAEs). While effective for reconstruction, unsupervised VAEs often create latent landscapes that are poorly suited for the Gaussian Process (GP) surrogate models used in BO. This paper introduces a method to "shape" these latent spaces using Deep Metric Learning (DML), ensuring that the geometry of the space reflects the objective function being optimized.

Methodology: Shaping the Latent Space

The core innovation of this work is the integration of label-aware regularization into the VAE training process. Instead of relying solely on reconstruction loss, the authors employ Deep Metric Learning to organize the latent space.

Softened Metric Losses

Standard DML losses, such as triplet or contrastive losses, are typically designed for discrete classification. To make them compatible with the continuous regression tasks common in BO, the authors introduce "softened" versions of these losses. These adaptations ensure that points with similar objective values are pulled together while points with significantly different values are pushed apart, all while maintaining the smoothness required for GP modeling.

Latent space distance distributions under various metric losses.

Data Efficiency and Retraining

Recognizing that labeled data is often the primary bottleneck, the framework utilizes a semi-supervised approach. The VAE is pre-trained on large unlabeled datasets and then fine-tuned using the sparse labels acquired during the BO process. Additionally, a weighted retraining scheme is implemented to prioritize high-performing regions of the latent space, further refining the search for the global optimum.

Experimental Evaluation

The proposed method was evaluated across three diverse high-dimensional tasks:

  1. Topology Shape Fitting: Generating 40x40 grayscale images of mechanical designs.
  2. Expression Reconstruction: Optimizing mathematical expressions derived from formal grammars.
  3. Chemical Design: Optimizing the penalized logP of molecules using the ZINC250K dataset.

Key Results

The DML-enhanced approach, particularly the "Triplet-LBO" (T-LBO) variant, demonstrated remarkable performance and data efficiency. In the molecule design task, T-LBO achieved a state-of-the-art (SOTA) penalized logP score of 38.57, significantly outperforming previous benchmarks.

Comparison of T-LBO against state-of-the-art molecule optimization methods.

Beyond the raw scores, the method's data efficiency is its most striking feature. T-LBO reached these SOTA results using only 7,750 function evaluations—representing a 97% reduction in labeled data requirements compared to the 250,500 evaluations needed by the previous leading method (LSO).

Discussion and Theoretical Significance

This research provides the first formal proof of vanishing regret for VAE-based BO, offering a theoretical guarantee that the algorithm will eventually converge to the global optimum. The success of the method highlights that for high-dimensional BO, the quality of the latent mapping is as critical as the optimization algorithm itself. By making the latent space "GP-friendly" through metric learning, the surrogate model's predictive accuracy and the overall optimization process are dramatically improved.

Limitations and Future Work

While highly effective, the method's success depends on the VAE's ability to reconstruct the global optimum (the "coverage assumption"). Future research may explore more complex generative architectures and the development of task-specific metric losses to further enhance performance in specialized domains like materials science or protein engineering.

Summary updated

BibTeX
@misc{grosnit2021high,
  author = {Antoine Grosnit and Rasul Tutunov and Alexandre Max Maraval and Ryan-Rhys Griffiths and Alexander I. Cowen-Rivers and Lin Yang and Lin Zhu and Wenlong Lyu and Zhitang Chen and Jun Wang and Jan Peters and Haitham Bou-Ammar},
  title = {{High-Dimensional Bayesian Optimisation with Variational Autoencoders and Deep Metric Learning}},
  year = {2021},
  eprint = {2106.03609},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.03609},
}
Figure