Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

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

Autoformer adds decomposition inside the network for long-term forecasting

  • Problem Sparse self-attention keeps long-series forecasting affordable, but it aggregates single points and so throws away information.
  • Method Autoformer puts series decomposition inside each layer instead of once on the input, and aggregates whole sub-series by matching periodic delays.
  • Results Autoformer reduces MSE by 38% on average relative to the previous state of the art in long-term forecasting.

Why long-horizon forecasting stalls in Transformers

Long-horizon forecasting is hard for two reasons that compound each other. The dependencies that matter can be hidden inside entangled temporal patterns, so they are hard to find directly in a long series. Canonical self-attention also scales with the square of the sequence length, which makes long inputs expensive.

The usual fix is a sparse version of self-attention that keeps only some pairs of points. That keeps the cost down, but these models still aggregate single points, so the sparse connections throw away information. LogTrans, Reformer and Informer each pick the points differently, yet they keep the same point-wise dependency and aggregation.

Decomposition is a standard way to untangle a series into more predictable parts. In forecasting, however, it is usually applied only to the past input, because the future is unknown. That leaves the interactions between the components of the future unmodeled, and the authors set out to fix exactly that gap.

Decomposition as an inner block of the network

Autoformer keeps decomposition inside the network, so every layer splits its hidden series again while the forecast is being built. This lets the model separate the long-term trend from the predicted hidden variables step by step, instead of once at the input.

The inner block is a moving average with padding, which keeps the length of the series unchanged. For an input \\(X\\in\\mathbb{R}^{L\\times d}\\), the trend-cyclical part is \\(X_t = \\mathrm{AvgPool}(\\mathrm{Padding}(X))\\), and the seasonal part is what remains, \\(X_s = X - X_t\\). The moving average smooths out periodic fluctuations, so the trend is what survives the smoothing and the seasonal part keeps the fluctuations.

The decoder starts from two parts built from the encoder input. The seasonal initialization concatenates the seasonal half of the last \\(I/2\\) input steps with zeros for the \\(O\\) future steps, and the trend initialization concatenates the trend half with the mean of the input. Because the future has no observations, the placeholders give the decoder a starting point to refine.

How encoder and decoder layers pass information

The encoder focuses on the seasonal part, and each layer runs Auto-Correlation followed by a decomposition, then a feed-forward step followed by another decomposition. The trend parts removed in the encoder are discarded, and the seasonal output is passed on as the cross information for the decoder.

Each decoder layer has an inner Auto-Correlation, an encoder-decoder Auto-Correlation, and a feed-forward step, with a decomposition after each. Each decomposition produces a trend part that is projected and added to a running trend, so the trend prediction is refined layer by layer. The final prediction sums the refined trend and the deep-transformed seasonal part, after projecting the seasonal part to the target dimension.

Auto-Correlation replaces self-attention

The mechanism rests on the idea that the same phase position across periods gives similar sub-processes. Autocorrelation \\(R_{XX}(\\tau)\\) measures how similar a series is to its own copy delayed by \\(\\tau\\) steps, and the authors use it as an unnormalized confidence for each candidate period length. Its definition is \\(R_{XX}(\\tau) = \\lim_{L\\to\\infty}\\frac{1}{L}\\sum_{t=1}^{L} X_t X_{t-\\tau}\\).

The model takes the \\(k\\) delays with the largest autocorrelation, where \\(k=\\lfloor c\\times\\log L\\rfloor\\) and \\(c\\) is a hyper-parameter. A softmax over those autocorrelation values gives the weights, and each selected delay rolls the values \\(V\\) by \\(\\tau_i\\) before weighting. Rolling moves the elements shifted past the first position to the last position, so sub-series at the same phase line up.

For the encoder-decoder version, the keys and values come from the encoder output and are resized to length \\(O\\), while the queries come from the previous decoder block. The autocorrelation for all lags can be computed at once with the fast Fourier transform, through the Wiener–Khinchin relation. Because only about \\(\\log L\\) series are aggregated, the authors state the cost as \\(O(L\\log L)\\).

Self-attention relates scattered points and aggregates them by dot product, while Auto-Correlation connects whole sub-series across periods. The authors argue that this series-level aggregation keeps the information the sparse point-wise variants discard, while staying cheap.

Multivariate forecasts against recurrent, convolutional and Transformer baselines

The authors test six benchmarks, from ETT and Electricity to Exchange, Traffic, Weather and ILI, at prediction lengths 96, 192, 336 and 720. The input length is 96 for all datasets except ILI, which uses 36, and the baselines include Informer, Reformer, LogTrans, LSTNet, LSTM and TCN.

On the ETT setting with input 96 and prediction 336, Autoformer reached an MSE of 0.339, compared to 1.334 for LogTrans. Note that the table row labelled ETT is ETTm2, and the paper points to its appendix for the other ETT datasets.

On Electricity at the same input and prediction lengths, Autoformer scored 0.231, compared to 0.280 for LogTrans, an 18% reduction. On Exchange, Autoformer scored 0.509, compared to 1.357 for Reformer, a 61% reduction. The Exchange gain matters because the authors describe that series as having no obvious periodicity, so the period-based design is not the only source of the gain they claim.

Averaged over the settings the authors list, Autoformer reduces MSE by 38% relative to the previous state of the art. The authors also say the MSE of Autoformer rises only slowly with the prediction length, which they read as better long-term robustness.

Univariate results and the ARIMA caveat

The univariate comparison uses input length 96 and includes N-BEATS, Informer, LogTrans, Reformer, DeepAR, Prophet and ARIMA. On Exchange at prediction length 96, ARIMA scored 0.112, while Autoformer scored 0.241. The authors explain this by ARIMA's fit to non-stationary economic data, and they note that ARIMA fails once the horizon grows.

Table 2 lists 0.154 for Autoformer at that setting, so the text and the table disagree on this value.

On univariate Exchange at the same horizon, the text reports a 17% reduction from 0.611 to 0.508.

Does the decomposition block help other Transformers?

The authors compare three versions of each model on ETT with input 96: the original, a Sep version that forecasts pre-decomposed components with two models, and an Ours version that uses the progressive architecture. The Ours version lowers MSE for Transformer, Informer, LogTrans and Reformer, and the gain grows with the prediction length.

For Transformer at prediction length 720, MSE goes from 2.672 to 0.537 with the Ours version.

Pre-decomposition helps at short horizons but hurts at long ones. Sep lowers Transformer MSE at prediction length 96 from 0.604 to 0.311, but at prediction length 720 it raises it from 2.672 to 3.200. The authors attribute this to pre-decomposing ignoring how components interact over the long future, and the Sep model also has more parameters.

Auto-Correlation against other attention variants

The authors swap Auto-Correlation in Autoformer for full, LogSparse, LSH and ProbSparse attention, and compare MSE and MAE at input lengths 96, 192 and 336 with prediction lengths 336, 720 and 1440. At input 96 and prediction 336, Auto-Correlation scored 0.339, compared to 0.375 for full attention and 0.481 for ProbSparse. In every cell that has a value, Auto-Correlation has the lowest MSE among the four variants.

Several variants run out of memory at the longest settings, which the authors take as evidence that Auto-Correlation scales better. At input 336 and prediction 1440, Auto-Correlation reached 0.574, while ProbSparse reached 1.133.

Cost and the learned periods

The efficiency comparison measures memory with input length 96, and it times running steps during training for Auto-Correlation and the self-attention variants. The authors report that Autoformer shows \\(O(L\\log L)\\) complexity in both memory and running time. These efficiency numbers come from separate runs and are not a claim about the accuracy of the same trained model.

The learned lags are the top 10 lags from the decoder on the test set, for the input-96-predict-336 task. For Exchange the lags show monthly, quarterly and yearly periods, and for Traffic they show 24-hour and 168-hour intervals. The authors read these as matches to real periods, which makes the predictions easier to interpret.

Limitations

The hyper-parameter c is set in the range 1 to 3 to trade off performance and efficiency. The main multivariate table uses the ETTm2 variant for its ETT row, and the other ETT datasets appear only in the appendix. The decomposition ablation covers only ETT and reports only MSE, so it does not test the other datasets.

The attention ablation fixes input lengths 96, 192 and 336, and it covers only ETT. The efficiency memory check uses input length 96. The ETT univariate figure appears as 0.145 in the text and 0.154 in Table 2, and the paper does not resolve which is correct.

Paper info

Authors
Haixu Wu, Jiehui Xu, Jianmin Wang, Mingsheng Long
Venue
arXiv · Preprint
First published
2021-6-24
Added
2026-11-12
Updated
2022-1-7
Version
v5
arXiv
2106.13008
Category
cs.LG · cs.AI
Original paper terms
CC BY-NC-ND 4.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Haixu Wu, Jiehui Xu, Jianmin Wang, Mingsheng Long (2021). Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting. arXiv:2106.13008v5. https://arxiv.org/abs/2106.13008v5

BibTeX
@misc{wu2021autoformer,
  title = {{Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting}},
  author = {Haixu Wu and Jiehui Xu and Jianmin Wang and Mingsheng Long},
  year = {2021},
  eprint = {2106.13008},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.13008v5}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up