Abstract
Graph Neural Networks (GNNs) face significant computational challenges when applied to massive datasets. Graph Condensation (GC) aims to mitigate this by distilling large graphs into smaller synthetic versions. However, traditional GC methods are often tethered to specific GNN architectures and predefined tasks. We present Pre-trained Graph Condensation (PreGC), a novel framework that leverages graph diffusion and Optimal Transport to create high-fidelity, architecture-agnostic, and task-independent condensed graphs. PreGC enables the reuse of condensed data across diverse models and downstream tasks, including classification, clustering, and regression, significantly advancing the versatility of graph distillation.
Introduction
The training of Graph Neural Networks (GNNs) on large-scale real-world datasets is often hindered by high computational costs. Graph Condensation (GC) has emerged as a solution, aiming to create a small "synthetic" graph that preserves the performance of the original "source" graph. Despite its promise, current GC techniques suffer from two primary limitations:
- Architecture Dependency: Methods are typically optimized for a specific GNN (e.g., a 2-layer GCN), leading to performance degradation when the condensed graph is used with different models like GAT or GraphSAGE.
- Task Specificity: Most methods require node labels during condensation, necessitating a complete re-run of the expensive process if the downstream task changes.
Methodology: Pre-trained Graph Condensation (PreGC)
PreGC addresses these "handcuffs" through three core innovations designed to decouple the condensed graph from specific models and labels.
Hybrid-Interval Graph Diffusion Augmentation
Instead of relying on fixed GNN layers, PreGC utilizes the Graph Heat Equation to treat propagation as a continuous diffusion process. By varying the "diffusion interval," the framework captures a broad spectrum of properties, ensuring the condensed graph is robust across various GNN architectures. This strategy provides a probabilistic guarantee for "spectral coverage," inheriting essential Laplacian properties of the original graph.
Optimal Transport (OT) Plan Matching
To achieve task independence, PreGC moves away from label-dependent gradient matching. It employs Fused Gromov-Wasserstein distance to align the source and condensed graphs by matching their "transport plans." This unsupervised approach preserves both structural and feature-level similarities without requiring predefined labels.
Traceable Semantic Harmonizer
The Optimal Transport plan provides an explicit mapping between source and synthetic nodes. This allows for "tracing" labels from the original graph to the condensed one for any new task at test time, enabling seamless adaptation without re-condensation.
Experimental Evaluation
The researchers evaluated PreGC across five diverse datasets:
- Citation Networks: Cora, Citeseer, and Pubmed.
- Large-scale benchmarks: OGB-Arxiv (predicting paper topics and publication years).
- E-commerce: H&M (predicting product categories and prices), facilitating tests on Node Regression.
Key Results
- Superior Generalization: PreGC consistently outperformed state-of-the-art methods like GCond and GCDM across nine different GNN architectures.
- Task Versatility: It is the first GC method to handle four distinct tasks: Node Classification, Node Clustering, Link Prediction, and Node Regression. Notably, it achieved an $R^2$ of ~34% on the H&M price prediction task, where traditional label-dependent methods fail.
- Performance Gains: On OGB-Arxiv, PreGC showed significant improvements, particularly in cross-label transfer scenarios (e.g., condensing on "Year" and testing on "Topic").
- Interpretability: The OT plan serves as a data valuation tool, identifying the most influential original nodes contributing to the synthetic graph.
Conclusion and Future Work
PreGC introduces a paradigm shift in graph condensation by treating it as a pre-training task. By decoupling the process from specific architectures and labels, it provides a reusable and versatile synthetic dataset. While highly effective, the authors note that optional "test-time fine-tuning" (PreGC$_{ft}$) can further optimize performance for specific tasks. Future research will explore extensions to heterogeneous graphs and applications in privacy-preserving graph learning.
Summary updated