NEBULA: Neural Empirical Bayes Under Latent Representations for Efficient and Controllable Design of Molecular Libraries

TL;DR

NEBULA combines VQ-VAE and neural empirical Bayes for rapid, scalable 3D molecular library generation with strong generalization.

cs.LG 🔴 Advanced 2024-07-04 44 views
Ewa M. Nowara Pedro O. Pinheiro Sai Pooja Mahajan Omar Mahmood Andrew Martin Watkins Saeed Saremi Michael Maser
molecular generation deep learning 3D models drug discovery Bayesian sampling

Key Findings

Methodology

NEBULA integrates vector-quantized variational autoencoders (VQ-VAE) with neural empirical Bayes (NEB) sampling in the latent space. Molecules represented as 3D voxel grids are encoded into low-dimensional latent vectors. A denoising autoencoder (DAE) is trained to add and remove noise in the latent space, improving robustness. During sampling, Walk-Jump Sampling (WJS), based on Langevin dynamics, efficiently explores the latent space by performing a single denoising step, avoiding expensive high-dimensional voxel operations. Generated latent vectors are decoded back into 3D voxel structures, from which molecules are extracted via peak detection. Experiments on GEOM-drugs and PCQM datasets demonstrate that NEBULA achieves a tenfold speedup over SOTA models like VoxMol, while maintaining high validity (>99%) and structural similarity (>85%). The approach also exhibits superior generalization to unseen chemical spaces, including recently disclosed drugs.

Key Results

  • On GEOM, NEBULA accelerates molecule generation by a factor of 10 compared to VoxMol, with validity rates above 99% and average Tanimoto similarity exceeding 85%. Cross-dataset tests on PCQM show that NEBULA maintains higher structural fidelity (similarity ~77%) and atom/bond distributions closer to the seed molecules, outperforming baseline models. When generating molecules around new drugs released in 2024, NEBULA preserves scaffold structures and introduces functional modifications consistent with medicinal chemistry practices, demonstrating robust generalization.
  • Across multiple WJS steps, NEBULA consistently produces molecules with high stability and valency correctness, with minimal computational cost even at higher noise levels. The latent compression reduces per-molecule data from 2 million points to approximately 500,000, enabling rapid large-scale library creation. Ablation studies confirm that removing skip connections in the VQ-VAE enhances cross-chemical space robustness, while WJS sampling ensures diversity and efficiency.
  • Overall, NEBULA's combination of low-dimensional latent encoding, efficient single-step sampling, and robust decoding significantly advances the scalability and applicability of 3D molecular generative models, making it a promising tool for accelerating drug discovery pipelines.

Significance

This work addresses a critical bottleneck in computational drug discovery: the need for rapid, high-quality generation of large, diverse molecular libraries. By leveraging latent space sampling with NEB, the authors dramatically reduce computational costs while improving generalization to unseen chemical spaces. This enables researchers to explore broader chemical diversity, including novel drug-like molecules, with minimal resource expenditure. The approach bridges the gap between high-fidelity 3D molecular modeling and scalable library generation, opening new avenues for in silico drug design, virtual screening, and molecular optimization. Its ability to produce valid, stable molecules efficiently positions NEBULA as a transformative tool in machine learning-driven medicinal chemistry.

Technical Contribution

NEBULA introduces a novel framework combining VQ-VAE-based compression with neural empirical Bayes sampling in the latent space, enabling efficient and controllable 3D molecule generation. The key technical innovation is the application of WJS, a single-step Langevin-based sampling method, which significantly reduces computational complexity compared to iterative diffusion models. The model architecture employs a 3D U-Net for denoising latent vectors, trained with a carefully designed loss function that balances reconstruction fidelity and codebook learning. The integration of these components results in a scalable, high-quality generative pipeline capable of handling large molecular libraries with diverse structures. The approach also enhances generalization by removing skip connections that tend to overfit specific geometric features, thus promoting robustness across chemical spaces.

Novelty

This study is the first to develop a latent 3D voxel-based generative model for molecules, combining VQ-VAE encoding with NEB sampling. Unlike previous models limited to 2D or fixed atom counts, NEBULA operates directly in the 3D voxel space with flexible molecule sizes, enabling rapid, large-scale library generation. Its innovative use of WJS for single-step sampling in the latent space sets it apart from traditional diffusion or autoregressive models, offering a substantial efficiency boost. The method's ability to generalize to unseen chemical spaces, including recently disclosed drugs, marks a significant advancement in 3D molecular generative modeling, addressing longstanding challenges of scalability and diversity.

Limitations

  • Despite its efficiency, NEBULA's performance may decline with extremely large or complex molecules due to limitations in latent representation capacity. Handling rare chemical elements or unusual bonding patterns remains challenging, potentially affecting validity.
  • The WJS sampling process, while fast, still incurs computational costs at very high noise levels or when generating ultra-large libraries, necessitating further optimization. Additionally, the current model relies on voxel discretization, which may limit resolution and detail fidelity.
  • The model's chemical validity depends on post-processing steps like hydrogen addition and sanitization, indicating room for integrated chemical knowledge to improve end-to-end validity. Future work should focus on incorporating chemical rules directly into the generative process.

Future Work

未来将结合强化学习和目标导向的优化策略,提升生成分子的药理性质和合成可行性。探索多模态信息融合,将结构信息与性质预测结合,增强模型的实用性。还计划扩展多尺度表达能力,支持更复杂的化学反应和合成路径模拟,实现从分子设计到合成的全流程智能化。进一步优化采样算法,降低计算成本,提升模型在超大规模库中的表现。

AI Executive Summary

Deep Dive

Plain Language Accessible to non-experts

想象你在一家超级大的玩具工厂里,工厂里有成千上万的不同玩具模型。以前,你需要花费很多时间和材料,逐个设计每个玩具。而现在,有一个聪明的机器人助手,它可以学习玩具的基本结构,然后用很少的材料,快速复制出许多相似的玩具。这个机器人还可以根据你的指示,创造出一些全新的玩具样式。它的秘密武器是一个神奇的“压缩箱”,可以把复杂的玩具拆成简单的模型,然后用这个模型快速拼出新玩具。这样,你就可以在很短的时间内,得到很多新玩具,帮助你找到最喜欢的那一个。这个机器人就像论文里的NEBULA,用数学和算法帮你快速创造出各种新分子,推动药物研发的未来。

ELI14 Explained like you're 14

想象你在玩一个超级复杂的拼图游戏,拼图上有很多不同的形状和颜色。以前,要拼出一个漂亮的拼图,你得花很多时间,把每一块都拼对。而现在,有一个聪明的朋友,他能记住拼图的基本样子,然后用很快的方法帮你拼出很多类似的拼图。这个朋友用了一种特别的技巧,把拼图拆成简单的模型,然后再用这个模型快速拼出新拼图。它还能根据你的提示,创造出一些全新的拼图样式。这个朋友就像论文里的NEBULA,用数学和算法帮你快速创造出各种新分子,帮助科学家找到新药。是不是很酷?

Abstract

We present NEBULA, the first latent 3D generative model for scalable generation of large molecular libraries around a seed compound of interest. Such libraries are crucial for scientific discovery, but it remains challenging to generate large numbers of high quality samples efficiently. 3D-voxel-based methods have recently shown great promise for generating high quality samples de novo from random noise (Pinheiro et al., 2023). However, sampling in 3D-voxel space is computationally expensive and use in library generation is prohibitively slow. Here, we instead perform neural empirical Bayes sampling (Saremi & Hyvarinen, 2019) in the learned latent space of a vector-quantized variational autoencoder. NEBULA generates large molecular libraries nearly an order of magnitude faster than existing methods without sacrificing sample quality. Moreover, NEBULA generalizes better to unseen drug-like molecules, as demonstrated on two public datasets and multiple recently released drugs. We expect the approach herein to be highly enabling for machine learning-based drug discovery. The code is available at https://github.com/prescient-design/nebula

cs.LG q-bio.BM