cs.LGOct 2, 2026

Beyond Trained Models: Compiling GNNs for a Sound Explainer Benchmark

Authors: Steve Azzolin, Francesco Paolo Nerini, Stefano Teso, Francesco Bonchi, Bruno Lepri, André Panisson, Andrea Passerini

Organizations: University of Trento Trento, Italy

Abstract

Explainers for Graph Neural Networks (GNNs) are commonly evaluated by their plausibility, i.e., how well their explanations recover a predefined ground truth, such as a motif planted in the data. This protocol implicitly assumes that a GNN trained on such data relies on the intended motif. Although prior work has questioned this assumption, plausibility remains widespread. First, we show that the assumption is violated on several widely used benchmarks, where, e.g., degree statistics alone suffice to solve the task. Then, we remove this confounder by replacing training with compilation. We achieve this by introducing Gracr\mathsf{Gracr}, the first compiler translating graded modal logic formulas into GNN weights, yielding models that replicate the behaviour of the corresponding formulas. Since the behaviour of the model is now known by construction, we can define its ground truth explanation formally and compute it exactly. Building on this, we introduce GracrBench\mathsf{Gracr}\mathsf{Bench}, a benchmark of compiled GNNs for the evaluation of explainers against this exact ground truth. Experiments on eleven explainers across six tasks show its effectiveness for fine-grained diagnostic evaluation: notably, we discover that most explainers are not robust to indirect influences or alternative implementations of the same formula. These results position GracrBench\mathsf{Gracr}\mathsf{Bench} as a novel, rigorous evaluation setting for graph post-hoc explainability.

Figures & tables

Appendix figures & tables20 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Measuring What Matters: A Unified Evaluation Framework for GNN Explainability

    Jul 6, 2026Francesco Paolo Nerini, Mirko Zaffaroni, Paolo Baracco +2Explainability EvaluationGNN Explainability

  2. Controllable GNN Explanations via Multi-Metric Preference Selection

    Sep 26, 2026Rachit Verma, Yashraj J. Deshmukh, Anirban DasguptaGNN ExplainabilityExplanation Stability

  3. Declarative Explanations for Graph Neural Networks: A Demonstration

    Oct 19, 2026Cibo Yu, Haitong Tang, Yinghui Wu +4GNN ExplainabilityGraph Neural Networks