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 paper introduces Class-partitioned Graph Condensation (CGC), a novel training-free framework that drastically accelerates graph condensation by reframing it as a class partition problem. CGC achieves state-of-the-art accuracy with unprecedented speed, condensing massive graphs in seconds rather than hours, making efficient GNN training on large-scale graphs more accessible.

What Problem Does This Paper Address?

Training Graph Neural Networks (GNNs) on massive graphs is computationally prohibitive due to the message-passing paradigm, which scales exponentially with graph size. Graph Condensation (GC) aims to solve this by creating a smaller, representative "condensed" graph that allows for efficient GNN training with comparable performance to training on the original, large graph. However, existing GC methods are plagued by complex, time-consuming optimization processes. They often rely on intricate bi-level optimization with iterative gradient computations and tend to match features at a coarse class level, leading to inefficiencies. This paper addresses the need for a faster, more efficient, and equally accurate GC method.

Methods

The core innovation of CGC lies in its shift from a "class-to-class" feature matching paradigm to a "class-to-node" paradigm. This transformation simplifies the GC optimization problem into a class partition task, which can be efficiently solved using standard clustering algorithms like K-Means.

Key components of CGC include:

  • Training-Free Framework: CGC avoids gradient-based optimization during the condensation process.
  • Class Partition: Instead of matching entire class distributions, CGC partitions nodes within each class into sub-classes, allowing for more granular and efficient optimization.
  • Pre-defined Graph Structure & Closed-Form Solution: CGC leverages a pre-defined graph structure and a Dirichlet energy constraint to derive a closed-form solution for the condensed node features. This eliminates the need for iterative gradient descent for feature generation.
  • Data Assessment & Augmentation: CGC incorporates modules for assessing node embedding reliability and augmenting underrepresented classes, enhancing the robustness and accuracy of the condensed graph, especially on label-sparse datasets.

The paper also introduces CGC-X, a graphless variant that uses an identity matrix instead of a condensed adjacency matrix, further simplifying the process.

Datasets

The proposed methods were evaluated on a range of datasets:

  • Transductive: Cora, Citeseer, Ogbn-arxiv (Arxiv), Ogbn-products (Products)
  • Inductive: Flickr, Reddit

Key Insights and Ideas

  • Class Partition as a Simpler Objective: Reframing graph condensation as a class partition problem, rather than complex distribution matching, is the key to achieving significant speedups without sacrificing accuracy.
  • Training-Free is Feasible and Effective: The paper demonstrates that a training-free approach can yield state-of-the-art results in graph condensation, challenging the notion that complex optimization is always necessary.
  • Granular Matching Matters: Shifting from class-level to class-to-node feature matching allows for more precise representation of the original graph's characteristics in the condensed version.
  • Data Quality Enhancements: Incorporating data assessment and augmentation modules significantly improves performance, particularly for datasets with sparse labels, highlighting the importance of data-centric approaches in GC.

Key Results

  • Unprecedented Speed: CGC condenses the Ogbn-products graph in just 30 seconds, achieving speedups of 102x to 104x compared to state-of-the-art GC methods. For the largest Reddit graph, CGC achieved a 2,680X speedup.
  • State-of-the-Art Accuracy: CGC consistently outperforms existing GC methods across various datasets and condensation ratios, often achieving higher accuracy.
  • Generalizability: CGC and CGC-X demonstrate strong generalizability across different GNN architectures and datasets.
  • Efficiency: CGC-X, the graphless variant, is particularly efficient, being 32.0x and 28.0x faster than the baseline SimGC.

Limitations and Future Work

  • Hyper-parameter Sensitivity: While CGC has fewer hyper-parameters than many existing methods, their tuning can still impact performance. The paper notes that the rapid condensation process simplifies this tuning.
  • Propagation Method Choice: The performance can be influenced by the choice of feature propagation method, suggesting that selecting the optimal method for a specific dataset is beneficial.
  • Future Work: The authors suggest that the simplified paradigm in CGC-X bridges GC and graph pooling methods, inspiring future work to integrate advanced pooling techniques for improved performance. They also highlight the potential for further exploration of different clustering and propagation methods within the CGC framework.

Summary updated

BibTeX
@inproceedings{gao2024rethinking,
  author = {Xinyi Gao and Guanhua Ye and Tong Chen and Wentao Zhang and Junliang Yu and Hongzhi Yin},
  title = {{Rethinking and Accelerating Graph Condensation: A Training-Free Approach with Class Partition}},
  booktitle = {The Web Conference},
  year = {2024},
  url = {https://openreview.net/forum?id=hK1ob6T822},
}
Figure