TL;DR
The authors introduce HiReD (Hierarchically Regularized Deep Forecasting), an end-to-end framework designed to forecast large hierarchies of time series. By combining a time-varying linear autoregressive model with a hierarchically regularized basis decomposition, HiReD achieves state-of-the-art accuracy and improves forecast consistency across hierarchy levels while scaling smoothly to large datasets via mini-batch SGD.
What Problem Does This Paper Address?
In domains like retail, energy, and tourism, time series naturally form aggregation hierarchies—for instance, product sales rolling up into subcategories, categories, and total store sales. A key challenge is maintaining coherence (forecasts of children nodes should sum up to their parent node) while exploiting hierarchical relationships to improve accuracy across all levels.
Existing approaches present significant trade-offs:
- Bottom-up aggregation predicts leaf nodes and sums upward, which accumulates noise at higher aggregation tiers.
- Post-processing reconciliation (e.g., MinT, ERM) fixes coherence after the fact rather than jointly optimizing forecasts and hierarchical constraints during training.
- Graph Neural Networks (GNNs) or Global Vector AR models struggle to scale, often requiring all series to fit into memory simultaneously during inference or training.
Methods
HiReD proposes a scalable two-component additive architecture:
$$\hat{y}_{t}^{(i)} = \underbrace{\langle y_{t-H:t-1}^{(i)}, a(X_H, X_F, Z_H) \rangle}_{\text{Time-Varying AR (TVAR)}} + \underbrace{\langle \theta_i, b(X_H, X_F, Z_H) \rangle}_{\text{Basis Decomposition (BD)}}$$
- Time-Varying Autoregressive (TVAR) Model:
- Functions as a linear autoregressive model over an individual series' history $y_H^{(i)}$, but with coefficients $a(\cdot)$ dynamically predicted by an LSTM encoder-decoder fed with global covariates ($X$) and a low-dimensional summary state ($Z_H$) extracted via Non-Negative Matrix Factorization (NMF).
- Because the AR operator is linear and shared, it is coherent by design across aggregations.
- Basis Decomposition (BD) with Hierarchical Regularization:
- Represents the time series as a combination of global temporal basis functions $b(\cdot)$ learned by a seq-2-seq model, weighted by a per-series learned embedding $\theta_i \in \mathbb{R}^K$.
- Hierarchical Regularization: Enforces approximate coherency by regularizing node embeddings toward the average of their children’s embeddings: $$E_{\text{reg}}(\theta) = \sum_{p=1}^N \sum_{i \in \mathcal{L}(p)} \|\theta_p - \theta_i\|_2^2$$
- Single-Stage Training: Trained jointly using mini-batch Stochastic Gradient Descent (SGD) minimizing Mean Absolute Error (MAE) plus the embedding penalty ($\lambda_E E_{\text{reg}}(\theta)$).
Datasets
The authors evaluate HiReD on three standard hierarchical forecasting benchmarks (using normalized mean formulations):
- M5: Walmart sales across a product hierarchy (3k nodes, ~1.8k time steps, horizon $F = 7$).
- Favorita: Grocery store sales hierarchy from Ecuador (4.5k nodes, ~1.7k time steps, horizon $F = 7$).
- Australian Tourism: Domestic visitor numbers broken down by states, regions, and trip purposes (~500 nodes, 230 time steps, horizon $F = 4$).
No new datasets were introduced.
Key Insights and Ideas
- Decoupling Dynamics from Identity: The TVAR component captures local temporal dynamics using only the series’ own past, while the BD component learns global seasonal patterns. This separation allows local inference without passing the entire tree into memory.
- Theoretical Error Reduction via Hierarchy: The paper proves that when parent and child embeddings are structurally close ($\|\theta_n - \theta_0\|_2 \le \beta$), hierarchical regularized regression reduces the estimation error at leaf nodes by up to a factor of $L$ (the number of children) compared to unregularized baselines.
- Complementary Scale Roles: Visualizations show that the Basis Decomposition component models coarse weekly/seasonal cyclic structures that dominate top-level aggregates, whereas the TVAR component dominates leaf-level predictions by modeling high-frequency local noise and offsets.
Key Results
HiReD consistently achieves the lowest or near-lowest error in Weighted Absolute Percentage Error (WAPE) and Symmetric Mean Absolute Percentage Error (SMAPE) across all hierarchy levels:
- M5 Dataset: HiReD achieved an overall Mean WAPE/SMAPE of 0.113 / 0.172, beating standard RNN (0.127 / 0.189), DCRNN (0.156 / 0.219), DeepGLO (0.135 / 0.206), and post-hoc reconciliation via RNN+ERM (0.122 / 0.187).
- Favorita Dataset: HiReD attained Mean WAPE/SMAPE of 0.123 / 0.208, outperforming RNN+ERM (0.127 / 0.219) and Hier-E2E (0.245 / 0.370).
- Tourism Dataset: HiReD achieved Mean WAPE/SMAPE of 0.186 / 0.322, compared to 0.211 / 0.333 for standard RNN and 0.251 / 0.417 for RNN+ERM.
- Coherence Error: Evaluating forecast deviation from aggregated children, HiReD reduced incoherence significantly over standard models (e.g., at Level 0 on Favorita, WAPE deviation dropped from 0.043 for RNN to 0.004 for HiReD).
Limitations and Future Work
- Soft vs. Strict Coherency: Because the basis embedding regularizer uses an $\ell_2$ penalty, HiReD generates approximately coherent forecasts rather than mathematically exact sum consistency.
- Known Hierarchy Dependency: The model relies on knowing the hierarchy tree during training to compute the embedding regularizer. Applying the model to dynamic or previously unseen sub-trees at test time requires heuristic initialization (e.g., setting new embeddings to the mean of children).
- Point Forecasts Only: The current formulation produces deterministic point predictions rather than full probabilistic distributions. Extending the framework to probabilistic intervals and multi-objective optimization across hierarchy levels is left to future work.
Summary updated