Graph neural networks (GNNs) excel at learning local node patterns, but they often lose their "sense of shape" when shrinking large graphs into smaller ones. To handle large-scale graph data, researchers rely on Graph Pooling (GP) to hierarchically coarsen graphs into smaller, more manageable representations.
However, current pooling methods have a major flaw: they frequently destroy the graph's global structure. Dense pooling methods tend to turn a structured graph into a "blob" where every node is connected to every other node, while sparse methods might accidentally delete the very edges that form critical loops or cycles. While some researchers have tried adding Persistent Homology (PH)—a mathematical tool for measuring shape—as a supplementary feature, these naive integrations usually offer only marginal improvements and lack interpretability.
This paper introduces Topology-Invariant Pooling (TIP), a novel plug-in mechanism that uses Persistent Homology not just as a feature, but as a structural guide to ensure that coarsened graphs retain their global structural "skeleton."
The Alignment of Pooling and Persistent Homology
The core motivation behind TIP is the observation that Persistent Homology (which analyzes graphs at multiple resolutions) and Graph Pooling (which shrinks graphs) are fundamentally performing similar operations. The authors found a stable, monotone relationship between pooling ratios and the preservation of topological features.
By forcing the pooled graph to be sparse and topologically similar to the original, TIP makes subsequent message-passing layers much more effective. The preserved structural "skeleton" provides a better path for information to flow.
How Topology-Invariant Pooling (TIP) Works
TIP treats PH as a structural guide for the pooling process through three main components:
- Learnable Filtration: Instead of using fixed mathematical rules to determine which parts of a graph are "important," TIP uses a small neural network (MLP) to learn a filtration function. This function assigns values to nodes and edges, effectively deciding the order in which they "appear" in the topological analysis.
- Resampling and Persistence Injection: Standard pooling produces a dense "assignment matrix." TIP uses the Gumbel-softmax trick to resample this into a sparse graph that is compatible with PH. It then reweights the edges of this pooled graph based on their "persistence"—essentially how much they contribute to stable topological features like cycles.
- Topological Loss ($L_{topo}$): This is the "secret sauce" of the method. The authors designed a novel loss function that compares the statistical properties of the original graph’s topology with the pooled graph’s topology. By minimizing this "topological gap," the model is forced to pick a pooling strategy that keeps the "shape" of the graph intact.
Key Results and Expressivity
The authors evaluated TIP across a wide array of benchmarks, including bioinformatics datasets (NCI1, PROTEINS, ENZYMES), social networks (IMDB-BINARY), and synthetic structural datasets (Ring, Torus). TIP was tested as a "plug-in" for three major pooling methods: DiffPool, MinCutPool, and DMoNPool.
- Topological Preservation: In the synthetic "ring" dataset, standard DiffPool had a massive topological error (measured by Wasserstein distance) of 234.57. Adding TIP slashed this error to 8.03, effectively "saving" the ring structure during the pooling process.
- Classification Accuracy: On the ENZYMES dataset, DiffPool-TIP achieved 65.05% accuracy, a massive jump from the base DiffPool's 48.34%.
- Consistent Gains: Across almost all datasets, adding TIP resulted in a 2-5% absolute improvement in accuracy, demonstrating that global topology is a powerful signal that GNNs were previously leaving on the table.
Theoretically, the paper proves that TIP is at least as expressive as the 1-Weisfeiler-Lehman (1-WL) test. Crucially, it can distinguish certain graphs that the 1-WL test (and many standard pooling methods) cannot, such as those differing only by the presence of specific cycles.
Limitations and Future Directions
While highly effective for graphs with complex structures, TIP has some limitations. Its current implementation focuses heavily on 1-dimensional homology (cycles). If a dataset consists primarily of tree-like graphs (which have no cycles), the benefits of TIP are significantly reduced. Additionally, the method currently struggles to distinguish graphs where the only difference is the number of disconnected components.
Future work may explicitly incorporate connected component information into node features during the pooling process to handle a wider variety of graph types, or extend this framework to higher-dimensional simplicial complexes beyond simple graphs.
Summary updated