Self-Interpretable Graph Learning with Sufficient and Necessary Explanations

Jiale Deng, Yanyan Shen

Abstract

Graph Neural Networks (GNNs) typically operate as black boxes, necessitating post-hoc or self-interpretable methods for high-stakes applications. However, existing self-interpretable GNNs often suffer from an "accuracy tax" due to biased or noisy explanations. This paper introduces SUNNY-GNN, a framework that utilizes contrastive learning to produce explanations that are both sufficient and necessary. SUNNY-GNN improves prediction accuracy by 3.5% and explainability fidelity by 13.1% compared to current state-of-the-art methods, demonstrating that interpretability can enhance rather than degrade model performance.

Introduction: The Challenge of Interpretable GNNs

Graph Neural Networks (GNNs) have shown remarkable success in various domains, yet their "black-box" nature limits their deployment in sensitive fields like medicine or finance. Self-interpretable GNNs aim to address this by generating a small, explanatory subgraph alongside every prediction. However, a significant hurdle remains: the "accuracy tax." Standard self-interpretable models often perform worse than their non-interpretable counterparts.

The authors identify a fundamental conflict in explanation quality. Sufficiency-focused models tend to include excessive noise (extra edges), which confuses the model. Conversely, necessity-focused models may omit vital patterns, leading to incomplete explanations. When explanations are either biased or noisy, the GNN encoder learns from suboptimal data, potentially causing accuracy drops of up to 15.2%. SUNNY-GNN seeks the "sweet spot"—explanations that are exactly sufficient for a correct prediction and strictly necessary, containing no extraneous information.

Conceptual illustration of sufficient and necessary explanations in graph learning.

The SUNNY-GNN Framework

SUNNY-GNN integrates an explanation generator, a GNN encoder, and a classifier into a unified, end-to-end trainable framework. The core innovation is its Augmentation and Contrastive Learning strategy, which "distills" explanations into their most potent form.

The SUNNY-GNN framework architecture showing explanation generation, prediction, and augmentation stages.

The framework operates through several key mechanisms:

  • Structural Perturbation: For a generated explanation $G_S$, the model creates "positive" samples by adding edges (increasing sufficiency) and "negative" samples by removing edges (testing necessity).
  • Contrastive Loss ($L_{cts}$): This loss function aligns the representation of the explanation with its positive versions while pushing it away from negative versions, ensuring the explanation is both minimal and informative.
  • Hard Sample Mining: Recognizing that edges closer to the target node are typically more impactful, the authors use distance-based coefficients to prioritize perturbations. This forces the model to learn from more challenging, informative samples.
  • Reliability Filtering: To ensure the quality of augmentations, confidence coefficients are used to reweight samples during training, preventing the model from learning from perturbations that decrease prediction certainty.

SUNNY-GNN also extends to Heterogeneous Graphs by utilizing meta-paths (e.g., Author-Paper-Author) to guide the augmentation process, ensuring semantic consistency in complex structures.

Experimental Results and Key Insights

The model was rigorously evaluated across diverse benchmarks, including citation networks (Citeseer, Cora, Pubmed), co-purchase/co-authorship graphs (Amazon, Coauthor-CS/Physics), and heterogeneous graphs (IMDB, DBLP, ACM).

Key Performance Metrics

  • Accuracy Improvement: SUNNY-GNN outperformed base GNNs (GCN/GAT) by an average of 1.1% and surpassed other self-interpretable baselines like GSAT and CAL by 3.5%.
  • Explainability Fidelity: The framework achieved a 13.1% average improvement in fidelity, indicating that its explanations more accurately reflect the underlying logic of the predictions.
  • Robustness: SUNNY-GNN demonstrated remarkable stability in low-label regimes. The contrastive loss provides a structural supervision signal that allows it to maintain high performance even when training labels are scarce.

Insights

The results suggest that the "accuracy tax" is not an inherent property of interpretable models. By focusing on "sufficient and necessary" subgraphs, SUNNY-GNN acts as a regularizer, helping the GNN focus on robust, local features while ignoring global noise.

Conclusion

SUNNY-GNN demonstrates that high-quality, built-in explanations can actually improve GNN performance. By balancing sufficiency and necessity through contrastive learning, the framework provides a path toward trustworthy and accurate graph learning. Future work includes extending this logic to tasks beyond node classification, such as link prediction and graph-level classification, and further optimizing the computational overhead associated with the augmentation process.

Summary updated

BibTeX
@inproceedings{deng2024self,
  author = {Jiale Deng and Yanyan Shen},
  title = {{Self-Interpretable Graph Learning with Sufficient and Necessary Explanations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i10.29059},
}
Figure