Introduction
Exponential Smoothing (ETS) has long served as the foundational framework for time series forecasting due to its inherent robustness and simplicity. However, traditional ETS models often struggle with non-linear trends and heavy-tailed, heteroscedastic noise. The Local and Global Trend (LGT) model was recently introduced to address these limitations, achieving state-of-the-art results on major benchmarks. Despite its predictive power, the original LGT implementation relied on general-purpose Bayesian inference tools like Stan’s No-U-Turn Sampler (NUTS), which proved computationally prohibitive for large-scale production environments. This paper presents the Local-Seasonal-Global Trend (LSGT) model and a bespoke, high-performance Gibbs sampler designed to make advanced Bayesian forecasting computationally practical.
The LSGT Model Framework
The LSGT model unifies previous seasonal and non-seasonal variants into a single, cohesive framework. To improve both the statistical flexibility and the computational efficiency of the model, several key technical innovations were implemented:
1. Scale-Mixture-of-Normals Representation
To account for outliers and heavy-tailed error distributions, the model employs a Student $t$-distribution. By representing the $t$-distribution as a scale-mixture of Gaussians, the authors transform a non-conjugate problem into a structure where parameters can be updated using standard linear algebra. This transition is critical for enabling the use of a Gibbs sampler.
2. Horseshoe Shrinkage Priors for Seasonality
One of the primary challenges in automated forecasting is determining whether a specific time series exhibits seasonality. The LSGT model incorporates horseshoe shrinkage priors on seasonal components. This acts as an automated "smart switch": if a series lacks seasonality, the prior aggressively shrinks those components toward zero, preventing the model from overfitting to noise without requiring manual intervention or pre-testing.
3. Decoupled Reparameterization
In previous iterations, high parameter correlation slowed the exploration of the posterior distribution. The authors modified the calculation of heteroscedasticity by summing variances rather than standard deviations. This reparameterization effectively decouples the parameters, significantly increasing the efficiency of the sampling process.
The Bespoke Hybrid Sampler
Rather than relying on a "black box" gradient-based sampler, the authors developed a hybrid engine tailored to the mathematical structure of the LSGT model:
- Gibbs Sampling: Used for linear coefficients where conditional distributions are conjugate.
- Metropolis-Hastings: Employed for non-linear smoothing parameters ($\alpha, \beta, \zeta$).
- Grid Sampling: Utilized for discrete-like parameters, such as the degrees-of-freedom ($\nu$) and power coefficients ($\rho, \tau$). The grid for $\nu$ is spaced using Kullback–Leibler divergence, which navigates the geometry of heavy-tailed distributions more robustly than gradient-based methods.
Experimental Evaluation
The model was evaluated using the M3 Competition dataset, comprising 3,003 time series across yearly, quarterly, and monthly frequencies. The performance of the LSGT Gibbs sampler was compared directly against the original LGT/SGT models implemented in Stan.
Computational Efficiency
The bespoke sampler achieved massive speedups, ranging from 10x to 30x faster than NUTS. For quarterly series, the average runtime was reduced from 374 seconds to approximately 11 seconds. This improvement makes it feasible to deploy the model in scenarios requiring thousands of concurrent forecasts.
Predictive Accuracy and Uncertainty
The LSGT model maintained or improved upon the accuracy of its predecessors. In the yearly category, it achieved a lower sMAPE (14.91 vs 15.18). Furthermore, the Gibbs sampler provided superior uncertainty quantification, as evidenced by improved Mean Scaled Interval Scores (MSIS) for quarterly and yearly data. This suggests that the specialized sampler captures the true posterior distribution more effectively than the general-purpose NUTS implementation.
Discussion and Future Work
The success of the LSGT Gibbs sampler highlights that specialization often trumps generality in computational statistics. By hand-deriving conditional distributions and exploiting the specific structure of the exponential smoothing framework, the authors created an engine that is both faster and more robust than general-purpose tools.
While the current model focuses on univariate forecasting, it sets the stage for "Global-Local" models. Future research aims to extend this framework to allow for shared parameters across entire datasets, combining the computational efficiency of this Gibbs sampler with the power of cross-series learning found in modern deep-learning approaches.
Summary updated