ETSformer: Exponential Smoothing Transformers for Time-Series Forecasting

Machine Learning
Introduced by
Gerald Woo et al.
Year
2022
Type
Hybrid decomposition-based Transformer architecture
Family
Time-series forecasting

What does it do?

ETSformer is a deep learning architecture for time-series forecasting introduced by Woo et al. in 2022.

It combines exponential smoothing ideas with the Transformer by modifying the attention mechanism and adding an explicit decomposition of the series into level, growth (trend) and seasonal components. The aim is to pair the long-range modelling of Transformers with a more structured representation than a generic network provides, although its learned parameters limit how far that structure can be read as interpretable.

The intuition behind the method

Think of ETSformer as a Transformer with a built-in classical forecasting prior. Its attention is designed to weight recent observations more heavily, in the spirit of exponential smoothing, rather than treating all past points alike. Separately, the model estimates a level, a growth (trend) and a seasonal pattern, and a forecasting head extends these components into the future. The forecast is therefore built from named structural pieces rather than from a single opaque mapping.

History

ETSformer was proposed by Gerald Woo, Chenghao Liu, Doyen Sahoo, Abhimanu Kumar and Steven Hoi, and first appeared as an arXiv preprint in 2022. It belongs to a line of work that brings classical exponential smoothing ideas into deep forecasting. It appeared during the same period as other Transformer-based forecasting models, such as Autoformer.

When to use it

Choose ETSformer when you have enough data to train a neural forecaster and the series shows a trend plus recurring seasonality that a level, growth and seasonal decomposition can plausibly describe, especially when long-range dependencies in the input window matter. Examples include energy load, weather, traffic and financial series, which are typical applications. Univariate and multivariate inputs are both supported in principle. Do not choose it for short, very noisy or irregular series, or for series with no clear periodicity, since the decomposition then adds complexity without a matching structure. Simpler baselines, including classical exponential smoothing models and linear forecasters such as DLinear, should be compared first. Autoformer and PatchTST are other Transformer-based forecasters often used for comparison.

Limitations and considerations

  • Attention is applied across the input window, and computational cost and memory increase with window length, which limits the window lengths that are practical with this model. Measure the cost on the target hardware before settling on a window length.
  • The level, growth and seasonal decomposition assumes the series can be split into these parts; series with irregular timing, structural breaks or heavy noise may not fit this assumption.
  • Simpler models, including linear forecasters, may match ETSformer's accuracy on a given dataset, so the added architectural complexity should be justified by validation results.
  • The number of seasonal harmonics K and the input window length are settings that change results and need tuning on validation data rather than being left at defaults.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The decomposition into level, growth and seasonal parts gives the forecaster a named structure that a plain Transformer does not provide, which helps when a trend-plus-season pattern is the main signal.
  • The smoothing-style attention is intended to build a recency bias into the Transformer, so recent time steps are emphasised without removing access to older ones.
  • Each seasonal harmonic is described by only an amplitude and a phase, so several cycles can be represented within one model rather than through separate fitted models.
  • The smoothing parameters, seasonal amplitudes and phases, and Transformer weights are fitted jointly on the forecasting objective, so the decomposition adapts to the data rather than being set in advance.

Applications

  • Electricity consumption and load forecasting
  • Weather and temperature prediction
  • Traffic volume and speed forecasting
  • Financial time-series modeling
  • Exchange rate and economic indicator forecasting

How it works

How it works

1

The method replaces standard dot-product self-attention with an exponentially smoothed variant, in which the weight given to a past time step s, relative to the current step t, decays with the lag t minus s at a rate set by a smoothing factor alpha. The intent is to build the recency bias of exponential smoothing into attention while keeping access to older observations.

Formula
\text{ES-Attn}(\mathbf{Q}, \mathbf{K}, \mathbf{V}) = \text{softmax}\!\left(\frac{\mathbf{Q}\mathbf{K}^\top}{\sqrt{d_k}}\right)\mathbf{V}, \quad \text{with exponential decay weights } \alpha^{t-s}
2

The model estimates a level L_t and a growth (trend) G_t through recursive updates governed by smoothing parameters alpha and beta, in a form inspired by Holt's double exponential smoothing. The level blends the current observation with the previous level plus growth, and the growth blends the latest change in level with the previous growth. Level tracks the current baseline of the series and growth captures its local slope. These parameters are learned rather than fixed in advance.

Formula
\mathbf{x}_t = \mathbf{L}_t + \mathbf{G}_t + \mathbf{S}_t, \quad \mathbf{L}_t = \alpha\,\mathbf{x}_t + (1-\alpha)\,(\mathbf{L}_{t-1} + \mathbf{G}_{t-1}), \quad \mathbf{G}_t = \beta\,(\mathbf{L}_t - \mathbf{L}_{t-1}) + (1-\beta)\,\mathbf{G}_{t-1}
3

The seasonal component is written as a sum of K cosine terms, each with a learned amplitude A_k and phase phi_k, so each harmonic needs only two parameters. The sum can represent several overlapping cycles within one model rather than fitting a separate model for each period. The number of terms K is a setting to tune on validation data.

Formula
\mathbf{S}_t = \sum_{k=1}^{K} A_k \cos\!\left(\frac{2\pi k t}{T} + \phi_k\right), \quad \text{where } A_k, \phi_k \text{ are learned amplitude and phase parameters}
4

The level and growth at the end of the observed window are projected forward to each horizon h. The forecast combines the final level, a damped contribution from the growth accumulated over the horizon, and the seasonal term evaluated at the future index T plus h. The damping factor phi, which appears in the forecasting equation, controls how quickly the growth contribution fades as the horizon increases. Training is end-to-end by gradient descent, so the smoothing parameters, the seasonal amplitudes and phases, and the Transformer weights are fitted jointly.

Formula
\hat{\mathbf{x}}_{t+h} = \mathbf{L}_T \cdot \phi^h + \mathbf{G}_T \cdot \sum_{i=1}^{h} \phi^{h-i} + \mathbf{S}_{T+h}, \quad h = 1, \ldots, H

Common pitfalls

  • Applying the model to a series with no trend or seasonality removes the advantage the decomposition is meant to provide; a standard Transformer or a simpler model may then perform as well.
  • Using many seasonal harmonics on limited training data invites overfitting, so the number of harmonics should be chosen with the length of the series in mind.
  • Skipping stationarity preprocessing such as differencing or normalisation can make the learned level and growth trajectories unstable, because the recursions respond to the scale and drift of the raw input.
  • Reported benchmark scores depend on dataset splits, input window length and normalisation; matching the paper's numbers requires the same protocol, which should be confirmed before results are compared with the published figures.

Frequently asked questions

How does ETSformer differ from the standard Transformer?

A standard Transformer's self-attention learns weights over all positions without a built-in recency bias. ETSformer is designed to add an exponential-smoothing bias toward recent time steps and an explicit decomposition of the input into level, growth and seasonal components. That added structural prior is the main architectural difference.

Can ETSformer handle multivariate time series?

The model accepts univariate or multivariate input, and the decomposition and attention can be applied across multiple input channels. Whether this helps depends on the dependencies between variables in the specific dataset, so it should be tested against simpler multivariate baselines.

Is ETSformer still state-of-the-art?

Not necessarily. Simpler models, including linear forecasters, may match its accuracy on a given long-sequence forecasting task, so it should not be assumed to be the best choice for a given forecasting problem. It remains a useful example of embedding classical statistical priors in a Transformer, and it should be compared against simpler baselines on the target data.

Related methods

Sources

  1. Woo, G., Liu, C., Sahoo, D., Kumar, A., & Hoi, S. (2022). ETSformer: Exponential smoothing transformers for time-series forecasting. arXiv preprint.

    Open publication reference