NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Simultaneously Reconciled Quantile Forecasting of Hierarchically Related Time Series

Xing Han, Sambarta Dasgupta, Joydeep Ghosh

Abstract

Many real-life applications involve simultaneously forecasting multiple time series that are hierarchically related via aggregation or disaggregation operations. For instance, commercial organizations often want to forecast inventories simultaneously at store, city, and state levels for resource planning purposes. In such applications, it is important that the forecasts, in addition to being reasonably accurate, are also consistent w.r.t one another. Although forecasting such hierarchical time series has been pursued by economists and data scientists, the current state-of-the-art models use strong assumptions, e.g., all forecasts being unbiased estimates, noise distribution being Gaussian. Besides, state-of-the-art models have not harnessed the power of modern nonlinear models, especially ones based on deep learning. In this paper, we propose using a flexible nonlinear model that optimizes quantile regression loss coupled with suitable regularization terms to maintain the consistency of forecasts across hierarchies. The theoretical framework introduced herein can be applied to any forecasting model with an underlying differentiable loss function. A proof of optimality of our proposed method is also provided. Simulation studies over a range of datasets highlight the efficacy of our approach.

Introduction

In many industries, data is naturally organized into hierarchies. For example, a retailer needs to forecast demand at the individual product level, the store level, and the national level. For these forecasts to be useful for planning, they must be coherent: the sum of the lower-level (child) forecasts should equal the corresponding higher-level (parent) forecast.

Hierarchical structure of time series data across geographic regions and its mathematical representation.

Traditional hierarchical time series forecasting often relies on computationally expensive post-processing to ensure this consistency. These methods often involve matrix inversions with a complexity of $O(n^3h)$, which becomes a bottleneck for large-scale datasets. Furthermore, they typically assume Gaussian noise and unbiased base estimators—assumptions that rarely hold for sparse or skewed real-world data. This paper introduces SHARQ (Simultaneous HierArchically Reconciled Quantile Regression), a framework that integrates reconciliation directly into the model's training phase.

Methodology

SHARQ shifts reconciliation from a post-processing step to a core part of the training objective, offering several key advantages:

  • Regularized Loss Function: Instead of just minimizing prediction error, SHARQ adds a regularization term to the loss function that penalizes deviations from hierarchical consistency. This allows the model to learn the mutual relationships between different levels of the hierarchy during training.
  • Quantile Regression: To move beyond simple point estimates and Gaussian assumptions, SHARQ optimizes for specific quantiles. This provides a full probabilistic distribution of the forecast, which is vital for risk management and inventory planning.
  • Bottom-Up Training: The algorithm follows a bottom-up approach, training leaf nodes first and then progressively training higher levels. This ensures that lower-level results are used to reconcile higher-level models simultaneously.
  • Model Agnostic: SHARQ can be wrapped around almost any differentiable forecasting model, including RNNs, Gated Recurrent Units (GRU), or N-Beats.

Experimental Results

The authors evaluated SHARQ using both simulated data and four diverse real-world datasets, including the massive M5 Walmart competition dataset (42,840 time series) and Wikipedia webpage view data.

Performance comparison across different error distributions and the underlying forecasting model architecture.

Key findings from the evaluation include:

  • Accuracy: SHARQ consistently achieved lower MAPE (Mean Absolute Percentage Error) and CRPS (Continuous Ranked Probability Score) compared to baselines like MinT and ERM across various architectures.
  • Coherency: The degree to which the hierarchy is broken dropped dramatically as regularization strength increased, proving the model successfully learned hierarchical constraints.
  • Scalability: Because reconciliation is "baked into" the model weights, generating a coherent forecast at inference time is just a standard forward pass, eliminating expensive matrix operations.

Conclusion

SHARQ provides a robust and scalable framework for hierarchical time series forecasting. By enforcing coherency during training and utilizing quantile regression, it produces probabilistic, consistent forecasts that outperform state-of-the-art methods on large-scale, non-Gaussian datasets. Future work may extend this to non-linear aggregation constraints and temporal hierarchies.

Summary updated

BibTeX
@inproceedings{han2021simultaneously,
  author = {Xing Han and Sambarta Dasgupta and Joydeep Ghosh},
  title = {{Simultaneously Reconciled Quantile Forecasting of Hierarchically Related Time Series}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=QfDHEJD0ABY},
}
Figure