FAST: A Synergistic Framework of Attention and State-space Models for Spatiotemporal Traffic Prediction
Organizations: Columbia University New York, NY, USA · San Francisco State University San Francisco, CA, USA · University of California, Berkeley Berkeley, CA, USA · New York University New York, NY, USA ·
Abstract
Traffic forecasting requires modeling complex temporal dynamics and long-range spatial dependencies over large sensor networks. Existing methods typically face a trade-off between expressiveness and efficiency: Transformer-based models capture global dependencies well but suffer from quadratic complexity, while recent selective state-space models are computationally efficient yet less effective at modeling spatial interactions in graph-structured traffic data. We propose FAST, a unified framework that combines attention and state-space modeling for scalable spatiotemporal traffic forecasting. FAST adopts a Temporal-Spatial-Temporal architecture, where temporal attention modules capture both short- and long-term temporal patterns, and a Mamba-based spatial module models long-range inter-sensor dependencies with linear complexity. To better represent heterogeneous traffic contexts, FAST further introduces a learnable multi-source spatiotemporal embedding that integrates historical traffic flow, temporal context, and node-level information, together with a multi-level skip prediction mechanism for hierarchical feature fusion. Experiments on PeMS04, PeMS07, and PeMS08 show that FAST consistently outperforms strong baselines from Transformer-, GNN-, attention-, and Mamba-based families. In particular, FAST achieves the best MAE and RMSE on all three benchmarks, with up to 4.3% lower RMSE and 2.8% lower MAE than the strongest baseline, demonstrating a favorable balance between accuracy, scalability, and generalization.
Figures & tables
| Dataset | Metric | Time Series Forecasting | Graph Neural Network-Based | Attention-Based | Mamba-Based | Ours | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| iTransformer | PatchTST | STGCN | DCRNN | GWNET | STGNCDE | GMAN | ST-WA | MCST-Mamba | TSMamba | FAST | ||
| PeMS04 | MAE | 22.56 | 22.29 | 21.77 | 22.73 | 19.37 | 19.22 | 19.12 | 19.07 | 20.13 | 19.08 | 19.00 |
| MAPE (%) | 16.16 | 16.34 | 13.88 | 14.76 | 13.29 | 12.78 | 13.18 | 12.53 | 13.00 | 12.88 | 13.44 | |
| RMSE | 35.22 | 33.70 | 34.76 | 36.56 | 31.73 | 31.07 | 31.62 | 31.03 | 33.23 | 34.03 | 30.94 | |
| PeMS07 | MAE | 24.60 | 23.94 | 22.91 | 23.62 | 21.24 | 20.60 | 20.96 | 20.73 | 21.02 | 20.67 | 20.50 |
| MAPE (%) | 11.11 | 13.52 | 11.97 | 12.29 | 9.10 | 8.87 | 9.06 | 8.75 | 8.80 | 8.89 | 8.63 | |
| Metric | Model | PeMS04 | PeMS07 | PeMS08 |
|---|---|---|---|---|
| MAE | w/o Embedding | 23.45 | 25.21 | 19.98 |
| FAST | 19.00 | 20.50 | 14.66 | |
| MAPE (%) | w/o Embedding | 16.12 | 11.29 | 12.87 |
| FAST | 13.44 | 8.63 | 9.68 | |
| RMSE | w/o Embedding | 36.84 | 39.03 | 30.76 |
| FAST | 30.94 | 33.58 | 23.59 |
Spatiotemporal Forecasting
Spatiotemporal forecasting predicts how quantities change across locations and time, from traffic and weather to disease and environmental systems.
See all 410 papers