TL;DR
This paper introduces a novel multi-layer stacking framework for time series forecasting, demonstrating that learned ensemble methods, particularly stacking, significantly outperform traditional simple averaging and even single-layer stacking. This approach offers a robust way to improve AutoML systems for time series by effectively combining diverse forecasting models.
What Problem Does This Paper Address?
Time series forecasting is crucial for many applications, but no single forecasting model consistently performs best across all datasets. While ensembling methods like stacking have shown great success in tabular data, they remain underutilized in time series forecasting, where simple linear combinations are often the state-of-the-art. This gap limits the potential of AutoML systems to achieve optimal forecasting accuracy. The authors aim to bridge this gap by systematically evaluating ensembling strategies and proposing a more sophisticated multi-layer stacking approach.
Methods
The core contribution is a multi-layer stacking framework. This framework builds upon traditional single-layer stacking by introducing multiple "layers" of ensembles.
- Layer 1 (L1): A set of diverse base forecasting models (e.g., statistical, deep learning, pretrained models) are trained.
- Layer 2 (L2): Stacker models are trained to combine the predictions from the L1 models. The paper explores various linear and non-linear stacker models, including weighted averages, model selection, greedy ensemble selection, and more complex linear regression models with different weight-tying schemes.
- Layer 3 (L3): An aggregator model (which can itself be a stacker model, like model selection or a weighted average) combines the outputs of the L2 stacker models.
A key methodological aspect is the use of time series K-fold cross-validation to train stacker models on out-of-fold predictions, preventing overfitting. The framework is designed to be flexible, allowing any forecasting model to be used as a base model.
Datasets
The study utilizes 50 univariate datasets sourced from Ansari et al. (2024) and Woo et al. (2024). These datasets cover diverse domains and frequencies, totaling approximately 90,000 time series with 110 million observations. To ensure sufficient data for training, time series with fewer than 8 * H observations (where H is the forecast horizon) were filtered out. The authors re-evaluate all models themselves on these filtered datasets.
Key Insights and Ideas
- Stacking is a game-changer for time series: Contrary to the "forecast combination puzzle" (where simple averages often win), learned aggregation methods like stacking significantly outperform simple averages and model selection in time series forecasting.
- No single stacker is best: The performance of individual stacker models varies greatly across datasets, highlighting the need for a meta-ensemble approach.
- Multi-layer stacking leverages diversity: By combining multiple diverse stacker models (L2) with a final aggregator (L3), the multi-layer approach effectively captures the strengths of different ensemble strategies, leading to superior performance.
- Non-linear stackers can be valuable, even if weak individually: The study found that models like LightGBM, which might underperform when used alone, can be crucial components in a multi-layer ensemble, contributing to overall accuracy by excelling on specific datasets.
Key Results
- Consistent accuracy improvements: Multi-layer stacking consistently achieved the highest accuracy across both point and probabilistic forecasting tasks, outperforming individual base models and single-layer ensembles.
- Significant gains over baselines: Combination methods, especially multi-layer stacking, showed substantial accuracy gains, with up to 200 Elo points difference and up to 5% error reduction compared to simple averages.
- Robustness to base model choice: The multi-layer stacking framework remained the top performer even when a reduced set of base models was used, demonstrating its adaptability.
- Training time considerations: While multi-layer stacking incurs higher training costs (e.g., 721 seconds median end-to-end training time for probabilistic tasks), the accuracy gains are substantial. Ablation studies showed that skipping L2 model retraining reduced fit time by 1.5x but decreased accuracy.
Limitations and Future Work
- Inference speed: Most stacker models require predictions from all base models, leading to slower inference compared to sparse methods. The authors suggest exploring pruning strategies.
- Training cost: Training multiple L2 models for multi-layer stacking can be computationally expensive. Future work could explore offline portfolio optimization or meta-learning approaches to reduce this overhead.
- Search for better aggregation models: The search for optimal aggregation models at the L2 and L3 levels remains an open challenge.
Summary updated