A Bayesian Approach to Contextual Dynamic Pricing using the Proportional Hazards Model with Discrete Price Data

Dongguen Kim, Young-Geun Choi, Minwoo ChaeNeurIPS 2025

Executive Summary

The BayesCoxCP algorithm introduces a Bayesian, semi-parametric approach to contextual dynamic pricing that specifically exploits a common real-world constraint: prices are often discrete rather than continuous. By leveraging the sparsity of price grids, the authors prove that their method achieves faster convergence and lower regret than traditional models, effectively bridging the gap between theoretical pricing research and practical retail applications.

The Challenge of Discrete Pricing and Censored Data

In e-commerce and revenue management, contextual dynamic pricing is the practice of setting the optimal price for a product based on variables like customer demographics, product attributes, and market conditions.

Most existing algorithms assume that prices can take any value on a continuous spectrum. In reality, however, retailers typically stick to discrete price points (e.g., $9.99, $14.99, or specific discount tiers) for psychological impact or ease of communication.

The primary technical challenge in this domain is censored data. When a seller posts a price $P$, they only observe a binary outcome: the customer either buys the product ($Y=1$) or does not ($Y=0$). The customer's actual valuation $V$ remains hidden; the seller only learns whether $V > P$ or $V \leq P$. This paper addresses how to maximize revenue in this binary choice setting while accounting for the discrete nature of available price points—a constraint that the authors demonstrate can actually be a mathematical advantage.

Methodology: The BayesCoxCP Algorithm

The authors propose BayesCoxCP, an algorithm built on three main pillars:

  1. Cox Proportional Hazards (PH) Model: Instead of assuming a specific parametric distribution for customer valuations (such as a normal distribution), the algorithm uses a semi-parametric Cox model. This allows for a flexible, non-parametric "baseline" demand curve while utilizing a parametric component to capture the effects of different contexts (covariates).
  2. Bayesian Framework: The model places a Gamma prior on the baseline hazard function and a continuous prior on the contextual coefficients ($\beta$). This structure allows the algorithm to continuously update its beliefs about demand as new sales data arrives.
  3. Epoch-Based Exploration: The algorithm operates in "epochs" of increasing length. Within each epoch, it balances exploitation (setting the price deemed optimal based on current data) and exploration (occasionally selecting a random price from the grid to learn more about the demand curve).

Crucially, the algorithm's exploration parameter is designed to adapt to the sparsity ($\gamma$) of the price grid, which represents the number of available price points relative to the total time horizon.

Key Insights and Theoretical Guarantees

  • Discreteness as a "Blessing": The core insight of the paper is that a discrete price grid actually simplifies the estimation of the demand curve. If the grid is sparse, the model can converge on the true parameters much faster than it would in a continuous setting.
  • The 1/3 Phase Transition: The researchers identified a theoretical threshold for grid sparsity at $\gamma = 1/3$. When the grid is sparser than this threshold, the "regret" (revenue lost due to learning) grows much more slowly ($T^{(1+\gamma)/2}$) compared to the dense or continuous case ($T^{2/3}$).
  • Adaptivity: BayesCoxCP does not need to be explicitly programmed with the grid's sparsity level. It naturally adapts its learning rate to the available price points, making it highly robust across different retail environments.
Comparison of contextual dynamic pricing methods, highlighting BayesCoxCP's unique adaptation to discrete support and optimal regret bounds.

Experimental Results

The paper evaluates the algorithm using synthetic numerical experiments designed to mimic complex real-world demand, utilizing 5-dimensional covariate vectors and varying the number of discrete price points ($K$) from 10 to 30,000 over a time horizon of $T=30,000$ steps.

  • Theoretical Optimality: The authors established high-probability regret bounds and proved a minimax lower bound, demonstrating that their algorithm is nearly optimal up to logarithmic factors.
  • Superior Performance: In simulations, BayesCoxCP significantly outperformed the current state-of-the-art semi-parametric method. The performance gap was most dramatic when the price grid was sparse ($K=10$ or $K=100$), where BayesCoxCP achieved substantially lower cumulative regret.
  • Computational Efficiency: By utilizing Variational Bayes (VB) for parameter estimation, the algorithm remains computationally feasible even as the dataset grows, offering a practical advantage over traditional Markov Chain Monte Carlo (MCMC) methods.

Limitations and Future Work

While the paper optimally handles the time horizon $T$, the authors note that the dependency on the dimension of the features ($d$) in their lower bound is not yet fully resolved. Additionally, the current lower bound proof applies to the non-contextual case; extending this to a full contextual minimax lower bound remains an open problem. Finally, while the Cox PH model is highly flexible and performs well on synthetic data, validating these gains on actual retail transaction logs is a critical next step for real-world deployment.

Summary updated

BibTeX
@inproceedings{kim2025bayesian,
  author = {Dongguen Kim and Young-Geun Choi and Minwoo Chae},
  title = {{A Bayesian Approach to Contextual Dynamic Pricing using the Proportional Hazards Model with Discrete Price Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=qpFAZyMhwz},
}
Figure