Table of Contents
Fetching ...

Hierarchical Forecast Reconciliation on Networks: A Network Flow Optimization Formulation

Charupriya Sharma, Iñaki Estella Aguerri, Daniel Guimarans

TL;DR

FlowRec reframes hierarchical forecast reconciliation as a network-flow optimization, enabling coherent forecasts on general graphs beyond trees. It establishes NP-hardness for the $||\cdot||_0$ loss but polynomial-time solvability for all $p>0$ losses and derives a tight $\Omega(m \log n)$ lower bound, with $O(n^2 \log n)$ complexity in sparse networks compared to MinT’s $O(n^3)$. FlowRec generalizes MinT to networks by using the network structure as the reconciliation weight, avoiding covariance estimation and enabling efficient dynamic updates with monotonicity guarantees and provable error bounds for approximate reconciliation. The approach supports two computation methods (orthogonal projection and minimum reconciling flow) and offers fast, localized updates for expanding networks, new data, and disruptions. Empirical results on simulated and real benchmarks show FlowRec substantially improves accuracy and reduces runtime and memory (3–40x speedups, 5–7x memory savings, and up to 18x faster in real data) relative to BU and MinT, validating its practical impact for large-scale, time-sensitive hierarchical forecasting tasks.

Abstract

Hierarchical forecasting with reconciliation requires forecasting values of a hierarchy (e.g.~customer demand in a state and district), such that forecast values are linked (e.g.~ district forecasts should add up to the state forecast). Basic forecasting provides no guarantee for these desired structural relationships. Reconciliation addresses this problem, which is crucial for organizations requiring coherent predictions across multiple aggregation levels. Current methods like minimum trace (MinT) are mostly limited to tree structures and are computationally expensive. We introduce FlowRec, which reformulates hierarchical forecast reconciliation as a network flow optimization, enabling forecasting on generalized network structures. While reconciliation under the $\ell_0$ norm is NP-hard, we prove polynomial-time solvability for all $\ell_{p > 0}$ norms and , for any strictly convex and continuously differentiable loss function. For sparse networks, FlowRec achieves $O(n^2\log n)$ complexity, significantly improving upon MinT's $O(n^3)$. Furthermore, we prove that FlowRec extends MinT to handle general networks, replacing MinT's error-covariance estimation step with direct network structural information. A key novelty of our approach is its handling of dynamic scenarios: while traditional methods recompute both base forecasts and reconciliation, FlowRec provides efficient localised updates with optimality guarantees. Monotonicity ensures that when forecasts improve incrementally, the initial reconciliation remains optimal. We also establish efficient, error-bounded approximate reconciliation, enabling fast updates in time-critical applications. Experiments on both simulated and real benchmarks demonstrate that FlowRec improves accuracy, runtime by 3-40x and memory usage by 5-7x. These results establish FlowRec as a powerful tool for large-scale hierarchical forecasting applications.

Hierarchical Forecast Reconciliation on Networks: A Network Flow Optimization Formulation

TL;DR

FlowRec reframes hierarchical forecast reconciliation as a network-flow optimization, enabling coherent forecasts on general graphs beyond trees. It establishes NP-hardness for the loss but polynomial-time solvability for all losses and derives a tight lower bound, with complexity in sparse networks compared to MinT’s . FlowRec generalizes MinT to networks by using the network structure as the reconciliation weight, avoiding covariance estimation and enabling efficient dynamic updates with monotonicity guarantees and provable error bounds for approximate reconciliation. The approach supports two computation methods (orthogonal projection and minimum reconciling flow) and offers fast, localized updates for expanding networks, new data, and disruptions. Empirical results on simulated and real benchmarks show FlowRec substantially improves accuracy and reduces runtime and memory (3–40x speedups, 5–7x memory savings, and up to 18x faster in real data) relative to BU and MinT, validating its practical impact for large-scale, time-sensitive hierarchical forecasting tasks.

Abstract

Hierarchical forecasting with reconciliation requires forecasting values of a hierarchy (e.g.~customer demand in a state and district), such that forecast values are linked (e.g.~ district forecasts should add up to the state forecast). Basic forecasting provides no guarantee for these desired structural relationships. Reconciliation addresses this problem, which is crucial for organizations requiring coherent predictions across multiple aggregation levels. Current methods like minimum trace (MinT) are mostly limited to tree structures and are computationally expensive. We introduce FlowRec, which reformulates hierarchical forecast reconciliation as a network flow optimization, enabling forecasting on generalized network structures. While reconciliation under the norm is NP-hard, we prove polynomial-time solvability for all norms and , for any strictly convex and continuously differentiable loss function. For sparse networks, FlowRec achieves complexity, significantly improving upon MinT's . Furthermore, we prove that FlowRec extends MinT to handle general networks, replacing MinT's error-covariance estimation step with direct network structural information. A key novelty of our approach is its handling of dynamic scenarios: while traditional methods recompute both base forecasts and reconciliation, FlowRec provides efficient localised updates with optimality guarantees. Monotonicity ensures that when forecasts improve incrementally, the initial reconciliation remains optimal. We also establish efficient, error-bounded approximate reconciliation, enabling fast updates in time-critical applications. Experiments on both simulated and real benchmarks demonstrate that FlowRec improves accuracy, runtime by 3-40x and memory usage by 5-7x. These results establish FlowRec as a powerful tool for large-scale hierarchical forecasting applications.
Paper Structure (31 sections, 30 theorems, 66 equations, 32 figures, 4 tables, 1 algorithm)

This paper contains 31 sections, 30 theorems, 66 equations, 32 figures, 4 tables, 1 algorithm.

Key Result

Theorem 1

Minimizing the loss of the $\|\cdot\|_0$ norm for HFR is NP-hard, where for $\mathbf{x} \in \mathbb{R}^n$: $\|\mathbf{x}\|_0 = |\{i : x_i \neq 0\}|$

Figures (32)

  • Figure 1: Comparison of Tree and Network Reconciliation. Base forecasts deviate from true values. Tree structure cannot recover true values due to single-parent constraint. Network structure allows multiple paths, enabling recovery of true values through flow conservation.
  • Figure 2: Total RMSE for forecasting and reconciliation for simulated data, shown across multiple base forecasting methods. FlowRec (third bar for each base model) shows the lowest RMSE
  • Figure 3: RMSE for AutoARIMA, plotted against density ( node degree, 1 means fully connected)
  • Figure 4: RMSE for AutoARIMA, plotted against the maximum path length
  • Figure 5: RMSE results for forecasting and reconciliation models across all hierarchies.
  • ...and 27 more figures

Theorems & Definitions (51)

  • Definition 1: Hierarchical Time Series
  • Definition 2: Point Forecast, Base Forecast, Coherent Forecast, Reconciliation
  • Definition 3: Flow Aggregated Time Series
  • Definition 4: Flow Point Forecast
  • Theorem 1: NP-Hardness for $\ell_0$
  • Theorem 2: Polynomial-Time Solvability for $\ell_{p > 0}$
  • Theorem 3: Generalized Loss Functions
  • Theorem 4: Runtime Lower Bound
  • Theorem 5: Flow Conservation
  • Theorem 6: Computation Methods
  • ...and 41 more