Home

Awesome

SST code will be coming soon!

SST have replaced the Mambaformer and the corresponding paper has already updated in the arxiv. SST paper: "SST: Multi-Scale Hybrid Mamba-Transformer Experts for Long-Short Range Time Series Forecasting".

The following shows the previous content (Mambaformer).

Mambaformer-in-Time-Series

This is an offical implementation of Mambaformer: "Integrating Mamba and Transformer for Long-Short Range Time Series Forecasting".

<p align="center"> <img width="525" alt="image" src="https://github.com/XiongxiaoXu/Mambaformer-in-Time-Series/assets/34889516/bb84159b-4a49-41f4-9ae3-e16606b9d742"> </p>

Contributions

• We are the first to explore the potential of the integration of Mamba and Transformer in time series. <br /> • We propose to adopt a hybrid architecture Mambaformer to capture long-short range dependencies in time series.<br /> • We conduct a comparative study to demonstrate the superiority of Mambaformer family compared with Mamba and Transformer in long-short range time series forecasting.

Models and Core Codes

<p align="center"> <img width="1308" alt="image" src="https://github.com/XiongxiaoXu/Mambaformer-in-Time-Series/assets/34889516/3cdd9d58-e8bc-4aa9-a836-16045554e927"> </p>

Getting Started

Environment

The installation of mamba-ssm package can refer to https://github.com/state-spaces/mamba.

Run

To get the result of Table 2, run the scripts etth1.sh, electricity.sh, and exchange_rate.sh in a terminal as follows:

./etth1.sh

./electricity.sh

./exchange_rate.sh

Acknowledgement

We would like to greatly thank the following awesome projects:

Mamba (https://github.com/state-spaces/mamba)

PatchTST (https://github.com/yuqinie98/PatchTST)

LTSF-Linear (https://github.com/cure-lab/LTSF-Linear)

Autoformer (https://github.com/thuml/Autoformer)

Cite

If you find this repository useful for your work, please consider citing the paper as follows:

@misc{xu2024sstmultiscalehybridmambatransformer,
      title={SST: Multi-Scale Hybrid Mamba-Transformer Experts for Long-Short Range Time Series Forecasting}, 
      author={Xiongxiao Xu and Canyu Chen and Yueqing Liang and Baixiang Huang and Guangji Bai and Liang Zhao and Kai Shu},
      year={2024},
      eprint={2404.14757},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2404.14757}, 
}