All models

fedformer

A long-term time series forecasting Transformer with frequency-domain blocks and seasonal-trend decomposition.

Time series · 431 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (19 KB)

Open in a new tab

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

Parameters
45.3K
Operations
431
Framework
PyTorch
Recurrent
No
Published
ICML 2022
Cited by
1,179 (as of 29 October 2026)
Authors
Tian Zhou, Ziqing Ma, Qingsong Wen 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 diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m4889
Graph hash
8c70eece3ae3d436a83c78dd893ab89fe48bd1dd23ccc8a4520b42141dd7f3ad
Skeleton hash
5b77ece88227887d4f48b067d0786cdf72074c7312bbe6ba267c834d75d9cfb2
Architecture hash
96b48278efca45216e0b84a93c76ebc5912e184daba8ac0230c83bb05927c9b4
Diagram SHA-256
83c1bcb6a113bef24734a5ac7b87424a11675338438ac67dae642b5f1e450e89
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 Fourier version, FEDformer-f, built with 8 randomly selected modes where the paper sets M = 64 as the default value.

FEDformer (Frequency Enhanced Decomposed Transformer) is a Transformer for long-term series forecasting that combines the Transformer with the seasonal-trend decomposition method. In the abstract's words, the decomposition method captures the global profile of time series while Transformers capture more detailed structures.

The architecture consists of N encoders and M decoders. Fourier enhanced blocks and Wavelet enhanced blocks map the series into the frequency domain, and they serve as substitutions for both self-attention and cross-attention blocks. A Mixture Of Experts Decomposition block contains a set of average filters with different sizes to extract multiple trend components from the input signal and a set of data-dependent weights for combining them as the final trend. By randomly selecting a fixed number of Fourier components, the model achieves linear computational complexity and memory cost.

The experiments follow the settings of Autoformer, with the input length fixed to 96 and prediction lengths of 96, 192, 336, and 720. For multivariate forecasting, the paper reports that FEDformer yields an overall 14.8% relative MSE reduction compared with Autoformer. For univariate forecasting, it reports an overall 22.6% relative MSE reduction. The paper also notes that the Fourier and wavelet versions, FEDformer-f and FEDformer-w, perform well on different datasets.

Key idea. FEDformer is a frequency enhanced decomposed Transformer architecture with a mixture of experts for seasonal-trend decomposition, built to better capture global properties of time series.

  • FEDformer
  • Frequency Enhanced Decomposed Transformer
  • FEDformer-f
  • long-term series forecasting
  • time series forecasting
  • seasonal-trend decomposition
  • Fourier enhanced block
  • frequency enhanced attention
  • mixture of experts decomposition
  • NeuralForecast FEDformer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhou2022fedformerfrequencyenhanceddecomposed,
      title={FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting}, 
      author={Tian Zhou and Ziqing Ma and Qingsong Wen and Xue Wang and Liang Sun and Rong Jin},
      year={2022},
      eprint={2201.12740},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2201.12740}, 
}