Adapting Precomputed Features for Efficient Graph Condensation

Yuan Li, Jun Hu, Zemin Liu, Bryan Hooi, Jia Chen, Bingsheng He

TL;DR

Graph Condensation via Precompute-then-Adapt (GCPA) is a novel framework designed to compress massive graphs into tiny synthetic versions for efficient Graph Neural Network (GNN) training. By replacing slow, iterative "trajectory matching" with a streamlined two-stage precomputation and adaptation process, GCPA achieves state-of-the-art accuracy while being up to 2,455 times faster than previous methods.

The Challenge of Scaling GNNs

Graph Neural Networks are powerful tools for relational data, but they are notoriously difficult to scale to massive datasets like social networks or e-commerce graphs. Graph Condensation (GC) aims to solve this by creating a small, synthetic "distilled" graph. Ideally, a GNN trained on this tiny graph will perform nearly as well as if it had been trained on the original, massive one.

Currently, the gold standard for GC is "trajectory matching." This involves training a model on the original graph hundreds of times to record how its parameters change (the "trajectory"), and then optimizing the synthetic graph to mimic that exact behavior. The problem? It is incredibly slow. On a million-node graph, this process can take over 450 hours—nearly 19 days of non-stop computation—making it highly impractical for real-world scaling.

The GCPA Framework

To bypass the massive computational overhead of trajectory matching, the authors propose a paradigm shift with GCPA. Instead of treating condensation as a complex bi-level optimization problem, they use a much simpler "feed-forward" style pipeline consisting of two stages:

The two-stage GCPA framework: Precomputation and Diversity-aware Adaptation.
  1. Precomputation Stage:
  2. Structure-based: The framework uses a one-time message-passing step (similar to graph diffusion) to bake the graph's structural information directly into the node features.
  3. Semantic-based: It then groups these "enriched" features by class and uniformly samples or averages them to create initial synthetic nodes.
  4. Diversity-aware Adaptation Stage:
  5. Because the first stage relies heavily on averaging, the resulting synthetic nodes might lack variance.
  6. To fix this, GCPA uses a contrastive loss function to refine the features. This "pushes" synthetic nodes to align with the original feature distribution (class-wise alignment) while "pulling" them apart from each other to ensure the synthetic graph captures the full diversity of the original data.

Crucially, GCPA produces Structure-Free (SF) condensed graphs. These graphs have no edges (except self-loops), which drastically simplifies the training process without sacrificing accuracy for node classification tasks.

Key Insights

  • The "Precompute" Surprise: Remarkably, the authors found that just the first stage (precomputation)—which takes only seconds—already matches or beats several complex baseline methods. This suggests that much of the "magic" in graph condensation is simply capturing local neighborhood context.
  • Structure is in the Features: By using message passing during precomputation, the structural information of the graph is "frozen" into the features. This explains why structure-free (edgeless) synthetic graphs can still perform so well; the nodes already "know" what their neighbors looked like.

Key Results and Performance

The authors evaluated GCPA on seven diverse benchmark datasets, ranging from small citation networks (CiteSeer, Cora, PubMed) to massive web-scale graphs (Ogbn-arxiv, Ogbn-products, Flickr, Reddit).

Accuracy vs. Time comparison across six benchmark datasets.
  • Massive Speedups: On the Ogbn-products dataset (2.4M nodes), the previous state-of-the-art method (GEOM) took roughly 531 hours. GCPA achieved better accuracy in just 13 minutes—a staggering 2,455x speedup.
  • Competitive Accuracy: GCPA achieved state-of-the-art performance on 4 out of 7 datasets and remained highly competitive on the others, often within 1% of much slower methods.
  • Cross-Architecture Robustness: Synthetic graphs produced by GCPA are "portable." A graph condensed using a simple GCN backbone can be used to train other architectures, like GraphSAGE or GAT, with high effectiveness.

Future Work

While GCPA represents a massive leap in efficiency, the authors note a few areas for future exploration. The current method uses standard diffusion-based aggregation, meaning more sophisticated precomputation methods could further improve feature quality. Additionally, while the paper focuses on node classification, future work could explore how this "precompute-then-adapt" logic applies to link prediction or graph-level classification tasks.

Summary updated

BibTeX
@inproceedings{li2025adapting,
  author = {Yuan Li and Jun Hu and Zemin Liu and Bryan Hooi and Jia Chen and Bingsheng He},
  title = {{Adapting Precomputed Features for Efficient Graph Condensation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ThK6o74QLc},
}
Figure