LogicXGNN: Grounded Logical Rules for Explaining Graph Neural Networks
Chuqin Geng, Ziyu Zhao, Zhaoyue Wang, Haolin Ye, Yuhe Jiang, Xujie Si
TL;DR
This work tackles the misalignment between fidelity in abstract concept spaces and practical grounding of GNN explanations. It introduces LogicXGNN, a post-hoc framework that learns logical rules over predicates reflecting GNN message-passing and grounds these rules via orbit-based subgraph representations, accompanied by a data-grounded fidelity Fid_D metric. Empirically, LogicXGNN achieves substantial improvements in Fid_D (over 20% on average) and dramatic speedups (10–100x) over state-of-the-art baselines, while maintaining strong coverage, stability, and validity across architectures and datasets. The approach provides scalable, interpretable, and trustworthy GNN explanations with direct grounding in observable data.
Abstract
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/.
