Learning Optimal Projection for Forecast Reconciliation of Hierarchical Time Series

Asterios Tsiourvas, Wei Sun, Georgia Perakis, Pin-Yu Chen, Yada Zhu

In the world of forecasting, accuracy is king. However, for hierarchical data—such as retail sales tracked across individual stores, regional districts, and entire countries—there is a second, equally important requirement: coherency. If a model predicts 100 units sold nationally but only 40 and 50 units in its two constituent regions, the forecast is logically broken.

A recent paper from researchers at MIT and IBM, titled "Learning Optimal Projection for Forecast Reconciliation of Hierarchical Time Series," introduces a novel approach to solve this. By teaching neural networks not just how to predict the future, but how to reconcile those predictions across a hierarchy in a single step, the authors achieve state-of-the-art forecasting performance.

The Challenge of Hierarchical Time Series

Hierarchical Time Series (HTS) are ubiquitous, appearing in everything from energy grids to supply chain management. The primary challenge is that forecasting each level of a hierarchy independently rarely results in numbers that add up perfectly.

Traditional solutions like "bottom-up" (forecasting only the lowest-level leaves and summing them) or "top-down" (forecasting the aggregate total and splitting it) often discard valuable information from other levels. More recent "reconciliation via projection" methods improve upon this, but they typically rely on fixed, pre-specified matrices (such as orthogonal projections) that treat all forecast errors equally. The authors argue that because some parts of a hierarchy are inherently harder to predict than others, the reconciliation method must be flexible enough to account for varying levels of uncertainty.

A Learnable Reconciliation Layer

The core innovation of this paper is moving the reconciliation step from a rigid post-processing task into a learnable, structured layer inside the neural network itself.

The proposed end-to-end architecture integrating a neural forecaster with a learnable reconciliation matrix.

By training the model end-to-end, the neural forecaster actually learns to produce base forecasts that are easier to reconcile, while the projection layer learns the optimal way to weight the various series. The authors explore two types of learnable projections:

  1. Generalized Euclidean Projection: This approach learns a symmetric, positive-definite weight matrix that assigns different "importance" weights to errors at different levels of the hierarchy. To ensure the matrix remains valid during training, the authors employ a clever mathematical decomposition.
  2. General Oblique Projection: This is the most flexible form. Rather than assuming a specific distance metric, it uses a Lagrange multiplier during training to enforce "idempotence"—a strict mathematical requirement for any valid projection.

Key Insights: Why Oblique Beats Orthogonal

Standard orthogonal projections (like Ordinary Least Squares reconciliation) assume that errors are independent and identically distributed across the hierarchy. Oblique projections, however, provide the flexibility to "tilt" the reconciliation toward the most reliable forecasts.

Geometric intuition showing how oblique projection (green) can reach the true value more effectively than orthogonal projection (red).
  • The "Hardness" Correlation: The researchers found that for datasets that are harder to predict (exhibiting higher RMSE), the learned projection matrices had higher spectral norms. This indicates that the model deviates further from a simple "average" to find a complex weighting scheme that minimizes total error.
  • Preserving Unbiasedness: The authors provide mathematical proofs showing that if the initial base forecasts are unbiased, these learnable oblique projections will produce reconciled forecasts that remain unbiased.

Empirical Results

The researchers evaluated their approach on five diverse, real-world hierarchical datasets: Labour (Australian employment), Traffic (San Francisco car lanes), Wiki (Wikipedia article views), and two Tourism datasets (Australian tourism flows). These datasets varied significantly in scale, ranging from 57 to over 76,000 series.

The proposed methods consistently outperformed both traditional two-step methods (like MinT) and existing end-to-end orthogonal methods:

  • Point Forecasting: On the Labour dataset using a TimesNet backbone, the General Projection method achieved an RMSE of 10.12, a significant improvement over both the unreconciled model (11.32) and the previous state-of-the-art (10.51).
  • Probabilistic Forecasting: The method extends naturally to distribution forecasting. By using Monte Carlo sampling through the learnable layer, the model achieved the lowest Continuous Ranked Probability Score (CRPS) across almost all benchmarks, indicating vastly superior calibration of uncertainty.
  • Architecture Agnostic: The improvements were stable across different neural backbones (including TimesNet and Autoformer), proving that the projection layer is a highly adaptable, general-purpose tool.

Limitations and Future Work

While highly effective, the approach has a few areas for future development. For extremely large hierarchies (tens of thousands of series), learning a dense projection matrix could become computationally expensive, suggesting a need for sparse or factored matrix representations. Additionally, the current work focuses on standard aggregation hierarchies; applying this framework to "cross-temporal" hierarchies—where data is aggregated across both categories and time intervals simultaneously—remains an open and exciting challenge.

Summary updated

BibTeX
@inproceedings{tsiourvas2024learning,
  author = {Asterios Tsiourvas and Wei Sun and Georgia Perakis and Pin-Yu Chen and Yada Zhu},
  title = {{Learning Optimal Projection for Forecast Reconciliation of Hierarchical Time Series}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=55HfvJ6lDB},
}
Figure