TL;DR
Training deep learning models on massive spatio-temporal datasets (like weather or traffic networks) is incredibly resource-intensive. This paper introduces STemDist, the first dataset distillation method that compresses both spatial and temporal dimensions simultaneously. By combining inductive location encoders, clustering, and granular subset distillation, STemDist creates tiny synthetic datasets that speed up training by up to 6× and slash memory usage by up to 8× while maintaining superior forecasting accuracy.
What Problem Does This Paper Address?
Spatio-temporal forecasting—such as predicting traffic flow across a city or tracking weather patterns across a continent—relies on deep learning models trained on massive, multi-dimensional datasets. As these datasets grow, training Spatio-Temporal Graph Neural Networks (STGNNs) becomes prohibitively expensive in terms of time, compute, and memory.
Dataset distillation offers a solution by synthesizing a tiny, highly informative dataset that can stand in for the original data during training. However, existing distillation techniques only compress a single dimension—typically time—leaving the spatial dimension (the number of sensor locations) completely untouched. Because the spatial dimension contributes quadratically to the computational cost of most forecasting models, temporal-only compression leaves a massive resource bottleneck.
Methods
The authors propose STemDist (Spatio-Temporal Dataset Distillation), which introduces a bi-dimensional compression strategy through three core components:
- Inductive Location Encoders: Standard STGNNs are transductive, meaning their location embeddings are tied to a fixed number of specific locations. To allow a model to train on a small number of synthetic locations and still generalize to a larger number of real-world locations during inference, STemDist introduces a length-insensitive, attention-based location encoder.
- Location Clustering: To prevent the distillation process itself from becoming a bottleneck, STemDist groups the original locations into clusters using K-means. It then distills the averaged data of these cluster centroids rather than individual locations, drastically accelerating the synthesis process.
- Subset-Based Granular Distillation: Coarse-grained clustering can blur fine-grained spatial relationships. To counteract this, STemDist randomly partitions the locations into varying subsets during each distillation iteration. This ensures that weaker but important inter-location correlations are successfully captured in the synthetic data.
Datasets
The method was evaluated on five real-world spatio-temporal datasets:
- GBA, GLA, CA: Traffic volume measurements collected from different highway sensor networks.
- ERA5: Global climate reanalysis data focusing on eastward wind variables.
- CAMS: Atmospheric composition data tracking carbon monoxide concentrations.
Additionally, the authors generated large-scale artificial datasets to rigorously test the scalability of the method across varying dimensions.
Key Insights and Ideas
- The Quadratic Bottleneck: The authors' preliminary experiments revealed that reducing only the temporal dimension is highly inefficient. Jointly reducing both spatial and temporal dimensions yields massive efficiency gains even when the overall data reduction ratio is kept exactly the same.
- Reversing Knowledge Transfer: While previous inductive STGNN methods focused on transferring knowledge from observed to unobserved locations on a real graph, STemDist flips this concept. It uses the location encoder to enable seamless knowledge transfer from a small, abstract synthetic dataset back to a massive real-world dataset without requiring a predefined graph structure.
Key Results
- Substantial Efficiency Gains: At a 0.5% compression ratio, training a model on a STemDist-distilled dataset was up to 6.3× faster and required up to 7.7× less GPU memory than training on datasets generated by baseline methods.
- Higher Accuracy: STemDist consistently outperformed both general and time-series distillation baselines, achieving up to 12% lower prediction error (Relative RMSE) on the CA traffic dataset.
- Cross-Model Generalization: Synthetic datasets generated by STemDist are model-agnostic. When used to train entirely different architectures—such as Graph WaveNet, STGCN, and FourierGNN—the STemDist datasets consistently led to the lowest forecasting errors.
Limitations and Future Work
The authors note that a key limitation of standard dataset distillation is its tendency to optimize for average case performance. For future work, they propose extending STemDist to be cost-sensitive. This adjustment would prioritize preserving model performance for high-stakes or rare events, such as extreme weather anomalies in meteorological data, which might otherwise be smoothed out during the bi-dimensional compression process.
Summary updated