TL;DR
Graph Condensation (GC) reduces massive graphs into tiny, synthetic versions to accelerate Graph Neural Network (GNN) training, but existing methods are bottlenecked by slow, iterative gradient-based optimization. This paper introduces Class-partitioned Graph Condensation (CGC), a completely training-free framework that reimagines graph condensation as a straightforward clustering problem. By eliminating back-and-forth gradient descent, CGC condenses massive graphs in seconds—achieving up to a $10^4\times$ speedup—while actually improving downstream GNN accuracy.
What Problem Does This Paper Address?
Training GNNs on massive, real-world graphs (like social networks or web-scale product graphs) is incredibly computationally expensive. Because GNNs rely on message-passing—aggregating information from a node's neighbors—the computational workload grows exponentially with the number of layers.
Graph Condensation (GC) offers a data-centric solution: synthesize a tiny, highly informative graph that can act as a proxy for the large original graph. A GNN trained on this miniature graph should perform almost as well as one trained on the full dataset.
However, current state-of-the-art GC methods suffer from two major flaws:
- Intricate Bi-level Optimization: They rely on a "Siamese" architecture where a relay GNN is iteratively trained on the synthetic graph, and the synthetic graph is updated via gradients to match the original graph. This back-and-forth optimization is painfully slow.
- Coarse-Grained Matching: Existing methods match graph distributions at a coarse, class-wide level. They treat all synthetic nodes within the same class uniformly, losing the fine-grained structural diversity of the original graph.
Methods
The authors make a key theoretical breakthrough: they prove that traditional GC optimization strategies ultimately converge toward matching class-level feature distributions. Armed with this insight, they simplify the entire condensation pipeline into a class partition problem that can be solved efficiently using standard clustering algorithms (like K-Means or Spectral Clustering).
The resulting framework, CGC, is entirely training-free and consists of five distinct steps:
- Feature Propagation: A non-parametric layer (like Simple Graph Convolution) smooths the original node features to capture graph topology without learning parameters.
- Data Assessment: A simple linear classifier is solved via a closed-form Mean Squared Error (MSE) solution to assign confidence scores to nodes and identify "hard-to-learn" classes.
- Data Augmentation: Intermediate, multi-hop smooth features are sampled to augment underrepresented or difficult classes without adding noise or training overhead.
- Class Partition: Instead of creating a single prototype per class, CGC clusters each class into multiple sub-classes. Each sub-class centroid directly maps to a single node in the condensed graph, preserving fine-grained feature diversity.
- Graph Generation: Using a Dirichlet energy constraint, CGC derives a closed-form mathematical solution to directly calculate the synthetic node features ($X'$) and structure ($A'$), completely bypassing gradient descent. A structure-free variant, CGC-X, skips the graph structure generation entirely.
Datasets
The authors evaluated CGC on four transductive and two inductive standard graph benchmarks:
- Transductive: Cora, Citeseer,
Ogbn-arxiv, andOgbn-products(a massive dataset with over 2.4 million nodes). - Inductive: Flickr and Reddit.
Key Insights and Ideas
- Optimization is Just Clustering: The biggest "aha moment" is showing that complex bi-level gradient matching can be mathematically reduced to a class-conditioned clustering problem. This shifts the paradigm from deep-learning optimization to classical data partitioning.
- CPU-Only Condensation: Because CGC relies entirely on closed-form matrix equations and clustering, the condensation process can run entirely on a CPU, freeing up expensive GPU resources solely for downstream GNN training.
- Calibration via Confidence: Rather than treating all nodes equally during clustering, CGC uses the closed-form linear model to weight nodes by their classification confidence, ensuring that noisy or ambiguous boundary nodes don't distort the synthetic graph.
Key Results
CGC achieves unprecedented speedups while maintaining or exceeding the accuracy of computationally heavy baselines.
- Unmatched Speed: CGC condenses the massive
Ogbn-productsdataset in under 30 seconds. Compared to traditional methods like GCond, this represents a 1,038$\times$ speedup, and a 148$\times$ speedup over the fastest previous baseline, SimGC. - Higher Accuracy: On
Ogbn-arxiv, CGC improves downstream GCN accuracy by up to 4.2% over previous methods. - Excellent Generalizability: Synthetic graphs generated by CGC are architecture-agnostic; they consistently provide strong performance when evaluated across various GNN architectures, including GCN, SGC, SAGE, APPNP, Cheby, and GAT.
Limitations and Future Work
While CGC is incredibly fast, it relies heavily on the choice of the initial non-parametric feature propagation and clustering methods. In scenarios with highly non-linear feature spaces or complex heterophilous graphs (where connected nodes have different labels), basic clustering might struggle to capture the underlying distribution perfectly.
The authors note that the simplified paradigm of CGC-X effectively bridges graph condensation and graph pooling. They suggest that future work should focus on integrating advanced graph pooling techniques directly into this training-free framework to better handle complex graph topologies.
Summary updated