Skip to content
Open access

Unified counterfactual explainer for graph neural networks

Jul 2026 · npj Artificial Intelligence · 1 citation · ⚡ 1 influential

TL;DR

A novel Unified Counterfactual Explainer for GNNs that generates counterfactual explanations for both node and graph classification tasks through a unified approach, and offers maximum flexibility by supporting maximum flexibility.

Abstract

Counterfactual explanations emerged as a powerful tool to unveil the opaque decision-making processes of Graph Neural Networks (GNNs). However, existing techniques primarily focus on edge modifications, often overlooking the crucial role of node features and edge attributes changes in shaping the model predictions. To address this limitation, we propose a novel Unified Counterfactual Explainer (UCExplainer) for GNNs that generates counterfactual explanations for both node and graph classification tasks. Unlike prior methods, UCExplainer generates realistic and interpretable counterfactuals through a unified approach. It balances modifications by jointly optimizing perturbations across edges, edge attributes, and node features, ensuring the minimal changes required to flip a model’s prediction. Furthermore, UCExplainer offers maximum flexibility by supporting: (1) perturbations of both discrete and continuous values, (2) the clipping of values to a user-defined ranges, and (3) the exclusion of specific elements, such as entire nodes, edges, or individual features, from modification. Experiments on real-world datasets demonstrate the effectiveness and robustness of our approach over existing baselines.

Read PDF

Similar papers

2026

A framework for Counterfactual Explainability in Graph Neural Networks

The approach combines ideas from factual explainability with edge prediction models inspired by link prediction to enhance the quality, robustness, and interpretability of counterfactual explanations while keeping the method computationally tractable.

Maria Myrto Villia · 0 citations
Preprint Aug 2026

Faithful, Sufficient and Understandable: Rethinking Graph Counterfactual Explanations via Discrete Diffusion Inversion

This work proposes Graph Diffusion Counterfactual Explanation via Inversion (GDCE-I), a discrete denoising diffusion model with a novel discrete inversion scheme that enables distribution-aware edits leveraging the whole domain edit space and qualitatively shows that GDCE-I attains interpretable in-distribution solutio...

David Bechtoldt, Sidney Bender · 1 citation
Book Open access Aug 2026

Counterfactual Analysis on Large Graphs

Counterfactual analysis aims to identify minimal and semantically meaningful changes that alter a model's prediction. Existing perturbation approaches generate counterfactuals by directly editing nodes, edges, or attributes, often producing explanations that are model-dependent and detached from the underlying data dis...

Hsi-Wen Chen, Jian Pei, De-Nian Yang et al. · 0 citations
Preprint Aug 2026

Overcoming Shortcut Learning in Graph Neural Networks through Active Explanation Guidance

This work introduces XIGL, an architecture-agnostic human-in-the-loop strategy for removing shortcuts from GNNs, and develops an active learning strategy for prioritizing explanations that are more likely to display shortcut behavior, lowering annotation and cognitive costs.

Taraneh Younesian, Steve Azzolin, A. Longa et al. · 0 citations
Jul 2026

Towards Faithful Graph Explanations with Synergistic Edge Effects via Granular Balls

This work proposes SeeExplainer, a parameter-free explainer to interpret graph neural networks, and introduces a granular-ball graph refinement mechanism that decomposes a graph into several disjoint granular-balls with no fixed size, and utilizes them as nodes to construct a structural graph.

Jian-Cu Chen, Shuyin Xia, Guan Wang et al. · 0 citations
Conference Open access Sep 2026

Semifactual Explanations for GNN-based Classification: Formal Foundations, Complexity and Computation

A novel technique for post-hoc explainability queries in GNNs is introduced by focusing on the semifactual reasoning, and a novel learning architecture for addressing their computation is proposed.

Gianvincenzo Alfano, S. Greco, Domenico Mandaglio et al. · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.