DeepStock: Reinforcement Learning with Policy Regularizations for Inventory Management

Yaqi Xie, Xinru Hao, Jiaxi Liu, Will Ma, Linwei Xin, Lei Cao, Yidong Zhang

TL;DR

This paper introduces "policy regularizations" for Deep Reinforcement Learning (DRL) in inventory management, making DRL more stable, faster to train, and better performing by incorporating classical inventory theory intuitions. These regularizations have enabled Alibaba to fully deploy DRL for managing inventory across millions of products on its e-commerce platform.

What Problem Does This Paper Address?

Inventory control is a critical problem in operations research, traditionally tackled with simplified models. While Deep Reinforcement Learning (DRL) offers a powerful way to handle complex, high-dimensional data for inventory management, its practical application has been hindered by several issues. Specifically, off-the-shelf DRL methods are often highly sensitive to hyperparameters, making training time-consuming and results inconsistent. Furthermore, the "black-box" nature of DRL policies makes them difficult to interpret. This paper aims to bridge this gap by developing DRL techniques that are more robust, interpretable, and efficient for real-world inventory management.

Methods

The core contribution of this paper lies in its novel "policy regularizations." Instead of using a standard DRL policy (a neural network outputting an order quantity), the authors propose two specific functional forms for the policy, inspired by inventory theory:

  1. Base Stock Regularization: The order quantity is formulated as a target "base stock" level minus the current total inventory. This encourages the learned policy to focus on learning the appropriate target level based on demand forecasts, while naturally accounting for existing stock.
  2. Coefficient Regularization: The order quantity is modeled as a linear combination of key demand features (historical and forecasted demands), where the coefficients are learned by a neural network. This ensures that the order quantity positively correlates with predicted demand.

These regularizations can be used individually or combined. The authors apply these regularizations to standard DRL algorithms like DDPG (Deep Deterministic Policy Gradient) and also to a supervised learning (SL) approach for comparison.

Datasets

The paper uses offline data from Alibaba's e-commerce platform for training and evaluation. Specifically:

  • Training Data (Dtrain): 50,000 randomly selected SKU trajectories from July to September 2024.
  • Validation Data (Dvalidate): 5,000 randomly selected trajectories of other SKUs from the same 90-day horizon.
  • Test Data (Dtest): 5,000 randomly selected SKU trajectories from February to April 2024, representing a chronologically later period.

The paper does not introduce new benchmark datasets but leverages real-world data from Alibaba's operations.

Key Insights and Ideas

  • Bridging Theory and Practice: The paper demonstrates that incorporating classical inventory theory intuitions (like base stock levels) into modern DRL can significantly improve performance and stability, overcoming some of DRL's inherent challenges.
  • Hyperparameter Sensitivity Mitigation: Policy regularizations act as a form of "prior knowledge" that guides the DRL agent, making it less susceptible to poor hyperparameter choices and drastically speeding up the effective tuning process.
  • Redefining the DRL vs. SL Debate: The regularizations make DRL competitive with, and often superior to, supervised learning approaches for inventory management, especially when hyperparameter tuning is limited.
  • Enabling Large-Scale Deployment: The robustness and improved performance achieved through regularizations were crucial for Alibaba's successful, unified deployment of DRL across millions of SKUs.

Key Results

  • Improved Performance: The paper shows significant improvements in on-shelf rates and turnover times. For instance, the DDPG,BOTH policy (DRL with both regularizations) achieved a 0% change in on-shelf rate and a -0.41 day change in turnover time compared to a baseline, while DDPG,NONE (no regularization) resulted in a -10.10% change in on-shelf rate and a 6.46 day change in turnover time.
  • Faster Training/Tuning: Regularizations drastically reduce the need for extensive hyperparameter tuning. The paper highlights that a single hyperparameter trial for DDPG can take 24 wall-clock hours at Alibaba, making efficient tuning critical.
  • Full-Scale Deployment: The regularized DRL approach has been fully deployed on Alibaba's Tmall platform, managing inventory for 100% of products (over 1 million SKU-warehouse combinations) as of October 2025.

Limitations and Future Work

  • Limitations: The paper acknowledges that while regularizations improve performance under limited hyperparameter search, further extensive tuning might still yield marginal gains. The authors also note that the effectiveness of SL can improve with sufficient data and tuning, but real-world data's non-IID nature often favors DRL.
  • Future Work: Not explicitly discussed in the paper, but the success of this approach suggests future work could explore other inventory theory concepts for regularization, apply these techniques to different operational domains, or investigate more advanced meta-learning strategies enabled by the unified policy.

Summary updated

BibTeX
@inproceedings{xie2025deepstock,
  author = {Yaqi Xie and Xinru Hao and Jiaxi Liu and Will Ma and Linwei Xin and Lei Cao and Yidong Zhang},
  title = {{DeepStock: Reinforcement Learning with Policy Regularizations for Inventory Management}},
  booktitle = {MLxOR @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=jEdw8z1Sjg},
}
Figure