Nonparametric Contextual Pricing and Inventory Learning under Censored Demand

Zean Han, Jing Liang, Ruihan Lin, Zezhen Ding, Jiheng ZhangarXiv 2026

TL;DR

This paper introduces the Mean-Calibrated Kernel UCB (MCK-UCB) algorithm, the first online learning approach that achieves minimax-optimal regret for joint pricing and inventory control under censored demand and nonparametric contextual conditions. By constructing a novel observable proxy score, the algorithm successfully balances pricing and stocking decisions without needing to fully reconstruct hidden demand distributions or rely on separate exploration phases.

What Problem Does This Paper Address?

Online retailers must constantly balance two levers: how much to charge for a product (pricing) and how much stock to make available (inventory). This task becomes incredibly difficult due to censored demand: if a product sells out, the retailer only sees the units sold, leaving the true total potential demand a mystery. This creates a challenging exploration-exploitation dilemma where stocking too little hides valuable market data, while stocking too much incurs heavy holding costs.

While prior work has tackled censored demand in isolated, context-free settings, real-world retail environments are highly dynamic. Customer willingness-to-pay shifts based on changing features like seasons, product categories, or demographics (contexts). This paper addresses the challenge of learning a context-dependent pricing and stocking policy entirely online from censored sales data, without assuming a specific parametric formula for demand or ever directly observing true profit.

Methods

The authors propose the Mean-Calibrated Kernel UCB (MCK-UCB) algorithm, which coordinates three moving pieces to learn efficiently while serving customers:

  1. Observable Sales Proxy & Calibration: Because true profit cannot be computed during stockouts, the authors construct an observable score: $$Y(p, y, O) = (p + b)O - h_c(y - O)$$ (where $O$ is observed sales, $b$ is lost-sales cost, and $h_c$ is holding cost). While this proxy preserves the optimal inventory choice, it introduces a price-dependent bias. The algorithm fixes this by subtracting a "mean calibration" term derived from a lower demand quantile, ensuring that prices can be accurately ranked.

  2. Two-Resolution Asynchronous Inventory Profiling: To make the calibration quantile visible without causing massive inventory value loss, a profiler searches for safe stock levels using only binary stockout indicators. This profiling runs asynchronously over a coarse grid of context cells and price anchors, keeping exploration costs low.

  3. Contextual UCB Layer: Once a context cell is safely profiled, the algorithm transitions to price learning on a fine grid. It pools historical sales data from nearby market contexts using kernel smoothing to construct optimistic upper confidence bounds (UCB) for price selection.

Datasets

The paper evaluates the algorithm using controlled synthetic simulations designed to precisely isolate and analyze the impacts of context dimension ($d$), Hölder smoothness ($\alpha$), and demand censoring:

  • Environment: A homoskedastic model where the residual noise follows a uniform distribution ($F_x \equiv \text{Unif}[-a, a]$).
  • Contexts: Contexts are drawn uniformly from $[0, 1]^d$ for dimensions $d \in \{1, 2\}$.
  • Demand Surfaces: Non-linear location surfaces (incorporating sinusoidal, exponential, and centered cusp functions) are designed to simulate realistic variations in willingness-to-pay and market size across different contexts.

Key Insights and Ideas

  • You don't need to uncover the hidden tail: A major insight is that the seller does not need to fully reconstruct the unobserved demand distribution hidden by stockouts. They only need an observable signal that preserves the correct ordering of choices.
  • Decoupling resolutions saves regret: Profiling inventory on a coarse grid while optimizing prices on a fine grid allows the algorithm to quickly secure a safe data-collection regime without wasting rounds on fine-grained inventory exploration.
  • Quantifying the cost of context: By proving matching minimax upper and lower bounds, the authors show that higher context dimensionality ($d$) fundamentally slows down learning, but smoother profit variations ($\alpha$) allow faster information sharing across similar market conditions.

Key Results

  • Theoretical Optimality: The authors prove tight minimax regret rates. Under Lipschitz price values, the regret scales as $\tilde{\Theta}(T^{\frac{d+2\alpha}{d+3\alpha}})$. For twice-smooth price values, it improves to $\tilde{\Theta}(T^{\frac{2d+3\alpha}{2d+5\alpha}})$.
  • Empirical Performance: In 2D simulations ($T=8000$), MCK-UCB significantly outperformed non-contextual baselines from prior literature (CWZ and SALA), achieving a mean cumulative regret of 2570.1 compared to CWZ's 4957.7 and SALA's 5482.1.
Two-dimensional baseline comparison
  • Robustness: The algorithm demonstrates strong empirical robustness to smoothness mismatches. Overestimating the environmental smoothness parameter ($\hat{\alpha} = 1$ when the true $\alpha_0 = 0.5$) actually yielded the lowest mean regret in practice.
Smoothness mismatch sensitivity

Limitations and Future Work

  • Per-Period Model: The current formulation assumes perishable stock or immediate replenishment between periods, meaning there is no leftover inventory carryover or supply lead time across periods.
  • Shared-Noise Structure: The location-model assumption requires that changing the price shifts the demand location but leaves the residual noise distribution shape unchanged within a given context. It does not cover arbitrary price-dependent noise distributions.
  • Future Directions: Extending the framework to dynamic inventory states (multi-period carryover), weaker feedback loops, and more general conditional demand laws are highlighted as natural next steps.

Summary updated

BibTeX
@misc{han2026nonparametric,
  author = {Zean Han and Jing Liang and Ruihan Lin and Zezhen Ding and Jiheng Zhang},
  title = {{Nonparametric Contextual Pricing and Inventory Learning under Censored Demand}},
  year = {2026},
  eprint = {2608.30944},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.30944},
}
Figure