Introduction
Gradient Boosted Decision Trees (GBDTs), such as XGBoost and LightGBM, are widely regarded as the state-of-the-art for tabular data. However, their application to time series forecasting is often hindered by a fundamental limitation: they are piecewise constant models. This "inductive bias" makes it difficult for them to extrapolate beyond the range of values seen in the training data, often failing to capture strong trends or sudden structural shifts without extensive manual feature engineering.
In contrast, classical models like ARIMA or Exponential Smoothing (ETS) excel at capturing sequential structures and trends but lack the flexibility to incorporate high-dimensional, non-linear exogenous features. Hyper-Trees bridge this gap by using GBDTs to learn the parameters of these classical models, creating a forecasting framework that is both adaptive and structurally sound.
The Hyper-Tree Framework
The core innovation of Hyper-Trees is the shift from predicting values to predicting parameters. In a standard GBDT setup, the model learns a function $f(x) \to \hat{y}$. In the Hyper-Tree framework, the tree acts as a "hyper-model" that learns a mapping $f(x) \to \theta$, where $ heta$ represents the parameters of a target time series model $\mathcal{M}$.
Hyper-TreeNet Architecture
To handle the computational challenge of predicting high-dimensional parameter sets (which would normally require one tree per parameter), the authors propose Hyper-TreeNet. This hybrid architecture uses the GBDT as an encoder to produce a low-dimensional embedding. This embedding is then decoded via a shallow Multi-Layer Perceptron (MLP) into the final model parameters. The entire pipeline is trained end-to-end using automatic differentiation, allowing gradients from the forecast loss to flow back through the time series model into the decision trees.
Key Insights and Advantages
- Constrained Learning: By operating in parameter space, the model is constrained by the "physics" of the target time series model. Parameters like autoregressive coefficients are semantically meaningful and often bounded, leading to more stable learning than raw value prediction.
- Natural Extrapolation: Because the target model (e.g., an AR process) can naturally trend, the Hyper-Tree can forecast values outside the historical training range, overcoming a major weakness of standard GBDTs.
- Global Learning with Local Adaptivity: Hyper-Trees are "global" models that learn from a large collection of time series simultaneously. However, because the parameters are functions of series-specific features, the model provides a custom-tailored forecast for every individual series at every time step.
- Interpretability: The output of a Hyper-Tree is a classical, well-understood model. Practitioners can inspect how components like seasonality or trend parameters evolve over time, providing insights into the drivers of the forecast.
Empirical Evaluation
The framework was tested against a wide array of benchmarks, including the M5 (Walmart), Rossmann, and various M3 datasets.
- Performance: Hyper-Trees consistently outperformed standard LightGBM and competitive deep learning models like DeepAR and TFT. For instance, on the Air Passengers dataset, a Hyper-Tree-AR model achieved a MAPE of 2.524, significantly lower than the 3.070 achieved by standard LightGBM.
- Scalability: The Hyper-TreeNet architecture maintained nearly constant runtime even as the number of parameters increased, proving its viability for large-scale operational forecasting.
- Time-Varying Parameters: Ablation studies confirmed that allowing parameters to vary over time is crucial; fixing parameters to be constant resulted in error metrics nearly tripling.
Conclusion and Future Work
Hyper-Trees represent a powerful synthesis of machine learning and classical statistics. By leveraging the feature-learning power of GBDTs to drive the structural logic of time series models, they offer a robust solution for complex forecasting tasks. Future research directions include automating the selection of target models and lags, as well as extending the framework to provide probabilistic forecasts with uncertainty intervals.
Summary updated