Sequential Order-Robust Mamba for Time Series Forecasting

Seunghan Lee, Juri Hong, Kibok Lee, Taeyoung Park · Submission to ICLR 2025 · Rejected

TL;DR

Applying state-space models like Mamba across time series channels introduces an artificial "sequential order bias" because channels, unlike time steps, rarely possess an inherent sequence. SOR-Mamba solves this by removing local 1D convolutions and enforcing consistency between forward and reversed channel order embeddings. Coupled with a novel pretraining task called Channel Correlation Modeling (CCM), it outperforms prior Transformer and bidirectional Mamba baselines while slashing parameter counts by over 37%.

What Problem Does This Paper Address?

Recent multivariate time series forecasting architectures (such as iTransformer) process series channel-wise: each channel is treated as an individual token to capture channel dependencies (CD), while simple MLPs handle temporal dependencies (TD).

Mamba has emerged as an attractive, linear-time alternative to quadratic Transformers for sequence modeling. However, Mamba was designed for sequential data (text, audio, time) and carries an inherent sequential order bias. In contrast, variables in multivariate time series (e.g., exchange rates or weather readings) have no natural ordering.

Prior attempts to mitigate this bias either relied on bidirectional Mamba (running two independent models in opposite directions, doubling parameter overhead without consistently improving results) or variable permutation (shuffling orders during training, requiring costly search heuristics at inference).

Methods

The authors introduce SOR-Mamba (Sequential Order-Robust Mamba), pairing structural simplification with targeted consistency regularization:

  1. CD-Mamba Block (Removing 1D-Conv): Standard Mamba uses a 1D convolution ahead of the selective state-space model (SSM) to blend information across neighboring tokens. Because arbitrary channel orderings make adjacency meaningless, SOR-Mamba discards the 1D convolution entirely.
  2. Order-Robust Regularization: Instead of training two separate models for bidirectional scanning, a single unidirectional Mamba processes both the original channel token sequence $\mathbf{z}_1$ and its reversed permutation $\mathbf{z}_2$. The model minimizes an embedding-space distance loss $\mathcal{L}_{\text{reg}} = d(\mathbf{z}_1, \mathbf{z}_2)$ (e.g., MSE) alongside the forecasting objective: $$\mathcal{L}(\mathbf{x}, \mathbf{y}) = \mathcal{L}_{\text{fcst}}(\mathbf{x}, \mathbf{y}) + \lambda \sum_{i=1}^m \mathcal{L}_{\text{reg}}(\mathbf{z}^{(i)})$$
  3. Channel Correlation Modeling (CCM): Rather than using standard temporal reconstruction or masked autoencoding, the authors propose a self-supervised pretraining task that enforces channel-structure alignment. CCM computes the Pearson correlation matrix between raw input channels ($\mathbf{R}_X$) and output latent tokens ($\mathbf{R}_Z$), minimizing $d(\mathbf{R}_X, \mathbf{R}_Z)$.
Input Channels [C1, C2, ..., Cn] ──► CD-Mamba (w/o 1D-conv) ──► z1
                                                                 ├──► Reg Loss: d(z1, z2)
Reversed Channels [Cn, ..., C1] ──► CD-Mamba (Shared weights) ──► z2

Datasets

The authors evaluate SOR-Mamba across 13 multivariate time series benchmarks:

  • ETT (Electricity Transformer Temperature): ETTh1, ETTh2, ETTm1, ETTm2
  • Traffic & Transportation: PEMS03, PEMS04, PEMS07, PEMS08, and Traffic
  • Energy & Weather: Solar-Energy, Electricity (ECL), and Weather
  • Financial: Exchange-Rate

Experiments cover standard supervised forecasting, self-supervised learning (linear probing and fine-tuning), and transfer learning (both in-domain and cross-domain).

Key Insights and Ideas

  • Bias scales with channel count and correlation: The degree of sequential order bias is highest when datasets have large channel counts ($C \ge 100$) and high inter-channel correlation (e.g., PeMS traffic sensors).
  • 1D convolutions are harmful for unordered data: Removing 1D-conv improves performance on generic datasets where channel indices are arbitrary.
  • Fixed reversals beat random shuffling: Regularizing against randomly permuted channel sequences causes significant training instability and worse performance compared to pairing a fixed order with its exact reversal.
  • Preserving channel correlation outshines masked pretraining: CCM preserves cross-channel relationships directly, outperforming masked modeling (which excels when $C \ge 100$) and reconstruction (which excels when $C < 100$) across both small and large channel counts.

Key Results

  • Forecasting Accuracy: SOR-Mamba achieves state-of-the-art results across 13 datasets. Under fine-tuned SSL, it achieves an average MSE of 0.257 compared to 0.266 for S-Mamba and 0.278 for iTransformer.
  • Efficiency Gains: Compared to bidirectional S-Mamba on the Traffic dataset ($C=862$):
  • 38.1% fewer parameters overall (5.80M vs. 9.29M) and 50.1% fewer parameters in the channel encoder.
  • 5.7% faster training per epoch and 11.3% faster inference per instance.
  • Uses only 0.32 GB GPU memory compared to iTransformer’s 1.36 GB (quadratic complexity in channels).
  • Transfer Learning: Consistently outperforms S-Mamba in both in-domain and cross-domain transfer tasks, yielding roughly a 5% improvement in fine-tuning MSE.

Limitations and Future Work

  • Datasets with physical channel order: When channels have genuine physical or spatial adjacency (such as road traffic sensors in PeMS), removing 1D-conv can slightly degrade performance (observed in 3 of 4 PeMS benchmarks).
  • Hyperparameter sensitivity: Although relatively robust, the regularization weight $\lambda$ must be selected across a search grid ($[0.001, 0.01, 0.1]$).
  • Future Directions: Applying sequential order-robust SSMs to other inherently unordered domains, such as tabular representation learning.

Summary updated

BibTeX
@inproceedings{lee2024sequential,
  author = {Seunghan Lee and Juri Hong and Kibok Lee and Taeyoung Park},
  title = {{Sequential Order-Robust Mamba for Time Series Forecasting}},
  booktitle = {TSALM @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=AhlFVSnbP7},
}
Figure