Structure-free Graph Condensation: From Large-scale Graphs to Condensed Graph-free Data

Xin Zheng, Miao Zhang, Chunyang Chen, Quoc Viet Hung Nguyen, Xingquan Zhu, Shirui Pan

TL;DR

This paper introduces SFGC, a novel "structure-free" graph condensation method that distills large graphs into smaller, graph-free datasets. By implicitly encoding graph topology into node attributes and using a unique meta-matching approach, SFGC achieves superior performance and generalization for graph learning tasks while significantly reducing computational costs.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful for analyzing complex graph-structured data, but real-world graphs can be massive, making training GNNs computationally expensive and memory-intensive. Existing methods for reducing graph size, like graph sampling or condensation, often struggle with preserving essential information, leading to limited effectiveness and poor generalization across different GNN models. Specifically, traditional graph condensation methods attempt to synthesize both condensed nodes and structures, which is a complex optimization problem that can lead to suboptimal results and overfitting to specific GNN architectures. This paper addresses the need for a more effective and generalizable way to create smaller, representative datasets from large graphs for efficient GNN training.

Methods

The core innovation of this paper is the Structure-Free Graph Condensation (SFGC) paradigm. Instead of synthesizing both nodes and graph structures for a condensed graph, SFGC creates a graph-free dataset consisting only of node attributes and labels. The key idea is to implicitly embed the graph's topological information within these node attributes.

SFGC comprises two main components:

  1. Training Trajectory Meta-Matching: This scheme aims to capture the long-term learning behavior of GNNs on the original large graph. It involves training multiple GNNs on the large graph to generate "expert" training trajectories (parameter distributions). Then, a new GNN is trained on the synthesized graph-free data, and its learning trajectory is meta-matched against the expert trajectories. This ensures that the condensed data effectively transfers the holistic knowledge from the large graph, avoiding the "short-sightedness" of methods that only match gradients at specific steps.
  2. Graph Neural Feature Score (Ygnf): To dynamically evaluate the quality of the synthesized graph-free data during the meta-matching process, SFGC employs a novel metric. This metric is derived from the Graph Neural Tangent Kernel (GNTK) and provides a closed-form solution for evaluating the condensed data's expressiveness without requiring iterative GNN training. This significantly speeds up the condensation process.

The overall SFGC framework then selects the graph-free data that yields the best score from Ygnf.

Datasets

The authors evaluate SFGC on several standard graph datasets for node classification:

  • Cora
  • Citeseer
  • Ogbn-arxiv
  • Flickr
  • Reddit

They also use these datasets for evaluating the performance of their condensed data on graph node clustering.

Key Insights and Ideas

  • Structure-Free is the Way: The paper argues that explicitly synthesizing graph structures in condensation is not only complex but also potentially detrimental to generalization. By focusing solely on node attributes and implicitly encoding topology, SFGC achieves better results.
  • Long-Term Imitation is Crucial: Matching short-term gradients is insufficient. SFGC's "training trajectory meta-matching" captures the entire learning process of a GNN on the large graph, leading to a more faithful representation in the condensed data.
  • GNTK for Efficient Evaluation: Using GNTK to derive a closed-form evaluation metric (Ygnf) is a clever way to avoid costly iterative GNN training during the condensation process, making the method much more efficient.
  • Generalization Powerhouse: By removing explicit graph structures, the condensed data becomes less dependent on specific GNN architectures, leading to superior performance across various GNN models.

Key Results

  • State-of-the-Art Performance: SFGC consistently outperforms existing graph condensation and size reduction methods across multiple datasets and condensation ratios, achieving the best node classification accuracy in 13 out of 15 cases.
  • Superior to Existing Condensation: SFGC significantly outperforms GCOND and its variants, demonstrating the effectiveness of the structure-free approach and long-term meta-matching.
  • Efficiency Gains: The GNTK-based evaluation metric (Ygnf) drastically reduces evaluation time compared to iterative GNN training. For example, on the Flickr dataset, Ygnf takes 0.015s compared to 0.845s for iterative training.
  • Excellent Generalization: SFGC's condensed data achieves outstanding performance across seven different GNN architectures (MLP, GAT, APPNP, Cheby, GCN, SAGE, SGC), highlighting its strong generalization capabilities.
  • Competitive Clustering: The condensed graph-free data also enables competitive performance on graph node clustering tasks, demonstrating its broad applicability.

Limitations and Future Work

  • Current Focus: The current SFGC method focuses on condensing nodes within a single graph.
  • Future Directions: The authors suggest exploring extensions to condense the number of graphs in a graph set and investigating the potential of unifying graphs with large language models for graph condensation tasks. They also mention exploring the impact of different meta-matching ranges and further analyzing the structure-free paradigm theoretically.

Summary updated

BibTeX
@inproceedings{zheng2023structure,
  author = {Xin Zheng and Miao Zhang and Chunyang Chen and Quoc Viet Hung Nguyen and Xingquan Zhu and Shirui Pan},
  title = {{Structure-free Graph Condensation: From Large-scale Graphs to Condensed Graph-free Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=XkcufOcgUc},
}
Figure