FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting
Tian Zhou, Ziqing Ma, Qingsong Wen, Xue Wang, Liang Sun, Rong Jin
TL;DR
Long-term time-series forecasting with Transformers faces high computational cost and limited global pattern capture. FEDformer integrates seasonal-trend decomposition with frequency-domain blocks (Fourier and Wavelet) and a mixture-of-experts decomposition to separate seasonal and trend components, enabling linear complexity. It achieves state-of-the-art accuracy across six benchmarks, with substantial reductions in MSE for both multivariate and univariate settings. The work provides theoretical justification for random Fourier component selection and extensive empirical analyses, including KS-distribution tests, to validate the design.
Abstract
Although Transformer-based methods have significantly improved state-of-the-art results for long-term series forecasting, they are not only computationally expensive but more importantly, are unable to capture the global view of time series (e.g. overall trend). To address these problems, we propose to combine Transformer with the seasonal-trend decomposition method, in which the decomposition method captures the global profile of time series while Transformers capture more detailed structures. To further enhance the performance of Transformer for long-term prediction, we exploit the fact that most time series tend to have a sparse representation in well-known basis such as Fourier transform, and develop a frequency enhanced Transformer. Besides being more effective, the proposed method, termed as Frequency Enhanced Decomposed Transformer ({\bf FEDformer}), is more efficient than standard Transformer with a linear complexity to the sequence length. Our empirical studies with six benchmark datasets show that compared with state-of-the-art methods, FEDformer can reduce prediction error by $14.8\%$ and $22.6\%$ for multivariate and univariate time series, respectively. Code is publicly available at https://github.com/MAZiqing/FEDformer.
