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

Ewa M. Nowara, Pedro O. Pinheiro, Sai Pooja Mahajan, Omar Mahmood, Andrew Martin Watkins, Saeed Saremi, Michael Maser · DOI

Introduction

In modern drug discovery, optimizing a "seed" molecule—a compound with initial biological activity—is a critical step. Researchers aim to explore the "chemical neighborhood" of this seed by generating vast virtual libraries of similar variants. While 3D generative models, which represent molecules as voxel grids, have shown promise in creating realistic structures, they face significant hurdles. High-resolution 3D sampling is computationally prohibitive, and these models often struggle to generalize, frequently reverting to training set distributions rather than respecting the unique scaffold of a novel seed.

Methodology: The NEBULA Framework

To address these challenges, we present NEBULA (Neural Empirical Bayes Under LAtent Representations). NEBULA shifts the generative process from high-dimensional voxel space into a compact, learned latent manifold.

NEBULA Architecture: The model utilizes a VQ-VAE to compress 3D molecular voxels into a latent representation, where Walk-Jump Sampling (WJS) is applied for efficient generation.

The framework consists of three primary components:

  1. Compression via VQ-VAE: A Vector-Quantized Variational Autoencoder compresses 3D molecular voxels, reducing the data footprint by approximately 4x. Notably, the authors intentionally omitted skip connections in the VQ-VAE architecture. This forces the model to learn robust, high-level chemical features rather than memorizing local geometric details, significantly improving generalization to unseen structures.
  2. Neural Empirical Bayes (NEB): Instead of iterative diffusion, NEBULA employs Walk-Jump Sampling (WJS). The "Walk" phase uses Langevin MCMC to explore the noisy latent distribution, while the "Jump" phase uses a single denoising step (via a 3D U-Net) to project the noisy point back onto the manifold of valid molecular structures.
  3. Reconstruction: The denoised latent is passed through the VQ-VAE decoder to produce reconstructed voxels, from which atomic coordinates are extracted.

Experimental Evaluation

NEBULA was trained on the GEOM-drugs dataset (~1.4 million molecules) and evaluated for its ability to generalize using the PubChem Quantum (PCQM) dataset. Furthermore, the model's real-world utility was tested against complex cancer drugs released as recently as early 2024, such as NX-1607 and BLU-222.

Results and Discussion

NEBULA demonstrates a significant leap in both efficiency and chemical fidelity compared to voxel-based baselines like VoxMol.

Quantitative Performance: NEBULA shows superior scalability (bottom) and maintains higher Tanimoto similarity to seed molecules in cross-dataset evaluations (middle) compared to the VoxMol baseline.

Efficiency and Scalability

By operating in latent space, NEBULA achieves a 6x to 10x speedup over previous state-of-the-art methods. Generation times range from 0.21s to 0.52s per molecule, whereas baseline models require over 3 seconds at comparable sampling depths. This efficiency is crucial for the practical generation of million-scale virtual libraries.

Generalization and Scaffold Retention

A key finding is NEBULA's superior "scaffold retention." In cross-dataset tests (training on GEOM, testing on PCQM), traditional models quickly lose the seed's identity, drifting toward the training distribution. NEBULA maintains a Tanimoto similarity of ~35% to the seed, whereas baselines drop to ~10% almost immediately. This suggests that NEBULA learns fundamental chemical rules rather than just replicating training examples.

Stability and Limitations

The model consistently produces stable, unique, and valid (SUV) molecules. However, some limitations remain. Like many 3D models, NEBULA occasionally struggles with precise hydrogen placement, necessitating a post-processing "sanitization" step with RDKit. Additionally, at extremely high sampling steps, bond angle distributions can begin to diverge from physical norms, indicating a trade-off between exploration and geometric precision.

Conclusion

NEBULA represents a significant advancement in controllable molecular design. By leveraging latent space Neural Empirical Bayes, it provides a fast, generalizable, and robust tool for medicinal chemists to explore chemical space and optimize novel drug candidates. Future work will focus on improving geometric robustness to allow for even deeper exploration of the chemical landscape.

Summary updated

BibTeX
@inproceedings{nowara2024nebula,
  author = {Ewa M. Nowara and Pedro O. Pinheiro and Sai Pooja Mahajan and Omar Mahmood and Andrew Martin Watkins and Saeed Saremi and Michael Maser},
  title = {{NEBULA: Neural Empirical Bayes Under Latent Representations for Efficient and Controllable Design of Molecular Libraries}},
  booktitle = {AI4Science @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=a1l5zbSgE0},
}
Figure