Abstract
Pretraining molecular representations from large unlabeled data is essential for molecular property prediction due to the high cost of obtaining ground-truth labels. While there exist various 2D graph-based molecular pretraining approaches, these methods struggle to show statistically significant gains in predictive performance. Recent work have thus instead proposed 3D conformer-based pretraining under the task of denoising, which led to promising results. During downstream finetuning, however, models trained with 3D conformers require accurate atom-coordinates of previously unseen molecules, which are computationally expensive to acquire at scale. In light of this limitation, we propose D&D, a self-supervised molecular representation learning framework that pretrains a 2D graph encoder by distilling representations from a 3D denoiser. With denoising followed by cross-modal knowledge distillation, our approach enjoys use of knowledge obtained from denoising as well as painless application to downstream tasks with no access to accurate conformers. Experiments on real-world molecular property prediction datasets show that the graph encoder trained via D&D can infer 3D information based on the 2D graph and shows superior performance and label-efficiency against other baselines.
Introduction
Predicting molecular properties such as toxicity or solubility is critical for drug discovery and material science. However, the scarcity of labeled data necessitates self-supervised pretraining on large unlabeled datasets. Current approaches generally fall into two categories: 2D graph-based methods and 3D conformer-based methods. While 2D methods are computationally efficient, they often fail to capture the complex spatial physics of molecules. Conversely, 3D methods are highly accurate but require precise 3D coordinates (conformers) at runtime, which are prohibitively expensive to compute for new molecules.
Methodology: The D&D Framework
The proposed D&D (Denoise and Distill) framework bridges the gap between 2D efficiency and 3D accuracy. It pretrains a 2D graph encoder by distilling knowledge from a pretrained 3D teacher model, allowing the 2D student to "hallucinate" spatial information without requiring 3D inputs during inference.
The D&D pipeline involves two primary steps:
- Step 1: 3D Denoising (The Teacher): A 3D encoder (e.g., TorchMD-NET) is pretrained on a denoising task. By predicting the noise added to stable 3D conformers, the model learns the underlying force fields governing molecular stability.
- Step 2: Cross-Modal Distillation (The Student): The 3D teacher is frozen, and a 2D student model (e.g., TokenGT) is trained to match the teacher's internal representations. The paper evaluates two distillation strategies: D&D-GRAPH (matching global molecular representations) and D&D-NODE (matching granular atom-level representations).
Experimental Setup
The framework was pretrained on PCQM4Mv2, containing 3.7 million molecules with 3D conformers derived from high-fidelity Density Functional Theory (DFT) simulations. Evaluation was conducted across several benchmarks:
- Open Graph Benchmark (OGB): 10 diverse regression and classification tasks.
- Curated Physical Properties: Datasets for Melting Point, Boiling Point, Refractive Index, and LogP.
- QM9: Standard quantum property prediction benchmark.
Key Insights and Results
3D Denoising vs. Contrastive Learning
D&D demonstrates that denoising is a superior pretraining task compared to contrastive learning (e.g., 3DInfomax). Denoising teaches the model about the distribution of possible 3D shapes and force fields, rather than just matching a single 3D snapshot.
Performance and Label Efficiency
D&D outperformed standard baselines in 11 out of 12 tasks, showing an average 8.8% improvement on OGB and a 36.9% improvement on curated physical property datasets. Notably, D&D is highly label-efficient; in several tasks, a D&D model trained on only 10% of the data outperformed baseline models trained on 100% of the data.
Learned Spatial Intuition
Analysis of the 2D student's attention mechanisms revealed that the model naturally learns to attend to atoms that are physically close in 3D space, even if they are distant in the 2D graph. This confirms that the distillation process successfully transfers "spatial intuition" to the 2D encoder.
Conclusion and Future Work
D&D provides a scalable way to incorporate 3D geometric knowledge into 2D molecular encoders. While highly effective, the authors noted that performance gains can be sensitive to molecular size differences between pretraining and downstream datasets. Future work will explore multitask distillation and the use of diffusion-based generative models as teachers to further enhance representation quality.
Summary updated