Training Graph Neural Networks (GNNs) on massive datasets like Reddit or Arxiv presents a significant computational challenge. While Graph Condensation (GC)—shrinking a large graph into a small synthetic one—has emerged as a solution, previous methods primarily focused on reducing node counts. However, high-dimensional node features often remain a bottleneck, leading to large weight matrices and slow training.
TinyGraph addresses this by introducing "joint condensation," simultaneously reducing both the number of nodes and the dimensionality of their features. This approach achieves massive data reductions while maintaining high model accuracy.
The Challenge of High-Dimensional Graphs
As graphs scale to millions of nodes, tasks like Neural Architecture Search (NAS) and hyperparameter optimization become prohibitively expensive. Existing GC methods reduce node count ($N$) but ignore the "curse of dimensionality" in the feature space ($D$). For instance, in datasets like Citeseer, features outnumber nodes. Standard reduction techniques like PCA are insufficient because they are structure-agnostic, ignoring the graph's topology.
Methodology: Structure-Aware Joint Condensation
TinyGraph employs a unified framework centered on two pillars:
- Structure-Aware Feature Condensation: Instead of fixed transforms, TinyGraph uses a trainable Graph Attention Network (GAT) as a feature encoder. This ensures feature reduction is informed by the graph's topology, preserving topologically significant information.
- Curriculum Gradient Matching: The framework aligns the training trajectory of a GNN on the synthetic graph with one trained on the original. It minimizes a Matching Loss ($M$) based on the cosine distance between gradients, ensuring the synthetic graph acts as an effective proxy.
The optimization follows an asynchronous strategy, alternating updates between the feature condensation function, the synthetic graph structure, and the synthetic node features.
Experimental Evaluation
The framework was evaluated on five benchmarks: Cora, Citeseer (transductive), and Flickr, Reddit, Arxiv (inductive/large-scale).
Key Insights
- Intertwined Structure and Features: Feature condensation must be structure-aware to be effective.
- Gradient Matching as a Proxy: Matching gradients ensures the synthetic graph elicits similar learning behavior to the full dataset.
- Sparsity Paradox: Condensed graphs are typically denser (15–20% sparse) than the originals (99.9% sparse) to effectively pack information into fewer nodes.
- Generalizability: Synthetic graphs condensed using one GNN architecture (e.g., SGC) generalize well to others (e.g., GAT, GraphSAGE).
Results and Impact
TinyGraph demonstrates significant resource savings without sacrificing performance:
- Accuracy: Retained 98.5% and 97.5% of original accuracy on Cora and Citeseer.
- Compression: Reduced node counts by over 97.4% and feature dimensions by 90%.
- Storage: Citeseer storage dropped from 47.1 MB to 0.15 MB (a 99.7% reduction).
- Superiority: Outperformed two-stage methods (PCA followed by node condensation), validating the joint optimization approach.
Future Directions
While effective, the multi-variable optimization in TinyGraph can be sensitive to initialization. Future work may explore learning synthetic node labels to further increase compression and optimizing the condensation process itself for even larger web-scale graphs.
Summary updated