TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/T-Graphormer: Using Transformers for Spatiotemporal Foreca...

T-Graphormer: Using Transformers for Spatiotemporal Forecasting

Hao Yuan Bai, Xue Liu

2025-01-22Traffic PredictionTime Series
PaperPDFCode(official)

Abstract

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%.

Results

TaskDatasetMetricValueModel
Traffic PredictionPEMS-BAYMAE @ 12 step1.63T-Graphormer
Traffic PredictionPEMS-BAYRMSE3.2T-Graphormer
Traffic PredictionPEMS-BAYRMSE 3.2T-Graphormer
Traffic PredictionMETR-LA12 steps MAE3.19T-Graphormer
Traffic PredictionMETR-LA12 steps MAPE8.62T-Graphormer
Traffic PredictionMETR-LA12 steps RMSE6.12T-Graphormer
Traffic PredictionMETR-LAMAE @ 12 step3.19T-Graphormer
Traffic PredictionMETR-LAMAE @ 3 step2.63T-Graphormer

Related Papers

MoTM: Towards a Foundation Model for Time Series Imputation based on Continuous Modeling2025-07-17The Power of Architecture: Deep Dive into Transformer Architectures for Long-Term Time Series Forecasting2025-07-17Data Augmentation in Time Series Forecasting through Inverted Framework2025-07-15D3FL: Data Distribution and Detrending for Robust Federated Learning in Non-linear Time-series Data2025-07-15Federated Learning with Graph-Based Aggregation for Traffic Forecasting2025-07-13Towards Interpretable Time Series Foundation Models2025-07-10MoFE-Time: Mixture of Frequency Domain Experts for Time-Series Forecasting Models2025-07-09Foundation models for time series forecasting: Application in conformal prediction2025-07-09