Infinite forecast combinations based on Dirichlet process

Yinuo Ren, Feng Li, Yanfei Kang, Jue Wang

Abstract

In time series forecasting, the search for a single optimal model often overlooks the inherent sensitivity of deep learning architectures to hyperparameter selection. This paper introduces a novel ensemble framework that utilizes the Dirichlet Process (DP) to combine an effectively infinite number of potential forecasts. By sampling learning rates and model weights from a non-parametric Bayesian prior, the framework generates a diverse pool of Long Short-Term Memory (LSTM) learners. Experimental results on the M4 Competition weekly dataset demonstrate that this approach significantly outperforms single-model benchmarks, reducing Mean Absolute Error (MAE) from 0.294 to 0.067. The study highlights the critical role of model diversity and the efficiency of generating ensembles through a single training trajectory.

Introduction

The "No Free Lunch" theorem suggests that no single forecasting model can perform optimally across all possible datasets. In the context of deep learning, this challenge is compounded by the sensitivity of models to hyperparameters, particularly the learning rate. Small variations in stochastic gradient descent can lead to vastly different local minima, making the selection of a "best" model a precarious task.

Traditional ensemble methods, such as Finite Mixture Models, attempt to mitigate this by combining multiple learners. However, these typically require a fixed, pre-defined number of models. This paper proposes a transition from finite selections to a flexible, infinite-mixture approach using the Dirichlet Process, allowing for a more robust and automated generation of diverse forecasting ensembles.

Methodology

The Dirichlet Process Framework

The core of the proposed framework is the Dirichlet Process (DP), a stochastic process used in Bayesian statistics as a "distribution of distributions." The DP serves two primary functions in this ensemble: hyperparameter sampling and weight assignment.

  1. Hyperparameter Sampling: Rather than selecting a single learning rate, the framework samples a variety of learning rates from three basis distributions: Exponential, Gaussian, and Beta. This ensures that the ensemble contains a spectrum of learners ranging from conservative to aggressive.
  2. Weighting Mechanism: The DP provides the weights for combining these models. The authors found that Dirichlet-derived weights consistently outperform simple uniform averaging, particularly when the number of base models is small.

Base Learners and Training Strategy

The framework employs Long Short-Term Memory (LSTM) networks as the base learners due to their ability to capture long-term dependencies in time series data. To address the computational burden of training numerous models, the authors implement a Checkpoint Strategy. Instead of training 100 independent models, they utilize a decaying learning rate strategy during a single training process, saving model checkpoints to establish the sub-model pool. This allows for the benefits of a large ensemble without the linear increase in training time.

Diversity Trimming

Ensemble performance is predicated on the diversity of its constituents—learners must make different types of errors to be effective when combined. The authors explore "diversity trimming," a process of pruning the model pool to remove redundant learners, ensuring that the final ensemble remains both computationally efficient and statistically diverse.

Empirical Evaluation

Dataset

The framework was evaluated using the M4 Competition weekly series. This dataset provides a rigorous testing ground characterized by:

  • Scale: High-frequency data with sequences typically spanning 2,000 weeks (approximately 38 years).
  • Complexity: Long-term dependencies that require robust architectural handling.

Performance Metrics

The study compared a single benchmark model ($S$) against the proposed ensemble approach (denoted as $E'$). The results indicate a substantial improvement in accuracy:

  • Mean Absolute Error (MAE): The single model achieved an MAE of 0.294, while a weighted ensemble of 100 models reduced this to 0.067.
  • Root Mean Square Error (RMSE): The RMSE dropped from 0.137 for the single model to 0.063 for the 100-model ensemble.

Key Insights

The Diversity Threshold

The research identifies a clear relationship between the number of models and ensemble diversity. The authors observed that diversity "explodes" once the ensemble reaches approximately 20 models, coinciding with a significant drop in error rates. However, the gains follow a law of diminishing returns; after roughly 60 models, the rate of improvement in forecast accuracy plateaus, justifying the use of pruning techniques.

Single-Process Efficiency

A significant practical takeaway is the efficacy of the single-process ensembling method. By varying the learning rate and saving checkpoints along a single training trajectory, practitioners can achieve high-quality results comparable to much more resource-intensive independent training sessions.

Conclusion and Future Work

The Dirichlet Process ensemble framework offers a powerful alternative to traditional single-model selection and finite mixture models. By embracing the "infinite" potential of model combinations, it achieves state-of-the-art performance on complex time series data. While the computational cost of inference for 100 LSTMs remains a challenge, future research will focus on developing automated sampling thresholds to determine the optimal ensemble size and exploring the framework's performance on non-stationary data where model mixtures may need to evolve over time.

Summary updated

BibTeX
@inproceedings{ren2023infinite,
  author = {Yinuo Ren and Feng Li and Yanfei Kang and Jue Wang},
  title = {{Infinite forecast combinations based on Dirichlet process}},
  booktitle = {Workshops @ ICDM},
  year = {2023},
  doi = {10.1109/icdmw60847.2023.00081},
}
Figure