[Paper Review] SpoT-Mamba: Learning Long-Range Dependency on Spatio-Temporal Graphs with Selective State Spaces
SpoT-Mamba proposes a novel spatio-temporal graph forecasting framework that leverages Mamba's selective state space mechanism to model long-range dependencies in both node walk sequences and temporal sequences. By applying Mamba blocks to scan multi-way random walk sequences and time-series data, SpoT-Mamba achieves state-of-the-art performance on PEMS04, outperforming existing methods in MAE, RMSE, and MAPE with a 2.33 average rank across metrics.
Spatio-temporal graph (STG) forecasting is a critical task with extensive applications in the real world, including traffic and weather forecasting. Although several recent methods have been proposed to model complex dynamics in STGs, addressing long-range spatio-temporal dependencies remains a significant challenge, leading to limited performance gains. Inspired by a recently proposed state space model named Mamba, which has shown remarkable capability of capturing long-range dependency, we propose a new STG forecasting framework named SpoT-Mamba. SpoT-Mamba generates node embeddings by scanning various node-specific walk sequences. Based on the node embeddings, it conducts temporal scans to capture long-range spatio-temporal dependencies. Experimental results on the real-world traffic forecasting dataset demonstrate the effectiveness of SpoT-Mamba.
Motivation & Objective
- To address the challenge of modeling long-range spatio-temporal dependencies in spatio-temporal graphs (STGs), especially in traffic and weather forecasting.
- To overcome the limitations of attention mechanisms and standard state space models in capturing global dependencies efficiently.
- To leverage Mamba’s input-dependent selective scanning for improved sequence modeling in STG forecasting.
- To design a framework that effectively captures both structural node dynamics via walk sequences and temporal evolution across time steps.
- To achieve state-of-the-art performance on real-world STG forecasting benchmarks with reduced computational overhead.
Proposed method
- SpoT-Mamba constructs node embeddings by scanning multiple node-specific random walk sequences using Mamba blocks to capture structural dependencies.
- It applies Mamba blocks to temporal sequences to model long-range temporal dynamics in a recurrence-based, input-selective manner.
- The model uses learnable embeddings for time-of-day and day-of-week to inject positional information into temporal sequences.
- Mamba blocks are employed in two stages: walk scan for spatial structure and temporal scan for time-series evolution.
- The framework integrates Mamba’s selective scanning mechanism to filter information based on input, enabling efficient long-context modeling.
- The architecture avoids self-attention, reducing computational complexity while maintaining or improving performance.
Experimental results
Research questions
- RQ1Can Mamba-based selective state space modeling effectively capture long-range dependencies in spatio-temporal graphs?
- RQ2How does SpoT-Mamba compare to attention-based and standard RNN/CNN-based STGNNs in modeling long-range temporal and spatial correlations?
- RQ3What is the contribution of walk sequence scanning versus temporal scanning in the overall forecasting performance?
- RQ4Does the input-dependent selectivity of Mamba improve modeling accuracy compared to fixed-structure state space models?
- RQ5How does SpoT-Mamba perform under memory constraints when replacing Mamba with transformers in different modules?
Key findings
- SpoT-Mamba achieves the best average rank (2.33) across MAE, RMSE, and MAPE on the PEMS04 benchmark, outperforming all baselines.
- It records the lowest MAPE of 11.86, indicating superior performance in relative error minimization.
- Replacing the walk scan module with a transformer encoder leads to a significant performance drop (MAPE: 12.12 vs. 11.86), highlighting the importance of sequence order modeling.
- Replacing only the temporal scan with a transformer results in minimal performance degradation (MAPE: 11.93 vs. 11.86), suggesting Mamba’s temporal scanning is robust and effective.
- The ablation study confirms that Mamba’s ability to process sequence order without learnable positional embeddings is critical for walk sequences.
- SpoT-Mamba maintains strong performance even under memory constraints, demonstrating scalability and efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.