ST-ReP: Learning Predictive Representations Efficiently for Spatial-Temporal Forecasting

Qi Zheng, Zihao Yao, Yaying Zhang

Introduction

Spatial-temporal forecasting is essential for managing complex systems like urban traffic grids and weather networks. While self-supervised learning (SSL) has shown promise in leveraging unlabeled data for these tasks, current approaches face significant hurdles. ST-ReP (Spatial-Temporal Predictive Representation) is a lightweight framework designed to overcome these challenges by moving from contrastive learning to a generative, predictive paradigm.

The Challenges of Spatial-Temporal Data

Modeling spatial-temporal series (STS) is inherently more difficult than standard multivariate time series (MTS) due to three primary factors:

  1. Variable Homogeneity: Unlike MTS where variables represent different metrics (e.g., heart rate vs. blood pressure), STS variables are often identical (e.g., hundreds of identical traffic sensors). Contrastive learning often fails here because it incorrectly treats highly correlated neighboring sensors as "negative pairs."
  2. Spatial-Temporal Coupling: Many models fail to adequately capture how sensors interact with their neighbors over time.
  3. Computational Scalability: High-performance models often hit a "scalability wall," suffering from out-of-memory (OOM) errors as the number of nodes increases into the thousands.

Methodology: The ST-ReP Framework

ST-ReP addresses these issues by adopting a generative approach that integrates reconstruction and prediction.

Comparison of self-supervised learning paradigms. ST-ReP (c.3) integrates reconstruction and prediction, avoiding the pitfalls of contrastive learning (c.1) in homogeneous STS environments.

The C-E-D "Sandwich" Encoder

To ensure efficiency, ST-ReP employs a Compression-Extraction-Decompression (C-E-D) architecture. This structure first compresses the temporal dimension into a compact latent space, then extracts spatial correlations using a linear transformer with a low-complexity "proxy tensor," and finally decompresses the data. This "bottleneck" approach helps the model filter noise and focus on high-level semantic features.

Predictive Pre-training

Unlike standard autoencoders that only reconstruct masked data, ST-ReP is tasked with both reconstructing current masked values and predicting future values. This dual objective forces the model to learn representations that are inherently "predictive," making them better suited for downstream forecasting tasks.

The ST-ReP pre-training stage, illustrating the dual-decoder architecture for simultaneous reconstruction and prediction.

Experimental Evaluation

The model was benchmarked on six diverse datasets:

  • Transportation: PEMS04, PEMS08, and a massive California (CA) dataset with 8,600 nodes.
  • Energy: SDWPF (wind turbines).
  • Climate: Large-scale humidity and temperature datasets.

The CA dataset served as a critical test for scalability, as its size typically causes OOM errors in most advanced SSL models.

Key Results and Insights

  • Superior Accuracy: ST-ReP achieved an average improvement of approximately 20% in MSE over the next best self-supervised methods on the PEMS datasets.
  • Unmatched Scalability: While models like STEP and ST-SSL failed on the 8,600-node CA dataset, ST-ReP ran successfully, proving its viability for large-scale real-world applications.
  • Efficiency: On the PEMS04 dataset, ST-ReP reduced the GPU memory footprint by nearly 50% and training time by 28% compared to GPT-ST.
  • Generative Advantage: The results confirm that for homogeneous STS data, generative signals (reconstruction and prediction) are more stable and effective than contrastive signals.

Conclusion

ST-ReP provides a scalable and accurate solution for spatial-temporal forecasting. By leveraging temporal redundancy through its C-E-D encoder and focusing on predictive representations, it bypasses the limitations of contrastive learning and heavy computational requirements. Future work will explore more complex spatial-temporal fusion strategies to further enhance robustness.

Summary updated

BibTeX
@inproceedings{zheng2025st,
  author = {Qi Zheng and Zihao Yao and Yaying Zhang},
  title = {{ST-ReP: Learning Predictive Representations Efficiently for Spatial-Temporal Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i12.33465},
}
Figure