TL;DR
This paper introduces a novel "decision layer" for demand forecasting that treats forecast refinement as a reward-driven action selection problem. Instead of trying to build a single "perfect" model, an RL agent chooses the best value from a menu of probabilistic outputs (quantiles, bounds, and bias-corrected estimates) generated by a strong machine-learning ensemble, resulting in a 6.3% average error reduction over state-of-the-art models.
What Problem Does This Paper Address?
Demand planning is notoriously difficult because even the best machine-learning (ML) ensembles tend to "smooth out" reality. They often understate seasonal peaks, miss one-off events, or fail to react quickly to sudden shifts in demand levels.
While human planners often step in to "fix" these forecasts, research shows that manual overrides frequently introduce bias and actually decrease accuracy. The authors identify a gap: we need a systematic, auditable way to refine forecasts that captures the "residual" value—like seasonal amplitude and rare events—that even complex ensembles leave on the table.
Methods
The authors propose a multi-stage pipeline that moves from prediction to decision-making:
- AutoML Stacking: They start with a high-performing ensemble of seven learners (including XGBoost, LightGBM, and various neural networks like LSTMs and GRUs).
- Distribution-Free Action Set: Instead of just outputting a point forecast, the system generates a "menu" of 14 possible actions. These include the base forecast, a bias-corrected estimate, and various quantiles derived using Chebyshev and Cantelli bounds. These bounds are "distribution-free," meaning they don't assume the demand follows a perfect bell curve.
- RL Agent (Contextual Bandit): An agent selects the best action from the menu for each period. It uses "context-matched replay," looking at how different actions performed during similar historical periods (e.g., the same holiday or promotion last year).
- Structural Guard: To prevent the agent from making "absurd" choices, a separate structural seasonal model acts as a safety rail, ensuring the final value respects historical peaks and troughs.
- Auditability: Every final number is decomposed into three layers: the ML model's contribution, the agent's adjustment, and any final human planner override.
Datasets
The approach was evaluated across five real-world deployments over a nine-month period (January to September 2026):
- Retail: Eggs and Sweets.
- Consumer Packaged Goods (CPG): Sports goods and Cookware.
- Direct-to-Consumer (D2C): Skincare.
These datasets represent a wide range of difficulty, from highly stable "sweets" demand to intermittent, event-driven "sports goods" demand.
Key Insights and Ideas
- "Nothing is Invented": One of the most powerful ideas is that the agent doesn't "hallucinate" new numbers. It only picks from values the ensemble has already produced. This keeps the forecast grounded in the model's own probabilistic understanding.
- Context over Recency: Traditional models often over-weight the most recent weeks. This agent instead prioritizes "context-matched" history—asking, "What happened the last time we had a Black Friday sale?" rather than just "What happened last Tuesday?"
- The Reward Function: The agent isn't just optimized for accuracy (WMAPE). The reward function balances accuracy, bias, and "de-spiked" performance to ensure the agent doesn't over-correct for one-off outliers.
- Traceability: By framing the problem as "Forecast Value Add" (FVA), the system can explicitly prove whether the agent (or the human planner) actually improved the forecast or made it worse.
Key Results
The "RL + ML" approach consistently outperformed both traditional statistical models and the standalone ML ensemble:
- Vs. ML Ensemble: Reduced mean WMAPE (Weighted Absolute Percentage Error) by 6.3% on average, with gains as high as 16.7% in some categories.
- Vs. Statistical Forecasts: Reduced mean error by 18.7%.
- Consistency: The RL agent achieved the lowest error in 35 out of 45 customer-months (78% win rate).
- Peak Performance: The largest gains occurred during high-error months (like June and August), proving the agent is most effective exactly where standard models struggle most: at the peaks.
The table below illustrates a "worked episode" where the agent and guard-rail corrected a forecast that was trending too low for a December peak.
Limitations and Future Work
- Sample Size: The study was limited to five customers over nine months; more diverse deployments would strengthen the findings.
- Granularity: The agent currently makes decisions at the "segment" level (groups of products) to avoid overfitting. The authors suggest that moving to a per-item (series) level is a natural next step but requires careful bias evaluation.
- Supply Constraints: The model focuses purely on demand. It does not yet account for supply chain constraints like stock-outs or shipping delays, which remain the responsibility of the human planner.
- Multi-step MDP: The current agent acts as a "contextual bandit" (making one-off decisions). Future work could involve a full Markov Decision Process (MDP) to account for how a decision today might affect the state of the forecast months down the line.
Summary updated