Boosting Graph Pooling with Persistent Homology

Chaolong Ying, Xinjian Zhao, Tianshu Yu · OpenReview

Abstract

Recently, there has been an emerging trend to integrate persistent homology (PH) into graph neural networks (GNNs) to enrich expressive power. However, naively plugging PH features into GNN layers always results in marginal improvement with low interpretability. In this paper, we investigate a novel mechanism for injecting global topological invariance into pooling layers using PH, motivated by the observation that filtration operation in PH naturally aligns graph pooling in a cut-off manner. In this fashion, message passing in the coarsened graph acts along persistent pooled topology, leading to improved performance. Experimentally, we apply our mechanism to a collection of graph pooling methods and observe consistent and substantial performance gain over several popular datasets, demonstrating its wide applicability and flexibility.

Introduction

Graph Neural Networks (GNNs) typically utilize Graph Pooling (GP) to hierarchically reduce graph size, analogous to pooling layers in image-based CNNs. However, standard graph pooling is notoriously difficult to implement without losing critical structural information. Many "dense" pooling methods (such as DiffPool) tend to coarsen graphs into nearly fully connected cliques. When a graph becomes a dense blob, it loses the structural signals—such as cycles or long-range paths—that GNNs are designed to exploit. While previous attempts have added topological features to GNNs, they often yield only marginal improvements and lack interpretability. We propose that the pooling process itself must be made topology-aware.

Topology-Invariant Pooling (TIP)

We introduce Topology-Invariant Pooling (TIP), a novel mechanism that can be integrated into existing pooling methods (e.g., DiffPool, MinCutPool). TIP ensures that the coarsening process preserves the global "soul" of the graph's shape through three main components:

  1. Sparse Resampling: Instead of accepting a dense, soft assignment matrix, TIP uses the Gumbel-softmax trick to resample a sparse coarsened adjacency matrix. This prevents the "numerical explosion" and over-smoothing common in dense pooling.
  2. Persistence Injection: Using Persistent Homology (PH), the method tracks how structural features like 1D cycles appear and disappear across scales. These persistence features are injected back into edge weights, effectively reweighting the graph to emphasize persistent structures.
  3. Topological Loss ($L_{topo}$): A new loss function minimizes the difference between the topological statistics (mean and variance of persistence) of the original and coarsened graphs, forcing the network to learn a shape-preserving strategy.
Hierarchical comparison of standard graph pooling (top) vs. persistent homology-based reduction (bottom).

Empirical Alignment and Results

A fundamental insight of this research is the natural alignment between GP and PH. The authors observed a stable, monotone relationship between the pooling ratio and the "persistence ratio" (the amount of meaningful topological information preserved). This suggests that PH and GP are mathematically aligned in how they simplify data.

The alignment of persistence ratio and pooling ratio across various benchmark datasets.

TIP consistently outperformed base pooling methods across a wide array of benchmarks:

  • Significant Accuracy Gains: On the ENZYMES dataset, adding TIP to DiffPool boosted test accuracy from 48.34% to 65.05%.
  • Regression Tasks: On the ZINC molecular dataset, TIP significantly reduced Mean Square Error (e.g., DiffPool's error dropped from 0.34 to 0.28).
  • Structural Preservation: Qualitative visualizations show that while standard methods turn a "ring" graph into a messy cluster, TIP-enabled methods produce a clean, smaller ring, successfully preserving global topology.

Discussion and Limitations

While TIP shows substantial gains, it currently relies heavily on the presence of cycles (1D features). It may be less effective on tree-like graphs or graphs where the primary signal is 0-dimensional (connected components). Additionally, while the complexity is manageable ($O(m \log m)$), calculating PH adds computational overhead compared to naive pooling. Future work will focus on incorporating 0-dimensional features to handle a wider variety of graph types.

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