Introduction
While Graph Neural Networks (GNNs) are highly effective at predicting continuous values—such as molecular properties or traffic flow—understanding why they make those predictions remains a major challenge. Most GNN explainability (XAI) research has focused on classification tasks, where models pick discrete categories. RegExplainer introduces the first dedicated framework for explaining GNN regression models, utilizing a novel "graph mix-up" strategy and contrastive learning to overcome the distribution shifts that typically break traditional explanation methods.
The Challenge of Explaining GNN Regression
Explaining regression models is significantly harder than explaining classification models due to two primary hurdles:
- Continuous Decision Boundaries: Unlike classification, there are no discrete buckets. A tiny change in the graph's structure can lead to a proportional, continuous change in the output, making it difficult to define what constitutes a "sufficient" explanation.
- Distribution Shift: Existing explainers try to isolate an "important" subgraph ($G^*$). However, GNNs are trained on complete graphs. When a small, isolated subgraph is fed into a GNN, the model enters uncharted, out-of-distribution territory. Its prediction becomes unreliable, making it nearly impossible to accurately estimate the mutual information between the subgraph and the target label.
The RegExplainer Methodology
To tackle these issues, the authors propose RegExplainer, built on three core innovations:
- Graph Information Bottleneck (GIB) for Regression: Instead of using standard Cross-Entropy (which requires discrete classes), RegExplainer adapts the GIB principle using an InfoNCE loss. This allows the model to maximize the mutual information between the explanation subgraph and the target label within a continuous space.
- Graph Mix-up Framework: To solve the distribution shift problem, RegExplainer does not evaluate the subgraph $G^*$ in isolation. Instead, it takes $G^*$ and "mixes" it with label-irrelevant components sampled from other graphs in the dataset. This "repaired" graph appears as a complete, in-distribution graph to the GNN, keeping the model's internal embeddings stable.
- Self-Supervised Neighbor Sampling: To handle continuous labels, the framework employs a triplet-based learning strategy. For any given graph $G$, it samples a "positive" neighbor (a graph with a similar continuous label) and a "negative" neighbor (a graph with a vastly different label). The explainer is trained to ensure the explanation for $G$ is more similar to its positive neighbor than its negative one.
Key Insights and Empirical Evidence
The "Unsafe" Subgraph
A critical insight from the paper is that you cannot trust a GNN's prediction on a raw explanation subgraph. Because the topology changes so drastically from the training data, the GNN's output for a subgraph is often essentially "garbage."
Repaired Distributions
By using the "Mix-up" strategy, the authors provide a necessary background context for the explanation. Quantitative tests using Cosine Similarity and Euclidean Distance confirmed that these mixed-up graphs remain much closer to the original training distribution than raw subgraphs. This keeps the data within the manifold the GNN understands, allowing for a faithful extraction of what the model actually values.
Model-Agnosticism
RegExplainer is designed as a flexible wrapper. It can be paired with various GNN backbones (like GCN or GAT) and can enhance existing explainers (like GNNExplainer or PGExplainer) simply by swapping their objective functions for RegExplainer's continuous-friendly ones.
Key Results
The authors evaluated RegExplainer on four datasets: three synthetic benchmarks (BA-Motif-Volume, BA-Motif-Counting, Triangles) and one real-world molecular dataset (Crippen, predicting lipophilicity).
- Faithfulness: RegExplainer significantly outperformed existing state-of-the-art explainers adapted from classification tasks. In terms of AUC-ROC (measuring how well the explanation identifies ground-truth important edges), RegExplainer showed an average improvement of 34.3%, reaching up to 48.0% in specific scenarios.
- Robustness: The method proved highly stable across a wide range of hyperparameters, suggesting it does not require exhaustive tuning to deploy on new datasets.
Limitations and Future Work
While highly effective for static graphs, the authors note that the current framework cannot yet handle dynamic, spatio-temporal graphs (where nodes and edges change over time), as the mix-up strategy would need to account for temporal dependencies. Additionally, the neighbor sampling and mix-up processes introduce computational overhead compared to simpler gradient-based methods. Future work may explore incorporating cached dynamic embedding memories to extend this approach to tasks like traffic flow prediction.
Summary updated