Introduction
Graph Neural Networks (GNNs) have become indispensable tools for analyzing complex relational data, from molecular structures to social networks. However, their "black-box" nature remains a significant hurdle for high-stakes applications like drug discovery. While existing interpretable GNNs attempt to identify "rationale subgraphs"—the specific edges driving a prediction—they often struggle with variform rationales (where the important structure varies in shape across examples) and spurious correlations (where models latch onto non-causal noise).
TopInG (Topologically Interpretable Graph Learning) addresses these challenges by shifting the focus from raw node features to the underlying topology of the graph. By leveraging Topological Data Analysis (TDA), TopInG identifies core structural landmarks that remain robust even when the exact geometry of the rationale changes.
Methodology: Rationale Filtration and Topology
TopInG introduces a novel framework that models the identification of a rationale as a dynamic process rather than a static selection.
Key Components:
- Rationale Filtration Learning: Instead of binary edge selection, TopInG learns a "filtration"—an ordering of edges by importance. This effectively models the "growth" of the rationale subgraph edge by edge.
- Persistent Homology: As the graph grows, the model uses persistent homology to track topological features like connected components ($H_0$) and cycles ($H_1$). Features that "persist" across many filtration steps are identified as structural landmarks, while short-lived features are discarded as noise.
- Topological Discrepancy Loss: This core innovation enforces a statistical gap between the topological signatures of the rationale and the irrelevant parts of the graph. It uses a tractable approximation of the 1-Wasserstein distance to ensure the signal is clearly distinguishable from noise.
- Prior Regularization: A two-mixture Gaussian prior encourages the model to clearly categorize edges as either "rationale" or "noise," preventing overfitting.
The Persistent Homology Gap
A central finding of this work is the emergence of a "Persistent Homology Gap" in well-trained models. This gap represents a clear separation in the persistence of topological features between the ground-truth rationale and the surrounding noise.
As shown in the visualization above, rationale-related cycles ($H_1$) persist significantly longer than noise-related ones. This gap acts as a robust anchor for interpretation, allowing the model to ignore spurious correlations that might have similar local features but lack the global topological persistence of the true rationale.
Experimental Evaluation
The authors evaluated TopInG against state-of-the-art explainers (such as GSAT and GMT) across several benchmarks:
- Synthetic Motifs: On datasets like BA-2Motifs and the more complex Multiple Motif datasets (BA-HouseAndGrid), TopInG often achieved 100% Interpretation AUC, maintaining performance even as rationale complexity increased.
- Spurious Correlation (SPmotif): TopInG proved highly resilient to bias, maintaining predictive accuracy up to 77.68% in scenarios where baseline models were frequently misled by distractor patterns.
- Real-World Data: In chemical datasets like Mutag and Benzene, TopInG successfully identified relevant molecular sub-structures (like aromatic rings) with high precision.
Conclusion and Future Work
TopInG demonstrates that topology provides a powerful, robust lens for GNN interpretability. While the computational cost of persistent homology ($O(n^\omega)$) remains a challenge for massive-scale graphs, the model's rapid convergence—often within 20 epochs—offers a significant efficiency gain over traditional methods. Future research will focus on hardware acceleration for TDA libraries and the development of approximation algorithms to scale these topological insights to even larger network structures.
Summary updated