MambaTS (Time Series Mamba)
A Mamba-based forecaster that learns a scan order over variables for long-term multivariate time series forecasting.
Time series · 3,454 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Time series
- Parameters
- 40.2K
- Operations
- 3,454
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2024, arXiv preprint
- Cited by
- 23 (as of 28 October 2026)
- Authors
- Xiuding Cai, Xueyao Wang, Yaoyao Zhu, Yu Yao
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18311
- Graph hash
- c4f71461f3171860cd6ef60038180742bacaf4caea85d3f17afe1b7e3ca0bf62
- Skeleton hash
- cd8e6e58573515bead211cf5ad97dcebf3535a45529ea3d3650558b3f7f317b9
- Architecture hash
- f2902b672d13ed1a7a16f1d4e300453521eb5d8b3c362396d693f230880a9a48
- Diagram SHA-256
- 18e193a2fa72d68532f64810db6b048503be32c3942ac00d00f6a92300be7066
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MambaTS is a model for long-term time series forecasting (LTSF) that uses a selective state space model instead of self-attention. Its starting question is whether self-attention is truly needed to model long-range dependencies in LTSF, given the quadratic complexity and permutation-invariant bias of that mechanism. The model takes the recent Mamba model as its backbone and, following PatchTST, divides each variable into patches before embedding.
Because the dependency structure between variables is usually unknown, the paper introduces Variable-Aware Scan along Time (VAST). During training a variable permutation strategy randomly shuffles the variable order each iteration, which lets the model estimate inter-variable relationships. At inference VAST picks a scan order by treating it as an asymmetric traveling salesman problem and decoding a shortest path with simulated annealing.
The paper argues the causal convolution in the original Mamba block is unnecessary when variables are independent, and removes it to form the Temporal Mamba Block (TMB); this model runs with that convolution off. A dropout on selective parameters in the block is added to reduce overfitting. The paper reports experiments on eight public datasets.
Key idea. MambaTS adapts the Mamba state space model to multivariate forecasting with a learned variable scan order and a Temporal Mamba Block that drops the causal convolution.
- MambaTS
- time series mamba
- long-term time series forecasting
- selective state space model
- mamba
- variable-aware scan
- temporal mamba block
- multivariate forecasting
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{cai2026mambatsimprovedselectivestate,
title={MambaTS: Improved Selective State Space Models for Long-term Time Series Forecasting},
author={Xiuding Cai and Xueyao Wang and Yaoyao Zhu and Yu Yao},
year={2026},
eprint={2405.16440},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2405.16440},
}