All models

dlinear

DLinear: a one-layer linear forecaster from the paper that asked whether Transformers help time series at all.

Time series · 15 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (19 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
4.7K
Operations
15
Framework
PyTorch
Recurrent
No
Published
AAAI 2023
Cited by
3,536 (as of 29 October 2026)
Authors
Ailing Zeng, Muxi Chen, Lei Zhang, Qiang Xu
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m11802
Graph hash
4790ffe9b3f5f27199ea6fd0f0bc7c3185565dc3cc31237452747ead56654925
Skeleton hash
0a2091ee4d96d7f8bb6a40f4f5cf296791953912b434dfb9e824af43ae2844ba
Architecture hash
755a6e97123555d1872f0094fe8f4c33ea13acfacb7f39bac8c8c54629ab2be8
Diagram SHA-256
8c6f4d285c26a474488ed1fa2677975c962eefbd04f3dfcfb4a801c87069dc8a
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.ri_ts_graph_seq:build_dlinear: build({})

What it is

DLinear is one of the LTSF-Linear models, a set of embarrassingly simple one-layer linear models that the paper introduced to question whether Transformers are the right tool for long-term time series forecasting. The argument is that self-attention is permutation-invariant, so even with positional encoding and sub-series tokens a Transformer inevitably loses some of the temporal ordering that forecasting depends on. On nine real-life datasets the linear models surprisingly outperform the sophisticated Transformer-based forecasters in all cases, and often by a large margin.

The paper also studies which design elements of these forecasters help or hurt their temporal relation extraction, and suggests revisiting Transformer-based solutions for other time series tasks such as anomaly detection. The graph here, dlinear, takes a 96-step window of 7 variables and emits a 24-step forecast for each, a one-layer linear forecaster from the LTSF-Linear set.

Key idea. A set of embarrassingly simple one-layer linear models, LTSF-Linear, that outperform sophisticated Transformer-based long-term forecasters on nine real-life datasets in all cases.

  • DLinear
  • LTSF-Linear
  • linear forecaster
  • long-term time series forecasting
  • Are Transformers Effective for Time Series Forecasting
  • time series
  • forecasting

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{dlinear2023,
  title = {Are Transformers Effective for Time Series Forecasting?},
  author = {Ailing Zeng and Muxi Chen and Lei Zhang and Qiang Xu},
  year = {2023},
  journal = {Proceedings of the AAAI Conference on Artificial Intelligence},
  eprint = {2205.13504}
}