Local and global trend Bayesian exponential smoothing models

Slawek Smyl, Christoph Bergmeir, Alexander Dokumentov, Xueying Long, Erwin Wibowo, Daniel F. Schmidt

Abstract

This paper introduces a new family of Bayesian Exponential Smoothing (ETS) models designed to forecast time series that grow faster than linear but slower than exponential. By combining global and local trends with a robust Student $t$-distribution for errors, these models—implemented in the Rlgt R package—outperform top-tier benchmarks on the classic M3 competition dataset.

Introduction

Forecasting is dominated by Exponential Smoothing (ETS) because it’s robust and simple. However, traditional ETS models suffer from a "Goldilocks" problem with trends: they are usually either strictly additive (linear growth) or multiplicative (exponential growth). Many real-world series, such as the revenue of a fast-growing tech startup or cloud infrastructure usage, fall right in the middle—growing aggressively but not quite doubling every period.

Furthermore, standard models often assume "homoscedasticity" (constant error variance) and Gaussian (normal) error distributions. In reality, as a business grows, its fluctuations usually get larger (heteroscedasticity), and "black swan" events create outliers that a normal distribution can't handle. The authors aim to bridge these gaps by creating a more flexible, "middle-ground" trend model that is resilient to volatility.

The LGT and SGT Framework

The authors propose two primary models: LGT (Local and Global Trend) for non-seasonal data and SGT (Seasonal Global Trend) for seasonal data.

Key Innovations

  • The Global Trend: Instead of a simple linear or exponential term, they use a power-law formulation ($l_t^\rho$). By fitting the parameter $\rho$, the model can smoothly transition between linear and exponential growth.
  • Hybrid Trends: LGT combines this "global" nonlinear trend with a "local" linear trend, allowing the model to capture both long-term trajectories and short-term shifts.
  • Student $t$-Distributed Errors: Moving away from the Normal distribution, they use a $t$-distribution. This adds a "degrees of freedom" parameter that allows the model to ignore outliers rather than being skewed by them.
  • Heteroscedastic Error Scaling: They introduce a formula where the error scale grows as a function of the series level, but at a controllable rate (using a power coefficient $\tau$).
Analysis of series trends and variance: (a) Original series, (b) Log of series, (c) Absolute differences, (d) Absolute percentage differences.

Bayesian Estimation

Because these models are mathematically complex and non-linear, they are estimated using Markov Chain Monte Carlo (MCMC) sampling. The authors utilize the Stan probabilistic programming language and a bespoke, high-speed Gibbs sampler to ensure computational efficiency.

Experimental Results

The models were evaluated using the M3 competition dataset, consisting of 3,003 time series. The proposed {L,S}GT framework achieved state-of-the-art results for univariate methods.

Accuracy and Probabilistic Performance

On the full M3 dataset, the model achieved an sMAPE of 12.29, significantly outperforming the best original M3 algorithm (Theta at 12.76) and modern automated ARIMA/ETS benchmarks. Because it is a Bayesian model, it produces highly accurate prediction intervals, outperforming competitors on the Mean Scaled Interval Score (MSIS).

Comparison of LGT forecasts against standard ETS models (Actuals in black, LGT in blue).

Computational Efficiency

While Bayesian models are typically slow, the authors' specialized Gibbs sampler was roughly an order of magnitude faster than general-purpose Stan implementations, making it practical for production use.

Conclusion

The primary trade-off is computational cost compared to millisecond-fast standard ETS models. Additionally, as univariate models, they do not currently incorporate cross-learning or external covariates. However, the ability to find the "exact growth intensity" via the $\rho$ parameter and the robustness provided by the $t$-distribution make LGT/SGT a powerful new tool in the forecaster's arsenal.

Summary updated

BibTeX
@misc{smyl2023local,
  author = {Slawek Smyl and Christoph Bergmeir and Alexander Dokumentov and Xueying Long and Erwin Wibowo and Daniel F. Schmidt},
  title = {{Local and global trend Bayesian exponential smoothing models}},
  year = {2023},
  eprint = {2309.13950},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.13950},
}
Figure