Skip to main content
QUICK REVIEW

[论文解读] Beyond Edge Deletion: A Comprehensive Approach to Counterfactual Explanation in Graph Neural Networks

Matteo De Sanctis, Riccardo De Sanctis|arXiv (Cornell University)|Mar 4, 2026
Advanced Graph Neural NetworksComputer Science被引用 0
一句话总结

XPlore 通过允许边的插入/删除和节点特征扰动来扩展对 GNN 的反事实搜索,并通过梯度和余弦相似度来提升有效性与保真度。

ABSTRACT

Graph Neural Networks (GNNs) are increasingly adopted across domains such as molecular biology and social network analysis, yet their black-box nature hinders interpretability and trust. This is especially problematic in high-stakes applications, such as predicting molecule toxicity, drug discovery, or guiding financial fraud detections, where transparent explanations are essential. Counterfactual explanations - minimal changes that flip a model's prediction - offer a transparent lens into GNNs' behavior. In this work, we introduce XPlore, a novel technique that significantly broadens the counterfactual search space. It consists of gradient-guided perturbations to adjacency and node feature matrices. Unlike most prior methods, which focus solely on edge deletions, our approach belongs to the growing class of techniques that optimize edge insertions and node-feature perturbations, here jointly performed under a unified gradient-based framework, enabling a richer and more nuanced exploration of counterfactuals. To quantify both structural and semantic fidelity, we introduce a cosine similarity metric for learned graph embeddings that addresses a key limitation of traditional distance-based metrics, and demonstrate that XPlore produces more coherent and minimal counterfactuals. Empirical results on 13 real-world and 5 synthetic benchmarks show up to +56.3% improvement in validity and +52.8% in fidelity over state-of-the-art baselines, while retaining competitive runtime.

研究动机与目标

  • 在高风险领域为 GNN 的可解释性提供动机。
  • 开发一个综合性的反事实解释器,超越边删除。
  • 利用梯度信号找到最小且语义上忠实的反事实。
  • 通过余弦相似度保真度度量来缓解分布外伪影。
  • 在经验上证明相较于现有方法具有更高的有效性和保真度。

提出的方法

  • 引入 XPlore,一个能够修改边(插入和删除)以及节点特征的梯度引导扰动框架。
  • 将反事实搜索表述为一个软优化,损失函数为 L(G,G′)=Lpred(G,G′|Φ)+β Ldist(G,G′)。
  • 通过可逆的 P 门对邻接进行扰动,并利用交换的 A/P 方案引入带自环的边插入。
  • 通过门控或连续变化实现节点特征扰动,整合到同一梯度循环中。
  • 使用余弦相似度度量原始图嵌入与反事实图嵌入之间的语义保真度。
  • 提供收敛性保证和一个高效、可扩展的算法,复杂度大致为 O(|E| d + n d f)。
  • 在生成二值邻接扰动时,使用直通估计器对不可微阈值进行反向传播。
Figure 1 . (left) original graph $G$ predicted mutagenic. (right) Counterfactual $G^{\prime}$ predicted non-mutagenic with highlighted edge additions and removals, as well as potentially node additions to flip the prediction. Note that, although in this example, we illustrate valid chemical properti
Figure 1 . (left) original graph $G$ predicted mutagenic. (right) Counterfactual $G^{\prime}$ predicted non-mutagenic with highlighted edge additions and removals, as well as potentially node additions to flip the prediction. Note that, although in this example, we illustrate valid chemical properti

实验结果

研究问题

  • RQ1如何在允许边插入和节点特征扰动的前提下,超越边删除来生成 GNN 的反事实解释?
  • RQ2跨结构和特征空间的梯度引导扰动是否比仅边删除的方法产生更有效、保真且语义上连贯的反事实?
  • RQ3将基于余弦的语义保真度引入,是否能减少图反事实中的分布外伪影?
  • RQ4在多样数据集上,XPlore 相对于现有最先进的图反事实解释器基线的表现如何?
  • RQ5允许自由节点特征扰动与门控机制对解释质量的影响如何?

主要发现

  • XPlore 在 17/18 个数据集上相较基线具有更高的有效性和保真度。
  • 在基准测试中,XPlore 的有效性提升最高可达 +56.3%,保真度提升最高可达 +52.8%(相对于最先进的基线)。
  • 允许边插入和节点特征扰动相比仅边删除,能产生更丰富、更加连贯的反事实。
  • 图嵌入的余弦相似度与语义保真度相关,表明反事实中含义的保留更好。
  • 具有自由节点扰动(并包含门控)的变体在有效性与保真度上优于仅边删除或仅门控的变体。
  • XPlore 在维持竞争性运行时间的同时,显著提升了解释性指标。
(a) BAS house motif.
(a) BAS house motif.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。