Scalable Topology-Preserving Graph Coarsening with Graph Collapse

Xiang Wu, Rong-Hua Li, Xunkai Li, Kangfei Zhao, Hongchao Qin, Guoren Wang

TL;DR

STPGC is a novel graph coarsening framework that reduces graph size while strictly preserving essential topological features like rings and voids using concepts from algebraic topology. By replacing expensive clique enumeration with efficient neighborhood-based "collapses," it achieves up to a 37x speedup over previous methods, making topology-aware Graph Neural Network (GNN) training scalable to massive datasets.

What Problem Does This Paper Address?

As graph datasets (social networks, molecular structures, etc.) grow to billions of edges, training Graph Neural Networks (GNNs) becomes computationally prohibitive. Graph coarsening aims to solve this by creating a smaller "summary" graph that retains the properties of the original.

Most existing methods focus on preserving spatial (local connectivity) or spectral (eigenvalues) features. However, they often ignore topological features—the underlying "skeleton" of the graph, including connectivity components, rings, and higher-order voids. Recent research suggests these topological structures are vital for GNN performance, especially in domains like chemistry and biology.

The only prior method for topology-preserving coarsening, Graph Elementary Collapse (GEC), relies on clique enumeration, which has an exponential worst-case time complexity. This makes it unusable for large graphs without partitioning, which unfortunately destroys the very global topology it aims to protect.

Methods

The authors introduce STPGC (Scalable Topology-Preserving Graph Coarsening), which utilizes three core algorithms rooted in algebraic topology:

  1. GStrongCollapse: Identifies "dominated" nodes—nodes whose closed neighborhood is a subset of a neighbor's neighborhood. These nodes can be merged into their "dominators" without changing the graph's homotopy type (its fundamental topological shape).
  2. GEdgeCollapse: Identifies and removes "dominated" edges. This is crucial for "breaking deadlocks" in complex graphs where no nodes are initially dominated.
  3. NeighborhoodConing: A proactive strategy that inserts temporary "dominated" edges to induce new dominated nodes. This allows the algorithm to shrink the graph further than simple merging would allow, while still maintaining topological integrity.

To handle real-world requirements where a specific reduction ratio is needed, they also propose Approximate Coarsening. This phase relaxes the strict "dominance" conditions to allow for further shrinking once the "topological core" is reached.

Datasets

The researchers evaluated STPGC on two fronts:

  • Node Classification: Standard benchmarks including Cora, Citeseer, DBLP, ogbn-arXiv, and ogbn-products.
  • Scalability Analysis: Large-scale unlabeled datasets including Youtube, LiveJournal, cit-Patent, and Flixter.

They compared STPGC against seven baselines, including Variation Neighborhoods, Algebraic JC, and the previous state-of-the-art topology method, GEC.

Key Insights and Ideas

  • Neighborhood Inclusion vs. Clique Enumeration: The "aha moment" is realizing that topological preservation doesn't require finding every clique (an NP-hard problem). By checking neighborhood inclusion ($N[u] \subseteq N[v]$), the authors turn an exponential problem into one that is effectively linear on sparse graphs.
  • Homotopy Equivalence: The framework ensures the coarsened graph is "homotopy equivalent" to the original. In plain English: if you think of the graph as a rubber structure, you could continuously deform the original into the coarsened version without tearing it or gluing new parts together.
  • Preserving the Receptive Field: The authors mathematically prove that these collapse operations do not significantly increase shortest-path distances. This ensures that a GNN's "receptive field" (the neighborhood it "sees") remains intact even on the smaller graph.
  • The Power of Coning: Sometimes you have to add to subtract. By strategically adding edges (coning), the algorithm creates new opportunities for collapse that weren't there before, enabling much higher coarsening ratios.

Key Results

  • Massive Speedups: STPGC is significantly faster than GEC, showing a 15x speedup on DBLP and a staggering 37x speedup on the cit-Patent dataset.
  • Superior Accuracy: On node classification tasks, STPGC consistently outperformed all baselines. It beat the previous SOTA (GEC) by an average of 1.73% across five datasets, likely because it avoids the topology-destroying partitioning step GEC requires.
  • Topological Fidelity: Using Betti numbers (a formal count of holes/voids), the authors showed that STPGC strictly maintains the graph's topology during its exact phase, whereas other methods lose these features almost immediately.
  • Linear Scalability: The time complexity is shown to be $O(m\theta_1)$, where $m$ is the number of edges and $\theta_1$ is a small constant degree threshold, demonstrating linear scaling with graph size.

Limitations and Future Work

  • The Minimal Core: Every graph has a "minimal core" below which topology cannot be preserved. If a user demands a coarsening ratio smaller than this core, some topological information must be lost.
  • NP-Hardness of the Absolute Minimum: While STPGC is efficient, finding the absolute smallest homotopy-equivalent graph remains an NP-hard problem.
  • Future Directions: The authors plan to apply this framework to biological data and drug discovery, where preserving the specific "rings" of molecular graphs is physically meaningful and potentially game-changing for predictive accuracy.

Summary updated

Abstract

Graph coarsening reduces the size of a graph while preserving certain properties. Most existing methods preserve either spectral or spatial characteristics. Recent research has shown that preserving topological features helps maintain the predictive performance of graph neural networks (GNNs) trained on the coarsened graph but suffers from exponential time complexity. To address these problems, we propose Scalable Topology-Preserving Graph Coarsening (STPGC) by introducing the concepts of graph strong collapse and graph edge collapse extended from algebraic topology. STPGC comprises three new algorithms, GStrongCollapse, GEdgeCollapse, and NeighborhoodConing based on these two concepts, which eliminate dominated nodes and edges while rigorously preserving topological features. We further prove that STPGC preserves the GNN receptive field and develop approximate algorithms to accelerate GNN training. Experiments on node classification with GNNs demonstrate the efficiency and effectiveness of STPGC.
BibTeX
@inproceedings{wu2026scalable,
  author = {Xiang Wu and Rong-Hua Li and Xunkai Li and Kangfei Zhao and Hongchao Qin and Guoren Wang},
  title = {{Scalable Topology-Preserving Graph Coarsening with Graph Collapse}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=WtINGEMjTB},
}
Figure