Papers › Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting

Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting

24 Jun 2021NeurIPS 2021 12arXiv:2106.13008archive 2025-07-28

Haixu Wu, Jiehui Xu, Jianmin Wang, Mingsheng Long

Extending the forecasting time is a critical demand for real applications, such as extreme weather early warning and long-term energy consumption planning. This paper studies the long-term forecasting problem of time series. Prior Transformer-based models adopt various self-attention mechanisms to discover the long-range dependencies. However, intricate temporal patterns of the long-term future prohibit the model from finding reliable dependencies. Also, Transformers have to adopt the sparse versions of point-wise self-attentions for long series efficiency, resulting in the information utilization bottleneck. Going beyond Transformers, we design Autoformer as a novel decomposition architecture with an Auto-Correlation mechanism. We break with the pre-processing convention of series decomposition and renovate it as a basic inner block of deep models. This design empowers Autoformer with progressive decomposition capacities for complex time series. Further, inspired by the stochastic process theory, we design the Auto-Correlation mechanism based on the series periodicity, which conducts the dependencies discovery and representation aggregation at the sub-series level. Auto-Correlation outperforms self-attention in both efficiency and accuracy. In long-term forecasting, Autoformer yields state-of-the-art accuracy, with a 38% relative improvement on six benchmarks, covering five practical applications: energy, traffic, economics, weather and disease. Code is available at this repository: \url{https://github.com/thuml/Autoformer}.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2106.13008")

Code

Syntology Ran 13 of 16 code samples harvested from 2 repositories linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 12 ran with no contract checked.

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

thuml/autoformer officialmentioned in papermentioned on GitHubpytorchMIT 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

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

1ran · honoured contract
12ran
3unverified

Licence: 0 of the 16 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

AutoCorrelation thuml/autoformer/models/Autoformer.py official repository ran MIT (permissive) · d0d7e1a62ce9a487 · report
AutoCorrelationLayer thuml/autoformer/models/Autoformer.py official repository ran MIT (permissive) · 86002073aa37c338 · report
DataEmbedding_wo_pos thuml/autoformer/models/Autoformer.py official repository ran MIT (permissive) · b67927730a8e4c56 · report
Decoder thuml/autoformer/models/Autoformer.py official repository ran fingerprinted MIT (permissive) · fec719ccc1a83273 · report
DecoderLayer thuml/autoformer/models/Autoformer.py official repository ran MIT (permissive) · b4cbe9d6ab095cdf · report
Encoder thuml/autoformer/models/Autoformer.py official repository ran MIT (permissive) · 09148e200d49d64c · report
EncoderLayer thuml/autoformer/models/Autoformer.py official repository ran MIT (permissive) · d73afac4def3cad2 · report
TokenEmbedding thuml/autoformer/models/Autoformer.py official repository ran MIT (permissive) · 7c956e353b5b9e7c · report
compared_version thuml/autoformer/models/Autoformer.py official repository ran · honoured contract MIT (permissive) · 027c93847484d85a · report
my_Layernorm thuml/autoformer/models/Autoformer.py official repository ran MIT (permissive) · e19320a7ff1b54a1 · report
Model thuml/autoformer/models/Autoformer.py official repository unverified MIT (permissive) · 16dec41e5dbdd719 · report
MovingAvgBlock WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted BSD-3-Clause (permissive) · c9a3cbac02773ea2 · report
MultiHeadAttention WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py community (archive-listed) ran · metamorphic tier: deterministic BSD-3-Clause (permissive) · f42a7fe1ccedb9dd · report
SeriesDecompositionBlock WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted BSD-3-Clause (permissive) · d63bc21c9187631a · report
AttentionOperator WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py community (archive-listed) unverified BSD-3-Clause (permissive) · 7eeecf9ed43a551d · report
AutoformerEncoderLayer WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py community (archive-listed) unverified BSD-3-Clause (permissive) · a9330eefe8b2c5c7 · report

Tasks

Time SeriesTime Series AnalysisTime Series Forecasting

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Time Series Forecasting ETTh1 (336) Multivariate Autoformer MAE 0.484 #62 of 72 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Multivariate Autoformer MSE 0.505 #62 of 72 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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