TSLib TimeMixer
An MLP-based forecaster that mixes seasonal and trend components across several sampling scales.
Time series · 333 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
- 75.5K
- Operations
- 333
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2024
- Cited by
- 136 (as of 23 October 2026)
- Authors
- Shiyu Wang, Haixu Wu, Xiaoming Shi and others
- 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
- m3047
- Graph hash
- f770f373a549bc21042a8dfab931e45de4ce07a29d6149d68959762c99795559
- Skeleton hash
- e6acb2344a74eff6c3bf305ef7f3a550108e7d948d8c8719a88b091d6814bc6b
- Architecture hash
- c02ff9a989ff48d91e78a995ab98567bbfd958230a827d84aaf66d8b825c13a9
- Diagram SHA-256
- 9ef12bae7e1b8deb6d3383b79ae0720d2864b847d2b2efdf08af65a926b17bf4
- 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
TimeMixer is a fully MLP-based time series forecasting model that works on its input at several sampling scales. It starts from the observation that time series present distinct patterns in different sampling scales: microscopic information in fine scales, macroscopic in coarse ones. The paper's example is traffic flow: hourly records show changes across the day, while in the daily series those variations disappear and fluctuations associated with holidays emerge.
The model generates its multiscale observations through average downsampling. Past-Decomposable-Mixing (PDM) blocks decompose each scale into seasonal and trend components and mix the two separately. Seasonal mixing runs bottom-up, passing information from the fine-scale series upwards to supplement detail at coarser scales. Trend mixing runs top-down, using the macro knowledge from coarser scales to guide the trend modeling of finer scales. The Future-Multipredictor-Mixing (FMM) block is an ensemble of predictors, each based on past information from a different scale.
The paper's experiments cover long-term and short-term forecasting on 18 real-world benchmarks against 15 baselines. For long-term forecasting it reports MSE reductions relative to PatchTST of 9.4% on Weather and 24.7% on Solar-Energy. The version shown here is the implementation in the Time Series Library (TSLib). The TSLib maintainers recommend the TimeMixer paper because its experiments include both look-back length settings.
Key idea. TimeMixer is a fully MLP-based architecture whose Past-Decomposable-Mixing and Future-Multipredictor-Mixing blocks use multiscale series in both past extraction and future prediction.
- timemixer
- time mixer
- tslib timemixer
- decomposable multiscale mixing
- multiscale mixing
- past-decomposable-mixing
- future-multipredictor-mixing
- mlp time series forecasting
- time series forecasting
- time series library
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2024timemixerdecomposablemultiscalemixing,
title={TimeMixer: Decomposable Multiscale Mixing for Time Series Forecasting},
author={Shiyu Wang and Haixu Wu and Xiaoming Shi and Tengge Hu and Huakun Luo and Lintao Ma and James Y. Zhang and Jun Zhou},
year={2024},
eprint={2405.14616},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2405.14616},
}