FlowX: Towards Explainable Graph Neural Networks via Message Flows

Shurui Gui, Hao Yuan, Jie Wang, Qicheng Lao, Kang Li +1 more
6/26/2022
41 citations
cs.LGcs.AI
gnn

Official code: divelab/DIG (2,010 stars, Python, GPL-3.0, last commit 2024-07-15). 1 more implementation below.

Abstract

We investigate the explainability of graph neural networks (GNNs) as a step toward elucidating their working mechanisms. While most current methods focus on explaining graph nodes, edges, or features, we argue that, as the inherent functional mechanism of GNNs, message flows are more natural for performing explainability.

Show full abstract

To this end, we propose a novel method here, known as FlowX, to explain GNNs by identifying important message flows. To quantify the importance of flows, we propose to follow the philosophy of Shapley values from cooperative game theory. To tackle the complexity of computing all coalitions' marginal contributions, we propose a flow sampling scheme to compute Shapley value approximations as initial assessments of further training. We then propose an information-controlled learning algorithm to train flow scores toward diverse explanation targets: necessary or sufficient explanations. Experimental studies on both synthetic and real-world datasets demonstrate that our proposed FlowX and its variants lead to improved explainability of GNNs. The code is available at https://github.com/divelab/DIG.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
divelab/DIGOfficial2,010PythonGPL-3.02024-07-15
CM-BF/FlowXCommunity7Jupyter NotebookMIT2024-09-13
divelab/DIGOfficial100%
GPL-3.0

A library for graph deep learning research

2,010289Python, Jupyter NotebookOct 30, 20202 years agoGPL-3.0
3d-graphdeep-learningexplainable-mlgraph-generationgraph-neural-network+1 more
CM-BF/FlowXCommunity100%
MIT

The official implementation of "FlowX: Towards Explainable Graph Neural Networks via Message Flows" [TPAMI 2023]

71Jupyter Notebook, PythonJul 14, 20232 years agoMIT

Similar Papers

Cite this paper

@article{gui2022flowx,
  title  = {FlowX: Towards Explainable Graph Neural Networks via Message Flows},
  author = {Shurui Gui and Hao Yuan and Jie Wang and Qicheng Lao and Kang Li and Shuiwang Ji},
  year   = {2022},
  eprint = {2206.12987},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.12987}
}

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/2206.12987.svg)](https://codeofpaper.com/paper/2206.12987)

Discussion