Model Compression for Dynamic Forecast Combination

Vítor Cerqueira, Luís Torgo, Carlos Soares, Albert BifetarXiv 2021

Introduction

In time series forecasting, the "wisdom of crowds"—the practice of combining multiple models into an ensemble—is widely recognized as the gold standard for predictive accuracy. Dynamic ensembles are particularly effective because they adapt to concept drift by adjusting model weights based on recent performance. However, these ensembles face significant barriers to real-world deployment, specifically regarding computational overhead and a lack of transparency. Running dozens of models simultaneously is often prohibitive for edge devices or IoT sensors, and the "black box" nature of these combinations limits their utility in regulated sectors like finance and healthcare.

This paper introduces a framework for model compression designed to bridge the gap between high-performance dynamic ensembles and practical, deployable models. By distilling the knowledge of complex ensembles into efficient "student" models, the researchers demonstrate that it is possible to maintain predictive performance while drastically reducing resource requirements.

Methodology: The Student-Teacher Paradigm

The authors employ a Student-Teacher (ST) training paradigm to achieve compression. This process is divided into three distinct stages:

  1. The Teacher: A large, diverse portfolio consisting of 30 different models (including Random Forests, SVMs, and Neural Networks) is aggregated using dynamic methods such as Stacking or Arbitrated Dynamic Ensembles (ADE).
  2. The Transfer: Rather than training a model on the original, often noisy data, a "student" model is trained to predict the outputs generated by the teacher ensemble. This process uses the ensemble's predictions as "soft labels."
  3. The Student: While the framework is learning-algorithm agnostic, the authors focus on Rule-Based Regression (RBR)—specifically a variant of the M5 model tree. This choice ensures that the resulting student is not only efficient but also human-readable.

Unlike traditional model compression research that focuses almost exclusively on deep learning, this framework is designed to work with any regression algorithm, making it highly versatile for various time series applications.

Experimental Setup

The study's robustness is supported by an evaluation across 90 univariate time series from diverse domains, including physics, economics, and healthcare. The dataset composition includes:

  • 55 time series from the Time Series Data Library (tsdl).
  • 35 time series from established benchmark studies.

Each dataset contains at least 1,000 observations, providing a substantial foundation for training and evaluating the stability of the compressed models in non-stationary environments.

Key Insights

The Advantage of Soft Labels

A significant finding of the research is that training a student on the ensemble’s predictions often yields better results than training on the raw data. The ensemble acts as a structural filter, smoothing out noise and presenting the student with the underlying patterns of the data. This allows the student to emulate the teacher's logic more effectively than it could learn from the original signal alone.

Interpretability and Efficiency

By utilizing Rule-Based Regression as the student model, the authors successfully translate the complex logic of a 30-model ensemble into a series of "if-then" rules. This provides a level of transparency that is usually lost in ensemble modeling. Furthermore, the authors demonstrate that even when the teacher's behavior shifts over time (dynamic combination), the student can successfully capture and replicate this shifting logic.

Results

The experimental results highlight the efficiency of the ST framework:

  • Predictive Parity: Student models, particularly those emulating a Stacking teacher (ST.Stacking), achieved the best average ranks across the 90 datasets, frequently outperforming the individual base models.
  • Computational Speedup: The compressed student models required less than 8% of the computation time needed by the original ensemble to generate predictions.
  • Storage Reduction: The student models occupied less than 1% of the memory footprint of the teacher ensemble. A typical RBR student model required less than 0.4 megabytes of storage, making it ideal for resource-constrained environments.

Conclusion and Future Work

The research proves that model compression can effectively transform resource-heavy dynamic ensembles into lightweight, interpretable, and accurate forecasting tools. While the current study focuses on univariate time series, the methodology is theoretically extensible to multivariate data.

Future research directions include the integration of concept drift detection to trigger automated re-training of the student models when data patterns shift significantly. Additionally, the authors suggest that further studies should investigate the specific energy consumption of these models on IoT hardware to better support the goals of "Green AI."

Summary updated

BibTeX
@misc{cerqueira2021model,
  author = {Vítor Cerqueira and Luís Torgo and Carlos Soares and Albert Bifet},
  title = {{Model Compression for Dynamic Forecast Combination}},
  year = {2021},
  eprint = {2104.01830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.01830},
}
Figure