Abstract
Effective inventory management is a cornerstone of global retail, yet traditional mathematical models often fail to account for the stochastic complexities of real-world supply chains. This paper presents a Deep Reinforcement Learning (DRL) framework designed to handle non-linearities such as lost sales, stochastic vendor lead times, and exogenous price fluctuations. By leveraging a differentiable simulator and a novel algorithm termed "Direct Backprop," the authors demonstrate a significant reduction in inventory levels without compromising revenue in a large-scale industrial deployment.
1. Introduction
Inventory management for massive retailers is typically framed as a "periodic review" problem: at fixed intervals, a decision-maker must determine the optimal quantity of goods to order to meet future demand. While classical Dynamic Programming (DP) and "Newsvendor" heuristics provide a foundation for these decisions, they struggle with the "real-world" headaches that characterize modern commerce. Specifically, factors like censored demand (lost sales), unpredictable arrival of goods (stochastic lead times), and competitive price matching create a landscape where the underlying mathematical functions are often intractable or non-convex.
2. Problem Formulation and Challenges
The authors identify three primary obstacles that render traditional inventory models suboptimal:
- Lost Sales and Censored Data: When an item is out of stock, the observed sales drop to zero. However, this does not reflect true demand. Traditional systems often fail to account for what could have been sold, leading to a downward bias in future stock levels.
- Stochastic Vendor Lead Times (VLT): Orders do not arrive in a predictable, linear fashion. "Order crossing"—where a later order arrives before an earlier one—is a common occurrence that complicates the state space of inventory in transit.
- Exogenous Price Matching: Retailers often adjust prices based on competitor behavior rather than internal inventory logic, decoupling the price variable from the inventory control policy.
3. Methodology: Direct Backprop
To address these challenges, the authors propose a model-based RL approach that treats the inventory system as a differentiable control problem. The core of this approach is the Direct Backprop algorithm.
3.1 Differentiable Simulator
Unlike model-free RL, which treats the environment as a "black box" and relies on trial-and-error (e.g., SAC or A3C), the authors observe that the fundamental rules of inventory—how stock moves from "in-flight" to "on-hand" and how demand subtracts from it—are known and differentiable. By building a simulator using these differentiable transitions, the agent can calculate the exact gradient of the reward function with respect to the policy parameters. This allows for significantly faster convergence and higher sample efficiency.
3.2 Availability Corrected (AC) Demand
To solve the censored data problem, the framework incorporates "Availability Corrected" demand. By analyzing web traffic data (e.g., "glance views"), the model estimates hidden demand during out-of-stock periods. If customers are viewing a product page but cannot purchase, the model uses historical conversion rates to reconstruct the likely demand signal, providing a more accurate input for the RL agent.
3.3 Scaling for Diverse Catalogs
Handling a catalog that ranges from niche items to high-volume staples requires robust normalization. The authors utilize scaling factors based on trailing demand averages, allowing a single neural network policy to generalize across products with vastly different sales velocities.
4. Experimental Results
The framework was validated through both high-fidelity simulations and a large-scale real-world deployment.
4.1 Simulation Performance
Using a dataset of 80,000 products from a major marketplace (2017–2019), the Direct Backprop agent was compared against classical Newsvendor models and state-of-the-art model-free RL algorithms. The results indicated that Direct Backprop consistently outperformed baselines, particularly in its ability to anticipate demand spikes by incorporating contextual features like public holidays and product descriptions.
4.2 Real-World Impact
The most compelling evidence for the framework's efficacy came from a 26-week live A/B test involving 10,000 products within one of the world's largest supply chains. The Direct Backprop agent achieved:
- 12% Reduction in Inventory Levels: The model maintained significantly leaner stock levels compared to the existing production system.
- Revenue Neutrality: Crucially, the reduction in inventory did not lead to an increase in out-of-stock events or a loss in revenue. This represents a major increase in capital efficiency, as less money is tied up in stagnant physical goods.
5. Conclusion and Future Work
This research demonstrates that differentiable simulation and reinforcement learning can successfully navigate the complexities of modern supply chain management. By moving beyond myopic heuristics, the Direct Backprop algorithm provides a scalable solution for global retailers.
Future iterations of this work aim to address current limitations, such as assuming a 100% vendor fill rate and the absence of warehouse capacity constraints. The authors suggest that the next frontier involves learning transition dynamics directly from data and incorporating cross-product constraints to further optimize warehouse utilization.
Summary updated