Conference paper
Cite …

Improving Counterfactual Truthfulness for Molecular Property Prediction Through Uncertainty Quantification

Jonas Teufel ORCID iD icon 1, Annika Leinweber 1 and Pascal Friederich  ORCID iD icon 1,2
1 Institute of Theoretical Informatics (ITI), Karlsruhe Institute of Technology (KIT)
2 Institute of Nanotechnology (INT), Karlsruhe Institute of Technology (KIT)
DOI: 10.5445/IR/1000187796
Publisher's version published on Dec 2, 2025
Abstract

Explainable AI (xAI) interventions aim to improve interpretability for complex black-box models, not only to improve user trust but also as a means to extract scientific insights from high-performing predictive systems. In molecular property prediction, counterfactual explanations offer a way to understand predictive behavior by highlighting which minimal perturbations in the input molecular structure cause the greatest deviation in the predicted property. However, such explanations only allow for meaningful scientific insights if they reflect the distribution of the true underlying property—a feature we define as counterfactual truthfulness. To increase this truthfulness, we propose the integration of uncertainty estimation techniques to filter counterfactual candidates with high predicted uncertainty. Through computational experiments with synthetic and real-world datasets, we demonstrate that traditional uncertainty estimation methods, such as ensembles and mean-variance estimation, can already substantially reduce the average prediction error and increase counterfactual truthfulness, especially for out-of-distribution settings. Our results highlight the importance and potential impact of incorporating uncertainty estimation into explainability methods, especially considering the relatively high effectiveness of low-effort interventions like model ensembles.