Reinforcement Learning for Efficient Returns Management

Pascal Linden, Nathalie Paul, Tim Wirtz, Stefan WrobelarXiv 2025

TL;DR

Managing retail product returns is a costly balancing act between storing items to make optimal routing decisions later (offline) or routing them immediately with zero future visibility (online). This paper introduces PostAlloc, a reinforcement learning approach that models returns management as an online multiple knapsack problem with a small intermediate buffer. PostAlloc slashes average product storage time by up to 96% while trailing the performance of an omniscient, optimal offline solver by a mere 3%.

What Problem Does This Paper Address?

When customers return products, retailers must decide where to send them next—whether to specific physical stores to maximize revenue or to an online fulfillment center.

Currently, warehouses use an offline approach: they store returned items for days, accumulate a large batch, and then optimize the allocation globally. While this yields high-quality decisions, it is incredibly inefficient. Warehouses get clogged, items are handled repetitively, and products lose value while sitting on shelves.

An online approach would allocate products instantly upon arrival. However, without knowing what products will arrive next, purely online algorithms make sub-optimal choices, quickly filling up store capacities with low-value items. The authors tackle this gap by proposing a "relaxed" online approach that introduces a small, temporary storage buffer to defer decisions slightly, balancing immediate processing with strategic foresight.

Methods

The authors frame returns management as an Online Multiple Knapsack Problem. Stores represent knapsacks with fixed capacities, and returned products represent items with specific weights and values (expected revenue).

They introduce PostAlloc, a Reinforcement Learning (RL) framework that extends previous single-knapsack models by introducing a new action: postpone.

Figure 1: Model architecture of PostAlloc. At each step i, the in- put state si is fed into the policy and the baseline network. The policy network outputs a probability distribution over the ac- tions accept, reject, and postpone while the output of the base- line network is used in both networks’ gradient-based parame- ter updates.

At each time step, the RL agent receives an input state containing the current item's value and weight, its relative position in the sequence, the current buffer occupancy, and the sorted remaining capacities of the stores. The agent can choose between three actions:

  1. Accept: Pack the item into the store with the largest remaining capacity.
  2. Reject: Send the item to the online store (effectively discarding it from the physical store pool).
  3. Postpone: Place the item into a limited-size intermediate buffer, deferring the final decision.

If the buffer fills up, the item with the worst value-to-weight ratio is automatically evicted, forcing an immediate accept/reject decision. The policy is trained using the REINFORCE algorithm alongside a baseline network to stabilize learning.

Datasets

Because real-world warehouse return datasets are proprietary and scarce, the authors evaluated PostAlloc using twelve simulated data setups based on classic knapsack problem generation methods (Martello and Toth).

The setups varied across two dimensions:

  • Number of stores ($K$): Evaluated at 1, 3, 5, and 7 stores.
  • Value-Weight Correlation: Divided into uncorrelated (independent weights/values), weakly correlated, and strongly correlated (where value is highly dependent on weight, making decision-making much harder).

Each setup consisted of 2,500 sequences of $N = 200$ items, with total store capacities restricted to roughly 50% of the total item weights.

Key Insights and Ideas

  • Adaptive Buffer Usage: The RL agent naturally learns when it is beneficial to wait. In uncorrelated datasets—where item values vary wildly—the agent frequently uses the postpone action to wait for better items. In strongly correlated datasets, value-to-weight ratios are uniform, so delaying decisions offers no strategic advantage; the agent smartly learns to bypass the buffer entirely to avoid the small negative reward penalty associated with postponing.
  • The Scalability Bottleneck: As the number of stores scales up to $K = 7$ in correlated environments, the state space expands significantly. In these complex environments, the policy degenerates into a simple "take-all" strategy, highlighting a clear limit to the current state representation's scalability.
Final accept and reject decisions of the network across different datasets.

Key Results

PostAlloc successfully bridges the gap between online speed and offline quality:

  • Optimality Gap: Across most problem setups, PostAlloc achieved a solution quality only 2.88% below the absolute mathematical optimum calculated by Google's OR-Tools (an offline solver with perfect future knowledge). It consistently outperformed alternative online heuristics like the CZL algorithm and standard single-knapsack RL models.
  • Storage Time Reduction: On uncorrelated datasets, PostAlloc reduced average product storage time by 96.1% compared to the offline batching approach. On weakly and strongly correlated datasets, where it learned to make instant decisions, it achieved a 100% reduction in storage time.

Limitations and Future Work

The primary limitation of PostAlloc is its scalability. When dealing with a larger number of stores ($K = 7$), the model struggles to learn nuanced policies and defaults to a naive greedy strategy.

To address this, the authors plan to refine the reward function by introducing explicit penalties for violating store capacities or leaving them underutilized. They also aim to test the impact of varying buffer sizes and transition to more realistic, multi-dimensional product properties (such as modeling physical geometric dimensions instead of a single scalar weight).

Summary updated

BibTeX
@misc{linden2025reinforcement,
  author = {Pascal Linden and Nathalie Paul and Tim Wirtz and Stefan Wrobel},
  title = {{Reinforcement Learning for Efficient Returns Management}},
  year = {2025},
  eprint = {2501.14394},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.14394},
}
Figure