3D Equivariant Molecular Graph Pretraining

Rui Jiao, Jiaqi Han, Wenbing Huang, Yu Rong, Yang Liu · DOI

Abstract

This paper introduces 3D-EMGP, a self-supervised pretraining framework designed specifically for 3D molecular geometry. By integrating an equivariant energy-based backbone with a novel "Riemann-Gaussian" denoising task, the model learns to respect physical symmetries (rotation and translation) while capturing the complex energy landscapes of molecules. 3D-EMGP significantly outperforms existing 2D and 3D pretraining methods on downstream tasks like molecular dynamics and property prediction.

Introduction

Most molecular machine learning models rely on 2D graphs (atoms and bonds), but a molecule’s real-world behavior is dictated by its 3D "conformation"—the specific spatial arrangement of its atoms. While massive amounts of unlabeled 3D molecular data exist, effective pretraining methods have remained elusive due to two primary challenges:

  1. Symmetry Constraints: Physical properties must be invariant to rotation or translation, and forces must be equivariant. Standard pretraining losses, such as Mean Squared Error on coordinates, often violate these fundamental physical rules.
  2. The Task Gap: Existing pretraining tasks often focus on 2D features (like masking atom types), failing to teach models about the 3D energy surfaces that govern molecular dynamics.

Methodology

The researchers propose the Energy-Motivated Equivariant Pretraining (3D-EMGP) framework, which utilizes an E(3)-equivariant Graph Neural Network (EGNN) backbone to ensure physical consistency.

The 3D-EMGP framework consists of an equivariant pretraining phase involving node-level force prediction and graph-level noise-scale prediction, followed by downstream finetuning.

Equivariant Force Prediction (EFP)

Since force is the negative gradient of energy, 3D-EMGP is trained to predict the "virtual force" required to move a noisy, perturbed molecule back to its stable state. To maintain symmetry, the authors introduce a Riemann-Gaussian distribution for the noise. This ensures the denoising objective is "doubly E(3)-invariant," meaning the loss remains unchanged regardless of the molecule's orientation or the noise's rotation.

Invariant Noise-scale Prediction (INP)

To capture global structural patterns, the model also learns to identify the magnitude of noise added to a molecule. This auxiliary task helps the model distinguish between stable conformations and highly distorted structures.

Key Insights and Results

A core contribution of 3D-EMGP is its ability to learn smooth, physically meaningful energy landscapes. While 2D-pretrained models often produce "rugged" or "flat" landscapes that fail to identify stable states, 3D-EMGP learns a smooth, conical surface where stable molecular states correctly reside at local energy minima.

Visualization of learned energy surfaces: 3D-EMGP (Ours) recovers a smooth, conical landscape compared to the rugged or inaccurate surfaces produced by other pretraining methods.

Performance Benchmarks

The model was pretrained on GEOM-QM9 (100,000 conformations) and evaluated on MD17 (molecular dynamics) and QM9 (property prediction):

  • State-of-the-Art Force Prediction: On the MD17 dataset, 3D-EMGP achieved an average Mean Absolute Error (MAE) of 0.0968, a significant improvement over the non-pretrained base model (0.2086) and the previous best competitor, GraphCL (0.1247).
  • Backbone Agnostic: The pretraining tasks provided consistent performance boosts when applied to various 3D architectures, including SchNet and TorchMD-ET, demonstrating the generalizability of the approach.

Conclusion and Future Work

3D-EMGP represents a significant step forward in 3D molecular representation learning by grounding self-supervised tasks in physical energy principles. While the model showed slight "negative transfer" on specific electronic properties (like $R^2$ in QM9), its overall success in capturing energy landscapes is evident. Future work will focus on scaling this approach to millions of molecules and refining tasks to better capture electronic distributions.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MD17 · energy prediction; average across the eight listed molec3D-EMGPMAE0.0876-0.01 vs baselineaggregation=average across eight molecules
Source quote
L489: 3D-EMGP │ 0.1118 │ 0.0671 │ 0.0484 │ 0.0693 │ 0.1107 │ 0.1058 │ 0.0874 │ 0.1001 │ 0.0876
QM9 · α property prediction3D-EMGPMAE0.057-0.01 vs baselineproperty=alpha · pretraining-data=original dataset
Source quote
L610: 3D-EMGP │ 0.057 │ 37.1 │ 21.3 │ 18.2 │ 0.020 │ 0.026 │ 9.3 │ 8.7 │ 0.092 │ 8.6 │ 8.6 │ 1.38
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
MD17 · energy prediction; average across the eight listed molecPosPred baselineMAE0.0945backbone=same as Base · aggregation=average across eight molecules
Source quote
L488: PosPred │ 0.1470 │ 0.0677 │ 0.0497 │ 0.0748 │ 0.1101 │ 0.1161 │ 0.0902 │ 0.1007 │ 0.0945
QM9 · α property predictionBase baselineMAE0.070property=alpha · pretraining-data=original and noisy datasets
Source quote
L609: Base │ 0.070 │ 49.9 │ 28.0 │ 24.3 │ 0.031 │ 0.031 │ 10.1 │ 10.9 │ 0.067 │ 9.7 │ 9.3 │ 1.51
BibTeX
@inproceedings{jiao2023d,
  author = {Rui Jiao and Jiaqi Han and Wenbing Huang and Yu Rong and Yang Liu},
  title = {{3D Equivariant Molecular Graph Pretraining}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.25978},
}
Figure