TL;DR
This paper introduces a novel Contextual Stochastic Optimization (CSO) framework to tackle the complex problem of omnichannel order fulfillment, where delivery times are uncertain and only historical observational data is available. By integrating machine learning for predictive forecasting with robust optimization techniques, the framework significantly improves on-time delivery rates and reduces costs for e-commerce retailers, offering a more dynamic and adaptable approach to logistics.
What Problem Does This Paper Address?
The paper addresses a critical challenge faced by large e-commerce companies: efficiently fulfilling online orders from a vast network of physical stores and warehouses while accounting for the uncertainty in delivery times. Current practices often rely on simple heuristics that prioritize the cheapest option without considering the reliability of carriers or the potential benefits of consolidating items within an order. This can lead to missed delivery promises, customer dissatisfaction, and increased costs. A key difficulty is that only observational data is available – meaning we only know the delivery performance for options that were actually chosen, not for the counterfactual scenarios. This "bandit feedback" setting makes it hard to learn accurate predictive models for all possible fulfillment choices.
Methods
The core contribution is a Contextual Stochastic Optimization (CSO) framework designed for situations with observational data and delivery time uncertainty. This framework has two main components:
- Contextual Distributional Oracle: This component uses machine learning to learn the probability distribution of delivery time deviations for each potential fulfillment option (carrier-location pair). It leverages contextual information (order details, fulfillment center status, carrier attributes) to make these predictions. Two ML approaches are explored:
- Probabilistic Multi-Class Classification (MC-CLF): Treats delivery deviations as discrete classes and estimates their probabilities.
- Tree-Based Quantile Regression (QR): Directly estimates the conditional cumulative distribution function (CDF) of delivery deviations, preserving the ordinal nature of time.
- Optimization Engines: The learned distributional oracle then feeds into two optimization paradigms:
- Contextual Sample Average Approximation (C-SAA): A risk-neutral approach that aims to minimize the expected fulfillment cost.
- Contextual Robust Optimization (C-RO): A risk-averse approach that optimizes for the worst-case scenario, providing stronger guarantees against uncertainty. Two variants are proposed: C-RO-D (discrete scenario set) and C-RO-B (budgeted interval uncertainty set).
The framework is designed to be modular, allowing different learning and optimization components to be swapped.
Datasets
The study utilizes a real-world, month-long dataset from a major US online retailer in 2023. This dataset includes:
- Over 1 million online orders.
- Over 20,000 unique SKUs.
- Hundreds to thousands of potential fulfillment centers.
- 10 to 30 distinct carriers.
The data was preprocessed to remove duplicates, handle missing values, and generate geographic features. Extreme delivery deviations (absolute values > 10 days) were excluded to mitigate noise.
Key Insights and Ideas
- Observational Data is a Major Hurdle: The paper highlights that learning from only observed outcomes (the "bandit feedback" problem) is a significant challenge in real-world optimization, requiring specialized techniques beyond standard CSO.
- Context is King for Delivery Predictions: Using contextual information (order details, fulfillment center status, carrier specifics) is crucial for accurately predicting delivery time deviations, far outperforming methods that rely solely on historical averages.
- Distributional Forecasts Beat Point Predictions: Employing full distributional forecasts of delivery deviations, rather than just mean predictions, leads to significantly better fulfillment decisions, especially when delivery timeliness is critical.
- Robustness vs. Efficiency Trade-off: C-RO methods offer strong worst-case guarantees, making them ideal for high-stakes situations, but at a slightly higher average cost. C-SAA methods are more cost-efficient on average but less robust to extreme deviations. C-RO-B offers a tunable balance.
- Item Consolidation Matters: The framework explicitly models discounts for consolidating items within an order, which is a key lever for reducing costs.
Key Results
- The proposed CSO framework reduced the combined fulfillment cost and delivery-timeliness penalties by an average of up to 18% and up to 22% in the simulated worst case compared to baseline methods.
- C-SAA-CLF achieved the greatest reduction in average objective value (18.0% vs. Greedy).
- C-RO-D-CLF provided the strongest worst-case guarantees, achieving a normalized worst-case objective of 0.779 (22.1% reduction vs. Greedy).
- C-RO-B-CLF demonstrated a strong balance between average efficiency and worst-case robustness.
- The ML models showed strong performance: Calibrated-CLF achieved the lowest log loss (0.965) and Brier score (0.031), while QRF provided more accurate and narrower prediction intervals.
- The framework demonstrated near-linear scalability in computation time with respect to problem size.
- Potential annual savings for a large retailer could range from several million to tens of millions of dollars.
Limitations and Future Work
- Performance Guarantees under Partial Feedback: The authors suggest establishing theoretical performance guarantees for CSO methods in partial feedback settings, potentially by linking causal inference techniques with SAA and RO theory.
- Hybrid Distributional Forecasters: Developing models that combine the calibration strengths of classification with the sharp tails of quantile regression could yield more informative uncertainty sets.
- End-to-End Predict-then-Prescribe Learning: Extending "integrated predict-then-optimize" approaches to observational data settings where downstream optimization loss is directly incorporated into training.
- Multi-period and Inventory-Aware CSO: Extending the framework to jointly optimize fulfillment, shipping, and stocking over rolling horizons for long-term strategic planning.
- Generalization to Broader Problem Classes: Adapting the framework to other settings like network flow optimization, which may require new reformulations for C-RO-B.
Summary updated