TL;DR
Graph coarsening is a powerful technique for scaling up Graph Neural Networks (GNNs), but existing topology-preserving methods suffer from exponential time complexity. This paper introduces STPGC, a highly scalable framework that leverages algebraic topology to reduce graph size while strictly preserving critical structural features like rings and connectivity. STPGC achieves up to a 37x speedup over previous topological methods while maintaining or improving downstream GNN classification accuracy.
What Problem Does This Paper Address?
As real-world graphs (e.g., social networks, molecular structures, and citation webs) balloon in size, training GNNs on them becomes computationally overwhelming. Graph coarsening addresses this by merging nodes to form a smaller "coarsened" graph, allowing models to train faster with fewer resources.
Most traditional coarsening methods focus on preserving spatial properties (like local node neighborhoods) or spectral properties (like the eigenvalues of the graph Laplacian). However, they completely ignore topological features—global invariants like connected components, cycles/rings, and higher-order voids. Preserving these structures is vital, especially in molecular chemistry and biology where rings dictate properties.
The only existing topology-preserving method, Graph Elementary Collapse (GEC), relies on enumerating all cliques in a graph. This incurs an exponential worst-case time complexity ($O(3^{n/3})$), making it unusable for large-scale graphs unless the graph is partitioned first—a workaround that unfortunately destroys global topological features.
Methods
The authors introduce Scalable Topology-Preserving Graph Coarsening (STPGC). Instead of expensive clique enumeration, STPGC identifies reducible structures locally using neighborhood inclusion. The framework consists of three main exact algorithms:
- GStrongCollapse: Iteratively identifies "dominated nodes" (nodes whose closed neighborhood is entirely contained within a neighbor's closed neighborhood) and merges them into their dominators.
- GEdgeCollapse: Removes "dominated edges" to break structural deadlocks in complex graphs where no nodes are initially dominated, exposing new nodes for subsequent reduction.
- NeighborhoodConing: An inverse edge-collapse operation that strategically inserts dominated edges to intentionally create new dominated nodes, allowing for further coarsening.
To achieve flexible, user-defined coarsening ratios, the authors also introduce an ApproximateCoarsening phase. This relaxes the strict dominance condition to an "$r$-relaxed strong collapse," allowing a small number of nodes ($r$) to be absent from the neighborhood inclusion criteria.
Datasets
The authors evaluated STPGC across two distinct sets of benchmarks:
- Node Classification: Cora, Citeseer (citation networks), DBLP (co-authorship), ogbn-arXiv (citation), and ogbn-products (Amazon product co-purchasing network).
- Scalability Evaluation: Large unlabeled datasets including Youtube, LiveJournal, cit-Patent, and Flixster (ranging up to ~4 million nodes and ~61 million edges).
Key Insights and Ideas
- Neighborhood Inclusion over Clique Enumeration: The core "aha!" moment is realizing that topological collapse operations can be verified locally via neighborhood checks rather than combinatorial clique searches. This drops the time complexity from exponential to linear with respect to edges ($O(m\theta_1)$).
- Preserving the Receptive Field: The authors mathematically prove that exact topology-preserving operations guarantee that the shortest path distances between nodes do not increase. This ensures that the multi-hop receptive field of a GNN is maximally preserved during coarsening.
- Breaking Deadlocks with Edge Deletion: Complex graphs often have zero dominated nodes initially. By introducing edge collapse, the algorithm strips away redundant edges, acting as a key to unlock further node reductions.
Key Results
- Massive Speedups: STPGC dramatically outperforms GEC, running over 15x faster on DBLP and up to 37x faster on the cit-Patent dataset at a coarsening ratio of $c=0.1$.
- Memory Efficiency: While baseline spectral and spatial methods suffer from Out-of-Memory (OOM) errors on large datasets like ogbn-arXiv, STPGC maintains a stable, low memory footprint.
- Downstream Accuracy: Across multiple GNN architectures (GCN, APPNP, GraphSAGE, GraphSAINT), STPGC consistently outperforms non-topological baselines. It beats GEC by an average of 1.73% across five datasets because it avoids the destructive graph partitioning that GEC requires.
Limitations and Future Work
- Heuristic Feature Aggregation: Currently, STPGC uses simple feature averaging and majority-vote label aggregation to construct supernode attributes. The authors note this might be suboptimal for complex node features and suggest exploring learnable or task-specific aggregation functions.
- Broader ML Domains: Future work includes applying topology-preserving graph coarsening to broader domains, such as compressing biological data for drug discovery and molecular modeling.
Summary updated