Long-Range Transformers for Dynamic Spatiotemporal Forecasting

Jake Grigsby, Zhe Wang, Nam Nguyen, Yanjun Qi
9/24/2021
136 citations
cs.LGstat.ML
transformer-attention

Official code: QData/spacetimeformer (880 stars, Jupyter Notebook, MIT, last commit 2024-01-18).

Abstract

Multivariate time series forecasting focuses on predicting future values based on historical context. State-of-the-art sequence-to-sequence models rely on neural attention between timesteps, which allows for temporal learning but fails to consider distinct spatial relationships between variables.

Show full abstract

In contrast, methods based on graph neural networks explicitly model variable relationships. However, these methods often rely on predefined graphs that cannot change over time and perform separate spatial and temporal updates without establishing direct connections between each variable at every timestep. Our work addresses these problems by translating multivariate forecasting into a "spatiotemporal sequence" formulation where each Transformer input token represents the value of a single variable at a given time. Long-Range Transformers can then learn interactions between space, time, and value information jointly along this extended sequence. Our method, which we call Spacetimeformer, achieves competitive results on benchmarks from traffic forecasting to electricity demand and weather prediction while learning spatiotemporal relationships purely from data.

View on arXivView PDF

Code Implementations(1)

MIT

Multivariate Time Series Forecasting with efficient Transformers. Code for the paper "Long-Range Transformers for Dynamic Spatiotemporal Forecasting."

880201Jupyter Notebook, PythonSep 13, 20212 years agoMIT

Similar Papers

Cite this paper

@article{grigsby2021longrange,
  title  = {Long-Range Transformers for Dynamic Spatiotemporal Forecasting},
  author = {Jake Grigsby and Zhe Wang and Nam Nguyen and Yanjun Qi},
  year   = {2021},
  eprint = {2109.12218},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.12218}
}

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/2109.12218.svg)](https://codeofpaper.com/paper/2109.12218)

Discussion