Uncertainty quantification of molecular property prediction with Bayesian neural networks

Seongok Ryu, Yongchan Kwon, Woo Youn KimarXiv 2019

Abstract

Deep learning models have become indispensable tools in molecular property prediction, yet their deployment is often hindered by a lack of transparency regarding prediction reliability. Standard deep neural networks (DNNs) typically provide point estimates without quantifying confidence, leading to potentially catastrophic errors in high-stakes fields like drug discovery. This paper presents a framework using Bayesian Neural Networks (BNNs) to decompose predictive uncertainty into two distinct components: aleatoric uncertainty (inherent data noise) and epistemic uncertainty (model ignorance). By applying this approach to molecular graphs, the authors demonstrate that BNNs can identify faulty data annotations and provide a robust metric for decision-making in chemical screening.

Introduction

In the search for new therapeutics and materials, researchers increasingly rely on Graph Convolutional Networks (GCNs) to predict properties such as toxicity, solubility, and binding affinity. However, these models often exhibit overconfidence, making high-certainty predictions even when the input data is noisy, imbalanced, or outside the model's training distribution. In a laboratory setting, a false negative in toxicity screening or a false positive in bio-activity can lead to wasted resources or safety risks.

This research addresses the critical need for uncertainty quantification (UQ). The goal is to move beyond simple point estimates to a system where the model can signal when it is "unsure." Specifically, the authors focus on distinguishing whether uncertainty arises from experimental errors in the dataset (aleatoric) or from a lack of representative training data in a specific chemical space (epistemic).

Methodology

Bayesian Graph Convolutional Networks

The researchers developed an augmented Graph Convolutional Network (GCN) that represents molecules as graphs, utilizing self-attention mechanisms and gated-skip connections to model complex structural relationships. Unlike traditional networks with fixed weights, this Bayesian approach treats weights as probability distributions.

Computational Approximations

To overcome the computational intensity of full Bayesian inference, the study implemented two key techniques:

  1. MC-Dropout: Monte-Carlo (MC) dropout was used during the inference phase. By keeping dropout layers active and running multiple forward passes for a single molecule, the model generates a distribution of outputs rather than a single value.
  2. Concrete Dropout: To avoid the manual tuning of dropout rates, the authors employed "Concrete dropout," which allows the model to automatically learn and optimize the dropout rate for each layer during training.

Uncertainty Decomposition

The total predictive variance was mathematically decomposed into:

  • Aleatoric Uncertainty: Captures noise inherent in the observations, such as experimental measurement errors.
  • Epistemic Uncertainty: Captures uncertainty in the model parameters, reflecting a lack of knowledge about specific regions of the chemical space.

Experimental Setup and Datasets

The model was evaluated across four diverse benchmarks to test its ability to handle different types of chemical data:

  • ZINC Dataset: Used for logP (partition coefficient) prediction. The authors introduced controlled Gaussian noise to this dataset to validate the model's ability to detect data-quality issues.
  • Harvard Clean Energy Project (CEP): Used to predict the Power Conversion Efficiency (PCE) of organic photovoltaics.
  • DUD-E (Directory of Useful Decoys, Enhanced): A benchmark for bio-activity classification.
  • Tox21: A dataset focused on predicting various molecular toxicity profiles.

Results and Discussion

The "Noise Detector" Effect

In experiments using the ZINC dataset, the authors observed that as artificial noise was added to the input data, the aleatoric uncertainty spiked significantly. Conversely, the epistemic uncertainty remained relatively stable. This result confirms that the BNN successfully isolated data-quality issues from the model’s internal capacity to understand the chemical structures.

Automated Data Auditing

One of the most striking findings occurred during the analysis of the Harvard CEP dataset. The model reported unusually high aleatoric uncertainty for a specific subset of molecules with a PCE of exactly zero. Investigation revealed that these were "incorrect annotations" stemming from approximations in the original synthetic data generation process (specifically the M06-2X functional). This demonstrates that BNNs can act as an automated audit tool, flagging suspicious data points that might otherwise mislead researchers.

Uncertainty as a Proxy for Accuracy

In classification tasks (Tox21 and DUD-E), a clear correlation emerged: lower total uncertainty consistently mapped to higher prediction accuracy. By grouping molecules by uncertainty levels, the authors showed that the "low uncertainty" group achieved near-perfect accuracy, while performance dropped sharply in the "high uncertainty" group. This suggests that uncertainty metrics can serve as a reliable confidence threshold for virtual screening pipelines.

Conclusion

This work demonstrates that Bayesian Neural Networks provide a sophisticated "BS detector" for molecular property prediction. By successfully decomposing uncertainty, the model allows researchers to distinguish between messy data and gaps in model training. While the computational cost of multiple forward passes remains a challenge for ultra-high-throughput screening, the benefits for AI safety and data quality control are significant.

Future research may leverage these uncertainty metrics to drive Active Learning strategies, where models autonomously identify and request experimental data for molecules located in high-epistemic-uncertainty regions, thereby optimizing the drug discovery process.

Summary updated

BibTeX
@misc{ryu2019uncertainty,
  author = {Seongok Ryu and Yongchan Kwon and Woo Youn Kim},
  title = {{Uncertainty quantification of molecular property prediction with Bayesian neural networks}},
  year = {2019},
  eprint = {1903.08375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.08375},
}
Figure