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

Are Transformers Effective for Time Series Forecasting?

Simple linear models beat Transformers at long-term time series forecasting

  • Problem Transformers have become the default for long-term time series forecasting. Their permutation-invariant self-attention loses the temporal order that numerical series depend on.
  • Method LTSF-Linear is a one-layer linear model that maps the last L observations of a variate directly to the next T values. Unlike Transformers, it uses no attention and is trained with direct multi-step forecasting.
  • Results On Electricity at horizon 96, the linear model reaches an MSE of 0.140, against 0.193 for FEDformer. It beats existing Transformer-based forecasters on nine datasets.

Why order matters for the Transformer argument

Transformers pair self-attention with positional encodings and sub-series tokens, and the authors argue that this still leaves ordering information partly lost. Self-attention relates every pair of elements in a sequence but does not depend on their order by itself, so order has to be restored through added inputs. Individual values in numerical series carry little semantics, so the temporal arrangement of the points is the main carrier of information, unlike in language where reordered words often keep their meaning.

Earlier Transformer papers compared against non-Transformer baselines that forecast iteratively, one step at a time, and such baselines accumulate error over long horizons. The authors therefore give the Transformer-based models the direct multi-step strategy, which predicts all future steps at once.

The authors hypothesize that long-term forecasting is feasible mainly for series with a relatively clear trend and periodicity, and that linear models can already capture those properties.

What LTSF-Linear computes

LTSF-Linear is a single temporal linear layer that maps the last L observations of a variate directly to the next T values. With \( X_i \) as the input of the i-th variate and \( \hat{X}_i \) as its prediction, the model computes \[ \hat{X}_i = W X_i \], where \( W \in \mathbb{R}^{T \times L} \) acts along the time axis. The weights are shared across variates, so the model does not learn correlations between variates.

DLinear adds a decomposition step borrowed from Autoformer and FEDformer. A moving average kernel splits the input into a trend component and a remainder that the paper calls seasonal. Each component passes through its own one-layer linear map, and the two outputs are summed to give the prediction. The moving average kernel has size 25, the same as in Autoformer, so DLinear has 2TL parameters where the vanilla linear and NLinear models have TL.

NLinear targets the distribution shift between training and test data. It subtracts the last value of the input sequence, applies the linear layer, and adds the subtracted value back to the prediction. The authors see clear shifts in ETTh1, ETTh2 and ILI, and NLinear improves on the vanilla Linear there.

Multivariate results against Transformer-based models

The comparison uses nine benchmarks, with MSE and MAE as metrics, and forecasting horizons of 96, 192, 336 and 720 for most datasets, and 24, 36, 48 and 60 for ILI. The Transformer numbers are taken from the FEDformer work, while the linear rows were run by the authors. The linear model uses a look-back window of 336 in this setting, whereas the Transformer models use the default input length of 96.

On Electricity at horizon 96, the linear model reaches an MSE of 0.140, against 0.193 for FEDformer and 0.274 for Informer. The authors describe the margin over the strongest Transformer as often 20% to 50% on multivariate forecasting, and note that the linear model does not model correlations among variates.

FEDformer is competitive on ETTh1, which the authors link to its classical frequency processing and the time series inductive bias that brings in. On Exchange-Rate, the naive Closest Repeat baseline beats every Transformer-based method by around 45%, which the authors attribute to Transformers predicting trends wrongly and overfitting sudden changes in the training data.

At input length 96, the plotted Transformer forecasts fail to match the scale and bias of the Electricity and ETTh2 futures and do not predict a plausible trend on Exchange-Rate.

Does input length or order change the picture?

The authors sweep the look-back window from 24 to 720 for horizon 720 on Traffic and Electricity. Transformer errors stay flat or get worse as the window grows, while LTSF-Linear errors fall. The authors read this as Transformers fitting temporal noise rather than extracting information from longer inputs.

The shuffling test permutes the raw input before embedding, either fully at random or by swapping the two halves, on Exchange-Rate with look-back 96. The Linear MSE at horizon 96 rises from 0.080 to 0.133 when the input is shuffled, while the Transformer-based methods barely change. On ETTh1 the average drops under full shuffling reach 73.28% for FEDformer and 56.91% for Autoformer, which the authors link to their inductive bias for periodic patterns.

These averages are taken over all forecasting lengths and five runs, and the authors conclude that Transformers preserve limited temporal order.

The authors turn Informer step by step into a linear model: first replacing attention with a linear layer (Att.-Linear), then keeping only embedding and linear layers (Embed + Linear), and finally a single linear layer. On Exchange-Rate at horizon 720, the MSE moves from 2.478 for Informer to 0.763 for the single linear layer, at look-back 96.

The authors read this as evidence that the self-attention scheme and the other auxiliary modules are not needed for these benchmarks.

Practical cost of the Transformer variants

The cost measurement uses Electricity with input length 96 and horizon 720, and the inference time averages five runs. DLinear, used because it costs about twice LTSF-Linear, needs 139.7K parameters, 0.4ms and 687MiB. The authors conclude that most follow-up variants add design elements that keep practical cost high, and that the memory of the vanilla Transformer is practically acceptable at these lengths.

These are cost measurements and are separate from the accuracy experiments.

Limits of the evidence

The comparison covers nine benchmarks, and the authors qualify their conclusion as holding at least for the existing LTSF benchmarks. The Transformers were run with their default hyperparameters, and the input lengths differ between the linear models and the Transformers in the main table.

The authors note that the one-layer linear network has limited capacity and is hard to capture temporal dynamics caused by change points. They present LTSF-Linear as a baseline for future work rather than as a final model for the long-term forecasting problem.

The reduced-training-size experiment is limited to Traffic, and the univariate results appear only in the appendix. The authors advocate revisiting Transformer-based solutions for other time series analysis tasks, such as anomaly detection, but do not test those tasks here.

Paper info

Authors
Ailing Zeng, Muxi Chen, Lei Zhang, Qiang Xu
Venue
arXiv · Preprint
First published
2022-5-26
Added
2026-11-12
Updated
2022-8-17
Version
v3
arXiv
2205.13504
Category
cs.AI · cs.LG
Original paper terms
CC BY 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

Ailing Zeng, Muxi Chen, Lei Zhang, Qiang Xu (2022). Are Transformers Effective for Time Series Forecasting?. arXiv:2205.13504v3. https://arxiv.org/abs/2205.13504v3

BibTeX
@misc{zeng2022transformers,
  title = {{Are Transformers Effective for Time Series Forecasting?}},
  author = {Ailing Zeng and Muxi Chen and Lei Zhang and Qiang Xu},
  year = {2022},
  eprint = {2205.13504},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.13504v3}
}

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