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

Transformers in Time Series: A Survey

Survey organizes how Transformers are adapted for time series tasks

  • Problem Vanilla self-attention costs O(N^2) in time and memory, so long time series strain it. Seasonality and long-range dependencies are also hard to capture together.
  • Method The authors sort time series Transformers by network changes and by task. Network changes cover positional encoding and attention, and tasks cover forecasting, anomaly detection and classification.
  • Results On ETTm2, the vanilla Transformer's lowest MSE came at 6 layers, at 0.439. Deeper settings did not beat it, with 0.461 at 48 layers.

Where vanilla Transformers strain on time series

Vanilla Transformers have no recurrence, so they add positional encodings to the input embeddings to recover order. Their self-attention costs O(N^2) in time and memory, with N the input series length. For long series, that quadratic cost becomes the computational bottleneck. Time series also carry seasonality and periodicity, and capturing long-range and short-range dependency together with seasonality remains hard.

Many Transformer variants had already been applied to forecasting, anomaly detection and classification. Surveys of deep learning for time series existed, but none covered Transformers for time series comprehensively. The authors therefore set out to organize this growing body of work.

Sorting the variants by design and task

The authors use two axes, network modifications and application domains. Network modifications split into module-level changes, such as positional encoding and attention, and architecture-level changes. Applications split into forecasting, anomaly detection and classification, and forecasting further splits into time series, spatio-temporal and event forecasting.

Attention is where most efficiency work happens, and that work falls into two groups. One group adds an explicit sparsity bias, as LogTrans and Pyraformer do, while the other exploits the low-rank property of the attention matrix, as Informer and FEDformer do. Table 1 lists training costs of O(N log N) for LogTrans, Informer and Autoformer, and O(N) for Pyraformer and FEDformer.

Positional encodings, attention and hierarchy

The first lever is the positional encoding, which the authors sort into vanilla, learnable and timestamp forms. The vanilla form uses fixed sine and cosine functions of the position index, with a hand-crafted frequency for each dimension. The learnable form trains embedding vectors for each position jointly with the other parameters, as Zerveas et al.

do. Timestamp encoding adds calendar and event timestamps through learnable embedding layers, as Informer does.

The second lever is the attention module, where the efficient variants change which query and key pairs are computed. LogTrans builds queries and keys with causal convolutions and applies a Logsparse mask, which reduces the cost from O(N^2) to O(N log N). Informer instead keeps only the dominant queries, chosen by their similarity to the keys.

The third lever is hierarchy, which matches the multi-resolution nature of time series. Pyraformer arranges nodes in a C-ary tree, where fine-scale nodes match the raw series and coarser nodes summarize lower resolutions. Pyraformer adds intra-scale and inter-scale attention, so information flows within and across resolutions.

Forecasting variants and the linear baseline

Most forecasting variants keep the vanilla layout and change the attention module, the normalization or the input tokens. FEDformer applies attention in the frequency domain with Fourier and wavelet transforms, and it randomly keeps a fixed-size subset of frequencies for linear complexity.

Autoformer uses a seasonal-trend decomposition with an auto-correlation block, which scores time-delay similarity and aggregates the top-k similar sub-series. PatchTST treats each univariate channel separately and splits each series into subseries-level patches that serve as tokens. Crossformer, by contrast, models cross-dimension dependency through a two-stage attention layer.

DLinear, an MLP-based model, asks whether Transformers are needed for long-term forecasting. The authors point out that PatchTST achieves better numerical results than DLinear for long-term forecasting. They call the case against Transformers, built on DLinear results alone, an overclaim.

Longer input windows

The vanilla Transformer's MSE rises from 0.557 at input length 96 to 1.691 at input length 720. At input length 1440 it falls back to 0.936, so the curve is not monotone.

Informer follows a similar path, going from 0.428 at input length 96 to 1.898 at input length 1440. Autoformer goes from 0.239 at input length 96 to 0.552 at input length 1440. The authors note that these efficient designs usually run on a short fixed input in their own experiments, which makes them question their practical use. They argue that this makes many carefully designed Transformers impractical for long-term forecasting.

Whether more layers help

In NLP and CV, Transformers gain prediction power by growing, and their layer count is usually 12 to 128. The authors test the vanilla Transformer from 3 to 48 layers on ETTm2, forecasting 96 steps. Its MSE is lowest at 6 layers, 0.439, compared to 0.557 at 3 layers. Deeper settings do not beat 6 layers, with 0.556 at 12 layers and 0.461 at 48.

Shallow models often did better, so the authors ask how to design deeper Transformers that add capacity and still forecast better.

Seasonal-trend decomposition as a performance lever

Several works treat seasonal-trend decomposition as a crucial part of Transformer forecasting performance. The authors test this by adding a simple moving average decomposition, the one from Autoformer, to several attention modules.

On ETTm2 with prolonged output length, FEDformer's MSE at output length 96 drops from 0.457 without decomposition to 0.203 with it. The text summarizes the boost from decomposition as 50% to 80%. The authors call decomposition a unique block and suggest that more advanced decomposition schemes deserve study.

The test varies the output length, not the input length. The gain seems consistent across the attention modules tested, according to the authors.

Anomaly detection and classification examples

Anomaly detection papers pair Transformers with generative models such as VAEs and GANs. TranAD trains adversarially with two Transformer encoders and two Transformer decoders, which amplifies reconstruction errors on small deviations. Replacing its Transformer-based encoder-decoder cuts the F1 score by nearly 11%.

TransAnomaly combines a VAE with a Transformer to allow more parallelization, and it reduces training costs by nearly 80%, according to the authors. AnomalyTrans starts from the idea that anomalies form weak associations with the whole series but strong ones with adjacent points. It models prior- and series-associations together and uses a minimax strategy to widen their discrepancy.

In classification, GTN uses one tower for time-step-wise attention and one for channel-wise attention.

Open directions the authors name

The authors name inductive biases, combinations of GNNs and Transformers, pre-training, architecture-level variants and NAS as future directions. On inductive biases, PatchTST removes cross-channel dependency, while Crossformer uses cross-dimension dependency, and both improve results. For pre-training, existing studies mainly focus on time series classification.

Limits of the evidence

The empirical checks use one dataset, ETTm2, and only forecasting. The comparison with ARIMA, ETS and basic RNN and CNN models rests on earlier results from Zhou et al. and Wu et al. The authors state that those models perform worse in the earlier results, and the survey does not rerun them.

The tables report only MSE, and the complexity comparison in Table 1 lists complexity rather than measured runtime. Some entries are NaN or OOM, and the survey doesn't discuss them further.

The authors leave open how to build deeper Transformers that gain capacity. They also leave open how to make better use of long input sequences.

Paper info

Authors
Qingsong Wen, Tian Zhou, Chaoli Zhang, Weiqi Chen, Ziqing Ma, Junchi Yan, Liang Sun
Venue
arXiv · Preprint
First published
2022-2-15
Added
2026-11-12
Updated
2023-5-11
Version
v5
arXiv
2202.07125
Category
cs.LG · cs.AI · eess.SP · stat.ML
Original paper terms
arXiv non-exclusive 1.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

Qingsong Wen, Tian Zhou, Chaoli Zhang, Weiqi Chen, Ziqing Ma, Junchi Yan, Liang Sun (2022). Transformers in Time Series: A Survey. arXiv:2202.07125v5. https://arxiv.org/abs/2202.07125v5

BibTeX
@misc{wen2022transformers,
  title = {{Transformers in Time Series: A Survey}},
  author = {Qingsong Wen and Tian Zhou and Chaoli Zhang and Weiqi Chen and Ziqing Ma and Junchi Yan and Liang Sun},
  year = {2022},
  eprint = {2202.07125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.07125v5}
}

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