Semi-Parametric Contextual Pricing Algorithm using Cox Proportional Hazards Model

Young-Geun Choi, Gi-Soo Kim, Yunseo Choi, Wooseong Cho, Myunghee Cho Paik, Min-hwan OhICML 2023

Introduction

In contextual dynamic pricing, sellers set prices based on observable features—such as customer demographics or product specifications—to maximize revenue over time. The fundamental challenge in this domain is Type-I interval censoring: sellers never observe a customer's true maximum willingness to pay (their valuation). Instead, they only observe a binary outcome indicating whether the customer purchased the product at the offered price.

Historically, models addressing this problem have been either strictly parametric (assuming rigid distributions like Normal or Log-normal) or semi-parametric (combining a parametric context effect with a flexible, non-parametric baseline). However, existing semi-parametric models based on linear or log-linear structures are notoriously difficult to analyze mathematically and computationally expensive to solve when the baseline distribution is unknown.

To overcome these hurdles, researchers have introduced CoxCP, the first contextual dynamic pricing algorithm to leverage the Cox Proportional Hazards (PH) model. By framing customer valuation as a "survival" problem, this novel approach achieves state-of-the-art regret bounds and massive computational speedups.

The Cox Proportional Hazards Model in Pricing

The Cox PH model is a staple of survival analysis in medical statistics, typically used to model the risk of death or failure over time. In the context of economics and pricing, the "hazard rate" translates perfectly to customer attrition: as the price increases, the "risk" of a customer walking away increases.

Instead of modeling valuation directly, the authors model the hazard rate—the conditional probability that a customer will drop out of the purchasing process as the price increases slightly. The PH model assumes that the context effect acts as a multiplier on a baseline hazard function:

$$ \lambda(p|x_t) = \lambda_0(p) \exp(x_t^T \beta) $$

This structure is highly advantageous because it cleanly separates the context effect ($\beta$) from the baseline valuation distribution. Unlike linear models where the context effect is nested inside the baseline function (e.g., $F_0(p - x^T\beta)$), the Cox model places it as an external exponent. This separation allows for much more efficient semi-parametric estimation and ensures support stability—meaning the optimal price always stays within the valid range of the baseline valuation, preventing absurd recommendations like negative prices.

The CoxCP Algorithm

CoxCP is an epoch-based algorithm that utilizes the "doubling trick" to alternate between learning from past data and earning revenue. Its core mechanics include:

  1. Estimation: At the beginning of each epoch, the algorithm uses a Nonparametric Maximum Likelihood Estimator (NPMLE) to update its estimates of the context parameters ($\beta$) and the baseline survival function based on all historical data.
  2. Pricing: Throughout the epoch, CoxCP offers the "myopic" optimal price—the price that maximizes expected revenue given the current model estimates.
  3. Exploration: An optional $\epsilon$-greedy heuristic is incorporated to ensure the algorithm continues exploring the valuation distribution across different price ranges, preventing it from getting stuck in suboptimal pricing tiers.

Empirical and Theoretical Results

Because real-world pricing data with ground-truth valuations is virtually non-existent, the researchers evaluated CoxCP using synthetic Monte Carlo simulations over a horizon of $T = 30,000$ rounds, utilizing 5-dimensional context vectors and complex mixture distributions to test the algorithm against non-standard, multi-modal valuation shapes.

  • Theoretical Superiority: The authors proved a high-probability regret bound of $\tilde{O}(T^{2/3}d)$. This significantly improves upon previous semi-parametric bounds by reducing the dependence on the dimensionality $d$. Furthermore, if the baseline is known, the regret bound improves to $O(d \log T)$.
  • Massive Computational Speedup: In simulations, CoxCP proved to be roughly 500x faster than competing algorithms like Fan et al. (2022) and 1000x faster than Shah et al. (2019). It successfully ran the full 30,000-round simulation in approximately 20 seconds.
  • Robust Performance: CoxCP consistently achieved the lowest cumulative regret across all tested scenarios, even when the underlying data did not perfectly adhere to the Proportional Hazards assumption.

Limitations and Future Work

While CoxCP represents a significant leap forward, several avenues for future research remain:

  • The Dimensionality Gap: Although the $T^{2/3}$ term matches the known theoretical lower bound for this class of problems, there remains a gap in the dimensionality factor ($d$) that future optimizations may close.
  • Adversarial Contexts: The current theoretical proofs assume that contexts are drawn from a stable, stochastic distribution. Adapting CoxCP to handle "adversarial" contexts—where features might be chosen to trick the learner—is an open challenge.
  • Real-World Application: As with most theoretical pricing models, transitioning from controlled simulations to messy, real-world retail environments is the ultimate test of the algorithm's viability.

Summary updated

BibTeX
@inproceedings{choi2023semi,
  author = {Young-Geun Choi and Gi-Soo Kim and Yunseo Choi and Wooseong Cho and Myunghee Cho Paik and Min-hwan Oh},
  title = {{Semi-Parametric Contextual Pricing Algorithm using Cox Proportional Hazards Model}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=cnSeWqTf2n},
}
Figure