Abstract
Training Dynamic Graph Neural Networks (DGNNs) on large-scale evolving networks is computationally prohibitive due to the explosion of data volume over time. We present DyGC, the first framework for dynamic graph condensation. DyGC compresses massive dynamic graphs into small synthetic versions while preserving critical spatiotemporal dependencies. By employing a novel spiking structure generation and spatiotemporal state alignment, DyGC achieves up to 1846x training speedups with minimal performance loss, enabling efficient AI research on evolving relational data.
Introduction
Graph Neural Networks (GNNs) have revolutionized the analysis of relational data. However, real-world networks—such as social media, financial transactions, and traffic systems—are inherently dynamic. Dynamic GNNs (DGNNs) capture these evolutions but face a significant "curse of dimensionality" as the temporal axis adds immense computational overhead and data redundancy.
While static graph condensation (GC) has emerged as a solution for large static graphs, it fails in dynamic contexts. Existing GC methods typically treat snapshots independently, neglecting the temporal dependencies where a node's historical state influences its future. This oversight leads to degraded performance when training DGNNs on condensed snapshots. DyGC addresses this by explicitly modeling and preserving the tightly coupled spatial and temporal distributions of evolving graphs.
Methodology: The DyGC Framework
The DyGC framework introduces two primary innovations to bridge the gap between static condensation and dynamic graph requirements.
1. Spiking Structure Generation
To model the evolution of edges in the synthetic graph, DyGC utilizes a biology-inspired approach based on Leaky Integrate-and-Fire (LIF) models from Spiking Neural Networks (SNNs). The affinity between nodes is treated as a membrane voltage that accumulates over time through interactions. When this "voltage" exceeds a threshold, a discrete edge is "fired." This mechanism naturally captures event-driven connectivity and the "leaking" of historical influence over time.
2. Spatiotemporal State Alignment
To ensure the synthetic graph behaves like a high-fidelity proxy for the real graph, DyGC maps both into a "State Evolving Field." This field represents the information flow across both spatial (neighborhood) and temporal (history) dimensions. Using Maximum Mean Discrepancy (MMD), the framework aligns the higher-order statistical distributions of these fields.
3. Task-Oriented Alignment
Beyond distribution matching, DyGC aligns the output logits of a pre-trained DGNN on the real graph with those on the synthetic graph. This ensures that the condensed data remains optimized for specific downstream tasks like node classification.
Experimental Evaluation
The authors evaluated DyGC across four diverse benchmarks: DBLP and Arxiv (academic co-authorship), Reddit (social interaction), and Tmall (e-commerce).
Performance and Efficiency
DyGC consistently outperforms traditional coreset methods (Random, Herding, K-center) and static GC adaptations (GCond, SimGC). On the Tmall dataset, DyGC achieved a condensation ratio of 0.02%, reducing storage from 2.38 GB to 0.33 MB while maintaining over 96% of the original performance.
As shown in the radar charts, the training speedups are substantial. For the Tmall dataset using the DySAT model, DyGC provided a staggering 1846.7x speedup compared to training on the full graph. This efficiency allows researchers to iterate on models in seconds rather than hours.
Key Insights
- Temporal Dependency is Non-Negotiable: Mathematical analysis confirms that snapshot-wise alignment is insufficient for dynamic graphs. Joint spatiotemporal modeling is required to capture the evolution of node states effectively.
- Model Agnosticism: Because DyGC focuses on distribution matching in a latent semantic space, the resulting condensed graphs are highly transferable across different DGNN architectures, such as ROLAND, GCRN, and STGCN.
Conclusion and Future Directions
DyGC represents a significant step forward in making dynamic graph analysis accessible. By shrinking massive datasets into manageable synthetic proxies, it democratizes the training of complex DGNNs. Future work will explore continuous-time message passing to handle irregular event-based graphs and extending the framework to link prediction tasks, which rely even more heavily on specific edge evolution patterns.
Summary updated