Expand and Compress: Exploring Tuning Principles for Continual Spatio-Temporal Graph Forecasting

Wei Chen, Yuxuan Liang · DOI

Introduction

Spatio-temporal graph neural networks (STGNNs) have become the standard for forecasting in dynamic environments like traffic management, air quality monitoring, and energy grid optimization. However, these models typically assume a static graph structure. In the real world, sensor networks are constantly evolving—new traffic cameras are installed, and new air quality stations are deployed.

When a network expands, practitioners face a dilemma. Full retraining from scratch is computationally prohibitive and ignores the streaming nature of data. Conversely, continual fine-tuning often leads to "catastrophic forgetting," where the model loses its grasp on historical patterns while trying to adapt to new nodes. This paper introduces EAC (Expand and Compress), a framework designed to be efficient, robust against forgetting, and universally applicable to any STGNN architecture.

The EAC Framework

The core innovation of EAC lies in shifting the learning burden from the entire model to a lightweight, node-specific "prompt pool."

Comparison of training paradigms: EAC vs. traditional methods.

EAC operates on two fundamental principles:

  1. Expand (Heterogeneity-guided Growth): Instead of updating the backbone STGNN, the backbone is frozen to preserve general spatio-temporal logic. When new sensors (nodes) are added, the system introduces node-specific learnable parameters called prompts. These prompts are added element-wise to input features, capturing the unique "personality" or heterogeneity of new locations without overwriting core model weights.
  2. Compress (Low-rank-guided Reduction): To ensure scalability, EAC employs low-rank matrix decomposition ($P \approx AB$). By training two smaller matrices instead of one large parameter matrix, the framework drastically reduces the number of tunable parameters while maintaining high representational capacity.

The workflow begins with training a base STGNN and an initial low-rank prompt pool. In the streaming stage, the STGNN remains frozen; for each new period, the prompt pool is expanded for new nodes and compressed using the low-rank strategy.

Experimental Setup

The framework was rigorously evaluated on three real-world streaming datasets:

  • PEMS-Stream (Transportation): Traffic flow data from Northern California (2011–2017), growing from 655 to 871 sensors.
  • Air-Stream (Weather): AQI data from across China (2016–2019), expanding from 1087 to 1202 sensors.
  • Energy-Stream (Energy): Wind power data covering 245 days as a farm expands from 103 to 134 turbines.

Theoretical and Empirical Insights

  • Frozen Backbones as a "Free Lunch": Empirical evidence suggests that the underlying spatio-temporal logic—how signals propagate through a graph—is relatively stable over time. Freezing the backbone eliminates catastrophic forgetting by design.
  • Quantifiable Heterogeneity: The authors provide theoretical proof that adding prompts increases "Average Node Deviation," mathematically confirming that prompts help the model distinguish between varying sensor behaviors.
  • Redundancy and Compression: Spectral analysis of prompt parameters revealed a "long-tail" distribution, where a few principal components carry most information. This justifies the low-rank compression approach for memory and compute efficiency.
  • Universality: EAC is architecture-agnostic, showing consistent improvements across spatial, spectral, recurrent, and attention-based STGNNs.

Performance Evaluation

EAC consistently outperformed state-of-the-art baselines, including specialized methods like TrafficStream and STKEC.

Performance comparison of EAC against various baselines across three streaming datasets.

Key results include:

  • Accuracy: On the PEMS-Stream dataset, EAC reduced Mean Absolute Error (MAE) by nearly 4% compared to the next best method.
  • Efficiency: Training per period was 1.26x to 3.02x faster than standard continual training because only prompts are updated.
  • Lightweight Footprint: EAC achieved superior results using only ~59% of the tunable parameters required by full-model fine-tuning.
  • Few-Shot Resilience: EAC maintained high stability and lower error rates even when only 20% of the training data was available for a new period.

Conclusion

EAC offers a scalable and robust solution for continual spatio-temporal forecasting. While currently focused on network expansion, its node-level design is inherently capable of handling node deletion. This work represents a significant step toward "Spatio-Temporal Foundation Models"—large pre-trained backbones that can be rapidly adapted to any sensor network via lightweight prompts.

Summary updated

BibTeX
@inproceedings{chen2025expand,
  author = {Wei Chen and Yuxuan Liang},
  title = {{Expand and Compress: Exploring Tuning Principles for Continual Spatio-Temporal Graph Forecasting}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=FRzCIlkM7I},
}
Figure