GPT-ST: Generative Pre-Training of Spatio-Temporal Graph Neural Networks

Zhonghang Li, Lianghao Xia, Yong Xu, Chao Huang
2/12/2026

No official code found. Best implementation: HKUDS/GPT-ST (92 stars, Apache-2.0, last commit 2024-06-10).

Abstract

In recent years, there has been a rapid development of spatio-temporal prediction techniques in response to the increasing demands of traffic management and travel planning. While advanced end-to-end models have achieved notable success in improving predictive performance, their integration and expansion pose significant challenges. This work aims to address these challenges by introducing a spatio-temporal pre-training framework that seamlessly integrates with downstream baselines and enhances their performance. The framework is built upon two key designs: (i) We propose a spatio-temporal mask autoencoder as a pre-training model for learning spatio-temporal dependencies. The model incorporates customized parameter learners and hierarchical spatial pattern encoding networks. These modules are specifically designed to capture spatio-temporal customized representations and intra- and inter-cluster region semantic relationships, which have often been neglected in existing approaches. (ii) We introduce an adaptive mask strategy as part of the pre-training mechanism. This strategy guides the mask autoencoder in learning robust spatio-temporal representations and facilitates the modeling of different relationships, ranging from intra-cluster to inter-cluster, in an easy-to-hard training manner. Extensive experiments conducted on representative benchmarks demonstrate the effectiveness of our proposed method. We have made our model implementation publicly available at https://github.com/HKUDS/GPT-ST.

View on arXivView PDF

Code Implementations(1)

HKUDS/GPT-STCommunity100%
Apache-2.0

[NeurIPS'2023] "GPT-ST: Generative Pre-Training of Spatio-Temporal Graph Neural Networks"

9212PythonNov 7, 20232 years agoApache-2.0
generative-modelgraph-neural-networkspre-trained-modelspatio-temporal-predictionurban-computing

Similar Papers

Cite this paper

@article{li2026gptst,
  title  = {GPT-ST: Generative Pre-Training of Spatio-Temporal Graph Neural Networks},
  author = {Zhonghang Li and Lianghao Xia and Yong Xu and Chao Huang},
  year   = {2026},
  eprint = {2311.04245},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.04245},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.04245.svg)](https://codeofpaper.com/paper/2311.04245)

Discussion