Abstract
Spatial-temporal graph neural networks (STGNNs) are critical for forecasting in domains like traffic and meteorology, yet they typically assume a static graph structure. In real-world applications, networks evolve as new sensors are added or urban infrastructure changes, leading to performance degradation. This paper introduces the Decoupled Learning Framework (DLF), a novel approach that disentangles temporal patterns into stable "seasonal" components and volatile "trend" components. By employing a multi-frequency update strategy and a masked autoencoder for robust feature learning, DLF maintains high predictive accuracy without the prohibitive cost of full retraining. Experimental results on traffic and air quality datasets demonstrate that DLF outperforms existing retraining and continual learning baselines in both accuracy and computational efficiency.
Introduction
Spatial-temporal graph neural networks (STGNNs) have become the standard for modeling complex dependencies in urban networks. However, a significant gap exists between academic models and real-world deployment: most STGNNs assume the underlying graph is static. In reality, urban networks are living systems; new roads are constructed, sensors are relocated, and traffic patterns shift due to development.
When the graph structure evolves, the performance of a pre-trained STGNN inevitably degrades. While retraining from scratch can restore accuracy, it is computationally expensive and impractical for frequent updates. Continual learning methods offer a middle ground but often struggle with the "few-shot" problem—when a new node appears, there is insufficient historical data to adapt the model effectively, often leading to catastrophic forgetting of established patterns.
The Decoupled Learning Framework (DLF)
To address these challenges, we propose the Decoupled Learning Framework (DLF). The core philosophy is to treat temporal data not as a monolithic stream, but as a combination of distinct patterns with different stabilities.
Disentangled Spatial-Temporal Graph Network (DSTG)
The architecture splits incoming time-series data into two parallel streams:
- Seasonal Component: Captures long-term, recurring patterns (e.g., daily rush hours). This is modeled using a heavy-duty Transformer to learn complex, long-range dependencies.
- Trend Component: Captures short-term, immediate fluctuations (e.g., accidents or sudden weather changes). This is handled by a lightweight Temporal Convolutional Network (TCN).
Decoupled Training Strategy
DLF employs a multi-frequency update strategy to optimize both components efficiently:
- Long-term Updates (Seasonal): Every few months, the seasonal component is trained using a Masked Autoencoder (MAE) approach. By masking up to 75% of the data, the model learns robust, generalized representations of the network's history.
- Short-term Updates (Trend): Every two weeks, the trend component is fine-tuned to adapt to new nodes and distribution shifts. Crucially, the seasonal Transformer weights are frozen during this phase to prevent overfitting to short-term noise.
- Subset Sampling: To further enhance efficiency, DLF does not update on the entire graph. Instead, it uses Wasserstein distance to identify and sample only the nodes experiencing significant distribution drift, alongside a few "replay" nodes to maintain stability.
Experimental Evaluation
We evaluated DLF on two large-scale datasets: PeMS (California traffic data with 1408 nodes) and Knowair (air quality data). To simulate a dynamic environment, we masked 5% of the nodes each month to represent the arrival of new sensors.
Performance and Efficiency
DLF consistently outperformed both full-retraining and state-of-the-art continual learning baselines. As shown in the results for the PeMS dataset, DLF achieves the lowest error rates across all prediction horizons while maintaining a significantly lower computational footprint than standard retraining methods.
For a 12-horizon prediction, DLF achieved a Mean Absolute Error (MAE) of 28.16, outperforming STGCN (31.02) and specialized continual learning methods like TrafficStream (31.07). In terms of efficiency, DLF's total training time was approximately 45,809 seconds, nearly three times faster than ST-GAM.
Conclusion
The Decoupled Learning Framework demonstrates that explicitly modeling the inductive biases of time-series data—specifically the distinction between seasonal and trend patterns—allows for more efficient and accurate graph learning in dynamic environments. By updating components surgically and leveraging self-supervised pre-training, DLF provides a scalable solution for real-world spatial-temporal forecasting.
Summary updated