Pre-training Molecular Graph Representation with 3D Geometry

Shengchao Liu, Hanchen Wang, Weiyang Liu, Joan Lasenby, Hongyu Guo, Jian Tang

Abstract

Molecular graph representation learning is a fundamental problem in modern drug and material discovery. Molecular graphs are typically modeled by their 2D topological structures, but it has been recently discovered that 3D geometric information plays a more vital role in predicting molecular functionalities. However, the lack of 3D information in real-world scenarios has significantly impeded the learning of geometric graph representation. To cope with this challenge, we propose the Graph Multi-View Pre-training (GraphMVP) framework where self-supervised learning (SSL) is performed by leveraging the correspondence and consistency between 2D topological structures and 3D geometric views. GraphMVP effectively learns a 2D molecular graph encoder that is enhanced by richer and more discriminative 3D geometry. We further provide theoretical insights to justify the effectiveness of GraphMVP. Finally, comprehensive experiments show that GraphMVP can consistently outperform existing graph SSL methods.

Introduction

In drug discovery, representing a molecule as a vector (an embedding) is the first step toward predicting its properties. Most current models treat molecules as 2D graphs, where atoms are nodes and bonds are edges. While 2D representations are computationally efficient, they ignore the 3D spatial arrangement—the "conformer"—which dictates how a drug interacts with biological targets.

Obtaining 3D structures is expensive, requiring lab experiments or high-fidelity simulations. Consequently, most real-world datasets only provide 2D information. GraphMVP (Graph Multi-View Pre-training) addresses this by supercharging 2D molecular graph encoders during pre-training. By teaching the model about 3D geometry when it is available, the model learns implicit geometric priors that allow it to outperform state-of-the-art methods on downstream tasks, even when 3D information is completely unavailable during testing.

The GraphMVP Framework

GraphMVP utilizes two complementary self-supervised learning (SSL) strategies to bridge the gap between 2D topological and 3D geometric views:

  1. Contrastive SSL (Inter-molecule): The model learns to align the 2D and 3D representations of the same molecule in a shared latent space while pushing representations of different molecules apart. The framework explores both standard InfoNCE and a more robust Energy-Based Model with Noise Contrastive Estimation (EBM-NCE).
  2. Generative SSL (Intra-molecule): Instead of simple alignment, the model attempts to reconstruct one view from the other. To handle the complexity of discrete graphs, the authors propose Variational Representation Reconstruction (VRR). This surrogate loss performs reconstruction in the continuous embedding space, ensuring training stability.
The GraphMVP framework: Integrating contrastive and generative self-supervised learning to align 2D molecular graphs with 3D geometric conformers.

By combining these approaches, the 2D encoder learns to "imagine" the likely 3D features of a molecule based solely on its 2D structure.

Theoretical Insights

The authors frame 3D geometry as "privileged information"—data available during training but hidden during testing. Drawing on Vapnik’s VC theory, they demonstrate that this extra insight can significantly accelerate the learning process and improve model convergence.

Furthermore, GraphMVP accounts for the one-to-many mapping between 2D graphs and 3D conformers. Molecules are flexible, and a single 2D structure can correspond to many 3D shapes. The VAE-like generative approach (VRR) captures this stochasticity, leading to more robust representations than deterministic models. Contrastive learning helps the model understand global differences between molecules, while generative learning forces it to capture fine-grained internal structures.

Experimental Evaluation

GraphMVP was pre-trained on a subset of the GEOM dataset (50,000 molecules with 2D and 3D views) and evaluated across 14 downstream datasets, including MoleculeNet (classification), various regression tasks, and Drug-Target Affinity (DTA) datasets like Davis and KIBA.

Key Results

  • SOTA Performance: GraphMVP consistently outperformed 10 existing SSL baselines. On the 8 MoleculeNet classification tasks, GraphMVP achieved an average ROC-AUC of 73.07%, compared to 67.21% for randomly initialized models and ~70-71% for previous top-tier SSL methods.
  • Implicit Geometry: Case studies revealed that the pre-trained 2D model successfully captured 3D properties, such as molecular diameter and donor-acceptor distances, which standard 2D models fail to represent accurately.
Implicit Geometry: Comparison of 2D topological distances versus 3D spatial distances for molecular diameter and donor-acceptor pairs.

Limitations and Future Work

While effective, GraphMVP faces challenges regarding the computational cost of generating 3D conformers for pre-training. Additionally, the current 3D backbone (SchNet) struggles with molecular chirality (handedness). Future work will focus on scaling pre-training to larger datasets like the full GEOM or ZINC and exploring more advanced 3D representation architectures to better handle complex geometric properties.

Summary updated

BibTeX
@inproceedings{liu2022pre,
  author = {Shengchao Liu and Hanchen Wang and Weiyang Liu and Joan Lasenby and Hongyu Guo and Jian Tang},
  title = {{Pre-training Molecular Graph Representation with 3D Geometry}},
  booktitle = {GTRL @ ICLR},
  year = {2022},
  url = {https://openreview.net/forum?id=rt8MCNW1pe5},
}
Figure