Skip to main content
QUICK REVIEW

[Paper Review] Score-Based Generative Models for Molecule Generation

Dwaraknath Gnaneshwar, Bharath Ramsundar|arXiv (Cornell University)|Mar 7, 2022
Machine Learning in Materials ScienceMaterials Science7 citations
TL;DR

This paper proposes a score-based generative model for molecule generation using a Transformer-based score function trained on SELFIES representations of 1.5 million ZINC molecules. The model generates diverse, valid, and novel compounds—achieving 100% validity and novelty—but produces molecules that diverge significantly from the training distribution, indicating potential for architectural improvements in modeling complex chemical spaces.

ABSTRACT

Recent advances in generative models have made exploring design spaces easier for de novo molecule generation. However, popular generative models like GANs and normalizing flows face challenges such as training instabilities due to adversarial training and architectural constraints, respectively. Score-based generative models sidestep these challenges by modelling the gradient of the log probability density using a score function approximation, as opposed to modelling the density function directly, and sampling from it using annealed Langevin Dynamics. We believe that score-based generative models could open up new opportunities in molecule generation due to their architectural flexibility, such as replacing the score function with an SE(3) equivariant model. In this work, we lay the foundations by testing the efficacy of score-based models for molecule generation. We train a Transformer-based score function on Self-Referencing Embedded Strings (SELFIES) representations of 1.5 million samples from the ZINC dataset and use the Moses benchmarking framework to evaluate the generated samples on a suite of metrics.

Motivation & Objective

  • To investigate the feasibility and effectiveness of score-based generative models for de novo molecule generation.
  • To overcome limitations of GANs and normalizing flows—such as training instability and architectural constraints—by leveraging the architectural flexibility of score-based models.
  • To establish foundational best practices for training score-based models on molecular data using SELFIES representations.
  • To evaluate model performance using the MOSES benchmark suite across validity, uniqueness, diversity, and distributional fidelity metrics.
  • To explore the potential of incorporating equivariant architectures (e.g., SE(3)-equivariant models) into score functions for improved molecular generation.

Proposed method

  • Train a Transformer-based score function to estimate the gradient of the log probability density (i.e., the score) of molecular data in the latent space of SELFIES strings.
  • Use denoising score matching with multiple noise levels (σ₁ = 10, σₗ = 0.01, 350 levels) to stabilize training and improve score estimation.
  • Apply annealed Langevin dynamics for sampling: start from random noise and iteratively denoise using the score function across decreasing noise levels.
  • Represent molecules as one-hot encoded SELFIES strings flattened into vectors for input to the score network.
  • Optimize the score function using the objective: ∑ᵢ λ(i)𝔼[‖sθ(x,i) − ∇ₓlog pσᵢ(x)‖²], where λ(i) weights different noise levels.
  • Train on a single V100 GPU for ~12 hours and sample 30k molecules with T=10 time steps in ~4 hours.

Experimental results

Research questions

  • RQ1Can score-based generative models effectively generate chemically valid and diverse molecules when trained on SELFIES-encoded molecular data?
  • RQ2How does the performance of a Transformer-based score function compare to established models (e.g., VAEs, GANs) in standard molecule generation benchmarks?
  • RQ3To what extent do generated molecules match the statistical distribution of the training data (ZINC 1.6M), and what factors may cause distributional divergence?
  • RQ4Can architectural flexibility in score-based models enable future integration of equivariant layers (e.g., SE(3)-equivariant GNNs) for improved 3D molecular generation?
  • RQ5What hyperparameters and training strategies (e.g., noise schedule, model depth) are most effective for score-based molecule generation?

Key findings

  • The model achieved 100% validity and 100% novelty on 30k generated molecules, indicating it produces structurally valid and entirely new compounds.
  • Uniqueness scores were 88% at 1k and 82% at 10k, which are lower than state-of-the-art VAEs but still competitive and suggest potential for improvement via hyperparameter tuning.
  • IntDiv₁ and IntDiv₂ scores of 0.90 and 0.88, respectively, indicate strong chemical diversity and absence of mode collapse in the generated set.
  • FCD/Test and FCD/TestSF scores of 39.84 and 40.92, respectively, show significant distributional divergence from the training data, suggesting generated molecules are not close to the real molecular distribution.
  • The model’s performance highlights a trade-off: high diversity and novelty at the cost of distributional fidelity, indicating a need for improved score function capacity or architectural inductive biases.
  • The results validate the feasibility of using score-based models for molecule generation and open the door for future integration of equivariant architectures to better capture molecular symmetries and improve distributional modeling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.