Score-based 3D molecule generation with neural fields

Matthieu Kirchmeyer, Pedro O. Pinheiro, Saeed Saremi

In the world of drug discovery, generating realistic 3D molecular structures is a high-stakes computational challenge. Traditional models treat molecules as either "point clouds" (collections of atoms in space) or "voxels" (3D pixels). However, a new approach from researchers at Genentech’s Prescient Design, detailed in "Score-based 3D molecule generation with neural fields," suggests we’ve been looking at the problem too discretely.

The authors introduce FuncMol, a generative model that represents 3D molecules as continuous atomic density fields rather than discrete points or grids. By performing score-based sampling in a compact latent space and decoding via neural fields, FuncMol achieves competitive results on drug-like molecules and scales to large macrocyclic peptides with a massive speedup in sampling time.

The Expressivity vs. Scalability Trade-off

Generating 3D molecular conformations is difficult because of a fundamental trade-off between expressivity and scalability:

  1. Point Clouds & GNNs: Most current models use Graph Neural Networks (GNNs) to process atoms as points. While flexible, GNNs often scale quadratically with the number of atoms and can struggle to express complex structural geometries efficiently.
  2. Voxel Grids: These treat 3D space like a grid of pixels, allowing for powerful architectures like 3D CNNs. However, they suffer from "the curse of dimensionality"—memory and computation requirements explode cubically as the volume grows.

The authors argue that molecular electron densities are naturally continuous. By forcing them into discrete points or grids, models lose efficiency. They propose representing a molecule as a continuous function that maps any 3D coordinate to an atomic density.

Methods: Introducing FuncMol

FuncMol leverages Neural Fields (also known as Implicit Neural Representations) to model these continuous densities.

1. The Representation

Instead of storing explicit coordinates, FuncMol learns a Conditional Neural Field. It uses a shared neural network—specifically, a Multiplicative Filter Network (MFN) with Gabor bases—to represent the "template" of molecular physics. Each specific molecule is then defined by a unique, low-dimensional modulation code ($z$).

Conditional Neural Field Architecture

2. The Generative Process: Walk-Jump Sampling (WJS)

To generate new molecules, FuncMol operates entirely in the latent space of these modulation codes rather than in the high-dimensional 3D coordinate space:

  • Walk: It uses Langevin MCMC to "walk" through a Gaussian-smoothed distribution of latent codes. This allows for faster mixing and better exploration of the molecular space.
  • Jump: Once a noisy code is sampled, a learned denoiser performs a "jump" in a single step to estimate the clean, denoised latent code.
FuncMol Generative Process and Walk-Jump Sampling

3. Decoding to Coordinates

To convert the generated field back into traditional atomic coordinates, the model renders the field into a grid, identifies peaks (atom centers), and then uses a continuous refinement step (L-BFGS optimization) to find the exact local maxima of the neural field.

Datasets and Evaluation

The model was evaluated on three key benchmarks:

  • QM9: Small molecules (up to 9 heavy atoms).
  • GEOM-drugs: Standard drug-sized molecules (average 44 heavy atoms).
  • CREMP: A challenging dataset of macrocyclic peptides (average 74 heavy atoms). This dataset is particularly important because its large size and complex rings cause most voxel-based and point-cloud models to fail or become prohibitively slow.

Key Results and Insights

  • Breaking the Scalability Bottleneck: Because the neural field is shared and only the latent code $z$ changes, FuncMol handles large molecules with ease. Training on the massive CREMP dataset took FuncMol 12 minutes per epoch, whereas a voxel-based baseline (VoxMol) took 10 hours.
  • Unprecedented Speed: FuncMol is at least one order of magnitude faster at sampling than state-of-the-art baselines like EDM or VoxMol.
  • Stability: On the GEOM-drugs dataset, FuncMol generated significantly more stable molecules (higher percentage of "stable molecules" and "stable atoms") compared to point-cloud diffusion models.
  • Structured Latent Space: The authors demonstrated that their latent codes are highly organized. Using simple linear regression on frozen codes, they accurately predicted molecular properties like heat capacity and dipole moments, proving the model learns meaningful chemistry without direct supervision.

Limitations and Future Work

While highly scalable, FuncMol has a few limitations. The "auto-decoding" version of the model showed a tendency to memorize the training set (about 33% overlap on GEOM-drugs), though an "auto-encoding" variant mitigates this at the cost of architectural complexity. Additionally, like many 3D generators, FuncMol generates coordinates and atom types but relies on external cheminformatics tools (like OpenBabel or RDKit) to infer final bond connectivity.

Currently, FuncMol focuses on unconditional generation. The next logical step is structure-based design—conditioning the neural field on a protein pocket to generate potential drug candidates directly. By treating molecules as continuous fields rather than discrete dots in a box, FuncMol opens a promising new path for scaling generative AI to the largest and most complex therapeutic targets in biology.

Summary updated

BibTeX
@inproceedings{kirchmeyer2024score,
  author = {Matthieu Kirchmeyer and Pedro O. Pinheiro and Saeed Saremi},
  title = {{Score-based 3D molecule generation with neural fields}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=9lGJrkqJUw},
}
Figure