GNNExplainer: Generating Explanations for Graph Neural Networks
About
Graph Neural Networks (GNNs) are a powerful tool for machine learning on graphs.GNNs combine node feature information with the graph structure by recursively passing neural messages along edges of the input graph. However, incorporating both graph structure and feature information leads to complex models, and explaining predictions made by GNNs remains unsolved. Here we propose GNNExplainer, the first general, model-agnostic approach for providing interpretable explanations for predictions of any GNN-based model on any graph-based machine learning task. Given an instance, GNNExplainer identifies a compact subgraph structure and a small subset of node features that have a crucial role in GNN's prediction. Further, GNNExplainer can generate consistent and concise explanations for an entire class of instances. We formulate GNNExplainer as an optimization task that maximizes the mutual information between a GNN's prediction and distribution of possible subgraph structures. Experiments on synthetic and real-world graphs show that our approach can identify important graph structures as well as node features, and outperforms baselines by 17.1% on average. GNNExplainer provides a variety of benefits, from the ability to visualize semantically relevant structures to interpretability, to giving insights into errors of faulty GNNs.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Graph Explanation | NCI1 | Explanation Accuracy81.8 | 20 | |
| Graph Explanation | MUTAG | Explanation Accuracy78.3 | 20 | |
| Graph Explanation | TREE-CYCLES | Explanation Accuracy97.1 | 20 | |
| Graph Explanation | BA-SHAPES | Explanation Accuracy88.2 | 20 | |
| Counterfactual Explanations | Loan-Decision | Misclassification Rate16 | 19 | |
| Graph Explanation | DBLP | Fidelity -95.6 | 18 | |
| Graph Explanation | ACM | Fidelity (-)88.2 | 18 | |
| Graph Explanation | IMDB | Fidelity (Negative)68.8 | 18 | |
| Graph Explanation | ZINC250K HLM-CLint (test) | Fidelity+0.778 | 13 | |
| Counterfactual Explanation | Ogbn-arxiv | Misclassification Rate33 | 10 |