TSLib FreTS
FreTS forecasts time series with MLPs applied to the real and imaginary parts of the frequency spectrum.
Time series · 50 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
- 3.2M
- Operations
- 50
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2023
- Cited by
- 274 (as of 23 October 2026)
- Authors
- Kun Yi, Qi Zhang, Wei Fan 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
- m3029
- Graph hash
- 1f072c85128bc94fb91e83c4c2160c9ef06e8144329fbcbab28029a57f06df8a
- Skeleton hash
- 2472275505256bcc1107b2594d0954b1a8d1aff9632a0b2fb6cd0bb3e3a4b1eb
- Architecture hash
- 2fb94aaa9f762458df7c20b97de9b56d5fb4448fac4be7078ebbee9091015954
- Diagram SHA-256
- f332a1154abef694e6ea0bcff7d433e2679bc4478d512c9a8c099a5e61db9def
- 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
This model is the FreTS implementation included in Time-Series-Library.
FreTS is a time series forecasting model built from multi-layer perceptrons (MLPs) that work in the frequency domain instead of on the raw time-domain signal. The paper's starting point is that most MLP-based forecasters are held back by point-wise mappings and an information bottleneck. Its argument for the frequency domain is that the spectrum gives an MLP a complete view of the signal, so global dependencies are easier to learn.
The model has two stages: domain conversion turns the time-domain signal into complex numbers in the frequency domain, and frequency learning applies redesigned MLPs to the real and imaginary parts of the frequency components. These stages are applied twice, in a Frequency Channel Learner that models dependencies between series across the channel dimension and in a Frequency Temporal Learner that works along the time dimension. The paper also proves that the frequency-domain MLP operations can be viewed as global convolutions in the time domain.
The experiments cover 13 real-world benchmarks, 7 for short-term forecasting and 6 for long-term forecasting. In the paper's ablation, the frequency channel learner mattered more for short-term forecasting, while the frequency temporal learner was the more effective one for long-term forecasting. The paper gives the complexity of FreTS as O(N log N + L log L).
Key idea. FreTS applies MLPs to the real and imaginary parts of a time series' frequency components, on both inter-series and intra-series scales, to produce forecasts.
- frets
- frequency-domain mlp
- fremlp
- time series forecasting
- frequency domain forecasting
- mlp forecaster
- long-term forecasting
- short-term forecasting
- tslib frets
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yi2023frequencydomainmlpseffectivelearners,
title={Frequency-domain MLPs are More Effective Learners in Time Series Forecasting},
author={Kun Yi and Qi Zhang and Wei Fan and Shoujin Wang and Pengyang Wang and Hui He and Defu Lian and Ning An and Longbing Cao and Zhendong Niu},
year={2023},
eprint={2311.06184},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2311.06184},
}