Explaining Hypergraph Neural Networks: From Local Explanations to Global Concepts

Shiye Su, Iulia Duta, Lucie Charlotte Magister, Pietro Liò · DOI

Introduction

Graph Neural Networks (GNNs) have revolutionized machine learning on relational data, but they are fundamentally limited to pairwise interactions. In contrast, many real-world systems—ranging from co-authorship networks to metabolic pathways—involve multi-way relationships best represented by hypergraphs. While Hypergraph Neural Networks (HyperGNNs) have emerged to model these complex dependencies, they remain "black boxes." Explaining their predictions is significantly more challenging than in standard graphs due to the exponential search space of possible sub-structures, a problem often referred to as a combinatorial explosion.

The SHypX Framework

To address this, researchers introduced SHypX (Subhypergraph-based HyperGNN eXplainer), a model-agnostic, post-hoc framework designed to provide both local and global interpretability. Unlike previous methods that rely on potentially unreliable attention weights, SHypX directly identifies the most influential subhypergraphs.

The SHypX architecture for local instance-level attribution and global concept-based explanation.

The framework operates at two distinct scales:

  1. Local Explainer: For a specific node prediction, SHypX identifies a "subhypergraph" that is both faithful to the model's original output and concise. To avoid the computational cost of brute-force search, it employs independent Gumbel-Softmax samplers. This approach makes the discrete selection of hyperedges differentiable, allowing for optimization via standard gradient descent.
  2. Global Explainer: To understand class-wide patterns, SHypX uses unsupervised concept extraction. By clustering latent node representations (e.g., via k-means), it identifies recurring "concepts." Representative nodes from these clusters are then explained locally to reveal the structural motifs the model associates with specific classes.

Benchmarking with Synthetic Motifs

A significant contribution of this work is the introduction of four novel synthetic benchmarks: H-RANDHOUSE, H-COMMHOUSE, H-TREECYCLE, and H-TREEGRID. These datasets are designed to ensure that labels depend strictly on hypergraph structure rather than node features, providing a rigorous "stress test" for explainers where simple feature-based models fail.

Synthetic hypergraph motifs used to benchmark explainer performance, including Tree, House, Cycle, and Grid structures.

Key Insights and Results

The evaluation of SHypX yielded several critical insights into the nature of HyperGNN interpretability:

  • Superior Fidelity: SHypX consistently outperformed baselines such as Gradient, Attention, and HyperEX, improving fidelity by an average of 25 percentage points. This suggests that structure-aware optimization is far more effective than gradient-based proxies.
  • The "Attention" Trap: The study reinforces that internal attention weights are often poor proxies for explanation. By directly optimizing for output changes, SHypX provides more reliable insights into model logic.
  • Generalized Fidelity: The authors proposed a more sensitive measure of faithfulness based on KL-divergence or Total Variation distance. This metric provides a more granular view of how well an explanation captures the model's logic compared to standard accuracy-drop metrics that saturate easily.
  • Faithfulness-Concision Tradeoff: Through a tunable hyperparameter (λ), users can balance the need for a highly faithful explanation against the desire for a small, human-interpretable motif.

Conclusion and Future Work

SHypX represents a major step forward in making HyperGNNs interpretable. While currently focused on node classification, the framework's ability to recover complex structural motifs like "house" or "grid" patterns proves its value in unmasking the logic of higher-order relational models. Future work may extend these structural explanations to hyperedge-level or graph-level tasks, further bridging the gap between complex model performance and human understanding.

Summary updated

BibTeX
@misc{su2024explaining,
  author = {Shiye Su and Iulia Duta and Lucie Charlotte Magister and Pietro Liò},
  title = {{Explaining Hypergraph Neural Networks: From Local Explanations to Global Concepts}},
  year = {2024},
  eprint = {2410.07764},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.07764},
}
Figure