Introduction
In material science and drug discovery, the most valuable discoveries are often outliers—superconductors with record-breaking critical temperatures or drugs with unprecedented binding affinities. Identifying these "extraordinary" candidates requires machine learning models to perform extrapolation: predicting property values that lie beyond the range of existing experimental data.
Standard models are typically optimized for interpolation, where test data follows the same distribution as training data. When faced with values higher or lower than those seen during training (label-based extrapolation), these models often fail to capture the underlying non-linearities. This research investigates whether self-supervised pretraining (SSP) can improve a model's ability to generalize into these unseen ranges.
Methods
The authors developed an experimental framework using Graphormer, a state-of-the-art Transformer-based architecture for graph data, to evaluate three self-supervised "pretext" tasks:
- Node-level masking: Predicting hidden atom types within a molecular graph.
- Geometric structure prediction: Predicting connectivity and 3D-like structures regardless of atom type.
- Motif prediction: Identifying functional groups (e.g., hydroxyl or carboxyl groups).
To rigorously test extrapolation, they employed a forward holdout validation strategy. Unlike random splits, this method places molecules with low property values in the training set and those with high values in the validation set, forcing the model to predict values it has never encountered.
Datasets
The study utilized the PCQM4Mv2 dataset from the Open Graph Benchmark (OGB-LSC), containing over 3.7 million molecular graphs. The primary task was predicting the HOMO-LUMO gap—the energy difference between the highest occupied and lowest unoccupied molecular orbitals—a critical metric in quantum chemistry. The authors maintained a 90/2 ratio for training and validation, specifically ensuring the validation set contained only values higher than the training maximum.
Key Insights and Results
The "Glass Ceiling" of Regression
The research revealed a fundamental limitation: models trained only on labeled data hit a "plateau." They struggle to output values significantly higher than the training maximum, likely due to the behavior of ReLU activation functions when moving outside the training distribution.
Ranking as a Silver Lining
While models struggled with absolute accuracy (Mean Absolute Error), SSP significantly improved their ability to rank molecules. Even if the model could not predict the exact energy gap of a new molecule, it could correctly identify that Molecule A had a higher gap than Molecule B. Specifically, using the Motif prediction task and including validation structures during pretraining caused the Spearman rank correlation to jump from a weak 0.255 to a much stronger 0.516.
The Overfitting Trap
A critical finding was that extrapolation performance peaks very early—often within the first 5-10 epochs of fine-tuning—before rapidly declining. This suggests that as a model specializes in the training distribution, it loses the general structural knowledge gained during pretraining that is necessary for extrapolation.
Conclusion and Future Work
Self-supervised pretraining, particularly tasks that capture chemical motifs, provides a significant boost to a model's ability to rank unseen outliers. However, the benefits are fragile and tend to decay during fine-tuning. Future research must focus on preserving the general knowledge gained during pretraining and verifying these results across a broader range of chemical properties and benchmarks.
Summary updated