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

Latent Bayesian Optimization via Autoregressive Normalizing Flows

Seunghun Lee, Jinyoung Park, Jaewon Chu, Minseo Yoon, Hyunwoo J. Kim

Abstract

Latent Bayesian Optimization (LBO) has emerged as a powerful framework for optimizing discrete structures, such as molecules, by performing search within a continuous latent space. However, traditional LBO methods often suffer from "value discrepancy"—errors introduced when generative models fail to perfectly reconstruct data from their latent representations. This paper introduces NF-BO, a framework that utilizes an autoregressive normalizing flow (SeqFlow) to ensure a bijective, one-to-one mapping between discrete sequences and continuous latent space. Combined with Token-level Adaptive Candidate Sampling (TACS), which prioritizes high-impact tokens during the search process, NF-BO eliminates reconstruction errors and significantly improves optimization efficiency across molecular design benchmarks.

Introduction

Bayesian Optimization (BO) is an essential tool for navigating expensive "black-box" functions, particularly in scientific discovery fields like drug development and materials science. While BO excels in continuous domains, molecular structures are inherently discrete, often represented as strings (SMILES or SELFIES). To bridge this gap, researchers typically employ Latent Bayesian Optimization (LBO), where a Variational Autoencoder (VAE) maps discrete inputs into a continuous latent space for optimization.

The primary bottleneck in current LBO approaches is the value discrepancy problem. Because VAEs are probabilistic and often lossy, the molecule decoded from a specific latent point may not match the molecule the optimizer intended to evaluate. This "reconstruction gap" introduces noise into the surrogate model, leading the optimizer toward suboptimal regions of the search space. NF-BO addresses this by replacing the probabilistic VAE with a mathematically invertible normalizing flow.

Methodology

SeqFlow: Autoregressive Normalizing Flows

Unlike VAEs, which compress data into a distribution, Normalizing Flows (NFs) are designed to be bijective. The authors developed SeqFlow, an autoregressive normalizing flow tailored for sequence data. SeqFlow maps discrete tokens to continuous embeddings and applies a series of invertible transformations to reach a latent representation. Because this mapping is one-to-one, the reconstruction is mathematically guaranteed to be perfect. By ensuring that every point in the latent space corresponds exactly to a unique discrete sequence, NF-BO completely eliminates the value discrepancy problem.

TACS: Token-level Adaptive Candidate Sampling

Standard LBO methods typically explore the latent space by applying uniform perturbations. However, in molecular sequences, not all tokens carry equal weight; changing a single atom in a core ring structure often has a more profound impact than changing a peripheral functional group.

To address this, the authors introduced TACS. This method uses Pointwise Mutual Information (PMI) to identify which tokens in a sequence have the greatest influence on the overall structure. TACS then dynamically adjusts the search to focus exploration on these high-impact tokens. This surgical approach to sampling makes local search more efficient and helps the optimizer find high-quality candidates more rapidly.

Experimental Evaluation

The NF-BO framework was evaluated on two primary molecular design benchmarks:

  1. Guacamol Benchmarks: Seven tasks focused on generating molecules similar to specific drugs (e.g., Amlodipine, Valsartan).
  2. PMO (Practical Molecular Optimization) Benchmarks: A suite of 23 tasks measuring drug-likeness (QED) and various molecular properties.

The models were pretrained on 1.27 million molecules from the Guacamol dataset and 250,000 molecules from the ZINC dataset to ensure a robust understanding of chemical space.

Key Results

  • Perfect Reconstruction: Quantitative analysis confirmed that SeqFlow achieved a 0.000 discrepancy ratio. In contrast, existing flow models like TextFlow still exhibited reconstruction errors, highlighting the superiority of the SeqFlow architecture for maintaining data integrity.
  • State-of-the-Art Performance: NF-BO consistently outperformed leading LBO methods, including LOL-BO and CoBO. On the PMO benchmark, NF-BO achieved the 1st rank in 5 out of 6 summary metrics. Notably, it improved the average rank of LBO methods using the SELFIES representation from 19th to 1st.
  • Candidate Diversity: TACS was found to generate a significantly higher ratio of distinct molecular candidates compared to uniform sampling. This diversity prevents the optimizer from converging prematurely on local minima, a common failure mode in molecular optimization.

Discussion and Conclusion

The success of NF-BO underscores a critical insight: injectivity is essential for effective LBO. By eliminating the reconstruction error inherent in VAEs, the surrogate model receives cleaner data, allowing for more accurate property prediction and more effective optimization. Furthermore, the autoregressive nature of SeqFlow allows it to capture the long-range dependencies necessary for maintaining chemical validity in string-based representations.

Despite its performance, the authors note that autoregressive models are computationally more intensive than non-autoregressive alternatives, which may impact scalability for extremely long sequences. Additionally, while NF-BO excels with sequence representations, extending this bijective approach to graph-based molecular models remains a promising avenue for future research. Overall, NF-BO represents a significant step forward in making Latent Bayesian Optimization a more reliable and powerful tool for molecular discovery.

Summary updated

BibTeX
@inproceedings{lee2025latent,
  author = {Seunghun Lee and Jinyoung Park and Jaewon Chu and Minseo Yoon and Hyunwoo J. Kim},
  title = {{Latent Bayesian Optimization via Autoregressive Normalizing Flows}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ZCOwwRAaEl},
}
Figure