Papers › FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting

FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting

30 Jan 2022arXiv:2201.12740archive 2025-07-28

Tian Zhou, Ziqing Ma, Qingsong Wen, Xue Wang, Liang Sun, Rong Jin

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2201.12740")

Code

Syntology Ran 14 of 18 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 2 ran · fixture could not drive it; 10 ran with no contract checked.

By repository: community (archive-listed): 18 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

WenjieDu/PyPOTS officialpytorch report
MAZiqing/FEDformer mentioned in papermentioned on GitHubpytorch report
damo-di-ml/icml2022-fedformer mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 14 ran; 1 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
2ran · fixture could not drive it
10ran
4unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from damo-di-ml/icml2022-fedformer. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

DataEmbedding_wo_pos damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran MIT (permissive) · dc9a21b6cd529603 · report
DecoderLayer damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran MIT (permissive) · 67fefaba4d005397 · report
EncoderLayer damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran MIT (permissive) · a8b8631d0adecdfb · report
FourierBlock damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran MIT (permissive) · 00fa3803caf170e8 · report
FourierCrossAttention damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran MIT (permissive) · a864556299ca3b04 · report
FourierCrossAttentionW damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran MIT (permissive) · 53deda4694f6c41e · report
get_filter damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran · honoured contract MIT (permissive) · ed5c803ead4a114e · report
get_phi_psi damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran · our draft was wrong MIT (permissive) · f32036738135c8a8 · report
legendreDer damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · 4ef26472da51e3aa · report
moving_avg damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran fingerprinted MIT (permissive) · 9b305cbd3bf0b841 · report
phi_ damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · a54c8c5c47c6a8b8 · report
series_decomp damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran fingerprinted MIT (permissive) · 9864006bda240f6b · report
series_decomp_multi damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran fingerprinted MIT (permissive) · 12650d107f081cab · report
sparseKernelFT1d damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) ran MIT (permissive) · 167914376110f2b0 · report
MWT_CZ1d damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) unverified MIT (permissive) · d5092e91107264e0 · report
Model damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) unverified MIT (permissive) · 9c15c2f9350a0c0f · report
MultiWaveletCross damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) unverified MIT (permissive) · 4c47351a1d531cdc · report
MultiWaveletTransform damo-di-ml/icml2022-fedformer/models/FEDformer.py community (archive-listed) unverified MIT (permissive) · bc90983dfb0d79aa · report

Tasks

Time SeriesTime Series Analysis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections