Uncertainty quantification of molecular property prediction using Bayesian neural network models

Seongok Ryu, Yongchan Kwon, Woo Youn KimarXiv 2019

Introduction

Deep learning models have become indispensable tools in chemistry for predicting molecular properties such as solubility, toxicity, and binding affinity. However, these models typically operate as "black boxes," providing point estimates without any measure of confidence. In high-stakes domains like drug discovery, an overconfident but incorrect prediction can lead to costly failures in the laboratory. This paper introduces a robust Bayesian framework to quantify uncertainty in molecular property prediction, enabling researchers to distinguish between inherent data noise and model ignorance.

Methodology

The researchers implemented a Bayesian Neural Network (BNN) architecture built upon Graph Convolutional Networks (GCNs). Molecules are represented as graphs where atoms serve as nodes and bonds as edges. To handle the complexity of chemical space, the GCN incorporates attention mechanisms and gated-skip connections.

Bayesian Approximation via MC Dropout

Since exact Bayesian inference is computationally prohibitive for deep networks, the authors utilize Monte Carlo (MC) Dropout as a variational approximation. By maintaining dropout during the inference phase and performing multiple forward passes for a single input, the model generates a distribution of predictions. The variance of this distribution serves as a proxy for the model's uncertainty.

Different dropout masking strategies (column-wise, row-wise, and element-wise) applied to the node-feature matrix to approximate Bayesian inference.

Decomposition of Uncertainty

A core contribution of this work is the decomposition of total uncertainty into two distinct components:

  1. Aleatoric Uncertainty: This represents the inherent noise in the data, such as experimental measurement errors. It is irreducible even with more training data.
  2. Epistemic Uncertainty: This represents the model's lack of knowledge regarding specific regions of the chemical space. This uncertainty can be reduced by incorporating more diverse training examples.

Experimental Results

The framework was evaluated across several benchmarks, including ZINC (solubility), the Harvard Clean Energy Project (CEP), DUD-E (bio-activity), and Tox21 (toxicity).

Robustness to Data Noise

To validate the decomposition of uncertainty, the authors added artificial noise to the ZINC dataset. They observed that while aleatoric uncertainty increased significantly with the noise level, the epistemic uncertainty remained remarkably stable. This confirms that epistemic uncertainty accurately captures "model ignorance" rather than simply reacting to messy data.

Epistemic uncertainty distributions for the ZINC dataset with varying levels of artificial noise, showing that model ignorance remains constant despite increased data noise.

Uncertainty as a Quality Control Tool

In the CEP dataset, the model identified high aleatoric uncertainty for molecules with a predicted power conversion efficiency (PCE) of zero. Upon investigation, these were found to be artifacts or errors in the underlying simulations used to generate the dataset. This demonstrates that uncertainty quantification can serve as an automated auditor for data quality in large-scale chemical databases.

Reliability in Classification

In bio-activity and toxicity classification tasks, the authors found a strong correlation between low uncertainty and high prediction accuracy. For the DUD-E dataset, predictions in the lowest uncertainty quintile achieved ~98% accuracy, whereas the highest uncertainty quintile dropped to ~83%. This allows researchers to set "uncertainty thresholds" to filter out unreliable predictions before moving to experimental validation.

Conclusion and Future Work

Quantifying uncertainty transforms molecular property prediction from a simple estimation task into a reliable decision-support tool. By distinguishing between data noise and model ignorance, researchers can better prioritize which molecules to synthesize and identify where more training data is needed. Future work will explore "Concrete Dropout" to automatically learn optimal dropout rates and integrate this framework into active learning loops for real-world drug discovery pipelines.

Summary updated

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