Temporal Distribution Shift in Real-World Pharmaceutical Data: Implications for Uncertainty Quantification in QSAR Models
Hannah Rosa Friesacher, Emma Svensson, Susanne Winiwarter, Lewis Mervin, Adam Arany, Ola Engkvist
TL;DR
This study investigates uncertainty quantification for QSAR models under realistic distribution shifts by employing temporal splits on internal TB and ADME-T pharmaceutical assays. It compares train-time uncertainty methods (deep ensembles, MC dropout, Bayes-by-Backprop) with post hoc calibration (Platt scaling, Venn-ABERS) across 15 assays and three temporal settings. The results reveal pronounced shifts in label and descriptor spaces, especially for TB assays, which undermine calibration performance of several methods; deep ensembles and BNNs offer the best calibration for ADME-T datasets, while gains are limited for TB under large shifts. The work highlights the need for time-aware evaluation in real-world drug discovery and suggests practical guidance on method choice given shift magnitude and resource constraints.
Abstract
The estimation of uncertainties associated with predictions from quantitative structure-activity relationship (QSAR) models can accelerate the drug discovery process by identifying promising experiments and allowing an efficient allocation of resources. Several computational tools exist that estimate the predictive uncertainty in machine learning models. However, deviations from the i.i.d. setting have been shown to impair the performance of these uncertainty quantification methods. We use a real-world pharmaceutical dataset to address the pressing need for a comprehensive, large-scale evaluation of uncertainty estimation methods in the context of realistic distribution shifts over time. We investigate the performance of several uncertainty estimation methods, including ensemble-based and Bayesian approaches. Furthermore, we use this real-world setting to systematically assess the distribution shifts in label and descriptor space and their impact on the capability of the uncertainty estimation methods. Our study reveals significant shifts over time in both label and descriptor space and a clear connection between the magnitude of the shift and the nature of the assay. Moreover, we show that pronounced distribution shifts impair the performance of popular uncertainty estimation methods used in QSAR models. This work highlights the challenges of identifying uncertainty quantification methods that remain reliable under distribution shifts introduced by real-world data.
