TL;DR
This paper tackles the critical issue of overconfident mispredictions in Graph Neural Networks (GNNs) used for drug discovery, especially when encountering novel, out-of-distribution data. They introduce a new benchmark, CardioTox, and a novel GNN architecture, GNN-SNGP, that improves "distance-awareness" to make more reliable predictions.
What Problem Does This Paper Address?
Graph Neural Networks (GNNs) have shown great promise in drug discovery tasks like identifying potential drug candidates and screening for toxic liabilities. However, a major hurdle for their real-world adoption is their tendency to make overconfident incorrect predictions, particularly when faced with data that differs from what they were trained on. This "distributional shift" is common in drug discovery, where new molecules are constantly being explored. An overconfident prediction that a toxic molecule is safe can have severe consequences. Existing GNNs often lack the ability to quantify their uncertainty effectively in these out-of-distribution scenarios.
Methods
The core of the paper's contribution lies in developing a GNN architecture that is more "distance-aware." This means the model should be less confident when predicting on molecules that are structurally distant from the training data.
The authors propose GNN-SNGP, which builds upon a standard Message Passing Neural Network (MPNN) baseline. GNN-SNGP incorporates two key modifications:
- Distance-Preserving Feature Extraction: They apply Spectral Normalization (SN) to the dense layers within the message function of the MPNN. This regularization helps ensure that the learned representations (embeddings) of molecules preserve the distances between them in the input space. They also add a residual connection to the node update function.
- Distance-Aware Classifier: They replace the standard dense output layer with a Neural Gaussian Process (GP) layer. This GP layer is designed to provide uncertainty estimates that are sensitive to the distance of the input from the training data.
They also introduce GNN-GP, which is GNN-SNGP without the spectral normalization on the feature extractor, serving as an ablation to understand the contribution of each component.
Datasets
- CardioTox: A newly introduced benchmark dataset for drug cardiotoxicity. It's compiled from real-world drug discovery data (ChEMBL, NCATS, FDA validation databases) and is designed to specifically test model reliability under distributional shifts. It includes IID (in-distribution) and OOD (out-of-distribution) test sets, with further splits into "close" and "far" sets based on molecular fingerprint distance to the training data.
- molHIV, BBBP, BACE: Three established graph classification benchmarks used to evaluate the generalizability of their proposed methods.
Key Insights and Ideas
- Overconfident Mispredictions are Distant: The study found a strong correlation between overconfident false negatives (OFNs) and molecules that are structurally distant from the training data. This highlights the need for models to be aware of this distance.
- Distance-Awareness is Key: By explicitly making GNNs aware of the distance of test molecules from the training distribution, their reliability (especially in reducing overconfident mispredictions) can be significantly improved.
- Synergy of Components: Both the distance-preserving feature extractor (SN) and the distance-aware classifier (GP layer) contribute to improved robustness. Their combination in GNN-SNGP yields the best results.
- Pre-defined Representations (Fingerprints) Have Limits: While molecule fingerprints are perfectly distance-preserving, they don't always lead to the best performance under distributional shifts, suggesting a trade-off between distance preservation and task-specific information extraction.
Key Results
- Improved Robustness: GNN-SNGP consistently outperforms the GNN baseline and GNN-GP across various metrics (ECE, Brier, NLL, OFNs%) on both in-distribution and out-of-distribution test sets of CardioTox.
- Reduced Overconfident Mispredictions: GNN-SNGP significantly reduces the percentage of Overconfident False Negatives (OFNs%), particularly on out-of-distribution data. For example, on Test-OOD1, OFNs% drops from 1.68% for the baseline to 1.31% for GNN-SNGP.
- Enhanced Distance-Awareness: GNN-SNGP achieves higher Distance-Awareness AUC (DA-AUC) scores, indicating it can better distinguish between molecules close to and far from the training set.
- Competitive Performance: The GNN-SNGP ensemble achieved state-of-the-art AUROC performance compared to previous models on the CardioTox benchmark.
- Generalizability: The proposed methods also show consistent improvements on the molHIV, BBBP, and BACE benchmarks.
Limitations and Future Work
- Broader GNN Architectures: The authors suggest exploring their distance-awareness approach with other GNN architectures like Graph Attention Networks (GAT) and Principal Neighbourhood Aggregation (PNA).
- Quantitative Distance-Preservation Measurement: Further work is needed to find a more quantitative way to measure distance-preservation within learned representations and to understand the trade-offs between preservation, task-specific compression, accuracy, and robustness.
- Computational Constraints: While GNN-SNGP avoids the computational cost of exact Gaussian Processes, the paper mentions that exact GPCs can achieve even better results when combined with distance-preserving embeddings, suggesting potential avenues for research into efficient exact GP methods.
Summary updated