EquiFlow: Equivariant Conditional Flow Matching with Optimal Transport for 3D Molecular Conformation Prediction

Qingwen Tian, Yuxin Xu, Yixuan Yang, Zhen Wang, Ziqi Liu, Pengju Yan, Xiaolin LiarXiv 2024 · DOI

Abstract

EquiFlow is a novel generative model for 3D molecular conformation prediction that integrates Equivariant Conditional Flow Matching (CFM) with Optimal Transport (OT). By utilizing a modified Equiformer architecture to model atomic coordinates directly, EquiFlow achieves state-of-the-art accuracy and diversity while significantly improving inference speeds compared to traditional diffusion-based models.

Introduction

Predicting the 3D arrangement of atoms in a molecule—its conformation—is a cornerstone of drug discovery and material science. While traditional physics-based simulations like Molecular Dynamics are accurate, they are computationally expensive and slow.

Recent deep learning approaches, particularly Diffusion Models, have shown promise but face two major hurdles:

  1. Efficiency: Diffusion models rely on Stochastic Differential Equations (SDEs), which require many steps during training and inference.
  2. Symmetry: Molecules are equivariant under the E(3) group (translation, rotation, and reflection). A model must respect these symmetries without sacrificing flexibility or scalability. Many existing models either simplify the problem using invariant features or struggle to scale high-degree geometric features effectively.

Methodology

EquiFlow treats conformation generation as a "flow" from a simple noise distribution to the complex distribution of real molecular shapes.

Overview of the EquiFlow architecture, illustrating the flow matching process from noise to 3D molecular graph and the modified Equiformer backbone.

Conditional Flow Matching and Optimal Transport

Unlike diffusion models that learn to "denoise," EquiFlow uses Conditional Flow Matching (CFM) to match a vector field that pushes points along a probability path. This approach is "simulation-free," making training significantly faster. To ensure the path from noise to molecule is as efficient as possible, the authors employ Optimal Transport (OT) with a Root Mean Square Deviation (RMSD) cost function and the Kabsch algorithm. This ensures the mapping accounts for rotational symmetry, finding the "shortest path" in a way that respects molecular geometry.

Modified Equiformer Backbone

The model utilizes a modified Equiformer, a powerful transformer designed for 3D geometric data, adapted with:

  • Time embeddings to capture temporal changes in the flow.
  • Chemical bond types as edge features rather than just raw distances.
  • A prediction head specifically outputting 1-degree features (vectors) for 3D coordinates.

By using OT-CFM, the model learns to move atoms in nearly straight lines, allowing the use of efficient ODE solvers for inference. Additionally, the Equiformer architecture enables the processing of high-degree spherical harmonics to capture complex, multi-body interactions.

Experiments and Results

The model was evaluated on two standard benchmarks: QM9 (for single-conformation accuracy) and GEOM-QM9 (for generating diverse ensembles of shapes).

Quantitative performance comparison of EquiFlow against several high-profile baselines on the GEOM-QM9 dataset.

EquiFlow outperformed several high-profile baselines, including GeoDiff and Torsional Diffusion:

  • Accuracy: On the QM9 test set, it achieved a median RMSD of 0.17Å for single conformations.
  • Diversity and Precision: On GEOM-QM9, it achieved the highest Recall (COV-R of 95.9%) and the best Precision (MAT-P of 0.164Å), indicating it generates both a wide variety of valid shapes and highly accurate ones.
  • Speed: Because it uses an ODE-based flow rather than an SDE-based diffusion process, it offers a more efficient path to inference.

Conclusion

EquiFlow establishes a new state-of-the-art for small molecule conformation prediction by combining the efficiency of flow matching with the geometric rigor of equivariant transformers. While currently focused on small molecules (up to 9 heavy atoms), future work will involve scaling the approach to larger, more complex molecules and incorporating further advancements in CFM theory to optimize training stability and sampling speed.

Summary updated

BibTeX
@misc{tian2024equiflow,
  author = {Qingwen Tian and Yuxin Xu and Yixuan Yang and Zhen Wang and Ziqi Liu and Pengju Yan and Xiaolin Li},
  title = {{EquiFlow: Equivariant Conditional Flow Matching with Optimal Transport for 3D Molecular Conformation Prediction}},
  year = {2024},
  eprint = {2412.11082},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.11082},
}
Figure