timemixer
An all-MLP forecaster that mixes seasonal and trend parts across time scales, then ensembles one predictor per scale.
Time series · 40 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
- 1.7K
- Operations
- 40
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR (arXiv 2024)
- Cited by
- 1,861 (as of 29 November 2026)
- Authors
- Shiyu Wang, Haixu Wu, Xiaoming Shi and others
- 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
- m12189
- Graph hash
- 208d842ee75518fefb7881848230976ca898d2ec4508b5c8fd6d56c60e578fa2
- Skeleton hash
- 9918b64efa7021dccda21d9b3b568c9ce95d4d5d854331f4dcf166b9063ddd02
- Architecture hash
- 8256082665e9c8f7cf56b9c6474cef162ba44c5e4db8679749a53905e793daaa
- Diagram SHA-256
- fea6689644a12feafd69322ad19086dc5970718c1d8b70232aa19ea74cddd29d
- 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 time series forecasting model built as a fully MLP-based architecture. Its starting observation is that a series looks different at different sampling rates: hourly traffic shows the rhythm of a day, while the same data sampled daily loses that detail but reveals holiday swings. Fine scales carry the microscopic detail and coarse scales the macroscopic picture, so looking at several scales at once pulls tangled variations apart.
The model first downsamples the past observations into several scales by average pooling and then embeds each one. Stacked Past-Decomposable-Mixing (PDM) blocks then split every scale into seasonal and trend parts and mix the two parts separately. The decomposition itself is borrowed from Autoformer's series decomposition block. Seasonal parts are mixed bottom-up, feeding fine-scale detail upward into coarser scales. Trend parts go the other way, top-down, letting the cleaner macro view of coarse scales guide the finer ones. Each mixing layer is two linear layers with a GELU activation between them.
For the forecast itself, the Future-Multipredictor-Mixing (FMM) block runs a separate predictor on each scale and ensembles them, so predictors that see the past at different resolutions complement one another. Ablations back the split: without decomposition, neither bottom-up nor top-down mixing alone performs well. The authors evaluate on 18 real-world benchmarks against 15 baselines, spanning long-term and short-term forecasting. On long-term forecasting it beats PatchTST with a 9.4% MSE reduction on Weather and 24.7% on Solar-Energy. The number of scales is set to 3 for long-term forecasting and 1 for short-term, trading accuracy against efficiency.
Key idea. TimeMixer reframes forecasting as multiscale mixing, decomposing downsampled copies of the series into seasonal and trend parts and mixing seasonal information fine-to-coarse and trend information coarse-to-fine. A separate predictor per scale is then ensembled to produce the forecast.
- TimeMixer
- time series forecasting
- multiscale mixing
- decomposable multiscale mixing
- Past-Decomposable-Mixing
- PDM
- Future-Multipredictor-Mixing
- FMM
- long-term forecasting
- short-term forecasting
- MLP forecaster
- NeuralForecast
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},
}