Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

T-Graphormer: Using Transformers for Spatiotemporal Forecasting

About

Spatiotemporal data is ubiquitous, and forecasting it has important applications in many domains. However, its complex cross-component dependencies and non-linear temporal dynamics can be challenging for traditional techniques. Existing methods address this by learning the two dimensions separately. Here, we introduce Temporal Graphormer (T-Graphormer), a Transformer-based approach capable of modelling spatiotemporal correlations simultaneously. By adding temporal encodings in the Graphormer architecture, each node attends to all other tokens within the graph sequence, enabling the model to learn rich spacetime patterns with minimal predefined inductive biases. We show the effectiveness of T-Graphormer on real-world traffic prediction benchmark datasets. Compared to state-of-the-art methods, T-Graphormer reduces root mean squared error (RMSE) and mean absolute percentage error (MAPE) by up to 20% and 10%.

Hao Yuan Bai, Xue Liu• 2025

Related benchmarks

TaskDatasetResultRank
Traffic speed forecastingMETR-LA (test)--
200
Spatiotemporal forecastingPEMS-BAY (test)
MAE (Horizon 3)1.16
11
Spatiotemporal forecastingPEMS03 Horizon 12 (test)
MAE15.88
8
Spatiotemporal forecastingPEMS04 Horizon 12 (test)
MAE20.4
8
Spatiotemporal forecastingPEMS08 Horizon 12 (test)
MAE16.88
8
Showing 5 of 5 rows

Other info

Code

Follow for update