EconBase
← Back to paper

Semi-parametric dynamic contextual pricing

Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.

44,899 characters · 13 sections · 32 citation commands

Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.

Semi-Parametric Dynamic Contextual Pricing

abstractMotivated by the application of real-time pricing in e-commerce platforms, we consider the problem of revenue-maximization in a setting where the seller can leverage contextual information describing the customer's history and the product's type to predict her valuation of the product. However, her true valuation is unobservable to the seller, only binary outcome in the form of success-failure of a transaction is observed. Unlike in usual contextual bandit settings, the optimal price/arm given a covariate in our setting is sensitive to the detailed characteristics of the residual uncertainty distribution. We develop a semi-parametric model in which the residual distribution is non-parametric and provide the first algorithm which learns both regression parameters and residual distribution with $\tilde O(\sqrt{n})$ regret. We empirically test a scalable implementation of our algorithm and observe good performance.

Introduction

Many e-commerce platforms are experimenting with approaches to personalized dynamic pricing based on the customer's {\em context} (i.e.\ customer's prior search/purchase history and the product's type). However, the mapping from context to optimal price needs to be learned. Our paper develops a bandit learning approach towards solving this problem motivated by practical considerations faced by online platforms. In our model, customers arrive sequentially, and each customer is interested in buying one product. The customer purchases the product if her {\em valuation} (unobserved by the platform) for the product exceeds the price set by the seller. The platform observes the covariate vector corresponding to the context, and chooses a price. The customer buys the item if and only if the price is lower than her valuation.

We emphasize three salient features of this model; taken together, these are the features that distinguish our work. {\em First}, feedback is only binary: either the customer buys the item, or she does not. In other words, the platform must learn from censored feedback. This type of binary feedback is a common feature of practical demand estimation problems, since typically exact observation of the valuation of a customer is not possible.

{\em Second}, the platform must learn the functional form of the relationship between the covariates and the expected valuation. In our work, we assume a parametric model for this relationship. In particular, we presume that the expected value of the logarithm of the valuation is linear in the covariates. Among other things, this formulation has the benefit that it ensures valuations are always nonnegative. Further, from a technical standpoint, we demonstrate that this formulation also admits efficient estimation of the parametric model.

{\em Third}, the platform must also learn the distribution of residual uncertainty that determines the actual valuation given the covariates; in other words, the distribution of the {\em error} between the expected logarithm of the valuation, and the actual logarithm of the valuation, given covariates. In our work we make minimal assumptions about the distribution of this residual uncertainty. Thus while the functional relationship between covariates and the expected logarithm of the valuation is parametric (i.e., linear), the distribution of the error is nonparametric; for this reason, we refer to our model as a {\em semi-parametric} dynamic pricing model.

The challenge is to ensure that we can efficiently learn both the coefficients in the parametric model, as well as the distribution of the error. A key observation we leverage is that our model exhibits {\em free exploration}: testing a single covariate-vector-to-price mapping at a given time can simultaneously provide information about {\em several} such mappings. We develop an arm elimination approach which maintains a set of active prices at each time, where the set depends on the covariate vector of the current customer. The set is reduced over time by eliminating empirically suboptimal choices.

We analyze our approach both theoretically and empirically. We analyze regret against the following standard oracle: the policy that optimally chooses prices given the true coefficients in the parametric linear model, as well as the distribution of the error, but without knowledge of the exact valuation of each arriving customer. Regret of our policy scales as $\tilde O(\sqrt n)$ with respect to time horizon $n$, which is optimal. Further, it scales polynomially in covariate dimension $d$, as well as in two smoothness parameters $\kappa_1$ and $\kappa_2$ defined as part of our model. In addition, we develop a scalable implementation of our approach which leverages a semi-parametric regression technique based on convex optimization. Our simulations show that this scalable policy performs well.

Related work

{\bf Non-contextual dynamic pricing.} There is a significant literature on regret analysis of the dynamic pricing problem without covariates; see Boe15 for a detailed survey. For example, the works Gue08,BrR12,BoZ13,Boe14,KeZ14 consider a parametric model whereas KlL03 consider a non-parametric model for the unknown demand function. Our methodology is most aligned to that of KlL03, in that we extend their techniques to incorporate side-information from the covariates.

{\bf Contextual dynamic pricing.} Recently, the problem of dynamic pricing with high-dimensional covariates has garnered significant interest among researchers; see, e.g., JaN16,BaK19,CLP16,MLS18,QiB19,NSW19. In summary, in contrast to the prior works in dynamic pricing with covariates, ours is the first work to address a setting where the only feedback from each transaction is binary and the residual uncertainty given covariates is non-parametric, see Table (ref). We believe that these features are relevant to several online platforms implementing dynamic pricing with high-dimensional covariates, and thus our work bridges a gap between the state-of-the-art in the academic literature and practical considerations. Below, we describe some of these prior works below.

enumerateJaN16 consider a model where the expected valuation given covariates is a linear function of the covariates, and where the noise distribution is known. In other words, their model is fully parametric. Under certain conditions, they show that the expected regret is logarithmic in time horizon $n$. They also briefly consider a scenario where the noise distribution is unknown, but the expected regret they obtain there is linear in $n$. • BaK19 consider a semi-parametric setting where the relationship between the expected demand, the covariates, and prices is parametric (in particular, generalized linear), and the residual noise is non-parametric; however, in their setting the true demand (analogous to the valuation in our model) is observed by the platform. Their model, as a special case, allows for binary feedback as well; however, in this special case the model is fully parametric. Under a sparsity assumption where only $s$ out of $d$ covariates impact the demand, they show that the optimal regret is $\tilde O(s\sqrt{n} \log d)$. • QiB19 considers a model where the expected demand is a linear function of covariates and prices, and where the true demand is observed by the platform. Under certain conditions they show that a greedy iterative least squares policy is optimal and achieves $O(\log T)$ regret. • NSW19 considers a setup where the model is misspecified; in particular, the expected demand is assumed to be a linear function of covariates and prices, but in reality the relationship of demand to covariates is nonlinear. Here again, the true demand at each time is observed by the platform. Due to misspecification, the noise term in the assumed model is correlated with the price. They develop an optimal policy where a random perturbation is added to a greedy choice of price, and use the perturbation as an instrument to obtain unbiased estimates. • CLP16 consider a model similar to ours but with known noise distribution, and with the covariates chosen adversarially. CLP16 develop an algorithm based on an ellipsoid method for solving a system of linear equations which has $O(d^2 \log(n/d))$ regret. MLS18 consider a variant which generalizes linear model to Lipschitz function but with no noise.

{\bf Learning techniques:} There is extensive prior work on high-dimensional contextual bandits, e.g., langford2008epoch,slivkins2011contextual,perchet2013multi,GTM17,KWS18; however, their techniques do not directly apply to our setup (in part due to the censored nature of feedback). Our work is also loosely related to the works on learning and auctions, e.g. ARS14,MoR16. We leverage semi-parametric regression technique with binary feedback from PlV13 to reduce computational complexity of our algorithm.

There are some similarities between our work and the literature on bandits with side information, e.g., MaS11,ACG13,CKL12,ATT16,LST18. For example, in their work too there is free exploration where testing for one arm reveals the reward information for a subset of arms, where the subset may be a function of the chosen action. However, there are some crucial differences. In particular, these works assume (a) a discrete set of arms, (b) the existence of a sequence of graphs indexed by time (possibly fixed) with the arms as its nodes, (c) the action involves pulling an arm, and at each time the reward at each neighbor of the pulled arm is revealed. However, in our setting, it is important to model the set of prices, and thus the set of covariate-vector-to-price mappings as described above, as a continuous set since a constant error in price leads to linear regret. While in our DEEP-C policy we discretize the set of covariate-vector-to-price mappings into a finite set of arms (which scale with time horizon), the above assumptions are still not met due to the following. Each arm in our setting corresponds to a subset of prices/actions. The subset of arms for which the reward is revealed at time $t$ depends on the covariate $x_t$, and the exact price $p_t$ from the above subset. Thus, the assumption of a pre-defined graph structure is not satisfied.

table*[table* omitted — 1,020 chars of source]

Preliminaries

In this section we first describe our model and then our objective, which is to minimize regret relative to a natural oracle policy.

Model

At each time $t \in \{1, 2, \ldots ,n\}$, we have a new user arrival with covariate vector $X_t$ taking values in $\mathbb{R}^d$ for $d\ge 1$. Throughout the paper all vectors are encoded as column vectors. The platform observes $X_t$ upon the arrival of the user. The user's reservation value $V_t\in \mathbb{R}$ is modeled as

equation[equation omitted — 81 chars of source]

where $\theta_0 \in \mathbb{R}^d$ is a fixed unknown parameter vector, and $Z'_t$ for $t \in \{1, 2, \ldots ,n\}$ captures the residual uncertainty in demand given covariates.

Similar to the linear model $V_t = \theta_0^\intercal X_t + Z'_t$, this model is quite flexible in that linearity is a restriction only on the parameters while the predictor variables themselves can be arbitrarily transformed. However, our formulation additionally has the feature that it ensures that $V_t>0$ for each $t$, a key practical consideration. We conjecture that unlike our model, the linear model $V_t = \theta_0^\intercal X_t + Z'_t$ does not admit a learning algorithm with $\tilde O(\sqrt n)$ regret. This is due to censored nature of feedback, the structure of revenue as a function of price, and our non-parametric assumption on the distribution of $Z'_t$ as described below. Also, exponential sensitivity of the valuation with respect to covariate magnitudes can be avoided by using a logarithmic transformation of the covariates themselves. More generally, one may augment our approach with a machine learning algorithm which learns an appropriate transformation to fit the data well. In this paper, however, we focus on valuation model as given by (ref).

Equivalently to (ref), we have $$V_t = e^{\theta_0^\intercal X_t} Z_t,$$ where $Z_t = e^{Z'_t}$. Thus, $Z_t > 0$ for each $t$.

The platform sets price $p_t$, upon which the user buys the product if $V_t \ge p_t$. Without loss of generality, we will assume the setting where users buy the product; one can equivalently derive exactly the same results in a setting where users are sellers, and sell the product if $V_t \le p_t$. The revenue/reward at time $t$ is $p_t Y_t$ where $Y_t = \mathbbm{1}_{V_t\geq p_t}$. We assume that $p_t$ is $\sigma\left(X_1, \ldots, X_{t-1}, X_t, Y_1,\ldots, Y_{t-1}, U_1, \ldots, U_t\right)$ measurable, where $U_t$ for each $t\ge1$ is an auxiliary $U[0,1]$ random variable independent of the sources of randomness in the past. In other words, platform does not know the future but it can use randomized algorithms which may leverage past covariates, current covariate, and binary feedback from the past.

The goal of the platform is to design a pricing policy $\{p_t\}_{t\in \{1, \ldots, n\}}$ to maximize the total reward $$\Gamma_n = \sum_{t=1}^n Y_t p_t.$$ In this paper we are interested in the performance characterization of optimal pricing policies as the time horizon $n$ grows large.

We make the following assumption on statistics of $X_t$ and $Z_t$.

assumptionWe assume that $\{X_t\}_t$ and $\{Z_t\}_t$ are i.i.d.\ and mutually independent. Their distributions are unknown to the platform. Their supports $\mathcal{X}$ and $\mathcal{Z}$ are compact and known. In particular, we assume that $\mathcal{X} \subset \left[-\frac{1}{2},\frac{1}{2}\right]^d$ and $\mathcal{Z}$ is an interval in $[0,1]$.

A(ref) can be significantly relaxed, as we discuss in Appendix (ref) (both in terms of the i.i.d.\ distribution of random variables, and the compactness of their supports).

assumptionThe unknown parameter vector $\theta_0$ lies within a known, connected, compact set $\Theta \subset \mathbb R^d$. In particular, $\Theta \subset [0,1]^d$.

It follows from A(ref) and A(ref) that we can compute reals $0<\alpha_1<\alpha_2$ such that for all $(z,x,\theta) \in \mathcal Z \times \mathcal X \times \Theta$ we have $$ \alpha_1 \le ze^{\theta^\intercal x} \le \alpha_2.$$ Thus, the valuation at each time is known to be in the set $[\alpha_1,\alpha_2]$, and in turn the platform may always choose price from this set. Note also that, since $\mathcal{Z} \subset [0,1]$, for each $(x,\theta) \in \mathcal X \time \Theta$, we have that $ \alpha_1 \le e^{\theta^\intercal x} \le \alpha_2.$

The oracle and regret

It is common in multiarmed bandit problems to measure the performance of an algorithm against a benchmark, or \ensuremath{\mathsf{Oracle}}, which may have more information than the platform, and for which the optimal policy is easier to characterize. Likewise, we measure the performance of our algorithm against the following \ensuremath{\mathsf{Oracle}}.

definitionThe \ensuremath{\mathsf{Oracle}} knows the true value of $\theta_0$ and the distribution of $Z_t$.

Now, let $$F(z) = z \ensuremath{\mathbb{P}}(Z_1\ge z).$$ The following proposition is easy to show, so the proof is omitted.

propositionThe following pricing policy is optimal for the \ensuremath{\mathsf{Oracle}}: At each time $t$ set price $p_t = z^* e^{\theta_0^\intercal X_t} $ where $z^* = \arg\sup_{z} F(z)$.

Clearly, the total reward obtained by the Oracle with this policy, denoted as $\Gamma^*_n$, satisfies $\ensuremath{\mathbb{E}}[\Gamma^*_n] = n z^* \ensuremath{\mathbb{E}}[e^{\theta_0^\intercal X_1}] $.

{\bf Our goal: Regret minimization.} Given a feasible policy, define the regret against the Oracle as $R_n$:

$$R_n = \Gamma^*_n - \Gamma_n.$$

Our goal in this paper is to design a pricing policy which minimizes $\ensuremath{\mathbb{E}}[R_n]$ asymptotically to leading order in $n$.

Smoothness Assumption

In addition to A(ref) and A(ref), we make a smoothness assumption described below.

Let $$r(z,\theta) = z \ensuremath{\mathbb{E}}\left[e^{\theta^\intercal X_1} {\bf 1}\left\{Z_1e^{\theta_0^\intercal X_1} > z e^{\theta^\intercal X_1}\right\} \right],$$ which can be thought of as the expected revenue of a single transaction when the platform sets price $p=ze^{\theta^\intercal x}$ after observing a covariate $X = x$. We impose the following assumption on $r(z,\theta)$.

assumptionLet $\theta^{(l)}$ be the $l^{th}$ component of $\theta$, i.e., $\theta = (\theta^{(l)}: 1\le l \le d)$. We assume that there exist $\kappa_1,\kappa_2 >0$ such that for each $z \in \mathcal{Z}$ and $\theta \in \Theta$ we have $$ \kappa_1 \max\left\{ (z^* - z)^2, \max_{1 \leq l \leq d} ( \theta_0^{(\ell)} - \theta^{(l)})^2 \right\} \le r(z^*, \theta_0) - r(z,\theta) \le \frac{\kappa_2}{d+1} \| (z^* - z, \theta_0- \theta)\|^2 $$ where $\| (z,\theta)\|^2 = \left( z^2 + \sum_{l=1}^{d} (\theta^{(l)})^2 \right).$

Recall that $F(z) = z \ensuremath{\mathbb{P}}(Z_1\ge z)$. It follows from A(ref) and conditioning on $X_1$ that $$r(z,\theta) = \ensuremath{\mathbb{E}}\left[e^{\theta_0^\intercal X_1} F\left(e^{-\left(\theta_0-\theta \right)^\intercal X_1} z\right)\right].$$ We will use this representation throughout our development.

Note that A(ref) subsumes that $(z^*,\theta_0)$ is the unique optimizer of $r(z,\theta)$. This is true if $z^*$ is the unique maximizer of $F(z)$ and that $\theta_0$ is identifiable in the parameter space $\Theta$.

Below we will also provide sufficient conditions for A(ref) to hold. In particular, we develop sufficient conditions which are a natural analog of the assumptions made in KlL03.

Connection to assumptions in KlL03

The `stochastic valuations' model considered in KlL03 is equivalent to our model with no covariates, i.e., with $d=0$. When $d=0$ the revenue function $r(z,\theta)$ is equal to $F(z)$. In KlL03 it is assumed that $\{Z_t\}$ are i.i.d., and that $F(z)$ has bounded support. Clearly A(ref) and A(ref) are a natural analog to these assumptions. They also assume that $F(z)$ has unique optimizer, and is locally concave at the optimal value, i.e., $F''(z^*)<0$. We show below that a natural analog of these conditions are sufficient for A(ref) to hold.

Suppose that $(z^*,\theta_0)$ is the unique optimizer of $r(z,\theta)$. Also suppose that A(ref) and A(ref) hold. Then A(ref) holds if $r(z,\theta)$ is strictly locally concave at $(z^*,\theta_0)$, i.e., if the Hessian of $r(z,\theta)$ at $(z^*,\theta_0)$ exists and is negative definite. To see why this is the case, note that strict local concavity at $(z^*,\theta_0)$ implies that there exists an $\epsilon > 0$ such that the assumption holds for each $(z,\theta) \in \mathcal{B}_\epsilon(z^*,\theta_0)$ where $\mathcal{B}_\epsilon(z^*,\theta_0)$ is the $d+1$ dimensional ball with center $(z^*,\theta_0)$ and radius $\epsilon$. This, together with compactness of $\mathcal X$ and $\Theta$, implies A(ref).

It is somewhat surprising that to incorporate covariates in a setting where $F$ is non-parametric, only minor modifications are needed relative to the assumptions in KlL03. For completeness, in the Appendix we provide a class of examples for which it is easy to check that the Hessian is indeed negative definite and that all our assumptions are satisfied.

Pricing policies

Any successful algorithm must set prices to balance price {\em exploration} to learn $(\theta_0,z^*)$ with {\em exploitation} to maximize revenue. Because prices are adaptively controlled, the outputs $(Y_t: t=1,2,\ldots,n)$ will {\em not} be conditionally independent given the covariates $(X_t: t=1,2,\ldots,n)$, as is typically assumed in semi-parametric regression with binary outputs (e.g., see PlV13). This issue is referred to as {\em price endogeneity} in the pricing literature.

We address this problem by first designing our own bandit-learning policy, Dynamic Experimentation and Elimination of Prices with Covariates (DEEP-C), which uses only a basic statistical learning technique which dynamically eliminates sub-optimal values of $(\theta,z)$ by employing confidence intervals. At first glance, such a learning approach seems to suffer from the curse of dimensionality, in terms of both sample complexity and computational complexity. As we will see, our DEEP-C algorithm yields low sample complexity by cleverly exploiting the structure of our semi-parameteric model. We then address computational complexity by presenting a variant of our policy which incorporates sparse semi-parametric regression techniques.

The rest of the section is organized as follows. We first present the DEEP-C policy. We then discuss three variants: (a) DEEP-C with Rounds, a slight variant of DEEP-C which is a bit more complex to implement but simpler to analyze theoretically, and thus enables us to obtain $\tilde O(\sqrt{n})$ regret bounds; (b) Decoupled DEEP-C, which decouples the estimation of $\theta_0$ and $z^*$ and thus allows us to leverage low-complexity sparse semi-parametric regression to estimate $\theta_0$ but with the cost of $O(n^{2/3})$ regret; and (c) Sparse DEEP-C, which combines DEEP-C and sparse semi-parametric regression to achieve low complexity without decoupling to achieve the best of both worlds. We provide a theoretical analysis of the first variant, and use simulation to study the others.

While we discuss below the key ideas behind these three variants, their formal definitions are provided in Appendix (ref).

DEEP-C policy

We now describe DEEP-C. As noted in Proposition (ref), the \ensuremath{\mathsf{Oracle}} achieves optimal performance by choosing at each time a price $p_t = z^* e^{\theta_0^\intercal X_t}$, where $z^*$ is the maximizer of $F(z)$. We view the problem as a multi-armed bandit in the space $\mathcal{Z} \times \Theta$. Viewed this way, {\em before} the context at time $t$ arrives, the decision maker must choose a value $z \in \mathcal{Z}$ and a $\theta \in \Theta$. Once $X_t$ arrives, the price $p_t = z e^{\theta^\intercal X_t}$ is set, and revenue is realized. Through this lens, we can see that the \ensuremath{\mathsf{Oracle}} is equivalent to pulling the arm $(z^*, \theta_0)$ at every $t$ in the new multi-armed bandit we have defined. DEEP-C is an arm-elimination algorithm for this multi-armed bandit.

From a learning standpoint, the goal is to learn the optimal $(z^*, \theta_0)$, which at the first sight seems to suffer from the curse of dimensionality. However, we observe that in fact, our problem allows for “free exploration” that lets us to learn efficiently in this setting; in particular, given $X_t$, for each choice of price $p_t$ we {\em simultaneously} obtain information about the expected revenue for a {\em range} of pairs $(z, \theta)$. This is specifically because we observe the context $X_t$, and because of the particular structure of demand that we consider. However, to ensure that each candidate $(z, \theta)$ arm has sufficiently high probability of being pulled at any time step, DEEP-C selects prices at random from a set of active prices, and ensures that this set is kept small via arm-elimination. The speedup in learning thus afforded enables us to obtain low regret.

Formally, our procedure is defined as follows. We partition the support of $Z_1$ into intervals of length $n^{-1/4}$. If the boundary sets are smaller, we enlarge the support slightly (by an amount less than $n^{-1/4}$) so that each interval is of equal length, and equal to $n^{-1/4}$. Let the corresponding intervals be $\mathcal{Z}_1, \ldots, \mathcal{Z}_k$, and their centroids be $\zeta_1, \ldots, \zeta_k$ where $k$ is less than or equal to $n^{1/4}$. Similarly, for $l = 1, 2, \ldots, d$, we partition the projection of the support of $\theta_0$ into the $l^{th}$ dimension into $k_l$ intervals of equal length $n^{-1/4}$, with sets $\Theta^{(l)}_{1}, \ldots, \Theta^{(l)}_{k_l}$ and centroids $\theta^{(l)}_{1}, \ldots, \theta^{(l)}_{k_l}$. Again, if the boundary sets are smaller, we enlarge the support so that each interval is of equal length $n^{-1/4}$.

Our algorithm keeps a set of active $(z,\theta) \subset \mathcal{Z}\times \Theta$ and eliminates those for which we have sufficient evidence for being far from $(z^*, \theta_0)$. We let $A(t) \subset \{1, \ldots,k\}^{d+1}$ represent a set of active cells, where a cell represents a tuple $(i,j_1,\ldots,j_d)$. Then, $\bigcup_{(i,j_1,\ldots,j_d) \in A(t)} \mathcal{Z}_i \times \prod_{i=1}^{d} \Theta^{(l)}_{j_l}$ represents the set of active $(z,\theta)$ pairs. Here, $A(1)$ contains all cells.

At each time $t$ we have a set of active prices, which depends on $X_t$ and $A(t)$, i.e.,

$$P(t) = \left \{p: \exists (z,\theta) \in \bigcup_{(i,j_1,\ldots,j_d)\in A(t)} \mathcal{Z}_i \times \prod_{l=1}^{d} \Theta^{(l)}_{j_l} \text{ s.t. } \ln p = \ln z + {\theta^\intercal X_t}\right\}. $$

At time $t$ we pick a price $p_t$ from $P(t)$ uniformly at random. We say that cell $(i,j_1,\ldots,j_d)$ is {\em checked} if $p_t \in P_{i,j_1,\ldots, j_d}(t)$ where $$ P_{i,j_1,\ldots, j_d}(t) \triangleq \left\{p: \exists z \in \mathcal{Z}_i, \exists \theta \in \prod_{l=1}^{d} \Theta^{(l)}_{j_l} \text{ s.t. } \ln p = \ln z + {\theta^\intercal X_t}\right\}.$$

Each price selection checks one or more cells $(i,j_1,\ldots,j_d)$.

Recall that the reward generated at time $t$ is $Y_t p_t$. Let $T_t(i,j_1,\ldots,j_d)$ be the number of times cell $(i,j_1,\ldots,j_d)$ is checked until time $t$, and let $S_t(i,j_1,\ldots,j_d)$ be the total reward obtained at these times. Let

$$\hat{\mu}_t (i,j_1,\ldots,j_d) = \frac{S_t(i,j_1,\ldots,j_d)}{T_t(i,j_1,\ldots,j_d)}.$$

We also compute confidence bounds for $\hat{\mu}_t (i,j_1,\ldots,j_d)$, as follows. Fix $\gamma >0$. For each active $(i,j_1,\ldots,j_d)$, let

$$u_t(i,j_1,\ldots,j_d) = \hat{\mu}_t(i,j_1,\ldots,j_d) + \sqrt{\frac{\gamma }{T_t(i,j_1,\ldots,j_d)}},$$ and $$l_t(i,j_1,\ldots,j_d) = \hat{\mu}_t(i,j_1,\ldots,j_d) - \sqrt{\frac{\gamma }{T_t(i,j_1,\ldots,j_d)}}.$$ These represent the upper and lower confidence bounds, respectively.

We eliminate $(i,j_1,\ldots,j_d) \in A(t)$ from $A(t+1)$ if there exists $(i',j'_1,\ldots,j'_d) \in A(t)$ such that $$ u_t(i,j_1,\ldots,j_d) < l_t(i',j'_1,\ldots,j'_d) .$$

Variants of DEEP-C

{\em DEEP-C with Rounds:} Theoretical analysis of regret for arm elimination algorithms typically involves tracking the number of times each sub-optimal arm is pulled before being eliminated. However, this is challenging in our setting, since the set of arms which get “pulled” at an offered price depends on the covariate vector at that time. To resolve this challenge, we consider a variant where the algorithm operates in rounds, as follows.

Within a round the set of active sells remains unchanged. Further, we ensure that within each round each arm in the active set is pulled at least once. For our analysis, we keep track of only the first time an arm is pulled in each round, and ignore the rest. While this may seem wasteful, a surprising aspect of our analysis is that the regret cost incurred by this form of exploration is only poly-logarithmic in $n$. Further, since the number of times each arm is “explored” in each round is exactly one, theoretical analysis now becomes tractable. For formal definitions of this policy and also of the policies below, we refer the reader to Appendix (ref).

{\em Decoupled DEEP-C:} We now present a policy which has low computational complexity under sparsity and which does not suffer from price endogeneity, but may incur higher regret. At times $t=1,2,\ldots,\tau$, the price is set independently and uniformly at random from a compact set. This ensures that outputs $(Y_t: t=1,2,\ldots,\tau)$ are conditionally independent given covariates $(X_t: t=1,2,\ldots,\tau)$, i.e., there is no price endogeneity. We then use a low-complexity semi-parametric regression technique from PlV13 to estimate $\theta_0$ under a sparsity assumption. With estimation of $\theta_0$ in place, at times $t = \tau+1,\ldots, n$, we use a one-dimensional version of DEEP-C to simultaneously estimate $z^*$ and maximize revenue. The best possible regret achievable with this policy is $\tilde O(n^{2/3})$, achieved when $\tau$ is $O(n^{2/3})$ PlV13.

{\em Sparse DEEP-C:} This policy also leverages sparsity, but without decoupling estimation of $\theta_0$ from estimation of $z^*$ and revenue maximization. At each time $t$, using the data collected in past we estimate $\theta_0$ via semi-perametric regression technique from PlV13. Using this estimate of $\theta_0$, the estimate of rewards for different values of $z$ from samples collected in past, and the corresponding confidence bounds, we obtain a set of active prices at each time, similar to that of DEEP-C, from which the price is picked at random.

While Sparse DEEP-C suffers from price endogeneity, with an appropriate choice of $\gamma$ we conjecture that its cost in terms of expected regret can be made poly-logarithmic in $n$; proving this result remains an important open direction. The intuition for this comes from our theoretical analysis of DEEP-C with Rounds and the following observation: even though the set of active prices may be different at different times, we still choose prices at random, and prices are eliminated only upon reception of sufficient evidence of suboptimality. We conjecture that these features are sufficient to ensure that the error in the estimate of $\theta_0$ is kept small with high probability. Our simulation results indeed show that this algorithm performs relatively well.

Regret analysis

The main theoretical result of this paper is the following. The regret bound below is achieved by DEEP-C with Rounds (as defined in Section (ref)). For its proof see Appendix (ref).

theoremUnder A(ref), A(ref), and A(ref), the expected regret under policy DEEP-C with Rounds with $\gamma = \max\left(10\alpha_2^2, 4 \frac{\kappa_2 ^2}{\log n}, \frac{\kappa_1^{-2}}{\log n} \right)$ satisfies, $$\ensuremath{\mathbb{E}}[R_n] \le 16000\alpha_1^{-2} \alpha_2^2\kappa_1^{-2} \kappa_2^{3/2} \gamma^{3/4} d^{11/4} n^{1/2} \log^{7/4} n + 5 \alpha_2.$$

First, note that the above scaling is optimal w.r.t.\ $n$ (up to polylogarithmic factors), as even for the case where $X_t=0$ w.p.1.\ it is known that achieving $o(\sqrt{n})$ expected regret is not possible (see KlL03).

Second, we state our results with explicit dependence on various parameters discussed in our assumptions in order for the reader to track the ultimate dependence on the dimension $d$. Note that, as $d$ scales, the supports $\Theta$ and $\mathcal X$, and the distribution of $X$ may change. In turn, the parameters $\alpha_1$, $\alpha_2$, $\kappa_1$ and $\kappa_2$ which are constants for a given $d$, may scale as $d$ scales. These scalings need to be computed case by case as it depends on how one models the changes in $\Theta$ and $\mathcal X$. Below we discuss briefly how these may scale in practice.

Recall that $\alpha_1$ and $\alpha_2$ are bounds on $ze^{\theta^\intercal x}$, namely, the user valuations. Thus, it is meaningful to postulate that $\alpha_1$ and $\alpha_2$ do not scale with covariate dimension, as the role of covariates is to aid prediction of user valuations and not to change them. For example, one may postulate that $\theta_0$ is “sparse”, i.e., the number of non-zero coordinates of $\theta_0$ is bounded from above by a known constant, in which case $\alpha_1$ and $\alpha_2$ do not scale with $d$. Dependence of $\kappa_1$ and $\kappa_2$ on $d$ is more subtle as they may depend on the details of the modeling assumptions. For example, their scaling may depend on scaling of the difference between the largest and second largest values of $r(z,\theta)$. One of the virtues of Theorem (ref) is that it succinctly characterizes the scaling of regret via a small set of parameters.

Finally, the above result can be viewed through the lens of sample complexity. The arguments used in Lemma (ref) and in the derivation of equation (ref) imply that the sample complexity is “roughly” $O(\log(1/ \delta)/ \epsilon^2)$. More precisely, suppose that at a covariate vector $x$, we set the price $p(x)$. We say the mapping $p$ is {\em probably approximately revenue optimal} if for any $x$ the difference between the achieved revenue and the optimal revenue is at most $\epsilon$ with probability at least $1 - \delta$. The number of samples $m$ required to learn such a policy satisfies $m \text{ polylog}(m) \le \frac{\log(1/\delta)}{\epsilon^2} f(d,\alpha_1,\alpha_2,\kappa_1,\kappa_2)$ where $f(\cdot)$ is polynomial function.

Simulation Results

Below we summarize our simulation setting and then briefly describe our findings.

figure[figure omitted — 572 chars of source]

{\bf Simulation setup:} First, we simulate our model with covariate dimension $d=2$, where covariate vectors are i.i.d.\ $d$-dimensional standard normal random vectors, the parameter space is $\Theta = [0,1]^{d}$, the parameter vector is $\theta_0=(1/\sqrt{2},1/\sqrt{2})$, the noise support is $\mathcal Z = [0,1]$, and the noise distribution is $Z \sim \text{Uniform}([0,1])$. Note that even though we assumed that the covariate distribution has bounded support for ease of analysis, our policies do not assume that. Hence, we are able to use a covariate distribution with unbounded support in our simulations. In this setting, we simulate policies DEEP-C, Decoupled DEEP-C, and Sparse DEEP-C for time horizon $n=10,000$ and for different values of parameter $\gamma$. Each policy is simulated 5,000 times for each set of parameters.

Next, we also simulate our model for $d=100$ with $s=4$ non-zero entries in $\theta_0$, with each non-zero entry equal to $1/\sqrt{s}$, each policy is simulated 1,500 times for each set of parameters, with the rest of the setup being the same as earlier. For this setup, we only simulate Decoupled DEEP-C and Sparse DEEP-C, as the computational complexity of DEEP-C does not scale well with $d$.

{\bf Main findings:} First, we find that the performance of each policy is sensitive to the choice of $\gamma$, and that the range of $\gamma$ where expected regret is low may be different for different policies. The expected regret typically increases with increase in $\gamma$, however its variability typically reduces with $\gamma$. This is similar to the usual bias-variance tradeoff in learning problems. For our setup with $d=2$, the reward of \ensuremath{\mathsf{Oracle}} concentrates at around 4,150. As Figure (ref) shows, each policy performs well in the plotted range of $\gamma$.

We find that the main metric where the performance of the policies is differentiated is in fact high quantiles of the regret distribution. For example, while the expected regret of DEEP-C at $\gamma=2.2$ and that of Decoupled DEEP-C and Sparse DEEP-C at $\gamma = 7$ each are all roughly the same, the $98$th-percentile of regret distribution under DEEP-C and Sparse DEEP-C is $13\%$ and $24\%$ lower than that under Decoupled DEEP-C, respectively.

For our setup with $d=100$, while both Decoupled DEEP-C and Sparse DEEP-C perform similar in average regret, we find that Sparse DEEP-C significantly outperforms Decoupled DEEP-C in standard deviation and in $95$th-percentile. In particular, $95$th-percentile of Sparse DEEP-C is $33\%$ lower than that under Decoupled DEEP-C.

Acknowledgments

This work was supported in part by National Science Foundation Grants DMS-1820942, DMS-1838576, CNS-1544548, and CNS-1343253. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation. We would like to thank Linjia Wu at Stanford University for reading and checking our proofs.

thebibliography\bibitem[Alon et al., 2013]{ACG13} Alon, N., Cesa-Bianchi, N., Gentile, C., and Mansour, Y. (2013). \newblock From bandits to experts: A tale of domination and independence. \newblock In {\em Advances in Neural Information Processing Systems 26}, pages 1610--1618. \bibitem[Amin et al., 2014]{ARS14} Amin, K., Rostamizadeh, A., and Syed, U. (2014). \newblock Repeated contextual auctions with strategic buyers. \newblock In {\em Advances in Neural Information Processing Systems}, pages 622--630. \bibitem[Ban and Keskin, 2019]{BaK19} Ban, G.-Y. and Keskin, N. B. (2019). \newblock Personalized dynamic pricing with machine learning. \bibitem[Broder and Rusmevichientong, 2012]{BrR12} Broder, J. and Rusmevichientong, P. (2012). \newblock Dynamic pricing under a general parametric choice model. \newblock {\em Operations Research}, 60(4):965--980. \bibitem[Caron et al., 2012]{CKL12} Caron, S., Kveton, B., Lelarge, M., and Bhagat, S. (2012). \newblock Leveraging side observations in stochastic bandits. \newblock In {\em Proceedings of the Twenty-Eighth Conference on Uncertainty in Artificial Intelligence}, UAI'12. \bibitem[Cohen et al., 2016a]{ATT16} Cohen, A., Hazan, T., and Koren, T. (2016a). \newblock Online learning with feedback graphs without the graphs. \newblock In {\em Proceedings of The 33rd International Conference on Machine Learning}, pages 811--819. \bibitem[Cohen et al., 2016b]{CLP16} Cohen, M. C., Lobel, I., and Paes Leme, R. (2016b). \newblock Feature-based dynamic pricing. \newblock In {\em Proceedings of the 2016 ACM Conference on Economics and Computation}, EC '16. \bibitem[den Boer, 2014]{Boe14} den Boer, A. V. (2014). \newblock Dynamic pricing with multiple products and partially specified demand distribution. \newblock {\em Mathematics of operations research}, 39(3):863--888. \bibitem[den Boer, 2015]{Boe15} den Boer, A. V. (2015). \newblock Dynamic pricing and learning: Historical origins, current research, and new directions. \bibitem[den Boer and Zwart, 2013]{BoZ13} den Boer, A. V. and Zwart, B. (2013). \newblock Simultaneously learning and optimizing using controlled variance pricing. \newblock {\em Management science}, 60(3):770--783. \bibitem[Frahm, 2004]{Fra04} Frahm, G. (2004). \newblock {\em Generalized elliptical distributions: theory and applications}. \newblock PhD thesis, Universit{\"a}t zu K{\"o}ln. \bibitem[Greenewald et al., 2017]{GTM17} Greenewald, K., Tewari, A., Murphy, S., and Klasnja, P. (2017). \newblock Action centered contextual bandits. \newblock In {\em Advances in Neural Information Processing Systems}, pages 5977--5985. \bibitem[Javanmard and Nazerzadeh, 2019]{JaN16} Javanmard, A. and Nazerzadeh, H. (2019). \newblock Dynamic pricing in high-dimensions. \newblock {\em Journal of Machine Learning Research}. \bibitem[Keskin and Zeevi, 2014]{KeZ14} Keskin, N. B. and Zeevi, A. (2014). \newblock Dynamic pricing with an unknown demand model: Asymptotically optimal semi-myopic policies. \newblock {\em Operations Research}, 62(5):1142--1167. \bibitem[Kleinberg and Leighton, 2003]{KlL03} Kleinberg, R. and Leighton, T. (2003). \newblock The value of knowing a demand curve: Bounds on regret for online posted-price auctions. \newblock In {\em IEEE Symposium on Foundations of Computer Science}. \bibitem[Krishnamurthy et al., 2018]{KWS18} Krishnamurthy, A., Wu, Z. S., and Syrgkanis, V. (2018). \newblock Semiparametric contextual bandits. \newblock In {\em Proceedings of the 35th International Conference on Machine Learning}, Proceedings of Machine Learning Research. PMLR. \bibitem[Langford and Zhang, 2008]{langford2008epoch} Langford, J. and Zhang, T. (2008). \newblock The epoch-greedy algorithm for multi-armed bandits with side information. \newblock In {\em Advances in Neural Information Processing Systems}. \bibitem[Le Guen, 2008]{Gue08} Le Guen, T. (2008). \newblock Data-driven pricing. \newblock Master's thesis, Massachusetts Institute of Technology. \bibitem[Lykouris et al., 2018]{LST18} Lykouris, T., Sridharan, K., and Tardos, {\'E}. (2018). \newblock Small-loss bounds for online learning with partial information. \newblock In {\em Proceedings of the 31st Conference On Learning Theory}, pages 979--986. \bibitem[Mannor and Shamir, 2011]{MaS11} Mannor, S. and Shamir, O. (2011). \newblock From bandits to experts: On the value of side-observations. \newblock In {\em Advances in Neural Information Processing Systems 24}, pages 684--692. \bibitem[Mao et al., 2018]{MLS18} Mao, J., Leme, R., and Schneider, J. (2018). \newblock Contextual pricing for lipschitz buyers. \newblock In {\em Advances in Neural Information Processing Systems}, pages 5643--5651. \bibitem[Morgenstern and Roughgarden, 2016]{MoR16} Morgenstern, J. and Roughgarden, T. (2016). \newblock Learning simple auctions. \newblock In {\em Annual Conference on Learning Theory}, pages 1298--1318. \bibitem[Nambiar et al., 2019]{NSW19} Nambiar, M., Simchi-Levi, D., and Wang, H. (2019). \newblock Dynamic learning and pricing with model misspecification. \newblock {\em Management Science}. \bibitem[Perchet and Rigollet, 2013]{perchet2013multi} Perchet, V. and Rigollet, P. (2013). \newblock The multi-armed bandit problem with covariates. \newblock {\em The Annals of Statistics}, pages 693--721. \bibitem[Plan and Vershynin, 2013]{PlV13} Plan, Y. and Vershynin, R. (2013). \newblock Robust 1-bit compressed sensing and sparse logistic regression: A convex programming approach. \newblock {\em IEEE Transactions on Information Theory}, 59(1):482--494. \bibitem[Qiang and Bayati, 2019]{QiB19} Qiang, S. and Bayati, M. (2019). \newblock Dynamic pricing with demand covariates. \bibitem[Slivkins, 2011]{slivkins2011contextual} Slivkins, A. (2011). \newblock Contextual bandits with similarity information. \newblock In {\em Annual Conference On Learning Theory}.