- Introduced by
- Abhimanyu Das et al.
- Year
- 2023
- Type
- MLP-based encoder-decoder for long-term time-series forecasting
- Family
- Time-series forecasting
What does it do?
TiDE (Time-series Dense Encoder) is an MLP-based encoder-decoder for long-term time-series forecasting, introduced by Abhimanyu Das and co-authors in 2023.
It encodes the past observations of a lookback window together with projected covariates through dense layers, decodes a latent representation over the forecast horizon, and adds a linear residual path from the raw input. The architecture uses no attention layers.
The intuition behind the method
TiDE does not use attention. It passes the lookback window through dense layers, combined with a learned projection of the covariates, so auxiliary information gets its own representation before it is merged with the target history. A residual path maps the raw lookback window linearly to the output, so direct linear relationships are available to the model without passing through the nonlinear layers. The dense encoder and decoder add nonlinear structure on top of this linear path.
History
TiDE was introduced in 2023 by Abhimanyu Das and co-authors, as given in the reference below. Related methods are DLinear, TSMixer and the multilayer perceptron.
When to use it
Choose TiDE for multivariate forecasting with a long forecast horizon, especially when covariates are available and future values of some covariates, such as calendar features, are known at prediction time. The future-covariate input h_fut is only useful when those values exist. TiDE is a reasonable choice when a dense model is preferred over attention-based architectures for cost or simplicity. Avoid it when the series is very short relative to the horizon, when no covariates exist and the simpler DLinear model would be adequate, or when the main difficulty is irregular long-range dependence that the page's dense formulas do not address. Related pages include DLinear, TSMixer and the multilayer perceptron.
Limitations and considerations
- The encoder takes the lookback window as one flat input x_{1:L}, so the number of input weights grows with lookback length and the model does not represent local temporal structure explicitly.
- The decoder conditions each horizon step on future covariates; where those values are unavailable or unreliable, the decoder path has less information to work with.
- Because the residual path is linear, nonlinear temporal behaviour must be learned by the dense paths, and their capacity depends on the hidden widths d, p and r.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Covariates enter through an explicit learned projection, so auxiliary information reaches the encoder and decoder through a dedicated pathway.
- The residual term W_res applied to the raw lookback window gives the model a direct linear route from recent inputs to the forecast, separate from the nonlinear dense path.
- The formulas contain only dense layers and linear maps, with no attention layers, which keeps the architecture simple to implement and inspect.
Applications
- Energy load and electricity demand forecasting with weather covariates
- Retail sales and inventory planning with calendar and promotional features
- Traffic flow prediction with time-of-day and day-of-week as covariates
- Financial time-series forecasting where auxiliary indicators are available
- Long-horizon forecasting benchmarks of the kind commonly used in this research area, such as the ETTh, ETTm, Weather and Exchange-Rate datasets
How it works
How it works
The covariate vector is passed through a multilayer perceptron, giving a projected covariate representation of width p. This representation is then combined with the lookback window in the encoder, so the model can use auxiliary features as inputs.
Formula
\mathbf{h}_{\text{cov}} = \text{MLP}_{\text{proj}}(\mathbf{x}_{\text{cov}}) \in \mathbb{R}^{p}The encoder is an MLP that takes the lookback window and the projected covariates together and outputs a latent vector of width d. This vector is the model's summary of the past observations and the covariate information.
Formula
\mathbf{e} = \text{Encoder}\bigl([\mathbf{x}_{1:L}; \mathbf{h}_{\text{cov}}]\bigr) = \text{MLP}_{\text{enc}}(\mathbf{x}_{1:L}, \mathbf{h}_{\text{cov}}) \in \mathbb{R}^{d}The decoder is an MLP that takes the encoder's latent vector together with the future covariate representation and outputs an intermediate array of shape H by r, where H is the forecast horizon. Each horizon step therefore has its own intermediate representation, which can depend on the covariates known for that step.
Formula
\hat{\mathbf{g}} = \text{Decoder}(\mathbf{e}, \mathbf{h}_{\text{fut}}) = \text{MLP}_{\text{dec}}(\mathbf{e}, \mathbf{h}_{\text{fut}}) \in \mathbb{R}^{H \times r}A linear temporal map W_temp converts each horizon's intermediate representation into a forecast value. A second linear map W_res is applied to the raw lookback window and added to the result, so the final forecast is the sum of a nonlinear dense path and a linear path from the recent inputs.
Formula
\hat{\mathbf{y}}_{t+h} = \mathbf{W}_{\text{temp}} \hat{\mathbf{g}}_{h} + \mathbf{W}_{\text{res}} \mathbf{x}_{t-L+1:t}Common pitfalls
- Without scaling of the inputs, level shifts between windows can dominate the dense layers. Inputs are often normalised before encoding and the output transformed back to the original scale.
- A lookback window that is short relative to the seasonal period of the data gives the encoder too little history to represent the cycle. This matters most for daily or weekly data.
- Covariates must be assigned to the correct pathway: a variable known only in the past should not be supplied as a future covariate, because that gives the decoder information it would not have at prediction time.
- Choosing hidden widths p, d and r too small for a multivariate dataset can underfit, while very large widths on a small dataset can overfit; these settings should be tuned rather than fixed by default.
Frequently asked questions
How does TiDE differ from DLinear?
DLinear is a linear model, while TiDE stacks dense encoder and decoder layers and adds explicit covariate projections. This lets TiDE model nonlinear structure and use auxiliary features, at the cost of more parameters than a linear model. The size of that difference depends on the chosen hidden widths.
Does TiDE mix information across variables?
The mechanics feed the lookback window x_{1:L} to the encoder as a single input, so information from the lookback window can be combined in the encoder.
Should TiDE be used with input normalisation?
The mechanics contain no normalisation step. Instance-level normalisation of each input window, with the transformation reversed on the output, is a common choice for forecasting models of this type because it reduces the effect of level shifts between windows. Whether to use it, and which variant, is a configuration choice.
Related methods
Sources
Das, A., Kong, W., Leach, A., Mathur, S., Sen, R., & Yu, R. (2023). Long-term forecasting with TiDE: Time-series dense encoder. Transactions on Machine Learning Research.
Open publication reference