TSMixer: Lightweight MLP-Mixer Model for Multivariate Time Series Forecasting

Vijay Ekambaram, Arindam Jati, Nam Nguyen, Phanwadee Sinthong, Jayant Kalagnanam
6/14/2023
479 citations
cs.LGcs.AI
transformer-attention

No official code found. Best implementation: ibm-granite/granite-tsfm (924 stars, Jupyter Notebook, Apache-2.0, last commit 2026-04-29).

Abstract

Transformers have gained popularity in time series forecasting for their ability to capture long-sequence interactions. However, their high memory and computing requirements pose a critical bottleneck for long-term forecasting.

Show full abstract

To address this, we propose TSMixer, a lightweight neural architecture exclusively composed of multi-layer perceptron (MLP) modules for multivariate forecasting and representation learning on patched time series. Inspired by MLP-Mixer's success in computer vision, we adapt it for time series, addressing challenges and introducing validated components for enhanced accuracy. This includes a novel design paradigm of attaching online reconciliation heads to the MLP-Mixer backbone, for explicitly modeling the time-series properties such as hierarchy and channel-correlations. We also propose a novel Hybrid channel modeling and infusion of a simple gating approach to effectively handle noisy channel interactions and generalization across diverse datasets. By incorporating these lightweight components, we significantly enhance the learning capability of simple MLP structures, outperforming complex Transformer models with minimal computing usage. Moreover, TSMixer's modular design enables compatibility with both supervised and masked self-supervised learning methods, making it a promising building block for time-series Foundation Models. TSMixer outperforms state-of-the-art MLP and Transformer models in forecasting by a considerable margin of 8-60%. It also outperforms the latest strong benchmarks of Patch-Transformer models (by 1-2%) with a significant reduction in memory and runtime (2-3X). The source code of our model is officially released as PatchTSMixer in the HuggingFace. Model: https://huggingface.co/docs/transformers/main/en/model_doc/patchtsmixer Examples: https://github.com/ibm/tsfm/#notebooks-links

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Foundation Models for Time Series

924283Jupyter Notebook, PythonFeb 27, 20237 months agoApache-2.0

Similar Papers

Cite this paper

@article{ekambaram2023tsmixer,
  title  = {TSMixer: Lightweight MLP-Mixer Model for Multivariate Time Series Forecasting},
  author = {Vijay Ekambaram and Arindam Jati and Nam Nguyen and Phanwadee Sinthong and Jayant Kalagnanam},
  year   = {2023},
  eprint = {2306.09364},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.09364v4}
}

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/2306.09364.svg)](https://codeofpaper.com/paper/2306.09364)

Discussion