Skip to main content
QUICK REVIEW

[Paper Review] OpenCity: Open Spatio-Temporal Foundation Models for Traffic Prediction

Zhonghang Li, Long Xia|arXiv (Cornell University)|Aug 16, 2024
Traffic Prediction and Management TechniquesEngineering3 citations
TL;DR

OpenCity is a novel spatio-temporal foundation model that leverages a Transformer-based architecture pre-trained on diverse, large-scale traffic datasets to achieve strong zero-shot generalization across unseen cities and long-term forecasting. It demonstrates state-of-the-art zero-shot performance comparable to fully fine-tuned baselines, with high computational efficiency and promising scaling laws.

ABSTRACT

Accurate traffic forecasting is crucial for effective urban planning and transportation management, enabling efficient resource allocation and enhanced travel experiences. However, existing models often face limitations in generalization, struggling with zero-shot prediction on unseen regions and cities, as well as diminished long-term accuracy. This is primarily due to the inherent challenges in handling the spatial and temporal heterogeneity of traffic data, coupled with the significant distribution shift across time and space. In this work, we aim to unlock new possibilities for building versatile, resilient and adaptive spatio-temporal foundation models for traffic prediction. To achieve this goal, we introduce a novel foundation model, named OpenCity, that can effectively capture and normalize the underlying spatio-temporal patterns from diverse data characteristics, facilitating zero-shot generalization across diverse urban environments. OpenCity integrates the Transformer architecture with graph neural networks to model the complex spatio-temporal dependencies in traffic data. By pre-training OpenCity on large-scale, heterogeneous traffic datasets, we enable the model to learn rich, generalizable representations that can be seamlessly applied to a wide range of traffic forecasting scenarios. Experimental results demonstrate that OpenCity exhibits exceptional zero-shot predictive performance. Moreover, OpenCity showcases promising scaling laws, suggesting the potential for developing a truly one-for-all traffic prediction solution that can adapt to new urban contexts with minimal overhead. We made our proposed OpenCity model open-source and it is available at the following link: https://github.com/HKUDS/OpenCity.

Motivation & Objective

  • Address the critical challenge of zero-shot generalization in traffic forecasting across unseen urban regions and long-term time horizons.
  • Overcome the limitations of existing models that fail to generalize due to spatial and temporal distribution shifts in traffic data.
  • Develop a scalable, efficient foundation model capable of transferring knowledge across diverse cities with minimal fine-tuning.
  • Enable one-for-all traffic prediction by learning universal spatio-temporal representations from heterogeneous data.
  • Demonstrate that pre-training on large-scale, multi-city traffic data can yield robust, generalizable representations for downstream forecasting tasks.

Proposed method

  • Employ a Transformer encoder backbone to model complex, dynamic spatio-temporal dependencies in traffic data.
  • Pre-train OpenCity on a large-scale, heterogeneous collection of real-world traffic datasets from multiple cities to learn generalizable representations.
  • Integrate graph neural network components to effectively encode spatial correlations across road networks.
  • Utilize self-supervised learning objectives during pre-training to enhance representation learning without requiring labeled forecasts.
  • Apply a masked autoencoding strategy as part of the pre-training objective to reconstruct spatio-temporal patterns from partial observations.
  • Leverage scaling laws observed in pre-training to guide model development and predict performance gains with increased data and capacity.

Experimental results

Research questions

  • RQ1Can a foundation model pre-trained on diverse, multi-city traffic data achieve strong zero-shot performance on unseen urban regions?
  • RQ2How does OpenCity’s performance compare to fully fine-tuned state-of-the-art models in zero-shot settings across different cities and forecasting horizons?
  • RQ3To what extent does pre-training on heterogeneous traffic data improve generalization to long-term forecasting beyond short-term predictions?
  • RQ4What are the computational and scaling characteristics of OpenCity, and do they support the development of a truly universal traffic prediction system?
  • RQ5Can OpenCity effectively handle significant distribution shifts in traffic data across different cities without fine-tuning?

Key findings

  • OpenCity achieves zero-shot predictive performance that matches or exceeds fully fine-tuned state-of-the-art models on multiple benchmark datasets.
  • On the CHI-TAXI dataset, OpenCity_mini achieves a MAE of 1.74 and RMSE of 3.80, outperforming baselines like UniST (MAE: 2.94, RMSE: 7.88) and UrbanGPT (MAE: 3.26, RMSE: 7.10).
  • The model demonstrates strong generalization across cities, maintaining high accuracy even when tested on regions not seen during pre-training.
  • OpenCity exhibits favorable scaling laws, indicating that performance improves predictably with increased model size and data scale.
  • Despite its high generalization capability, OpenCity maintains computational efficiency, with inference cost at only 1.5 seconds, significantly lower than UrbanGPT’s $4.5 \times 10^4$ seconds.
  • The model’s performance remains robust under distribution shifts, confirming its ability to handle spatial and temporal heterogeneity in real-world traffic data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.