Mamba or Transformer for Time Series Forecasting? Mixture of Universals (MoU) Is All You Need

Sijia Peng, Yun Xiong, Yangyong Zhu, Zhiqiang Shen
8/28/2024
cs.LGcs.AI

Official code: lunaaa95/mou (53 stars, last commit 2025-08-07).

Abstract

Time series forecasting requires balancing short-term and long-term dependencies for accurate predictions. Existing methods mainly focus on long-term dependency modeling, neglecting the complexities of short-term dynamics, which may hinder performance. Transformers are superior in modeling long-term dependencies but are criticized for their quadratic computational cost. Mamba provides a near-linear alternative but is reported less effective in time series longterm forecasting due to potential information loss. Current architectures fall short in offering both high efficiency and strong performance for long-term dependency modeling. To address these challenges, we introduce Mixture of Universals (MoU), a versatile model to capture both short-term and long-term dependencies for enhancing performance in time series forecasting. MoU is composed of two novel designs: Mixture of Feature Extractors (MoF), an adaptive method designed to improve time series patch representations for short-term dependency, and Mixture of Architectures (MoA), which hierarchically integrates Mamba, FeedForward, Convolution, and Self-Attention architectures in a specialized order to model long-term dependency from a hybrid perspective. The proposed approach achieves state-of-the-art performance while maintaining relatively low computational costs. Extensive experiments on seven real-world datasets demonstrate the superiority of MoU. Code is available at https://github.com/lunaaa95/mou/.

View on arXivView PDF

Code Implementations(1)

lunaaa95/mouOfficial100%

Semantics-Aware Patch Encoding and Hierarchical Dependency Modeling for Long-Term Time Series Forecasting

536Shell, PythonAug 8, 20241 years ago

Similar Papers

Cite this paper

@article{peng2024mamba,
  title  = {Mamba or Transformer for Time Series Forecasting? Mixture of Universals (MoU) Is All You Need},
  author = {Sijia Peng and Yun Xiong and Yangyong Zhu and Zhiqiang Shen},
  year   = {2024},
  eprint = {2408.15997},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.15997v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.15997.svg)](https://codeofpaper.com/paper/2408.15997)

Discussion