Predicting equilibrium distributions for molecular systems with deep learning

Shuxin Zheng, Jiyan He, Chang Liu, Yu Shi, Ziheng Lu, Weitao Feng, Fusong Ju, Jiaxi Wang, Jianwei Zhu, Yaosen Min, He Zhang, Shidi Tang, Hongxia Hao, Peiran Jin, Chi Chen, Frank Noé, Haiguang Liu, Tie-Yan Liu

TL;DR

Predicting the full equilibrium distribution of molecular structures is crucial for understanding their behavior but is computationally prohibitive with traditional methods. This paper introduces Distributional Graphormer (DiG), a deep learning framework that efficiently learns these distributions, enabling faster sampling of diverse conformations and opening new avenues for molecular design.

What Problem Does This Paper Address?

Many important molecular properties and functions arise not from a single static structure, but from the collective behavior of a molecule exploring a range of conformations – its equilibrium distribution. Traditional methods like molecular dynamics (MD) simulations are the gold standard for capturing this, but they are incredibly computationally expensive, often taking months or years to adequately sample complex systems. This makes it difficult to study rare events, explore diverse states, or perform large-scale screening and design. Existing deep learning methods have excelled at predicting a likely structure, but not the distribution of all possible structures. This paper aims to bridge that gap by developing a deep learning approach that can efficiently learn and sample these equilibrium distributions.

Methods

The core of DiG is inspired by simulated annealing and diffusion models. It uses a deep neural network, specifically a Graphormer architecture, to learn a process that gradually transforms a simple, easy-to-sample distribution (like a Gaussian) into the complex target equilibrium distribution of a molecular system. This is achieved by learning to reverse a diffusion process.

Key methodological aspects include:

  • Diffusion Process: A forward diffusion process gradually adds noise to a molecular structure distribution until it reaches a simple, known distribution.
  • Reverse Process (Generation): DiG learns to reverse this diffusion process, starting from the simple distribution and gradually denoising it to generate samples from the target equilibrium distribution. This reverse process is guided by a learned "score model."
  • Physics-Informed Diffusion Pre-training (PIDP): To address data scarcity, DiG can be pre-trained using energy functions (force fields) of molecular systems, even without full equilibrium data. This helps the model learn physically plausible structures.
  • Data-Based Training: DiG can also be trained directly on simulation data or experimental structures to refine its understanding of the equilibrium distribution.
  • Graphormer Backbone: The Graphormer architecture is used for its ability to effectively model graph-structured data, which is natural for molecular systems.

Datasets

The paper utilizes several datasets for training and evaluation:

  • Protein Data Bank (PDB): Experimental structures used for initial model training and as references.
  • MD Simulation Data:
    • SARS-CoV-2 proteins (RBD, main protease): Extensive millisecond-timescale MD simulations used as a proxy for equilibrium distributions.
  • Protein-ligand complexes (PDBbind, GPCRmd): Simulation data used for training ligand structure sampling models.
  • Catalyst-adsorbate systems (Open Catalyst Project - OC20): MD trajectories used for training catalyst-adsorbate sampling.
  • Carbon Polymorphs: Structures generated via ab initio random structure search (RSS) at the DFT level, used for property-guided structure generation.

Key Insights and Ideas

  • Equilibrium Distribution is Key: The paper strongly emphasizes that many molecular phenomena depend on the distribution of structures, not just the single most probable one. This shifts the focus from static prediction to dynamic sampling.
  • Diffusion Models for Molecular Sampling: Applying diffusion models, traditionally successful in image generation, to molecular structure sampling is a powerful idea. The learned reverse diffusion process effectively acts as a sophisticated sampler.
  • Physics-Informed Pre-training is Crucial: The PIDP method is a significant innovation, allowing models to learn physically meaningful structures even when full equilibrium data is unavailable, by leveraging energy functions.
  • Generalization Across Systems: DiG demonstrates impressive generalization capabilities, working across diverse molecular systems (proteins, ligands, catalysts, materials) with minimal architectural changes.
  • Inverse Design Potential: The ability to condition generation on desired properties (like band gaps) opens doors for designing novel molecules and materials with specific characteristics.

Key Results

  • Speedup: DiG achieves orders of magnitude speedup compared to traditional MD simulations for sampling equilibrium distributions. For example, generating 50k structures for a protein takes days on a GPU, compared to potentially years for MD.
  • Conformation Sampling: DiG successfully generates diverse and functionally relevant protein conformations, matching distributions explored by extensive MD simulations. For RBD protein, DiG sampled about 70% of conformations explored by millisecond-scale MD with just 10,000 generated structures.
  • Ligand Structure Sampling: DiG predicts ligand binding poses with good accuracy, achieving an average RMSD of 1.74 Å for conformational differences and at least one correct structure out of 50 generated poses within 2.0 Å RMSD of experimental data for nearly all 409 tested systems.
  • Catalyst-Adsorbate Sampling: DiG accurately predicts adsorption sites and configurations, finding all stable sites identified by DFT grid-search with RMSD values of 0.5-0.8 Å. It also achieves 81% site coverage for single-atom adsorbates.
  • Property-Guided Structure Generation: DiG can generate carbon polymorphs with desired band gaps, producing graphite-like structures for 0 eV and diamond-like structures for 4 eV band gaps.

Limitations and Future Work

  • Data Scarcity: The primary limitation is the lack of sufficient high-quality ground truth data for equilibrium distributions. This necessitates reliance on indirect metrics and can affect model generalization.
  • Data Quality: MD simulation data, while useful, can be too short to fully capture equilibrium dynamics or may contain inaccuracies. Experimental data, while abundant, might not fully represent equilibrium distributions and can lead to concentrated learned distributions.
  • Energy Function Limitations: Converting full-atom energy functions to coarse-grained representations for PIDP is an approximation and can lead to challenges in optimization.
  • Model Architecture: The current implementation uses fixed pre-trained components (like Evoformer) and a relatively small Graphormer model, which may limit its capacity to capture highly complex energy landscapes. Fine-tuning these components or using more advanced architectures could improve performance.
  • Computational Cost: While significantly faster than MD, training and inference can still be computationally intensive, especially for large systems.
  • Future Work: The authors suggest improving model architecture, fine-tuning pre-trained components, and leveraging more advanced inference techniques (like analytic ODE solutions) to further accelerate sampling and improve accuracy. They also highlight the need for more and better equilibrium distribution data.

Summary updated

BibTeX
@inproceedings{zheng2024predicting,
  author = {Shuxin Zheng and Jiyan He and Chang Liu and Yu Shi and Ziheng Lu and Weitao Feng and Fusong Ju and Jiaxi Wang and Jianwei Zhu and Yaosen Min and He Zhang and Shidi Tang and Hongxia Hao and Peiran Jin and Chi Chen and Frank Noé and Haiguang Liu and Tie-Yan Liu},
  title = {{Predicting equilibrium distributions for molecular systems with deep learning}},
  booktitle = {Nat. Mac. Intell},
  year = {2024},
  url = {https://openreview.net/forum?id=IGx8ia3Yin},
}
Figure