Optimal Contextual Pricing under Agnostic Non-Lipschitz Demand

Jianyu Xu, Yu-Xiang WangNeurIPS 2026

TL;DR

Real-world demand curves aren’t smooth—consumers cluster around psychological price thresholds like $9.99, creating sudden "cliffs" in purchasing behavior. This paper introduces an algorithm for dynamic contextual pricing that handles arbitrary, discontinuous demand jumps without losing its footing, closing a longstanding theoretical gap by achieving optimal $\widetilde{O}(T^{2/3})$ regret in polynomial time.

What Problem Does This Paper Address?

Imagine selling items online one by one over $T$ rounds. For each buyer, you see a feature vector (context $x_t$), set a price $p_t$, and observe only a binary outcome: they bought it, or they walked away. You never see their true valuation—a classic challenge known as censored feedback. Assuming valuations are a linear function of context plus random noise ($y_t = x_t^\top \theta^\star + \xi_t$), your goal is to minimize regret: the cumulative revenue lost compared to an omniscient oracle.

Most existing algorithms assume the noise distribution is smooth or Lipschitz-continuous, allowing them to safely interpolate demand across nearby prices. In reality, psychological thresholds and distinct buyer subpopulations create mass points ("atoms") and sharp discontinuities in demand. A tiny price nudge can accidentally push you off a demand cliff, breaking standard interpolation tricks.

Until now, if you refused to make smoothness assumptions ("agnostic" noise), the best algorithm suffered $\widetilde{O}(T^{3/4})$ regret, leaving an open gap above the known $\Omega(T^{2/3})$ theoretical floor.

Comparison of dynamic pricing regret bounds across different noise assumptions.

Methods

The authors introduce Conservative-Markdown Redirect-UCB Pricing (CMRUP), which reduces this high-dimensional contextual problem into a clean 1D search on a discretized grid of noise residuals (with grid spacing proportional to $\Delta \approx T^{-1/3}$). It runs in three stages:

  1. Randomized Parameter Estimation (Standard): For the first $\lceil T^{2/3} \rceil$ rounds, the algorithm posts uniformly random prices. This converts binary buy/no-buy clicks into unbiased linear signals, allowing ordinary least-squares to estimate the context weights $\widehat{\theta}$ within an error bound of $\Delta$.
  2. Conservative Markdown Probes (Novel): After an initial warmup stage, how do you test a grid point when your linear prediction might be off by $\Delta$ and a demand cliff could be right next to you? You mark the price down by $3\Delta$. This deliberate buffer guarantees the true effective noise residual lands cleanly inside an adjacent grid interval, "sandwiching" the purchase probability between two grid levels regardless of jumps.
  3. Adaptive Pricing with One-Step Redirection (Novel): Using Upper Confidence Bounds (UCB), the algorithm picks the most promising grid index $j_t$. If uncertainty at $j_t$ is high (confidence radius $> \Delta$), it probes $j_t$ directly—risking a cliff jump, but gaining vital information. Once uncertainty shrinks to $\le \Delta$, it redirects one step left to index $j_t - 1$. That slight price cut costs a tiny $O(\Delta)$ in revenue, but guarantees you stay on the safe side of any demand cliff!

Datasets

Because this is primarily a theoretical work, there are no real-world datasets or new benchmarks. Instead, the authors use synthetic data streams designed specifically to verify asymptotic regret scaling up to horizon $T = 1,024,000$.

Contexts are 5-dimensional i.i.d. vectors (an intercept plus four $\text{Unif}(0,1)$ features), tested against two noise profiles on $[-1, 1]$:

  • Uniform noise: Smooth, Lipschitz survival function.
  • Cliff noise: Contains an atom at $0$ with $0.3$ probability mass (and uniform otherwise), creating a sharp $30\%$ drop in demand right at residual zero.

Key Insights and Ideas

  • Respecting one-sided feedback: Under censored feedback, overpricing by a hair can cost you the entire sale (a massive drop in demand), while underpricing by a hair only costs you that tiny hair of margin. The $3\Delta$ markdown exploits this asymmetry.
  • Bounding "cliff casualties": By only probing uncertain grid points directly and redirecting to the left once confident, the algorithm ensures it only falls off a given demand cliff a logarithmic number of times before learning to step around it.
  • Sidestepping policy enumeration: Prior agnostic methods discretized an exponentially large space of pricing policies. Projecting onto a 1D residual grid makes CMRUP genuinely polynomial-time ($\widetilde{O}(T^{4/3} + T^{2/3}d^2 + d^3)$ total runtime).

Key Results

  • Theoretical Optimality: CMRUP achieves $\widetilde{O}(T^{2/3})$ expected cumulative regret under bounded agnostic noise and stochastic contexts, matching the classic Kleinberg & Leighton (2003) lower bound up to logarithmic factors.
  • Empirical Scaling: On log-log regret plots, CMRUP beats the prior agnostic baseline (a sampled-policy D2-EXP4). Under smooth uniform noise, CMRUP achieves a fitted regret exponent of $0.67$ (matching $2/3 \approx 0.667$) vs. D2-EXP4’s $0.78$. Under discontinuous cliff noise, CMRUP’s finite-horizon slope is $0.56$ while D2-EXP4 stays steep at $0.77$.
  • Ablation Diagnostics: Turning off the one-step redirect rule at $T = 1,024,000$ increases final regret by $11.5\%$ on uniform noise and $19.1\%$ on cliff noise, confirming the redirect mechanism actively shields revenue from discontinuities.

Limitations and Future Work

  • Stochastic vs. Adversarial Contexts: CMRUP requires i.i.d., well-conditioned contexts to learn $\widehat{\theta}$ in Stage 1. The older $\widetilde{O}(T^{3/4})$ D2-EXP4 algorithm still holds the crown when contexts are chosen adversarially.
  • Dimension Scaling: While optimal in horizon $T$, the bound scales as $\widetilde{O}((1 + \sqrt{d}/\lambda_0)T^{2/3})$, which is not necessarily optimal if feature dimension $d$ grows alongside $T$.
  • Known Horizon & Price Buffers: The algorithm assumes a known horizon $T$ and a strict interior price buffer ($\kappa > 0$) so markdown prices don't clip at $0$ or $B$. Extending this to horizon-free operation, boundary-clipping regimes, and richer context processes are highlighted as natural next steps.

Summary updated

Abstract

We study contextual dynamic pricing with linear valuations and bounded-support agnostic noise, whose induced demand curve may be non-Lipschitz with arbitrary jumps and atoms. Such discontinuities break the cross-context interpolation arguments used by smooth-demand pricing algorithms, while the best previous method achieved only $\widetilde O(T^{3/4})$ regret. We propose Conservative-Markdown Redirect-UCB Pricing, a polynomial-time algorithm that combines randomized parameter estimation, conservative residual-grid probing, and confidence-based one-step redirection. Our algorithm achieves $\widetilde O(T^{2/3})$ optimal regret, matching the known lower bounds of Kleinberg and Leighton (2003) up to logarithmic factors and improving over the previous upper bound of Xu and Wang (2022). Under stochastic well-conditioned contexts, this closes the longstanding open regret gap in linear-valuation contextual pricing under agnostic non-Lipschitz noise distributions.
BibTeX
@inproceedings{xu2026optimal,
  author = {Jianyu Xu and Yu-Xiang Wang},
  title = {{Optimal Contextual Pricing under Agnostic Non-Lipschitz Demand}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=giaq1R0M4q},
}
Figure