FEDformer is a long-term forecasting model that keeps the same "forecast while splitting into trend and seasonal parts" design as Autoformer, and adds components that apply a Fourier (or wavelet) transform to the time series and work only on a randomly selected subset of frequency components. The name stands for Frequency Enhanced Decomposed Transformer. It was introduced in 2022 by Zhou (Tian), Ma, and colleagues at Alibaba, and accepted at ICML 2022.
The paper starts from the observation that Transformer-based forecasts sometimes fail to preserve the global properties of a series (its overall trend and value distribution). In Figure 1 of the paper, on ETTm1, a standard Transformer's forecast had a different distribution from the ground truth. The paper explains that attention, which predicts the value at each time step point by point, tends to break the properties of the series as a whole.
In response, FEDformer combines two ideas.
- Build series decomposition into the model: as in Autoformer, every encoder and decoder layer splits the series into trend and seasonal parts. This is further improved into a "mixture-of-experts decomposition" (MOE decomposition) that mixes moving averages of different widths.
- Compute in the frequency domain: instead of attention, the series is Fourier-transformed, and learned weights are applied to only some of its frequency components (modes). Because the whole series is transformed at once, global properties are easier to capture.
Because the number of selected modes is fixed, the complexity is , linear in sequence length. The paper reports that on six benchmarks, it reduced error (MSE) relative to Autoformer, the previous state of the art, by 14.8% in multivariate and 22.6% in univariate forecasting.
In this article, the past interval used as input is called the look-back window, and the interval to be predicted is called the forecast window. In the paper's notation, the look-back window has length and the forecast window has length . FEDformer outputs the values of the forecast window all at once.

