Off-Policy Learning with Limited Supply

Koichi Tanaka, Ren Kishimoto, Bushun Kawagishi, Yusuke Narita, Yasuo Yamamoto, Nobuyuki Shimizu, Yuta SaitoarXiv 2026

TL;DR

Standard off-policy learning algorithms assume an infinite supply of items, but real-world applications like e-commerce and coupon distribution face strict inventory constraints. This paper introduces Off-Policy learning with Limited Supply (OPLS), a novel method that maximizes total reward by allocating scarce items based on a user's relative reward advantage rather than absolute greedy choice. OPLS consistently outperforms traditional greedy strategies without adding any computational training overhead.

What Problem Does This Paper Address?

Personalization systems (like recommendations and online ads) are frequently modeled as contextual bandits, where an algorithm selects an action (an item) based on a context (user features) to maximize a reward (clicks or purchases). Off-Policy Learning (OPL) is highly valuable here because it allows practitioners to evaluate and train new strategies using historical log data without risking poor user experiences in live production.

However, standard OPL assumes an unconstrained environment where an item can be recommended infinitely. In reality, popular products or high-value coupons have a limited supply. If you use a standard greedy policy, it will simply give the highest-reward item to whoever walks through the door first. This short-sightedness can prematurely deplete inventory, leaving nothing for future users who might have generated vastly higher rewards from that specific item. This paper formalizes OPL under inventory constraints for the first time.

Methods

The authors first provide a theoretical analysis proving that conventional greedy OPL approaches are inherently suboptimal when supply is limited. To fix this, they propose OPLS (Off-Policy learning with Limited Supply).

Instead of selecting an item based purely on its absolute predicted reward $\hat{q}(x,a)$, OPLS evaluates the relative reward gap:

$$\text{Relative Gap} = \hat{q}(x_t, a) - \frac{1}{n}\sum_{i=1}^n \hat{q}(x_i, a)$$

This formula calculates how much more a specific user $x_t$ values item $a$ compared to the average user in the dataset. By maximizing this gap, the policy prioritizes allocating scarce items to users who have a unique affinity for them.

Extension to Mixed Supply Conditions

In real-world settings, some items are scarce while others are abundant. The authors extend OPLS to dynamically split items into two groups:

  • Limited supply items (predicted to sell out): Allocated using the relative reward gap rule.
  • Abundant supply items (predicted to remain in stock): Allocated using the standard absolute greedy rule.

To determine which items will sell out without running into computationally intractable simulations, they implement a naive uniform-selection approximation to estimate the remaining inventory at the end of the time horizon.

Datasets

The authors evaluated OPLS using both synthetic simulations and real-world data:

  1. Synthetic Dataset: Generated 200 users with 10-dimensional context vectors. The setup allowed the authors to control user preference alignment and test three distinct initial supply conditions: proportional to demand, inverse proportional to demand, and random.
  2. KuaiRec Dataset: A real-world dataset from the Kuaishou video-sharing platform. Crucially, KuaiRec contains an almost fully observed user-item interaction matrix (nearly 100% density) for 1,411 users and 3,327 items. This allowed the authors to treat the dataset as a clean ground-truth environment, onto which they layered artificial inventory constraints to simulate limited supply.

Key Insights and Ideas

  • Greedy is Short-Sighted: Under supply constraints, recommendation decisions are coupled across time. Recommending an item now has an opportunity cost later.
  • The Power of Relativity: It is often better to save a premium item for a user who loves it significantly more than any other option, rather than burning it on a user who likes it only marginally more than a cheaper alternative.
  • Zero Extra Training Cost: OPLS uses the exact same underlying reward-prediction model ($\hat{q}$) as a standard greedy policy. The optimization happens entirely during the inference/decision step, making it incredibly easy to deploy on top of existing infrastructure.

Key Results

OPLS consistently demonstrated superior performance over conventional greedy methods under limited supply constraints.

As shown in the small-scale simulation tracking policy values over time, the conventional greedy approach performs well initially but plummets once premium items are exhausted. OPLS self-corrects and achieves a significantly higher final policy value.

Figure 1: Relative policy value (𝑉(𝜋OPLS)/𝑉(𝜋greedy)) at each time step
  • Preference Alignment: OPLS shows the most dramatic improvements when user preferences are highly aligned. In these scenarios, a greedy policy quickly runs out of popular items by distributing them evenly, whereas OPLS selectively targets the highest-responding users.
  • Robustness to Noise: In experiments introducing estimation noise to the reward function, OPLS maintained its edge over the greedy baseline, proving its viability when true expected rewards cannot be perfectly predicted.
  • Real-World Validation: On the KuaiRec dataset, OPLS consistently improved policy values across varying user scales and supply limits, matching greedy performance when supply was abundant and outperforming it when supply was tight.

Limitations and Future Work

While OPLS marks a major step forward for inventory-aware contextual bandits, the authors note a few areas for improvement:

  • Per-Item vs. Global Constraints: OPLS currently handles independent constraints for individual items. It does not accommodate global constraints, such as a total budget cap across an entire campaign.
  • Heuristic Supply Prediction: The mixed-supply extension relies on a naive uniform-selection approximation to guess which items will sell out. More sophisticated forecasting methods could refine this selection.
  • Fairness Concerns: Because OPLS maximizes revenue efficiency under constraints, it naturally risks funneling premium items exclusively to a small group of high-value users. The authors suggest that future iterations should incorporate fairness-aware weighting parameters to balance efficiency with equity.

Summary updated

BibTeX
@misc{tanaka2026off,
  author = {Koichi Tanaka and Ren Kishimoto and Bushun Kawagishi and Yusuke Narita and Yasuo Yamamoto and Nobuyuki Shimizu and Yuta Saito},
  title = {{Off-Policy Learning with Limited Supply}},
  year = {2026},
  eprint = {2603.18702},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.18702},
}
Figure