Molecular geometry prediction using a deep generative graph neural network

Elman Mansimov, Omar Mahmood, Seokho Kang, Kyunghyun Cho · DOI

Abstract

A molecule's geometry, also known as conformation, is one of a molecule's most important properties, determining the reactions it participates in, the bonds it forms, and the interactions it has with other molecules. Conventional conformation generation methods minimize hand-designed molecular force field energy functions that are often not well correlated with the true energy function of a molecule observed in nature. They generate geometrically diverse sets of conformations, some of which are very similar to the lowest-energy conformations and others of which are very different. In this paper, we propose a conditional deep generative graph neural network that learns an energy function by directly learning to generate molecular conformations that are energetically favorable and more likely to be observed experimentally in data-driven manner. On three large-scale datasets containing small molecules, we show that our method generates a set of conformations that on average is far more likely to be close to the corresponding reference conformations than are those obtained from conventional force field methods. Our method maintains geometrical diversity by generating conformations that are not too similar to each other, and is also computationally faster. We also show that our method can be used to provide initial coordinates for conventional force field methods. On one of the evaluated datasets we show that this combination allows us to combine the best of both methods, yielding generated conformations that are on average close to reference conformations with some very similar to reference conformations.

Introduction

In drug discovery and materials science, a molecule's 3D shape—its conformation—is critical, as it determines how a drug binds to a protein or how a chemical reacts. Traditionally, scientists use "force fields" (mathematical models of atomic forces like UFF or MMFF) to find the lowest-energy shapes. However, these traditional methods suffer from two major flaws: inaccuracy due to crude approximations of real-world physics, and inefficiency stemming from iterative optimization that is computationally expensive and often requires many random restarts.

This research introduces a data-driven alternative: a deep learning model that learns what "stable" looks like directly from databases of known molecular structures, treating the log-likelihood of the training data as the energy function.

Methods

The authors propose a Conditional Variational Graph Autoencoder (CVGAE) built on a Message Passing Neural Network (MPNN) architecture.

  • Graph Representation: The molecule is treated as a graph where atoms are nodes and bonds are edges. The MPNN captures local chemical environments by allowing information to flow between neighboring atoms.
  • Generative Logic: The model learns to map 3D conformations into a latent space ($Z$) and reconstruct them. At inference, providing a 2D graph allows the model to sample from the latent space to generate multiple plausible 3D shapes.
  • Rotation & Translation Invariance: To ensure the molecule is recognized regardless of its orientation in space, the authors use a Post-Alignment Likelihood, aligning predicted shapes to reference shapes before calculating the Root Mean Square Deviation (RMSD) loss.
  • Hybrid Approach: A "CVGAE + MMFF" mode was also developed, where the neural network provides a "warm start" (initial coordinates) that is subsequently refined by a traditional force field.

Datasets

The model was evaluated on three large-scale datasets, ranging from simple to complex:

  1. QM9: ~133k small molecules (up to 9 heavy atoms) optimized via high-accuracy Quantum Mechanics (DFT).
  2. COD (Crystallography Open Database): ~66k organic molecules (up to 50 heavy atoms) from experimental and theoretical sources.
  3. CSD (Cambridge Structural Database): ~237k organic and metal-organic structures (up to 50 heavy atoms) determined via X-ray crystallography.
Dataset characteristics across QM9, COD, and CSD.

Key Results and Insights

  • Reliability and Speed: The CVGAE achieved a 100% success rate in generating conformations across all test sets, whereas traditional methods often fail for molecules with unsupported elements. On the COD dataset, CVGAE was nearly 10 times faster than the ETKDG + UFF baseline.
  • Accuracy: On the QM9 dataset, the CVGAE achieved a median RMSD of 0.390 Å, outperforming the UFF baseline (0.425 Å). The hybrid CVGAE + MMFF approach yielded the best results overall by combining accurate initial guesses with local refinement.
  • The "Squashing" Phenomenon: For larger molecules (COD/CSD), the model occasionally produced flattened shapes. This occurs because the mean squared error loss heavily penalizes outliers, leading the network to "play it safe" by placing atoms along a central non-linear dimension.

Limitations and Future Work

While the model scales linearly and is significantly faster for large molecules, it occasionally struggles with fine structural details like protruding bonds in very complex structures. Future directions include increasing model capacity with more message-passing steps and exploring "joint training," where force-field minimization is integrated directly into the neural network's loss function. Additionally, the current model does not yet account for environmental factors like temperature or solvent effects.

Summary updated

BibTeX
@misc{mansimov2019molecular,
  author = {Elman Mansimov and Omar Mahmood and Seokho Kang and Kyunghyun Cho},
  title = {{Molecular geometry prediction using a deep generative graph neural network}},
  year = {2019},
  eprint = {1904.00314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.00314},
}
Figure