Improving Counterfactual Truthfulness for Molecular Property Prediction through Uncertainty Quantification

Jonas Teufel, Annika Leinweber, Pascal Friederich
4/3/2025
cs.LGcs.AI

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{teufel2025improving,
  title  = {Improving Counterfactual Truthfulness for Molecular Property Prediction through Uncertainty Quantification},
  author = {Jonas Teufel and Annika Leinweber and Pascal Friederich},
  year   = {2025},
  eprint = {2504.02606},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.02606v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.02606.svg)](https://codeofpaper.com/paper/2504.02606)

Discussion