Abstract
Graph Neural Networks (GNNs) are increasingly used in critical domains, yet their "black-box" nature hinders trust and adoption. Existing explainers often rely on the GNN's own predictions for supervision, which can lead to the reinforcement of learned biases and spurious correlations. This paper introduces GSCExplainer, a novel approach that leverages graph segmentation and contrastive learning to generate faithful explanations. By partitioning the input graph into explanatory and redundant subgraphs and applying a self-supervised contrastive objective, GSCExplainer effectively isolates the causal structural features responsible for model predictions. Experimental results on molecular and synthetic datasets demonstrate that GSCExplainer significantly outperforms state-of-the-art methods in both accuracy and robustness.
Introduction: The Challenge of GNN Interpretability
While GNNs excel at modeling complex relational data, understanding why they make specific predictions remains a significant challenge. Most model-agnostic explainers attempt to identify the most influential subgraph that triggers a prediction. However, these methods typically suffer from a lack of ground-truth data, forcing them to use the GNN’s own output as a supervisory signal.
This creates a dangerous feedback loop: if a GNN has learned a spurious correlation—such as associating a specific chemical ring with a property simply because it is common in the training set—the explainer will likely highlight that ring as the "explanation," regardless of its actual causal impact. To break this cycle, we need methods that can distinguish true explanatory signals from redundant noise without relying on external labels.
Methodology: The GSCExplainer Framework
The proposed GSCExplainer addresses these issues through a three-stage pipeline designed to enhance explanation fidelity through self-supervision.
1. Graph Segmentation
The process begins by passing the input graph through a GCN and an MLP to assign importance scores to every edge. Based on these scores, the graph is partitioned into two disjoint sets: the Explanatory Subgraph ($G_{exp}$), which contains the critical "signal," and the Redundant Subgraph ($G_{red}$), which represents the "noise."
2. Graph Contrastive Learning
The core innovation of GSCExplainer is its use of contrastive learning based on the principle of "indestructibility." The model generates augmented versions of the graph to create training signals:
- Positive Pairs: Randomly removing edges from the redundant subgraph should not change the core prediction logic. These augmented graphs are pulled together in the embedding space.
- Negative Pairs: Perturbing the explanatory subgraph should break the prediction logic. These examples are pushed away from the positive pairs.
3. Learning Loss
The model optimizes a composite loss function that combines an Effectiveness Loss (ensuring the explanatory subgraph alone can produce the correct prediction) and a Contrastive Loss (refining the boundary between signal and noise).
Experimental Evaluation
The researchers evaluated GSCExplainer on four benchmarks: molecular graphs (MUTAG, NCI1) for graph classification and synthetic graphs (BA-Shapes, Tree-Cycles) for node classification. These datasets test the model's ability to identify specific motifs (like chemical rings or geometric shapes) within larger, noisier structures.
Results and Discussion
GSCExplainer consistently outperformed state-of-the-art methods like OrphicX, GNNExplainer, and PGExplainer. On the MUTAG dataset, it achieved a prediction accuracy approximately 4 percentage points higher than OrphicX. Notably, on the Tree-Cycles dataset, the model achieved a perfect 100% accuracy across all tested sparsity levels.
An ablation study confirmed that the Graph Contrastive Learning (GCL) component is essential; removing it led to a performance drop of 6% to 9% on graph tasks. This demonstrates that explicitly modeling redundancy and using self-supervised perturbations allows the explainer to resist the internal biases of the target GNN.
Limitations and Future Directions
Despite its success, GSCExplainer faces challenges regarding hyperparameter sensitivity, particularly the edge perturbation ratio ($\alpha$) and the number of negative samples ($m$). Furthermore, there is an inherent trade-off between explanation sparsity (size) and fidelity. Future research will focus on automating the determination of optimal subgraph sizes and improving the scalability of the contrastive learning module for massive industrial-scale graphs.
Summary updated