TL;DR
Large-scale supply chains often split logistics decisions into a slow batch-planning layer and a fast real-time execution layer, but training these layers together end-to-end is notoriously difficult due to consistency mismatches. This paper introduces proximal residual value functions—combining a learned convex residual with a strictly convex state potential—enabling end-to-end reinforcement learning that respects real-time constraints. Tested on large-scale e-commerce data, this approach ensures that real-time sequential decisions match batch planning while reducing total logistics costs by 5%.
What Problem Does This Paper Address?
Modern e-commerce networks manage millions of items across numerous fulfillment centers. To route incoming inventory efficiently, production systems use a two-timescale architecture: a planning layer periodically generates a convex value function (estimating future holding and fulfillment costs), and a real-time execution optimizer uses this function to route arrivals within minutes.
However, training these value functions end-to-end using Reinforcement Learning (RL) is computationally impractical if you simulate every single real-time arrival. Instead, training simulators use a "coarse-period approximation" where arrivals are aggregated into a single batch. This creates a massive gap: if you train a model assuming all inventory arrives at once, will it still make optimal decisions when inventory trickles in sequentially in the real world? This discrepancy is known as batching error or solve-count inconsistency.
Methods
The authors propose Proximal Residual Value Functions to bridge this gap. Instead of regularizing the actions (the routing decisions)—which distorts the objective depending on how many times the optimizer is called—they regularize the post-decision state (the cumulative inventory position).
The value function is parameterized as: $$V_\eta(x) = R_\eta(x) + \tau\Phi(x)$$ where $R_\eta(x)$ is a learned convex piecewise-linear (PWL) residual capturing complex network interactions, and $\Phi(x)$ is a strictly convex potential (such as an entropic $x \log x$ penalty) that ensures a unique, smooth optimization surface.
To train this system, they develop State-prox, a structured differentiable optimization layer that computes allocations and propagates gradients via an implicit backward pass. Crucially, they provide a mathematical characterization of solve-count invariance—the property ensuring that a series of sequential allocations yields the exact same final inventory as a single batch allocation. They prove that for smooth functions, this requires a property called Principal Common-Shock Positivity (PCSP).
Datasets
The method was evaluated using an offline simulator built from real-world historical data from a large e-commerce retailer (Amazon). The dataset spans a massive corpus of over one million products, tracking item-level arrivals, regional demand patterns, and fulfillment costs over 52-week rollouts. Evaluation was split into in-sample and out-of-sample sets to rigorously test both item-level and temporal generalization.
Key Insights and Ideas
- State vs. Action Regularization: Standard differentiable optimization often adds a quadratic penalty to the actions to smooth gradients. The authors demonstrate that this breaks down for sequential decisions because action penalties are not additive over time. Regularizing the state naturally handles split arrivals.
- Strict Convexity $\neq$ Consistency: A well-behaved, strictly convex function does not automatically guarantee consistency across timescales. The authors show a striking counterexample where splitting an arrival of 2 units into two 1-unit steps using a strongly convex quadratic function leads to a completely different final allocation.
- Monotonicity is Essential: For sequential decisions to match batch decisions, the optimal path of allocations must be componentwise nondecreasing as more budget becomes available.
Key Results
- Cost Reduction: The proposed
State-proxmethod (with its state potential) achieved the lowest logistics cost, reducing shipping-plus-transfer cost per fulfilled unit (SCPUT) by 14.9% in-sample and 5.0% out-of-sample compared to a historical production system proxy. - Empirical Consistency: When testing real-time execution across up to $K=500$ sequential splits,
State-proxdemonstrated remarkable approximate solve-count invariance, achieving a mean Total Variation (TV) of just $0.00201$ out-of-sample, vastly outperforming direct neural allocation baselines.
Limitations and Future Work
- Environment Perturbations: The theoretical guarantee of solve-count invariance assumes a fixed execution environment. In reality, costs, routes, and demands fluctuate between arrivals—an issue this paper explicitly notes it does not address.
- Fixed Potential Curvature: The strictly convex potential ($\Phi$) used a fixed entropic form. The authors suggest that future work could involve learning the state potential within a broader strictly convex family, adapting its curvature dynamically alongside the residual.
Summary updated