Rethinking and Accelerating Graph Condensation: A Training-Free Approach with Class Partition
Xinyi Gao, Guanhua Ye, Tong Chen, Wentao Zhang, Junliang Yu, Hongzhi Yin
TL;DR
This work tackles the high computational burden of training GNNs on large graphs by introducing CGC, a training-free graph condensation framework that shifts from class-to-class to class-to-node distribution matching. CGC leverages non-parametric feature propagation, data assessment, augmentation, and EM-based class partitioning to produce a compact, label-aware condensed graph with a closed-form feature generation step governed by a Dirichlet energy constraint, enabling CPU-only condensation. Empirical results show CGC and its graphless variant CGC-X deliver substantial speedups (up to 10^4×) over state-of-the-art GC methods while achieving higher or competitive accuracy across multiple datasets and GNN architectures, and with fewer hyper-parameters. The approach broadens GC applicability in practice by reducing computation, improving resilience to label sparsity, and enabling flexible integration with various propagation and partition strategies.
Abstract
The increasing prevalence of large-scale graphs poses a significant challenge for graph neural network training, attributed to their substantial computational requirements. In response, graph condensation (GC) emerges as a promising data-centric solution aiming to substitute the large graph with a small yet informative condensed graph to facilitate data-efficient GNN training. However, existing GC methods suffer from intricate optimization processes, necessitating excessive computing resources and training time. In this paper, we revisit existing GC optimization strategies and identify two pervasive issues therein: (1) various GC optimization strategies converge to coarse-grained class-level node feature matching between the original and condensed graphs; (2) existing GC methods rely on a Siamese graph network architecture that requires time-consuming bi-level optimization with iterative gradient computations. To overcome these issues, we propose a training-free GC framework termed Class-partitioned Graph Condensation (CGC), which refines the node distribution matching from the class-to-class paradigm into a novel class-to-node paradigm, transforming the GC optimization into a class partition problem which can be efficiently solved by any clustering methods. Moreover, CGC incorporates a pre-defined graph structure to enable a closed-form solution for condensed node features, eliminating the need for back-and-forth gradient descent in existing GC approaches. Extensive experiments demonstrate that CGC achieves an exceedingly efficient condensation process with advanced accuracy. Compared with the state-of-the-art GC methods, CGC condenses the Ogbn-products graph within 30 seconds, achieving a speedup ranging from $10^2$X to $10^4$X and increasing accuracy by up to 4.2%.
