Structure Your Data: Towards Semantic Graph Counterfactuals
Angeliki Dimitriou, Maria Lymperaiou, Giorgos Filandrianos, Konstantinos Thomas, Giorgos Stamou
Abstract
Counterfactual explanations (CEs) based on concepts are explanations that consider alternative scenarios to understand which high-level semantic features contributed to particular model predictions. In this work, we propose CEs based on the semantic graphs accompanying input data to achieve more descriptive, accurate, and humanaligned explanations. Building upon state-of-theart (SotA) conceptual attempts, we adopt a modelagnostic edit-based approach and introduce leveraging GNNs for efficient Graph Edit Distance (GED) computation. With a focus on the visual domain, we represent images as scene graphs and obtain their GNN embeddings to bypass solving the NP-hard graph similarity problem for all input pairs, an integral part of CE computation process. We apply our method to benchmark and realworld datasets with varying difficulty and availability of semantic annotations. Testing on diverse classifiers, we find that our CEs outperform previous SotA explanation models based on semantics, including both white and black-box as well as conceptual and pixel-level approaches. Their superiority is proven quantitatively and qualitatively, as validated by human subjects, highlighting the significance of leveraging semantic edges in the presence of intricate relationships. Our model-agnostic graph-based approach is widely applicable and easily extensible, producing actionable explanations across different contexts. The code is available at https://github.com/ aggeliki-dimitriou/SGCE .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers2
- V-CECE: Visual Counterfactual Explanations via Conceptual EditsNikolaos Spanos, Maria Lymperaiou, Giorgos Filandrianos, Konstantinos Thomas et al.NeurIPS 2025 · 4 citations
- SCENIR: Visual Semantic Clarity through Unsupervised Scene Graph RetrievalNikolaos Chaidos, Angeliki Dimitriou, Maria Lymperaiou, Giorgos StamouICML 2025
Builds on6
- Counterfactual Explanations Can Be ManipulatedDylan Slack, Anna Hilgard, Himabindu Lakkaraju, Sameer SinghNeurIPS 2021 · 182 citations
- Robust Counterfactual Explanations on Graph Neural NetworksMohit Bajaj, Lingyang Chu, Zi Yu Xue, Jian Pei et al.NeurIPS 2021 · 140 citations
- Diffusion Visual Counterfactual ExplanationsMaximilian Augustin, Valentyn Boreiko, Francesco Croce, Matthias HeinNeurIPS 2022 · 124 citations
- Meaningfully debugging model mistakes using conceptual counterfactual explanationsAbubakar Abid, Mert Yüksekgönül, James ZouICML 2022 · 75 citations
- GREED: A Neural Framework for Learning Graph Distance FunctionsRishabh Ranjan, Siddharth Grover, Sourav Medya, Venkatesan T. Chakaravarthy et al.NeurIPS 2022 · 70 citations
Related papers
- Counterfactual Analysis on Large GraphsHsi-Wen Chen, Jian Pei, De-Nian Yang, Ming-Syan ChenKDD 2026
- Graph Segmentation and Contrastive Enhanced Explainer for Graph Neural NetworksZhiqiang Wang, Jiayu Guo, Jianqing Liang, Jiye Liang et al.AAAI 2025 · 4 citations
- Generative Causal Explanations for Graph Neural NetworksWanyu Lin, Hao Lan, Baochun LiICML 2021 · 217 citations
- Interpretable Graph Similarity Computation via Differentiable Optimal Alignment of Node EmbeddingsKhoa D. Doan, Saurav Manchanda, Suchismit Mahapatra, Chandan K. ReddySIGIR 2021 · 26 citations
- Interpretable Measures of Conceptual Similarity by Complexity-Constrained Descriptive Auto-EncodingAlessandro Achille, Greg Ver Steeg, Tian Yu Liu, Matthew Trager et al.CVPR 2024
