Abstract
As one of the most popular machine learning models today, graph neural networks (GNNs) have attracted intense interest recently, and so does their explainability. Users are increasingly interested in a better understanding of GNN models and their outcomes. Unfortunately, today's evaluation frameworks for GNN explainability often rely on few inadequate synthetic datasets, leading to conclusions of limited scope due to a lack of complexity in the problem instances. As GNN models are deployed to more mission-critical applications, we are in dire need for a common evaluation protocol of explainability methods of GNNs. In this paper, we propose, to our best knowledge, the first systematic evaluation framework for GNN explainability, considering explainability on three different "user needs". We propose a unique metric that combines the fidelity measures and classifies explanations based on their quality of being sufficient or necessary. We scope ourselves to node classification tasks and compare the most representative techniques in the field of input-level explainability for GNNs. For the inadequate but widely used synthetic benchmarks, surprisingly shallow techniques such as personalized PageRank have the best performance for a minimum computation time. But when the graph structure is more complex and nodes have meaningful features, gradient-based methods are the best according to our evaluation criteria. However, none dominates the others on all evaluation dimensions and there is always a trade-off. We further apply our evaluation protocol in a case study for frauds explanation on eBay transaction graphs to reflect the production environment.
Introduction
As Graph Neural Networks (GNNs) transition from academic research to mission-critical applications—such as fraud detection at eBay or molecular property prediction—the need for trust and transparency becomes paramount. While numerous explainability (XAI) methods have been proposed to interpret these "black box" models, the field has lacked a standardized evaluation protocol. Current evaluations often rely on simplistic synthetic datasets where the "ground truth" is trivial, leading to inconsistent metrics and a disregard for computational efficiency. Furthermore, existing studies often assume the underlying GNN is perfectly accurate, failing to address how explainers perform when a model makes mistakes.
The GraphFramEx Framework
To address these gaps, we introduce GraphFramEx, a systematic evaluation framework designed to assess GNN explainers across three primary "user needs":
- Focus: Distinguishing between explaining the underlying phenomenon (data labels) versus the model's specific logic.
- Mask Nature: Evaluating both "soft" masks (continuous importance weights) and "hard" masks (discrete subgraphs).
- Transformation: Analyzing how explanations are pruned, such as selecting the top-k most influential edges.
The framework was tested across a broad spectrum of datasets, including five standard synthetic benchmarks, ten diverse public real-world datasets (e.g., Cora, PubMed, Facebook), and a large-scale production dataset from eBay involving 289,000 nodes for fraud detection.
Evaluation Metrics: The Characterization Score
A core contribution of GraphFramEx is the Characterization Score, a weighted harmonic mean of two fidelity metrics that classifies explanations based on their necessity and sufficiency:
- Fid+ (Necessity): Measures if the prediction changes when the explanation is removed.
- Fid- (Sufficiency): Measures if the explanation alone can reproduce the original prediction.
Experimental Results and Insights
Our systematic evaluation revealed several critical insights:
- The "Synthetic Trap": On standard synthetic benchmarks, simple algorithms like Personalized PageRank (PPR) often outperform complex neural explainers, suggesting that many modern XAI methods are over-engineered for these tasks.
- Efficiency vs. Quality: For real-world graphs with complex features, gradient-based methods like Saliency offer the best balance of quality and speed, often performing 10,000 times faster than perturbation-based methods like Occlusion.
- Explaining Model Failures: Gradient-based methods are uniquely robust in explaining the "broken logic" of incorrect GNN predictions, whereas other methods struggle when the model's accuracy drops.
- No Universal Winner: There is a persistent trade-off between finding explanations that are strictly sufficient versus those that are necessary. No single method dominates all categories.
In the eBay fraud case study, GNNExplainer emerged as the top performer due to its ability to compute edge and node feature importance independently—a vital feature for understanding fraudulent transactions where specific user attributes are as critical as their network connections. The authors synthesized these findings into a decision tree, providing a practical roadmap for practitioners to choose the right explainer based on their specific constraints.
Conclusion
GraphFramEx provides a rigorous roadmap for navigating the "Wild West" of GNN explainability. While this work focuses on local node classification, it highlights the need for expanded systematic evaluations in graph classification and global explainability. To foster community progress, the authors have launched an online leaderboard for researchers to benchmark new XAI methods against the GraphFramEx protocol.
Summary updated