Quantifying Explanation Quality in Graph Neural Networks using Out-of-Distribution Generalization
Ding Zhang, Siddharth Betala, Chirag Agarwal
TL;DR
This work tackles the challenge of evaluating GNN explanations by focusing on causal relevance under distribution shifts. It introduces the Explanation Generalization Score (EGS) and trains Explanation-Guided GNNs (EG-GNNs) using representative explanations to assess how well explanations align with invariant causal subgraphs. Through large-scale experiments on synthetic motifs (Triangle, Pentagon) and real-world molecular datasets (Fc, Mutag), the study shows that ground-truth explanations yield positive EGS across OOD splits, while explainers approximate this signal with varying fidelity. The proposed OOD-centered framework decouples explainer assessment from baseline performance, offering a robust benchmark with practical implications for incorporating domain knowledge into robust graph learning and explainability evaluation.
Abstract
Evaluating the quality of post-hoc explanations for Graph Neural Networks (GNNs) remains a significant challenge. While recent years have seen an increasing development of explainability methods, current evaluation metrics (e.g., fidelity, sparsity) often fail to assess whether an explanation identifies the true underlying causal variables. To address this, we propose the Explanation-Generalization Score (EGS), a metric that quantifies the causal relevance of GNN explanations. EGS is founded on the principle of feature invariance and posits that if an explanation captures true causal drivers, it should lead to stable predictions across distribution shifts. To quantify this, we introduce a framework that trains GNNs using explanatory subgraphs and evaluates their performance in Out-of-Distribution (OOD) settings (here, OOD generalization serves as a rigorous proxy for the explanation's causal validity). Through large-scale validation involving 11,200 model combinations across synthetic and real-world datasets, our results demonstrate that EGS provides a principled benchmark for ranking explainers based on their ability to capture causal substructures, offering a robust alternative to traditional fidelity-based metrics.
