Deep Learning-Driven Contextual Stochastic Optimization for Real-Time Order Fulfillment

Tinghan Ye, Shuaicheng Tong, Changkun Guan, Beste Basciftci, Pascal Van HentenryckMLxOR @ NeurIPS 2025

TL;DR

This paper tackles the challenge of real-time order fulfillment in e-commerce by developing a deep learning "optimization proxy." This proxy learns to make near-optimal decisions much faster than traditional solvers, enabling efficient operations even during peak demand.

What Problem Does This Paper Address?

In large-scale e-commerce, fulfilling customer orders in real-time is a complex logistical puzzle. Companies need to decide where to source items from their network of warehouses to minimize costs while ensuring timely delivery. This decision-making is complicated by two main uncertainties: when deliveries will actually arrive (delivery timeliness) and how much inventory will be needed in the future. Traditional optimization methods struggle with these uncertainties and can be too slow to make decisions quickly enough, especially during high-traffic periods like sales events, leading to potential operational backlogs.

Methods

The authors propose a two-stage contextual stochastic optimization (CSO) framework. To address the speed limitations of traditional solvers, they develop a deep learning "optimization proxy." This proxy is a neural network trained to mimic the decisions of a high-quality, but slower, CSO solver.

Here's a breakdown of their approach:

  • Two-Stage Contextual Stochastic Optimization (CSO): This framework models the problem by considering immediate fulfillment decisions and their impact on future inventory and costs. It explicitly incorporates uncertainty in delivery times and future demand.
  • Scenario Generation: To represent uncertainty, the model generates multiple possible scenarios for future demand and delivery times. This is done using specialized forecasting models (MQRNN for demand, MQMLP for delivery time).
  • Optimization Proxy (Deep Neural Network): The core innovation is a neural network trained to predict the optimal fulfillment decision for each order. It takes contextual information (order details, inventory levels, generated scenarios) as input and outputs a predicted fulfillment plan. This network is trained to approximate the decisions of a computationally intensive CSO solver.
  • Feasibility Repair: A lightweight repair procedure is used to ensure that the proxy's predictions are always feasible (e.g., don't exceed available inventory).

Datasets

The paper uses a large-scale transactional dataset from JD.com. This dataset is used for both training the optimization proxy and evaluating its performance against a benchmark solver. The authors describe extensive data preprocessing steps to clean and prepare this dataset for their experiments.

Key Insights and Ideas

  • Deep Learning as an Optimization Surrogate: The paper demonstrates that deep learning models can effectively act as fast surrogates for complex, computationally expensive optimization problems, bridging the gap between theoretical rigor and practical, real-time deployment.
  • Balancing Speed and Quality: The proxy achieves a remarkable speedup (over 3,000x) with only a minimal sacrifice in solution quality (around 1.38% increase in cost), highlighting a favorable trade-off for real-time applications.
  • Learning from Uncertainty: By training on scenarios generated from contextual forecasts, the proxy learns to make decisions that are robust to delivery time and demand uncertainties, even outperforming the benchmark in reducing late delivery rates.
  • Industrial Scalability: The success on a large, real-world e-commerce dataset suggests that this approach is viable for industrial-scale operations.

Key Results

  • Speedup: The optimization proxy achieved an average decision time of 2 milliseconds, a 3,000x speedup compared to the C-SAA solver's average of 6.063 seconds. The maximum run time was reduced from 88.56 seconds to 0.699 seconds.
  • Solution Quality: The proxy incurred only a 1.38% increase in total cost compared to the C-SAA solver.
  • Late Delivery Rate: The proxy actually reduced the average late delivery rate slightly compared to the C-SAA solver.

Limitations and Future Work

  • Limitations: The paper acknowledges that the proxy's solution quality is not perfectly optimal, with a small cost increase. The feasibility repair mechanism is greedy, which might not always be globally optimal.
  • Future Work: The authors suggest integrating reinforcement learning for more adaptive decision-making and exploring conformal prediction to provide statistical guarantees for their predictions. They also aim to extend this to more complex fulfillment scenarios.

Summary updated

BibTeX
@inproceedings{ye2025deep,
  author = {Tinghan Ye and Shuaicheng Tong and Changkun Guan and Beste Basciftci and Pascal Van Hentenryck},
  title = {{Deep Learning-Driven Contextual Stochastic Optimization for Real-Time Order Fulfillment}},
  booktitle = {MLxOR @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=uhF4sYW6Nd},
}
Figure