DLinear is a model that splits the look-back window into a "trend" and a "remainder (seasonal)" with a moving average, applies one linear layer along the time axis to each, and adds them to predict the whole forecast window at once. It was introduced in 2022 by Zeng, Chen, Zhang, and Xu of The Chinese University of Hong Kong and IDEA in "Are Transformers Effective for Time Series Forecasting?", and published at AAAI 2023. The name stands for Decomposition + Linear.
The real focus of the paper is less the DLinear model itself than the question "Do Transformers actually help long-term forecasting?" At the time, Transformer-based models such as Informer, Autoformer, and FEDformer were being proposed one after another, but the non-Transformer methods they were compared against all predicted one step at a time and stacked the predictions, which lets errors accumulate. The paper suspected that much of the Transformers' improvement came from outputting the whole forecast window at once (direct multi-step forecasting).
To test this, the authors built three models that output the whole forecast window with a single linear layer (collectively called LTSF-Linear).
- Linear: applies a single linear layer to the look-back window.
- DLinear: splits the input into trend and remainder, then applies a linear layer to each. It is strongest when the data has a clear trend (such as a steady upward climb).
- NLinear: subtracts the last value of the look-back window, applies a linear layer, and adds the value back to the output. It is strongest when the level of the values shifts between training and prediction.
In multivariate forecasting on nine benchmarks, these simple models beat most Transformer-based models of the time by 20–50%. Following this result, many later forecasting models, such as PatchTST, TSMixer (Google), and iTransformer, use DLinear as a baseline.
In this article, the past interval used as input is called the look-back window (length ), and the interval to be predicted is called the forecast window (length ). DLinear computes the values of the forecast window directly as weighted sums of the values of the look-back window.

