Enhancing Chemical Explainability Through Counterfactual Masking
Not on the map. Why?
Abstract (arXiv)
Molecular property prediction is a crucial task that guides the design of new compounds, including drugs and materials. While explainable artificial intelligence methods aim to scrutinize model predictions by identifying influential molecular substructures, many existing approaches rely on masking strategies that remove either atoms or atom-level features to assess importance via fidelity metrics. These methods, however, often fail to adhere to the underlying molecular distribution and thus yield unintuitive explanations. In this work, we propose counterfactual masking, a novel framework that replaces masked substructures with chemically reasonable fragments sampled from generative models trained to complete molecular graphs. Rather than evaluating masked predictions against implausible zeroed-out baselines, we assess them relative to counterfactual molecules drawn from the data distribution. Our method offers two key benefits: (1) molecular realism underpinning robust and distribution-consistent explanations, and (2) meaningful counterfactuals that directly indicate how structural modifications may affect predicted properties. We demonstrate that counterfactual masking is well-suited for benchmarking model explainers and yields more actionable insights across multiple datasets and property prediction tasks. Our approach bridges the gap between explainability and molecular design, offering a principled and generative path toward explainable machine learning in chemistry.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 32 references that are in the map. First posted on arXiv 25 Aug 2025.
Builds on
12 of 32 references.
References · 12
- 2017Graph Attention Networkscited by 8,923
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2019GNNExplainer: Generating Explanations for Graph Neural Networkscited by 737
- 2021On Explainability of Graph Neural Networks via Subgraph Explorationscited by 281
- 2021Therapeutics Data Commons: Machine Learning Datasets and Tasks for Drug Discovery and Developmentcited by 264
- 2023Explainable Artificial Intelligence (XAI) 2.0: A Manifesto of Open Challenges and Interdisciplinary Research Directionscited by 125
- 2022Equivariant 3D-Conditional Diffusion Models for Molecular Linker Designcited by 122
- 2020Drug discovery with explainable artificial intelligencecited by 118
- 2025GenMol: A Drug Discovery Generalist with Discrete Diffusioncited by 50
- 2021MEG: Generating Molecular Counterfactual Explanations for Deep Graph Networkscited by 32
Built on by
Not cited yet.