Robust Traffic Forecasting against Spatial Shift over Years

Hongjun Wang, Jiyuan Chen, Tong Pan, Zheng Dong, Lingyu Zhang, Renhe Jiang, Xuan SongarXiv 2024 · DOI

Abstract

Most traffic forecasting models assume urban spatial relationships are static, leading to significant performance degradation when applied to data from different years. This paper identifies this "spatial shift" phenomenon and introduces a Mixture of Experts (MoE) framework that learns to generate adaptive "graphons" (graph generators). This approach allows models to handle the inevitable spatial shifts caused by urban development and changing traffic patterns. Experimental results on new out-of-distribution (OOD) benchmarks demonstrate that the proposed framework significantly improves robustness, with performance gains of up to 56.72% in cross-year scenarios.

Introduction: The Spatial Trap in Traffic Forecasting

Spatiotemporal Graph Neural Networks (ST-GNNs) have become the gold standard for traffic forecasting by capturing how traffic at one sensor affects another. However, these models are typically trained and tested on data from the same short-term window. This approach overlooks a critical reality: cities are dynamic. New infrastructure, commercial developments, or changes in traffic regulations create a "spatial shift"—new dependencies between regions that did not exist during the training period.

When current state-of-the-art models are tested on data from a different year (Out-of-Distribution or OOD scenarios), their performance often plummets. Surprisingly, simple models like LSTMs, which ignore spatial data entirely, can outperform complex GNNs in these long-term scenarios. This suggests that GNNs become "overfit" to a spatial graph that no longer accurately represents the city's state.

Performance comparison and spatiotemporal discrepancy on PEMS03 and PEMS04 datasets. Subfigures (a) and (b) show the MAE increase in OOD scenarios, while (c) and (d) illustrate the shift in spatial correlation distributions over years.

Methodology: Mixture of Expert Graphons

To address the spatial shift, the authors propose a framework that moves away from learning a single, fixed adjacency matrix. The core of the approach is the use of adaptive graph generators, or "graphons."

Maximum Spatiotemporal Graph Division (MSGD)

Instead of treating the entire day as a single environment, the framework uses dynamic programming and Kendall’s $\tau$ correlation to partition the day into $K$ distinct periods (e.g., morning peak vs. midnight). These periods represent environments where spatial relationships are most diverse and stable.

Expert Graphon Layer

For each identified period, an "expert" graphon is trained. Rather than a static map, these experts learn the underlying probability of connections between nodes. This generative approach provides the flexibility to adapt to unseen spatial configurations.

Episodic Training and Adaptive Mixing

To ensure robustness, the model uses episodic training to simulate OOD scenarios by hiding one expert and forcing the others to reconstruct the missing environment. During testing, the model adaptively combines graphons from different experts based on the current input signal, synthesizing a graph tailored to the current conditions.

Experimental Evaluation

The authors introduced four new OOD benchmarks derived from the California Department of Transportation's PEMS system (PEMS03-2019, PEMS04-2019, PEMS07-2018, and PEMS08-2017). These benchmarks use the same sensors as standard datasets but test on data from a different year. Validation was also performed on a SpeedNYC dataset (2019–2022).

Results and Discussion

The proposed MoE framework was integrated into several state-of-the-art models, including GWNet, AGCRN, MTGNN, and STAEformer. Key results include:

  • Significant OOD Improvements: STAEformer + Expert achieved a 56.72% improvement on PEMS07 and a 45.15% improvement on PEMS08 in cross-year tests.
  • Consistency: Unlike many OOD methods that sacrifice in-distribution accuracy for robustness, this method maintained or slightly improved performance on standard benchmarks.
  • Temporal Stability: The findings confirm that temporal patterns (like daily rush hours) are more stable over years than spatial relationships, which explains the relative consistency of temporal-only models.

Conclusion

This research highlights a major oversight in current traffic forecasting: the assumption of static urban spatiality. By employing a Mixture of Expert Graphons, the proposed framework provides a robust solution to the spatial shift problem. Future work will explore the application of this adaptive approach to other evolving networks, such as electrical grids or social media graphs.

Summary updated

BibTeX
@misc{wang2024robust,
  author = {Hongjun Wang and Jiyuan Chen and Tong Pan and Zheng Dong and Lingyu Zhang and Renhe Jiang and Xuan Song},
  title = {{Robust Traffic Forecasting against Spatial Shift over Years}},
  year = {2024},
  eprint = {2410.00373},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.00373},
}
Figure