[Paper Review] SST: Multi-Scale Hybrid Mamba-Transformer Experts for Time Series Forecasting
Proposes Mambaformer, a hybrid Mamba-Transformer architecture, to capture long- and short-range dependencies in time series forecasting, and shows superior performance over Mamba and Transformer on real datasets.
Time series forecasting has made significant advances, including with Transformer-based models. The attention mechanism in Transformer effectively captures temporal dependencies by attending to all past inputs simultaneously. However, its quadratic complexity with respect to sequence length limits the scalability for long-range modeling. Recent state space models (SSMs) such as Mamba offer a promising alternative by achieving linear complexity without attention. Yet, Mamba compresses historical information into a fixed-size latent state, potentially causing information loss and limiting representational effectiveness. This raises a key research question: Can we design a hybrid Mamba-Transformer architecture that is both effective and efficient for time series forecasting? To address it, we adapt a hybrid Mamba-Transformer architecture Mambaformer, originally proposed for language modeling, to the time series domain. Preliminary experiments reveal that naively stacking Mamba and Transformer layers in Mambaformer is suboptimal for time series forecasting, due to an information interference problem. To mitigate this issue, we introduce a new time series decomposition strategy that separates time series into long-range patterns and short-range variations. Then we show that Mamba excels at capturing long-term structures, while Transformer is more effective at modeling short-term dynamics. Building on this insight, we propose State Space Transformer (SST), a multi-scale hybrid model with expert modules: a Mamba expert for long-range patterns and a Transformer expert for short-term variations. SST also employs a multi-scale patching mechanism to adaptively adjust time series resolution: low resolution for long-term patterns and high resolution for short-term variations. Experiments show that SST obtains SOTA performance with linear scalability. The code is at https://github.com/XiongxiaoXu/SST.
Motivation & Objective
- Motivate time series forecasting with both long-range and short-range dependencies.
- Introduce a hybrid Mamba-Transformer architecture (Mambaformer) for time series data.
- Demonstrate that Mambaformer outperforms both Mamba and Transformer on benchmark datasets.
Proposed method
- Embed time series data using token and temporal embeddings.
- Pre-process embeddings with a Mamba block to inject positional information without explicit positional encoding.
- Interleave Mamba layers and self-attention layers in a decoder-only Mambaformer layer to fuse long- and short-range modeling.
- Forecast with a final linear layer to map embeddings back to the original feature space.
Experimental results
Research questions
- RQ1Can a hybrid Mamba-Transformer architecture improve long-short range time series forecasting compared to using Mamba or Transformer alone?
- RQ2Does pre-processing with a Mamba block reduce or eliminate the need for explicit positional encoding in time series forecasting?
Key findings
- Mambaformer delivers superior forecasting performance over Mamba and Transformer on real multivariate time series datasets.
- Mambaformer achieves best results within the Mambaformer family, indicating effective integration of long- and short-range modeling.
- The order of interleaving Mamba and attention layers (hybrid variants) shows comparable performance, suggesting flexibility in architectural design.
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.