Boosting Graph Pooling with Persistent Homology

Chaolong Ying, Xinjian Zhao, Tianshu Yu

TL;DR

Graph pooling methods often inadvertently destroy global topological structures like cycles, leading to over-smoothed, fully connected, or poorly representative coarsened graphs. This paper introduces Topology-Invariant Pooling (TIP), a plug-in mechanism that leverages Persistent Homology (PH) to inject global topological invariance directly into pooling layers. By enforcing the preservation of essential macro-structures, TIP consistently and substantially improves the performance of various graph neural network (GNN) architectures across multiple benchmarks.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) routinely use Graph Pooling (GP) to hierarchically coarsen graphs, reducing their size while attempting to preserve structural information for downstream tasks like graph classification. However, existing pooling methods suffer from a critical flaw:

  • Dense pooling methods (like DiffPool) often generate coarsened graphs that are nearly fully connected, effectively erasing meaningful topology.
  • Sparse pooling methods drop nodes based on local ranking scores, which frequently shatters global structures.

While some researchers have tried integrating Persistent Homology (PH)—a mathematical tool from topological data analysis that tracks how geometric features (like holes or cycles) appear and disappear across different scales—they typically just append pre-calculated PH features to GNN layers. This naive feature-level integration yields only marginal performance gains and lacks interpretability. The authors address this gap by asking: How can we deeply integrate PH into the pooling process itself to guide and preserve the graph's global topology?

Methods

The authors propose Topology-Invariant Pooling (TIP), which integrates PH at both the feature and topology levels during the pooling step.

Figure 2: Overview of our method. The shaded part is one layer of Topology-Invariant Pooling.

The TIP pipeline consists of three main components:

  1. Resampling via Gumbel-Softmax: Standard dense pooling outputs a fully connected, dense adjacency matrix. TIP applies a normalization step followed by a Gumbel-Softmax trick to independently resample entries, transforming the dense matrix into a sparse, structurally meaningful graph ($A'^{(l)}$).
  2. Persistence Injection: TIP uses a learnable filtration function (parameterized by an MLP) to compute 1-dimensional Persistence Diagrams (PDs), which specifically track cycles. Edges that do not contribute to cycles receive zero persistence. The sparse adjacency matrix is then explicitly reweighted using these persistence values, emphasizing structurally vital edges.
  3. Topological Loss Function ($\mathcal{L}_{topo}$): To ensure the coarsened graph remains topologically similar to the original, the authors introduce a novel loss function. Instead of computing the computationally expensive Wasserstein distance during training, they vectorize the PDs using statistical transformations (triangle, Gaussian, and line point) and minimize the difference between the high-order statistics (mean and variance) of the original and pooled graphs.

Datasets

The method was evaluated on a wide variety of datasets:

  • Highly Structured Synthetic Datasets: ring, torus, and grid2d (used to evaluate topology-preserving capabilities).
  • Biological & Chemical Benchmarks: ENZYMES, PROTEINS, DD, NCI1, NCI109, ZINC, and OGBG-MOLHIV.
  • Social Network Benchmarks: IMDB-BINARY and IMDB-MULTI.
  • Task-Specific Synthetic Benchmarks: Cycles and 2-Cycles (designed to test cycle-counting and connected-component discrimination).

Key Insights and Ideas

  • The Alignment of GP and PH: The foundational insight of the paper is that graph pooling and persistent homology are fundamentally doing the same thing through different lenses: both seek to coarsen or sparsify a graph hierarchically. The authors empirically proved a stable, monotone relationship between the pooling ratio and the non-zero persistence ratio across multiple datasets.
Figure 1: Illustration of Graph Pooling (GP) and Persistent Homology (PH). (a) GP and PH share a similar hierarchical fashion by coarsening a graph. (b) As a motivating experiment, we gradually change pooling ratio and count how persistence ratio (ratio of non-zero persistence) changes with it. (c) Illustration of persistence diagrams.
  • Focusing on 1D Features (Cycles): While 0-dimensional PH tracks connected components, the authors found that incorporating 0D features merely increases runtime without boosting performance. Focusing exclusively on 1D features (cycles) captures the most task-relevant global structures (especially in molecular data) while keeping computations efficient.
  • Similarity Over Exactness: Unlike traditional pooling losses that force exact cluster assignments, $\mathcal{L}_{topo}$ forces the model to prioritize topological similarity to the original graph, giving the network the flexibility to find better representations.

Key Results

TIP was evaluated as an additional plug-in component for three pioneering dense pooling methods: DiffPool, MinCutPool, and DMoNPool.

  • Topological Preservation: On highly structured datasets (ring, torus), TIP drastically reduced the Wasserstein distance between the original and coarsened topologies compared to baseline pooling methods. Visually, TIP clearly preserves macro-cycles where other methods produce messy, fully connected blobs.
Figure 3: Coarsened graphs from different methods in the preserving topological structure experiment.
  • Graph Classification Accuracy: TIP achieved substantial performance gains across real-world datasets. Most notably, on the ENZYMES dataset, integrating TIP boosted DiffPool's accuracy from 48.34% to 65.05%—a massive ~17% absolute improvement.
  • Regression Tasks: On the ZINC molecular dataset, adding TIP consistently reduced the Mean Squared Error (MSE) for all three base pooling methods (e.g., DiffPool MSE dropped from 0.34 to 0.28).

Limitations and Future Work

The primary limitation of TIP is its heavy reliance on circular structures (cycles). Because it filters out non-cycle edges by assigning them zero persistence, its efficacy drops significantly on tree-like graphs or graphs where cycles are not informative. Furthermore, synthetic testing on the 2-Cycles dataset revealed that TIP struggles when the number of connected components is the sole distinguishing factor between graph classes.

As a direction for future work, the authors suggest explicitly incorporating connected-component information directly into node features during the pooling process to overcome this limitation.

Summary updated

BibTeX
@inproceedings{ying2024boosting,
  author = {Chaolong Ying and Xinjian Zhao and Tianshu Yu},
  title = {{Boosting Graph Pooling with Persistent Homology}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=WcmqdY2AKu},
}
Figure