Context-Based Dynamic Pricing with Partially Linear Demand Model

Jinzhi Bu, David Simchi-Levi, Chonghuan WangNeurIPS 2022

In modern e-commerce, setting the right price at the right time is crucial. Sellers increasingly rely on "context"—data such as customer demographics, seasonality, or product features—to inform dynamic pricing strategies. However, modeling how demand responds to both price and context presents a significant challenge. This NeurIPS 2022 paper explores the "sweet spot" between simple linear models and complex non-parametric models, introducing semi-parametric "partially linear" models that achieve theoretically optimal learning rates.

The Challenge: Rigidity vs. Complexity

To predict demand based on price ($p$) and context ($x$), researchers typically choose between two extremes:

  1. Parametric Models (e.g., Linear): These assume demand is a simple linear combination of price and context. While computationally efficient and easy to interpret, they often fail in practice because real-world demand curves are rarely perfectly straight lines, leading to model mis-specification.
  2. Non-parametric Models: These make minimal assumptions about the shape of the demand function. Though highly robust, they suffer from the "curse of dimensionality." They require massive amounts of data to learn effectively, making them too slow to adapt in fast-moving markets.

The authors bridge this gap by creating models flexible enough to handle real-world complexity but structured enough to learn quickly.

Partially Linear Demand Models

The paper introduces two specific semi-parametric models that decouple the effects of price and context:

  • Demand with Partially Linear Pricing Effect (DPLPE): Demand is modeled as $bp + g(x)$. Here, the effect of price ($b$) is linear, but the effect of context ($g(x)$) is a complex, unknown function.
  • Demand with Partially Linear Contextual Effect (DPLCE): Demand is modeled as $f(p) + a^\top x$. In this case, the context effect ($a$) is linear, but the price-demand relationship ($f(p)$) is a complex, unknown smooth function.

To optimize pricing under these models, the authors propose two novel online learning algorithms:

  • ADPLP (for DPLPE): This algorithm uses "contextual space binning," dividing the context space into small bins to approximate the non-parametric part. Crucially, it employs random shock pricing—adding small, deliberate price fluctuations—to accurately estimate the linear price sensitivity ($b$) without interference from the context. By leveraging all historical data to estimate the global price sensitivity, it significantly speeds up learning compared to traditional binning methods.
  • ADPLC (for DPLCE): This approach uses local polynomial approximation to estimate the non-parametric price function. It adapts the "Optimism-in-the-Face-of-Uncertainty" (OFU) principle from the multi-armed bandit literature, essentially "hoping" for the best possible revenue to encourage exploration of different price points.

Theoretical Guarantees and Optimal Regret

A major contribution of this work is not just proposing algorithms, but proving they are theoretically optimal. The authors establish "matching lower bounds," meaning no other algorithm can theoretically perform significantly better under these specific model assumptions.

Comparison of regret bounds across different dynamic pricing models

As shown in the comparison table, the optimal regret rate for the DPLPE model is $\widetilde{\Theta}(\sqrt{T} \lor T^{\frac{d}{d+2\beta}})$, where $d$ is the context dimension and $\beta$ represents the smoothness of the context function. For the DPLCE model, the optimal rate is $\widetilde{\Theta}(\sqrt{T} \lor (\delta T^{k+1})^{\frac{1}{2k+1}})$. These rates demonstrate that learning speed (regret) is directly tied to how "smooth" the unknown functions are, and they represent a significant improvement over fully non-parametric models.

Empirical Performance

The authors validated their theories using synthetic numerical simulations. For the DPLPE model, they simulated demand using a complex Euclidean distance-based function for context; for the DPLCE model, they used a non-linear power function for the price effect.

In these simulations, ADPLP and ADPLC consistently outperformed benchmark algorithms, including "Linear Greedy" algorithms (which fail due to mis-specification) and standard "Random Price Shock" methods (which struggle with non-parametric contexts). The experiments also confirmed that while regret increases as the context dimension ($d$) grows, the semi-parametric approach manages this dimensional scaling much better than traditional methods.

Limitations and Future Directions

While theoretically robust, the current algorithms require prior knowledge of the "smoothness" parameters ($\beta, k, \delta$). In real-world scenarios, these parameters are often unknown. A key direction for future work is developing "parameter-free" versions of these algorithms capable of automatically adapting to the smoothness of the demand curve. Additionally, refining the lower bound proofs for the DPLCE model to explicitly include the context dimension ($d$) would provide an even tighter theoretical characterization of the problem.

Summary updated

BibTeX
@inproceedings{bu2022context,
  author = {Jinzhi Bu and David Simchi-Levi and Chonghuan Wang},
  title = {{Context-Based Dynamic Pricing with Partially Linear Demand Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=cLx3kbl2AI},
}
Figure