Abstract
Predicting chemical reaction yields is a critical task in organic synthesis, yet traditional machine learning models often lack reliability indicators. This paper introduces a Graph Neural Network (GNN) framework that represents molecules as graphs and incorporates uncertainty quantification. By integrating aleatoric and epistemic uncertainty, the model not only outperforms sequence-based methods like YieldBERT but also enables selective prediction. Filtering out high-uncertainty predictions significantly improves accuracy, providing a robust tool for laboratory decision-making.
Introduction
In organic chemistry, the ability to predict reaction yields accurately can save significant time and resources. However, most existing models provide point estimates without a measure of confidence. Furthermore, reliance on text-based representations like SMILES can lose structural context. This study addresses these issues by developing an uncertainty-aware GNN model that captures chemical intuition through graph representations and signals prediction reliability.
Methods
The proposed architecture focuses on permutation invariance and structural fidelity.
Graph Representation
Molecules are represented as undirected graphs where atoms are nodes and bonds are edges. This approach captures the connectivity and chemical properties of the molecules more effectively than string-based methods.
Model Architecture
The model utilizes a Message Passing Neural Network (MPNN) to generate atom-level vectors, which are then aggregated into a global molecular embedding via a "Set2Set" function. For reactions with multiple reactants, embeddings are summed to ensure permutation invariance before being concatenated with the product embedding.
Uncertainty Quantification
The model outputs both a predicted yield (μ) and a variance (σ²). Aleatoric uncertainty is captured through a heteroscedastic loss function, while epistemic uncertainty is estimated using Monte-Carlo (MC) Dropout.
Datasets
The model was validated on two gold-standard high-throughput experimentation (HTE) datasets: Buchwald-Hartwig (3,955 reactions) and Suzuki-Miyaura (5,760 reactions). Various training/test splits were used to evaluate performance under data-sparse and out-of-sample conditions.
Results and Discussion
The GNN-based model achieved superior accuracy, reducing the Mean Absolute Error (MAE) by 5–10% compared to YieldBERT. Specifically, on the Buchwald-Hartwig dataset, the model reached an MAE of 2.920 %p.
A key finding is the effectiveness of selective prediction. By rejecting the most uncertain 60% of predictions based on the model's self-reported variance, the MAE and RMSE were nearly halved. This demonstrates that the uncertainty score is a reliable proxy for expected error, allowing chemists to focus on high-confidence experimental paths.
Conclusion
While the current model shows significant promise, future work could incorporate 3D molecular descriptors and expand the scope to multi-product reactions. Pre-training on larger unlabeled datasets may also enhance the model's predictive power in data-limited scenarios.
Summary updated