[Paper Review] Bayesian Graph Neural Networks for Molecular Property Prediction
This paper proposes Bayesian Graph Neural Networks (GNNs) for molecular property prediction using uncertainty quantification in both message passing and readout layers of a directed MPNN on the QM9 dataset. It demonstrates that full Bayesian GNNs significantly improve predictive accuracy, calibration, and performance in downstream molecular search tasks compared to standard deep learning baselines.
Graph neural networks for molecular property prediction are frequently underspecified by data and fail to generalise to new scaffolds at test time. A potential solution is Bayesian learning, which can capture our uncertainty in the model parameters. This study benchmarks a set of Bayesian methods applied to a directed MPNN, using the QM9 regression dataset. We find that capturing uncertainty in both readout and message passing parameters yields enhanced predictive accuracy, calibration, and performance on a downstream molecular search task.
Motivation & Objective
- To address poor generalization of GNNs to out-of-distribution molecular scaffolds due to overfitting on training data.
- To improve model calibration and uncertainty quantification in molecular property prediction, especially in regression settings.
- To evaluate the impact of Bayesian inference on both message passing and readout components of a GNN.
- To benchmark Bayesian methods in a real-world molecular search task to assess practical utility.
- To provide open-source PyTorch code for reproducibility and further research.
Proposed method
- Employs a directed Message Passing Neural Network (D-MPNN) as the base GNN architecture for molecular representation learning.
- Applies eight Bayesian inference methods: MAP, GP, MC Dropout (DropR, DropA), SWAG, SGLD, BBP, and DUN for uncertainty estimation.
- Uses post-hoc t-distribution likelihoods to improve calibration, especially when aleatoric uncertainty is not explicitly modeled.
- Implements ensemble-based predictive distributions by sampling from posterior approximations to estimate uncertainty.
- Trains models end-to-end with variational inference or MCMC-based methods to approximate posterior distributions over model parameters.
- Evaluates uncertainty via reliability diagrams and uses mean rank and miscalibration area as key metrics across 12 QM9 regression tasks.
Experimental results
Research questions
- RQ1Does Bayesian learning in both message passing and readout layers improve predictive accuracy and calibration in molecular property prediction?
- RQ2How do different Bayesian inference methods compare in terms of uncertainty quantification and performance on QM9 regression tasks?
- RQ3Can Bayesian GNNs enhance performance in downstream molecular generation or search tasks?
- RQ4What is the impact of modeling aleatoric uncertainty on calibration, especially when using Gaussian vs. t-distribution likelihoods?
- RQ5How does uncertainty quantification affect generalization to unseen molecular scaffolds?
Key findings
- Full Bayesian GNNs, particularly with uncertainty in both message passing and readout layers, achieved the best mean rank of 1.95 ± 0.40 on QM9, significantly outperforming standard MAP training (4.08 ± 0.16).
- DropA, which applies MC dropout across the entire GNN, achieved a search score of 77.52 ± 0.77%, outperforming MAP (72.22 ± 0.57%) and other Bayesian methods in molecular search.
- The use of post-hoc t-distribution likelihoods improved calibration, reducing pathological underconfidence observed with Gaussian likelihoods.
- Models with Bayesian readout (e.g., GP, DropR) showed better calibration than those with Bayesian message passing alone, indicating that readout uncertainty is more critical for predictive confidence.
- SGLD and BBP showed high uncertainty estimates but poor predictive accuracy, suggesting that MCMC and variational methods may not always generalize well in this setting.
- The DUN method, which uses a diagonal plus low-rank covariance, showed strong performance in mean rank (4.40 ± 0.25) and search score (76.02 ± 1.09), indicating robustness in uncertainty estimation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.