Direct Molecular Conformation Generation

Jinhua Zhu, Yingce Xia, Chang Liu, Lijun Wu, Shufang Xie, Yusong Wang, Tong Wang, Tao Qin, Wengang Zhou, Houqiang Li, Haiguang Liu, Tie-Yan Liu

TL;DR

Direct Molecular Conformation Generation (DMCG) bypasses traditional intermediate steps—such as predicting interatomic distance matrices—to directly generate 3D atomic coordinates from 2D molecular graphs. By introducing a novel loss function invariant to both rigid roto-translations and symmetric atom permutations, combined with an iterative block-refinement architecture, DMCG achieves state-of-the-art accuracy while speeding up conformation generation by over 200x compared to popular physics- or diffusion-based alternatives.

What Problem Does This Paper Address?

Predicting the stable 3D structure (conformation) of a molecule from its 2D chemical graph is a foundational task in computer-aided drug discovery, molecular docking, and property prediction.

Traditional machine learning approaches typically solve this using a two-step pipeline: they first predict intermediate geometric values (such as pairwise distances, distance gradients, or torsion angles) and then run a secondary optimization algorithm to reconstruct the 3D coordinates. However, these intermediate predictions often violate fundamental physical laws; for instance, predicted distances frequently break the triangle inequality.

Bypassing these intermediates to predict coordinates directly is a cleaner strategy, but it introduces severe geometric challenges. A valid model must respect roto-translation invariance (rotating or translating a molecule in space shouldn't alter its calculated loss) and permutation invariance (swapping the indices of symmetric atoms must yield the same loss).

Methods

The authors introduce DMCG, a framework based on a Conditional Variational Autoencoder (CVAE) that directly maps a 2D molecular graph to 3D atomic coordinates while capturing the diverse, one-to-many nature of molecular states.

The core innovations include:

  • Invariance via the Loss Function: Instead of restricting the neural network to strictly equivariant architectures (which can limit model capacity), DMCG enforces geometric constraints directly within the loss function ($\ell_{RTP}$). It calculates the minimum possible distance between predicted and ground-truth coordinates across all valid rigid roto-translations (solved efficiently using quaternions) and all valid permutations of symmetric atoms (solved using graph isomorphism algorithms via the graph_tool library).
  • Iterative Refinement Architecture: The model stacks multiple identical blocks. Each block takes the coordinate estimates from the previous block and updates bond, atom, and global representations using GATv2 and Graph Network (GN) layers. At the end of each block, a normalization layer centers the coordinates at the origin to maintain numerical stability.
Figure 2: The workflow of our method. Green and orange lines represent how to obtain ˆR(z, G) and q(z|R, G) respectively. Solid lines and dashed lines represent the model components and outputs respectively.

Datasets

The model was validated on two standard benchmarks across both small-scale (200K pairs) and large-scale settings:

  • GEOM-QM9: Contains smaller molecules with fewer heavy atoms (averaging 8.8 atoms per molecule). The large-scale split features 1.37M training pairs.
  • GEOM-Drugs: Features larger, highly flexible drug-like molecules (averaging 24.9 heavy atoms per molecule). The large-scale split contains 2.0M training pairs.

Key Insights and Ideas

  • Decoupling Invariance from Network Architecture: Most recent state-of-the-art methods rely on strictly equivariant neural networks (like diffusion models). DMCG proves that shifting the invariance constraint to the loss function allows researchers to leverage standard, highly expressive non-equivariant networks (like GATv2), leading to superior representation learning.
  • The Crucial Role of Symmetry: Accounting for molecular symmetry (permutation invariance) prevents the model from getting trapped in poor local optima. As shown in the paper's ablation studies, ignoring symmetry causes the model to fail when resolving terminal rotatable rings, often flattening them into straight lines.
  • Iterative Over Single-Shot: Directly predicting coordinates in a single forward step is too complex. Progressively updating coordinates across stacked blocks mimics a physical optimization process, significantly boosting accuracy.
Figure 3: Network architecture of the l-th block.

Key Results

  • State-of-the-Art Accuracy: DMCG outperforms strong baselines (including GeoDiff, ConfGF, and GeoMol). On the challenging large-scale GEOM-Drugs dataset, it achieves a mean coverage score (COV) of 96.22% and drops the mean matching score (MAT) to 0.6967 Å.
  • 200x+ Decoding Speedup: Unlike diffusion or Langevin dynamics models that require thousands of sequential steps to generate a single conformation, DMCG samples directly in a single forward pass. It decoded the entire Drugs test set in 54.89 seconds, compared to 11,830.42 seconds required by ConfGF.
  • Downstream Utility: Conformations generated by DMCG serve as superior initial structures for molecular docking (using Smina), yielding lower (better) docking energy scores and structures closer to native crystal complexes.

Limitations and Future Work

  • Scalability to Macromolecules: Finding all symmetric atom permutations relies on solving a graph isomorphism problem. While highly efficient for small-to-medium drug-like molecules, the number of permutations explodes combinatorially for massive macromolecules or long-chain proteins, making the loss function computationally expensive.
  • Incorporating Explicit Chemical Rules: The current model learns physics implicitly from data. The authors note that explicitly integrating hard chemical rules (like fixed bond lengths or angles) could further improve generation quality.

Summary updated

Abstract

Molecular conformation generation aims to generate three-dimensional coordinates of all the atoms in a molecule and is an important task in bioinformatics and pharmacology. Previous methods usually first predict the interatomic distances, the gradients of interatomic distances or the local structures (e.g., torsion angles) of a molecule, and then reconstruct its 3D conformation. How to directly generate the conformation without the above intermediate values is not fully explored. In this work, we propose a method that directly predicts the coordinates of atoms: (1) the loss function is invariant to roto-translation of coordinates and permutation of symmetric atoms; (2) the newly proposed model adaptively aggregates the bond and atom information and iteratively refines the coordinates of the generated conformation. Our method achieves the best results on GEOM-QM9 and GEOM-Drugs datasets. Further analysis shows that our generated conformations have closer properties (e.g., HOMO-LUMO gap) with the groundtruth conformations. In addition, our method improves molecular docking by providing better initial conformations. All the results demonstrate the effectiveness of our method and the great potential of the direct approach. The code is released at https://github.com/DirectMolecularConfGen/DMCG
BibTeX
@inproceedings{zhu2022direct,
  author = {Jinhua Zhu and Yingce Xia and Chang Liu and Lijun Wu and Shufang Xie and Yusong Wang and Tong Wang and Tao Qin and Wengang Zhou and Houqiang Li and Haiguang Liu and Tie-Yan Liu},
  title = {{Direct Molecular Conformation Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=kcrIligNnl},
}
Figure