Deep Reinforcement Learning for a Multi-Objective Online Order Batching Problem

Martijn Beeks, Reza Refaei Afshar, Yingqian Zhang, Remco M. Dijkman, Claudy van Dorst, Stijn de Looijer

Abstract

Warehouse order batching presents a significant operational challenge in e-commerce, requiring a delicate balance between picking efficiency and delivery speed. This paper introduces a Deep Reinforcement Learning (DRL) approach to the Online Order Batching and Sequencing Problem (OBSP). The framework utilizes Bayesian Optimization to automatically tune reward functions and policy distillation to generate human-interpretable decision rules. Evaluated against a massive real-world dataset from a major Dutch e-commerce provider, the DRL-based system consistently outperforms industry-standard heuristics, reducing both tardiness and operational costs while maintaining robustness under high-volume stress tests.

Introduction: The Speed-Efficiency Trade-off

In modern e-commerce, warehouse management is caught between two conflicting objectives: speed and cost. "Picking-by-order" ensures rapid fulfillment but incurs high labor costs. Conversely, "picking-by-batch" improves efficiency by allowing workers to collect items for multiple orders simultaneously but risks delays as orders wait for batches to form. This dynamic is the core of the Online Order Batching and Sequencing Problem (OBSP).

Unlike offline models that assume perfect foresight, real-world warehouses face stochastic order arrivals. Manually balancing these objectives is difficult because the optimal strategy shifts based on time of day, order volume, and shipping deadlines.

Methodology: Reward Shaping and Policy Distillation

The authors propose a multi-stage framework to address the OBSP:

  1. Deep Reinforcement Learning (PPO): A Proximal Policy Optimization agent is trained to make real-time decisions—determining whether to pick an order immediately, add it to a batch, or wait for more arrivals.
  2. Bayesian Optimization (BO) for Reward Shaping: To avoid the pitfalls of manual weight assignment, the authors employ BO to search for optimal weights ($W_1, W_2$) in the reward function. This ensures the agent effectively balances tardiness against picking costs across various scenarios.
The reward shaping framework uses Bayesian Optimization to iteratively refine the DRL agent's reward function.
  1. Policy Distillation: To overcome the "black box" nature of DRL, the learned policy is distilled into a Decision Tree. This process extracts transparent, human-readable rules that warehouse managers can audit and implement.

Data and Simulation Environment

The study leverages a large-scale dataset from a Dutch e-commerce company, comprising over 257,000 orders and 376,000 items. The simulation environment reflects a complex hybrid warehouse with both Person-to-Goods (PtG) and Goods-to-Person (GtP) systems. Notably, the system handles throughputs of 2,000 to 4,000 orders per hour, significantly exceeding the scale of previous academic benchmarks.

Key Results and Insights

The DRL approach with Reward Shaping (DRL+RS) demonstrated superior performance across all metrics:

  • Reduced Tardiness: In high-volume settings, DRL+RS reduced tardy orders to 1.68%, nearly half the 3.17% rate of the best heuristic.
  • Improved Efficiency: Picking costs were reduced by approximately 8% compared to baseline heuristics.
  • Operational Robustness: The model maintained its performance advantage even when subjected to a 10% increase in order volume without additional resources.

A critical insight from the Bayesian Optimization was the temporal nature of priorities: as shipping cut-offs approach, the system automatically shifts its weight toward minimizing tardiness, sacrificing some batching efficiency to ensure on-time delivery.

Policy distillation converts the complex DRL model into an interpretable decision tree, revealing the logic behind batching decisions.

Conclusion and Future Directions

The research demonstrates that DRL, when combined with automated reward tuning and policy distillation, provides a powerful and transparent tool for warehouse optimization. While the distilled Decision Tree captures much of the DRL agent's intelligence, an "F1-score gap" remains, suggesting that future work should explore more sophisticated rule-extraction techniques or Pareto-front methods to further refine the trade-off between interpretability and performance.

Summary updated

BibTeX
@inproceedings{beeks2022deep,
  author = {Martijn Beeks and Reza Refaei Afshar and Yingqian Zhang and Remco M. Dijkman and Claudy van Dorst and Stijn de Looijer},
  title = {{Deep Reinforcement Learning for a Multi-Objective Online Order Batching Problem}},
  booktitle = {ICAPS},
  year = {2022},
}
Figure