Abstract
Deep neural networks have been increasingly used in various chemical fields. In the nature of a data-driven approach, their performance strongly depends on data used in training. Therefore, models developed in data-deficient situations can cause highly uncertain predictions, leading to vulnerable decision making. Here, we show that Bayesian inference enables more reliable prediction with quantitative uncertainty analysis. Decomposition of the predictive uncertainty into model- and data-driven uncertainties allows us to elucidate the source of errors for further improvements. For molecular applications, we devised a Bayesian graph convolutional network (GCN) and evaluated its performance for molecular property predictions. Our study on the classification problem of bio-activity and toxicity shows that the confidence of prediction can be quantified in terms of the predictive uncertainty, leading to more accurate virtual screening of drug candidates than standard GCNs. The result of log P prediction illustrates that data noise affects the data-driven uncertainty more significantly than the model-driven one. Based on this finding, we could identify artefacts that arose from quantum mechanical calculations in the Harvard Clean Energy Project dataset. Consequently, the Bayesian GCN is critical for molecular applications under data-deficient conditions.
Introduction
Deep learning has revolutionized chemistry, yet it faces a significant "confidence" problem. Standard deep neural networks (DNNs) are deterministic; they provide point estimates without indicating their level of certainty. In high-stakes fields like drug discovery or toxicity prediction, where data is often scarce, biased, or noisy, this lack of transparency is problematic. When a standard model encounters a molecule significantly different from its training set, it may still produce a high-probability prediction—essentially "hallucinating" confidence. This overconfidence can lead to costly failures in laboratory validation.
This research introduces a framework that moves beyond simple binary predictions toward a system that provides both a prediction and a quantifiable measure of trust. By implementing a Bayesian Graph Convolutional Network (GCN), the authors enable reliable molecular property predictions through rigorous uncertainty quantification.
Methodology: Bayesian Graph Convolutional Networks
The core innovation lies in treating the weights of a GCN not as fixed values, but as probability distributions. To make this computationally feasible, the researchers employed several key techniques:
- Monte-Carlo (MC) Dropout: Dropout is typically used during training to prevent overfitting. Here, it is kept active during the inference phase. By processing a single molecule multiple times ($T=20$) with random dropouts, the model generates a distribution of outcomes rather than a single point.
- Concrete Dropout: Instead of manually tuning dropout rates, the model uses "Concrete Dropout" to automatically learn optimal rates for each layer via gradient descent.
- Uncertainty Decomposition: The total predictive uncertainty is split into two components:
- Aleatoric Uncertainty: Noise inherent in the data (e.g., experimental measurement errors).
- Epistemic Uncertainty: Uncertainty stemming from a lack of training data (model ignorance).
As shown in the visualization above, the Bayesian approach allows the model to identify regions of high uncertainty (shaded areas) where training data (represented by clusters) is absent. A point like the yellow star, far from known data, would trigger high epistemic uncertainty, alerting researchers to a potential "out-of-distribution" prediction.
Results and Discussion
The model was rigorously evaluated across benchmarks including DUD-E (bio-activity), Tox21 (toxicity), and ChEMBL (virtual screening).
Superior Virtual Screening
In a simulated drug discovery task using the ChEMBL dataset, the Bayesian GCN significantly outperformed deterministic counterparts. In a "top 100" list of predicted active molecules, the Bayesian GCN correctly identified 69 active molecules, compared to only 29 for a standard Maximum Likelihood model and 57 for a Maximum-a-Posteriori (MAP) model. This demonstrates that filtering by confidence leads to much higher hit rates in virtual screening.
Identifying Data Artifacts
One of the most striking findings occurred with the Harvard Clean Energy Project (CEP) dataset. The model flagged specific molecules with exceptionally high aleatoric uncertainty. Closer inspection revealed these were "artefacts"—errors in the quantum mechanical simulations used to generate the dataset. This suggests that Bayesian models can serve as automated quality control tools, identifying erroneous data points that might otherwise skew research results.
Noise Sensitivity and Robustness
By adding artificial Gaussian noise to a log P dataset, the authors confirmed that aleatoric uncertainty specifically tracks data noise, while epistemic uncertainty remains stable. This distinction provides a clear diagnostic tool: high aleatoric uncertainty suggests the need for better experiments, while high epistemic uncertainty suggests the need for more diverse training data.
Conclusion
The Bayesian GCN addresses the critical need for reliability in chemical AI. By knowing what it doesn't know, the model prevents overconfident "hallucinations" and provides a roadmap for further data collection. Future work will focus on integrating this uncertainty quantification into Active Learning cycles—where the model directs researchers to the most informative experiments—and into generative models for de novo molecular design, ensuring that AI-generated candidates remain within high-confidence chemical space.
Summary updated