Introduction
In the fields of quantum chemistry and drug discovery, predicting molecular properties—such as the HOMO-LUMO energy gap—is a critical task. Traditionally, these properties are calculated using Density Functional Theory (DFT). While DFT is highly accurate, its computational cost makes it prohibitively slow for high-throughput virtual screening of millions of molecules. Machine learning models, particularly Graph Neural Networks (GNNs), offer a promising alternative by approximating these calculations at a fraction of the time.
This report details the first-place winning solution for the KDD Cup 2021 OGB Large-Scale Challenge (Graph Prediction Track). The team developed a hybrid approach combining a powerful graph transformer, Graphormer, with a modified convolutional framework, ExpC*. By integrating engineered 3D molecular features and a robust ensembling strategy, they achieved a state-of-the-art Mean Absolute Error (MAE) of 0.1200 on the PCQM4M-LSC dataset.
Methods and Feature Engineering
The core of the winning strategy lies in the combination of sophisticated architecture and clever feature engineering. Although the challenge provided only 2D molecular graphs, the team recognized that 3D spatial information is vital for capturing quantum chemical properties.
3D Feature Engineering
Using RDKit, the team rapidly estimated the 3D conformation of each molecule. They extracted 3D Euclidean distances between atoms and bonds to serve as spatial features. To prevent the model from simply memorizing specific training structures, they applied a Gaussian Radial Basis Function (RBF) kernel to these distances. Furthermore, they introduced Laplace-distributed noise to the bond distances, calibrated using the QM9 dataset, to enhance the model's ability to generalize to unseen data.
Model Architectures
- Graphormer: A Transformer architecture specifically adapted for graph data. The model utilizes the kernelized 3D distances as spatial biases within the attention mechanism. A key finding was that standard embedding dropout (e.g., 0.1) was detrimental because the molecules in the dataset are relatively small (median of 15 atoms); thus, embedding dropout was set to 0.
- ExpC*: A variant of the ExpandingConv framework. The team modified the neighborhood aggregation layer to project features into a higher-dimensional space and apply non-linear activations before aggregation. This technique was designed to overcome the expressive bottlenecks often found in standard GNN "SUM" aggregators.
Datasets
The primary dataset used was PCQM4M-LSC, a massive public dataset containing approximately 3.8 million molecular graphs. The data was partitioned using a scaffold split (80/10/10) to rigorously test out-of-distribution generalization. While no external data was used for training, the QM9 dataset provided a reference for calibrating noise parameters during feature engineering.
Key Insights
- Approximate 3D Context: Even though the RDKit-generated 3D structures are less accurate than DFT-optimized ones, they provide essential spatial context that significantly outperforms models relying solely on 2D graph topology.
- Kernelization and Generalization: Directly inputting raw 3D distances led to overfitting. Kernelizing these distances via RBF was the critical step that forced the model to learn generalizable spatial relationships rather than memorizing coordinates.
- Dropout Sensitivity: In small-graph regimes, standard dropout techniques can destroy critical information. The team found that disabling embedding dropout was necessary to maintain performance on molecules with few atoms.
Key Results
The final submission was a weighted ensemble of 18 models (10 Graphormers and 8 ExpC models) trained via 8-fold cross-validation. This ensemble achieved an MAE of 0.1200* on the hidden test set, securing first place in the competition.
As shown in the cross-validation results, individual Graphormer models consistently achieved validation MAEs between 0.0965 and 0.0971, while ExpC* models ranged from 0.1003 to 0.1028. The pipeline also proved highly efficient; processing the 3.8 million molecules for 3D feature extraction took only 12 hours on a single CPU.
Conclusion
The success of this solution highlights the importance of integrating domain-specific spatial knowledge into graph-based architectures. By combining the global modeling capabilities of Transformers with the localized strengths of modified convolutions and approximate 3D features, the team set a new benchmark for large-scale molecular property prediction. Future work will involve a deeper theoretical investigation into the non-linear pre-aggregation steps used in the ExpC* framework.
Summary updated