LogicXGNN: Grounded Logical Rules for Explaining Graph Neural Networks
About
Existing rule-based explanations for Graph Neural Networks (GNNs) provide global interpretability but often optimize and assess fidelity in an intermediate, uninterpretable concept space, overlooking grounding quality for end users in the final subgraph explanations. This gap yields explanations that may appear faithful yet be unreliable in practice. To this end, we propose LogicXGNN, a post-hoc framework that constructs logical rules over reliable predicates explicitly designed to capture the GNN's message-passing structure, thereby ensuring effective grounding. We further introduce data-grounded fidelity ($\textit{Fid}_{\mathcal{D}}$), a realistic metric that evaluates explanations in their final-graph form, along with complementary utility metrics such as coverage and validity. Across extensive experiments, LogicXGNN improves $\textit{Fid}_{\mathcal{D}}$ by over 20% on average relative to state-of-the-art methods while being 10-100 $\times$ faster. With strong scalability and utility performance, LogicXGNN produces explanations that are faithful to the model's logic and reliably grounded in observable data. Our code is available at https://github.com/allengeng123/LogicXGNN/.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Graph Classification | NCI1 (test) | Accuracy63.63 | 177 | |
| Graph Classification | Mutagenicity (test) | Accuracy68.69 | 14 | |
| Graph Classification | BAShapes (test) | Accuracy82.67 | 3 | |
| Graph Classification | IMDB (test) | Accuracy74.16 | 3 | |
| Graph Classification Explanation | BAShapes | Weighted F1-score82.68 | 3 | |
| Graph Classification Explanation | Mutagenicity | Weighted F181.44 | 3 | |
| Graph Classification Explanation | NCI1 | Weighted F1 Score73.66 | 3 | |
| Graph Classification Explanation | IMDB | Weighted F1 Score71.43 | 3 | |
| Graph Classification Explanation | IMDB | Weighted Recall74.16 | 3 | |
| Graph Classification Explanation | BAShapes (test) | Weighted Precision82.76 | 3 |