Papers › Are Transformers Effective for Time Series Forecasting?

Are Transformers Effective for Time Series Forecasting?

26 May 2022arXiv:2205.13504archive 2025-07-28

Ailing Zeng, Muxi Chen, Lei Zhang, Qiang Xu

Recently, there has been a surge of Transformer-based solutions for the long-term time series forecasting (LTSF) task. Despite the growing performance over the past few years, we question the validity of this line of research in this work. Specifically, Transformers is arguably the most successful solution to extract the semantic correlations among the elements in a long sequence. However, in time series modeling, we are to extract the temporal relations in an ordered set of continuous points. While employing positional encoding and using tokens to embed sub-series in Transformers facilitate preserving some ordering information, the nature of the \emph{permutation-invariant} self-attention mechanism inevitably results in temporal information loss. To validate our claim, we introduce a set of embarrassingly simple one-layer linear models named LTSF-Linear for comparison. Experimental results on nine real-life datasets show that LTSF-Linear surprisingly outperforms existing sophisticated Transformer-based LTSF models in all cases, and often by a large margin. Moreover, we conduct comprehensive empirical studies to explore the impacts of various design elements of LTSF models on their temporal relation extraction capability. We hope this surprising finding opens up new research directions for the LTSF task. We also advocate revisiting the validity of Transformer-based solutions for other time series analysis tasks (e.g., anomaly detection) in the future. Code is available at: \url{https://github.com/cure-lab/LTSF-Linear}.

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

Code

Syntology Ran 13 of 19 code samples harvested from 7 repositories linked to this paper; 6 have no recorded run. Of those that ran: 13 ran with no contract checked.

By repository: named in the paper: 2 samples from 2 repositories, 2 ran; community (archive-listed): 17 samples from 5 repositories, 11 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
cure-lab/DLinear mentioned in papermentioned on GitHubpytorch report
cure-lab/ltsf-linear mentioned in papermentioned on GitHubpytorchApache-2.0 report
Hannibal046/GridTST mentioned on GitHubpytorch report
honeywell21/DLinear mentioned on GitHubpytorchApache-2.0 report
ioannislivieris/dlinear mentioned on GitHubpytorch report
jafarbakhshaliyev/wave-augs mentioned on GitHubpytorch report
master-plc/fredf mentioned on GitHubpytorchMIT report
remigenet/TLN mentioned on GitHubjax report
taohan10200/weather-5k 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

19 samples harvested; 13 ran; 0 honoured the contract we drafted; 6 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.

13ran
6unverified

Licence: 13 of the 19 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 7 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.

Model cure-lab/DLinear/models/DLinear.py named in the paper ran Apache-2.0 (permissive) · 7cc67118c8ed8b2d · report
Model cure-lab/ltsf-linear/models/Linear.py named in the paper ran · metamorphic tier: invariant Apache-2.0 (permissive) · 98263cd0ff580869 · report
DLinear remigenet/TLN/tln/linears.py community (archive-listed) ran fingerprinted licence not identified · pointer only · 8ac078919392ee4e · report
GridTSTEncoderLayer Hannibal046/GridTST/model/gridtst/modeling_gridtst.py community (archive-listed) ran no licence file found · pointer only · 767695ab98ff1ae8 · report
GridTSTFFN Hannibal046/GridTST/model/gridtst/modeling_gridtst.py community (archive-listed) ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · d13e9dd379fd4826 · report
GridTSTFlattenHead Hannibal046/GridTST/model/gridtst/modeling_gridtst.py community (archive-listed) ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 40cb448f27ac8400 · report
Model taohan10200/weather-5k/models/DLinear.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 83010a0f7a102ee6 · report
Model jafarbakhshaliyev/wave-augs/models/DLinear.py community (archive-listed) ran · metamorphic tier: invariant no licence file found · pointer only · ff8819f5631c8d73 · report
Model master-plc/fredf/models/DLinear.py community (archive-listed) ran fingerprinted MIT (permissive) · 14788c93463d2c43 · report
MovingAvg remigenet/TLN/tln/linears.py community (archive-listed) ran fingerprinted licence not identified · pointer only · 7795f99235c953e7 · report
SeriesDecomp remigenet/TLN/tln/linears.py community (archive-listed) ran · metamorphic tier: invariant fingerprinted licence not identified · pointer only · 717cede707a4ac84 · report
moving_avg taohan10200/weather-5k/models/DLinear.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 262d9b037b804057 · report
series_decomp taohan10200/weather-5k/models/DLinear.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · eb14ea186bdfc6fe · report
GridTSTConfig Hannibal046/GridTST/model/gridtst/modeling_gridtst.py community (archive-listed) unverified no licence file found · pointer only · 5c7d231d76679dbc · report
GridTSTEncoder Hannibal046/GridTST/model/gridtst/modeling_gridtst.py community (archive-listed) unverified no licence file found · pointer only · ac9a7fd78eab4232 · report
GridTSTForTimeSeriesPrediction Hannibal046/GridTST/model/gridtst/modeling_gridtst.py community (archive-listed) unverified no licence file found · pointer only · d7a80d13e5e17fd4 · report
GridTSTModel Hannibal046/GridTST/model/gridtst/modeling_gridtst.py community (archive-listed) unverified no licence file found · pointer only · 1305217a1c6050ce · report
GridTSTPreTrainedModel Hannibal046/GridTST/model/gridtst/modeling_gridtst.py community (archive-listed) unverified no licence file found · pointer only · f59046d1f521bd70 · report
GridTSTSelfAttention Hannibal046/GridTST/model/gridtst/modeling_gridtst.py community (archive-listed) unverified no licence file found · pointer only · 7c024325d71805e9 · report

Tasks

Anomaly DetectionRelation ExtractionTemporal Relation ExtractionTime SeriesTime Series AnalysisTime Series Forecasting

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Time Series Forecasting ETTh1 (192) Multivariate DLinear MAE 0.416 #10 of 17 Archive leaderboard report
Time Series Forecasting ETTh1 (192) Multivariate DLinear MSE 0.405 #10 of 17 Archive leaderboard report
Time Series Forecasting ETTh1 (192) Multivariate NLinear MAE 0.415 #12 of 17 Archive leaderboard report
Time Series Forecasting ETTh1 (192) Multivariate NLinear MSE 0.408 #12 of 17 Archive leaderboard report
Time Series Forecasting ETTh1 (192) Univariate DLinear MAE 0.204 #3 of 5 Archive leaderboard report
Time Series Forecasting ETTh1 (192) Univariate DLinear MSE 0.071 #3 of 5 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Multivariate NLinear MAE 0.427 #27 of 72 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Multivariate NLinear MSE 0.429 #27 of 72 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Multivariate DLinear MAE 0.443 #36 of 72 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Multivariate DLinear MSE 0.439 #36 of 72 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Univariate NLinear MAE 0.226 #4 of 10 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Univariate NLinear MSE 0.081 #4 of 10 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Univariate DLinear MAE 0.244 #7 of 10 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Univariate DLinear MSE 0.098 #7 of 10 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Multivariate NLinear MAE 0.453 #5 of 22 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Multivariate NLinear MSE 0.44 #5 of 22 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Multivariate DLinear MAE 0.49 #14 of 22 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Multivariate DLinear MSE 0.472 #14 of 22 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Univariate NLinear MAE 0.226 #2 of 12 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Univariate NLinear MSE 0.08 #2 of 12 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Univariate DLinear MAE 0.359 #9 of 12 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Univariate DLinear MSE 0.189 #9 of 12 Archive leaderboard report
Time Series Forecasting ETTh1 (96) Univariate NLinear MAE 0.177 #2 of 6 Archive leaderboard report
Time Series Forecasting ETTh1 (96) Univariate NLinear MSE 0.053 #2 of 6 Archive leaderboard report
Time Series Forecasting ETTh1 (96) Univariate DLinear MAE 0.18 #5 of 6 Archive leaderboard report
Time Series Forecasting ETTh1 (96) Univariate DLinear MSE 0.056 #5 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Multivariate NLinear MAE 0.381 #12 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Multivariate NLinear MSE 0.344 #12 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Multivariate DLinear MAE 0.418 #16 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Multivariate DLinear MSE 0.383 #16 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Univariate NLinear MAE 0.324 #3 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Univariate NLinear MSE 0.169 #3 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Univariate DLinear MAE 0.329 #5 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Univariate DLinear MSE 0.176 #5 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Multivariate NLinear MAE 0.4 #9 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Multivariate NLinear MSE 0.357 #9 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Multivariate DLinear MAE 0.465 #17 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Multivariate DLinear MSE 0.448 #17 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Univariate NLinear MAE 0.355 #6 of 10 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Univariate NLinear MSE 0.194 #6 of 10 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Univariate DLinear MAE 0.367 #9 of 10 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Univariate DLinear MSE 0.209 #9 of 10 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Multivariate NLinear MAE 0.436 #6 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Multivariate NLinear MSE 0.394 #6 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Multivariate DLinear MAE 0.551 #16 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Multivariate DLinear MSE 0.605 #16 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Univariate NLinear MAE 0.381 #6 of 11 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Univariate NLinear MSE 0.225 #6 of 11 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Univariate DLinear MAE 0.426 #9 of 11 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Univariate DLinear MSE 0.276 #9 of 11 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Multivariate NLinear MAE 0.338 #12 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Multivariate NLinear MSE 0.277 #12 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Multivariate DLinear MAE 0.353 #16 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Multivariate DLinear MSE 0.289 #16 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Univariate NLinear MAE 0.278 #4 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Univariate NLinear MSE 0.129 #4 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Univariate DLinear MAE 0.279 #6 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Univariate DLinear MSE 0.131 #6 of 6 Archive leaderboard report
Time Series Forecasting Electricity (192) DLinear MSE 0.153 #7 of 8 Archive leaderboard report
Time Series Forecasting Electricity (336) DLinear MSE 0.169 #8 of 9 Archive leaderboard report
Time Series Forecasting Electricity (720) DLinear MSE 0.203 #7 of 8 Archive leaderboard report
Time Series Forecasting Electricity (96) DLinear MSE 0.14 #10 of 11 Archive leaderboard report
Time Series Forecasting Weather (192) DLinear MSE 0.22 #12 of 13 Archive leaderboard report
Time Series Forecasting Weather (336) DLinear MSE 0.265 #10 of 11 Archive leaderboard report
Time Series Forecasting Weather (720) DLinear MSE 0.323 #8 of 11 Archive leaderboard report
Time Series Forecasting Weather (96) DLinear MSE 0.176 #11 of 12 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.

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