EconBase
← Back to paper

Logarithmic Regret in Feature-based Dynamic 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.

48,899 characters · 14 sections · 60 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.

Logarithmic Regret in Feature-based Dynamic Pricing

abstractFeature-based dynamic pricing is an increasingly popular model of setting prices for highly differentiated products with applications in digital marketing, online sales, real estate and so on. The problem was formally studied as an online learning problem javanmard2019dynamic where a seller needs to propose prices on the fly for a sequence of $T$ products based on their features $x$ while having a small regret relative to the best ---“omniscient’’--- pricing strategy she could have come up with in hindsight. We revisit this problem and provide two algorithms (EMLP and ONSP) for stochastic and adversarial feature settings, respectively, and prove the optimal $O(d\log{T})$ regret bounds for both. In comparison, the best existing results are $O\left(\min\left\{\frac{1}{\lambda_{\min}^2}\log{T}, \sqrt{T}\right\}\right)$ and $O(T^{2/3})$ respectively, with $\lambda_{\min}$ being the smallest eigenvalue of $\mathbb{E}[xx^T]$ that could be arbitrarily close to $0$. We also prove an $\Omega(\sqrt{T})$ information-theoretic lower bound for a slightly more general setting, which demonstrates that “knowing-the-demand-curve” leads to an exponential improvement in feature-based dynamic pricing. {Keywords: dynamic pricing, online learning, adversarial features, optimal regret, affine invariant, distribution-free.}

Introduction

The problem of pricing — to find a high-and-acceptable price — has been studied since cournot1897researches. In order to locate the optimal price that maximizes the revenue, a firm may adjust their prices of products frequently, which inspires the dynamic pricing problem. Existing works kleinberg2003value,broder2012dynamic, chen2013simple, besbes2015surprising primarily focus on pricing a single product, which usually will not work well in another setting when thousands of new products are being listed every day with no prior experience in selling them. Therefore, we seek methods that approach an acceptable-and-profitable price with only observations on this single product and some historical selling records of other products.

In this work, we consider a “feature-based dynamic pricing” problem, which was studied by amin2014repeated, cohen2020feature_journal, javanmard2019dynamic. In this problem setting, a sales session (product, customer and other environmental variables) is described by a feature vector, and the customer's expected valuation is modeled as a linear function of this feature vector.

\fbox{\parbox{0.97\textwidth}{Feature-based dynamic pricing. For $t=1,2,...,T:$

enumerate[leftmargin=*,align=left] {0pt} • A feature vector $x_t\in\mathbb{R}^{d}$ is revealed that describes a sales session (product, customer and context). • The customer valuates the product as $w_t = x_t^{\top}\theta^{*} + N_t$. • The seller proposes a price $v_t>0$ concurrently (according to $x_t$ and historical sales records). • The transaction is successful if $v_t \leq w_t$, i.e., the seller gets a reward (payment) of $r_t=v_t\cdot\mathbbm{1}(v_t\leq w_t)$.

} }

Here $T$ is unknown to the seller (and thus can go to infinity), $x_t$'s can be either stochastic (e.g., each sales session is drawn i.i.d.) or adversarial (e.g., the sessions arrive in a strategic sequence), $\theta^{*}\in\mathbb{R}^{d}$ is a fixed parameter for all time periods, $N_t$ is a zero-mean noise, and $\mathbbm{1}_t=\mathbbm{1}(v_t\leq w_t)$ is an indicator that equals $1$ if $v_t\leq w_t$ and $0$ otherwise. In this online-fashioned setting, we only see and sell one product at each time. Also, the feedback is Boolean Censored, which means we can only observe $\mathbbm{1}_t$ instead of knowing $w_t$ directly. The best pricing policy for this problem is the one that maximizes the expected reward, and the regret of a pricing policy is accordingly defined as the difference of expected rewards between this selected policy and the best policy.

\ifbool{compact}{\noindentSummary of Results.}{\paragraph{Summary of Results.}} Our contributions are threefold.

enumerate• When $x_t$'s are independently and identically distributed (i.i.d.) from an unknown distribution, we propose an “Epoch-based Max-Likelihood Pricing (EMLP)” algorithm that guarantees a regret bound at $O(d\log{T})$. The design of EMLP is similar to that of the RMLP algorithm in javanmard2019dynamic, but our new analysis improves their regret bound at $O(\sqrt{T})$ when $\mathbb{E}[xx^{\top}]$ is near singular. • When $x_t$'s are adversarial, we propose an “Online-Newton-Step Pricing (ONSP)” algorithm that achieves $O(d\log{T})$ regret on constant-level noises for the first time, which exponentially improves the best existing result of $O(T^{2/3})$ cohen2020feature_journal.\footnote{Previous works cohen2020feature_journal, krishnamurthy2020contextual did achieve polylog regrets, but only for negligible noise with $\sigma=O(\frac{1}{T\log{T}})$.} • Our methods that achieve logarithmic regret require knowing the exact distribution of $N_t$ in advance, as is also assumed in javanmard2019dynamic. We prove an $\Omega(\sqrt{T})$ lower bound on the regret if $N_t\sim\mathcal{N}(0,\sigma^2)$ where $\sigma$ is unknown, even with $\theta^*$ given and $x_t$ fixed for all $t$.

The $O(\log{T})$ regret of EMLP and ONSP meets the information-theoretical lower bound javanmard2019dynamic. In fact, the bound is optimal even when $w_t$ is revealed to the learner mourtada2019exact. From the perspective of characterizing the hardness of dynamic pricing problems, we generalize the classical results on “The Value of Knowing a Demand Curve” kleinberg2003value by further dividing the random-valuation class with an exponential separation of: (1) $O(\log{T})$ regret for knowing the demand curve exactly (even with adversarial features), and (2) $\Omega(\sqrt{T})$ regret for almost knowing the demand curves (up to a one-parameter parametric family).

Related Works

In this section, we discuss our results relative to existing works on feature-based dynamic pricing, and highlight the connections and differences to the related settings of contextual bandits and contextual search (for a broader discussion, see Appendix (ref)).

\ifbool{compact}{\noindentFeature-based Dynamic Pricing.}{\paragraph{Feature-based Dynamic Pricing.}} There is a growing body of work on dynamic pricing with linear features amin2014repeated,qiang2016dynamic,cohen2020feature_journal,javanmard2019dynamic. Table (ref) summarizes the differences in the settings and results\footnote{We only concern the dependence on $T$ since there are various different assumptions on $d$.}.

table*[table* omitted — 2,179 chars of source]

Among these work, our paper directly builds upon cohen2020feature_journal and javanmard2019dynamic, as we share the same setting of online feature vectors, linear and noisy valuations and Boolean-censored feedback. Relative to the results in javanmard2019dynamic, we obtain $O(d\log T)$ regret under weaker assumptions on the sequence of input features --- in both distribution-free stochastic feature setting and the adversarial feature setting. It is to be noted that javanmard2019dynamic also covers the sparse high-dimensional setting, and handles a slightly broader class of demand curves. Relative to cohen2020feature_journal, in which the adversarial feature-based dynamic pricing was first studied, our algorithm ONSP enjoys the optimal $O(d\log T)$ regret when the noise-level is a constant. In comparison, cohen2020feature_journal reduces the problem to contextual bandits and applies the (computationally inefficient) “EXP-4” algorithm auer2002nonstochastic to achieve a $\tilde{O}(T^{2/3})$ regret. The “bisection” style-algorithm in both cohen2020feature_journal and krishnamurthy2020contextual could achieve $\tilde{O}(poly(d) poly\log(T))$ regrets but requires a small-variance subgaussian noise satisfying $\sigma = O(\frac{1}{T\log{T}})$.

\ifbool{compact}{\noindentLower Bounds.}{\paragraph{Lower Bounds.}} Most existing works focus on the lower regret bounds of non-feature-based models. kleinberg2003value divides the problem setting as fixed, random, and adversarial valuations, and then proves each a $\Theta(\log\log{T})$, $\Theta(\sqrt{T})$, and $\Theta(T^{2/3})$ regret, respectively. broder2012dynamic further proves a $\Theta(\sqrt{T})$ regret in general parametric valuation models. In this work, we generalize the methods of broder2012dynamic to our feature-based setting and further narrow it down to a linear-feature Gaussian-noisy model. As a complement to kleinberg2003value, we further separate the exponential regret gap between: (1) $O(\log{T})$ of the hardest (adversarial feature) totally-parametric model, and (2) $\Omega(\sqrt{T})$ of the simplest (fixed known expectation) unknown-$\sigma$ Gaussian model.

\ifbool{compact}{\noindentContextual Bandits.}{\paragraph{Contextual Bandits.}} For readers familiar with the online learning literature, our problem can be reduced to a contextual bandits problem langford2007epoch,agarwal2014taming by discretizing the prices. But this reduction only results in $O(T^{2/3})$ regret, as it does not capture the special structure of the feedback: an accepted price indicates the acceptance of all lower prices, and vise versa. Moreover, when comparing to linear bandits chu2011contextual, it is the valuation instead of the expected reward that we assume to be linear.

\ifbool{compact}{\noindentContextual Search.}{\paragraph{Contextual Search.}} Feature-based dynamic pricing is also related to the contextual search problem lobel2018multidimensional, leme2018contextual, liu2021optimal, krishnamurthy2020contextual, which often involves learning from Boolean feedbacks, sometimes with a “pricing loss” and “noisy” feedback. These shared jargons make this problem appearing very similar to our problem. However, except for the noiseless cases lobel2018multidimensional, leme2018contextual, contextual search algorithms, even with “pricing losses” and “Noisy Boolean feedback” liu2021optimal, do not imply meaningful regret bounds in our problem setup due to several subtle but important differences in the problem settings. Specifically, the noisy-boolean feedback model of liu2021optimal is about randomly toggling the “purchase decision” determined by the noiseless valuation $x^{\top}\theta^*$ with probability $0.5-\epsilon$. This is incompatible to our problem setting where the purchasing decision is determined by a noisy valuation $x^{\top}\theta^* + \text{Noise}$. Ultimately, in the setting of liu2021optimal, the optimal policy alway plays $x^{\top}\theta^*$, but our problem is harder in that we need to exploit the noise and the optimal price could be very different from $x^{\top}\theta^*$. \footnote{As an explicit example, suppose the valuation $x^{\top}\theta^*=0$, then the optimal price must be $>0$ in order to avoid zero return. } krishnamurthy2020contextual also discussed this issue explicitly and considered the more natural noisy Boolean feedback model studied in this paper. Their result, similar to cohen2020feature_journal, only achieves a logarithmic regret when the noise on the valuation is vanishing in an $\tilde{O}(1/T)$ rate.

Problem Setup

\ifbool{compact}{\noindentSymbols and Notations.}{\paragraph{Symbols and Notations.}} Now we introduce the mathematical symbols and notations involved in the following pages. The game consists of $T$ rounds. $x_{t}\in \mathbb{R}^d$, $v_{t}\in \mathbb{R}_+$ and $N_{t}\in\mathbb{R}$ denote the feature vector, the proposed price and the noise respectively at round $t=1,2,...,T$.\footnote{In an epoch-design situation, a subscript $(k,t)$ indicates round $t$ of epoch $k$.} We denote the product $u_t:=x_t^{\top}\theta^{*}$ as an expected valuation. At each round, we receive a payoff (reward) $r_{t}=v_t\cdot\mathbbm{1}_t$, where the binary variable $\mathbbm{1}_{t}$ indicates whether the price is accepted or not, i.e., $\mathbbm{1}_{t}=\mathbf{1}(v_t\leq w_t)$. As we may estimate $\theta^{*}$ in our algorithms, we denote $\hat{\theta}_t$ as an estimator of $\theta^{*}$, which we will formally define in the algorithms. Furthermore, we denote some functions that are related to noise distribution: $F(\omega)$ and $f(\omega)$ denote the cumulative distribution function (CDF) and probability density function (PDF) sequentially. We know that $F'(\omega)=f(\omega)$ if we assume differentiability. To concisely denote all data observed up to round $\tau$ (i.e., feature, price and payoff of all past rounds), we define $hist(\tau)=\{(x_{t}, v_{t}, \mathbbm{1}_{t}) \text{ for }t=1,2,...,\tau\}$. $hist(\tau)$ represents the transcript of all observed random variables before round $(\tau+1)$.

We define

equation[equation omitted — 188 chars of source]

as a negative log-likelihood function at round $t$. Also, we define an expected log-likelihood function $L_t(\theta)$:

equation[equation omitted — 114 chars of source]

Notice that we will later define an $\hat{L}_{k}(\theta)$ which is, however, not an expectation.

\ifbool{compact}{\noindentDefinitions of Key Quantities.}{\paragraph{Definitions of Key Quantities.}} We firstly define an expected reward function $g(v,u)$. \ifbool{twocol}{

equation[equation omitted — 188 chars of source]

}{

equation[equation omitted — 157 chars of source]

} This indicates that if the expected valuation is $u$ and the proposed price is $v$, then the (conditionally) expected reward is $g(v,u)$. Now we formally define the regret of a policy (algorithm) $\mathcal{A}$ as is promised in Section (ref).

definition[Regret] Let $\mathcal{A}: \mathbb{R}^{d}\times\left(\mathbb{R}^{d},\mathbb{R},\{0,1\}\right)^{t-1}\rightarrow\mathbb{R}$ be a policy of pricing, i.e. $\mathcal{A}(x_t, hist(t-1)) = v_t$. The regret of $\mathcal{A}$ is defined as follows. { \begin{equation} \begin{aligned} Reg_{\mathcal{A}} =&\sum_{t=1}^{T}\max_{v}g(v,x_t^{\top}\theta^{*})-g(\mathcal{A}(x_t,hist(t-1)), x_t^{\top}\theta^{*}). \end{aligned} \end{equation} } Here $hist(t-1)$ is the historical records until $(t-1)^{\text{th}}$ round.

\ifbool{compact}{\noindentSummary of Assumptions.}{\paragraph{Summary of Assumptions.}} We specify the problem settings by proposing three assumptions.

assumption[Known, bounded, strictly log-concave distribution] The noise $N_t$ is independently and identically sampled from a distribution whose CDF is $F$. Assume that $F\in \mathbb{C}^{2}$ is strictly increasing and that $F$ and $(1-F)$ are strictly log-concave. Also assume that $f$ and $f'$ are bounded, and denote $B_f:=\sup_{\omega\in\mathbb{R}}{f(\omega)}, B_{f'}:=\sup_{\omega\in\mathbb{R}}|f'(\omega)|$ as two constants.
assumption[Bounded convex parameter space] The true parameter $\theta^{*}\in\mathbb{H}$, where $\mathbb{H}\subseteq\{\theta: ||\theta||_2\leq B_1\}$ is a bounded convex set and $B_1$ is a constant. Assume $\mathbb{H}$ is known to us (but $\theta^*$ is not).
assumption[Bounded feature space] Assume $x_t\in D\subseteq\{x: ||x||_2\leq B_2\}$, $\forall t=1,2,\ldots, T$. Also, $0\leq x^{\top}\theta\leq B, \forall x\in D, \forall\theta\in\mathbb{H}$, where $B=B_1\cdot B_2$ is a constant.

Assumption (ref) and (ref) are mild as we can choose $B_1$ and $B_2$ large enough. In Section (ref), we may add further complement to Assumption (ref) to form a stochastic setting. Assumption (ref) is stronger since we might not know the exact CDF in practice, but it is still acceptable from an information-theoretic perspective. There are at least three reasons that lead to this assumption: Primarily, this is necessary if we hope to achieve an $O(\log(T))$ regret. We will prove in Section (ref) that an $\Omega(\sqrt{T})$ is unavoidable if we cannot know one parameter exactly. Moreover, the pioneering work of javanmard2019dynamic also assumes a known noise distribution with log-concave CDF, and many common distributions are actually strictly log-concave, such as Gaussian and logistic.\footnote{In fact, $F$ and $(1-F)$ are both log-concave if its PDF is log-concave, according to Prekopa's Inequality.} Besides, although we did not present a method to precisely estimate $\sigma$ in this work, it is a reasonable algorithm to replace with a plug-in estimator estimated using historical offline data. As we have shown, not knowing $\sigma$ requires $O(\sqrt{T})$ regret in general, but the lower bound does not rule out the plug-in approach achieving a smaller regret for interesting subclasses of problems in practice.

Finally, we state a lemma and define an argmax function helpful for our algorithm design.

lemma[Uniqueness] For any $u\geq0$, there exists a unique $v^{*}\geq0$ such that $g(v^{*},u)=\max_{v\in\mathbb{R}}{g}(v,u)$. Thus, we can define a greedily pricing function that maximizes the expected reward: \begin{equation} J(u):=\mathop{\arg\max}_{v}g(v,u) \end{equation}

Please see the proof of Lemma (ref) in Appendix (ref).

Algorithms

In this section, we propose two dynamic pricing algorithms: EMLP and ONSP, for stochastic and adversarial features respectively.

figure[figure omitted — 1,817 chars of source]

Pricing with Distribution-Free Stochastic Features

assumption[Stochastic features] Assume $x_t\sim \mathbb{D}\subseteq D$ are independently identically distributed (i.i.d.) from an unknown distribution, for any $t=1,2,\ldots,T$.

The first algorithm, Epoch-based Max-Likelihood Pricing (EMLP) algorithm, is suitable for a stochastic setting defined by Assumption (ref). EMLP proceeds in epochs with each stage doubling the length of the previous epoch. At the end of each epoch, we consolidate the observed data and solve a maximum likelihood estimation problem to learn $\theta$. A max likelihood estimator (MLE) obtained by minimizing $\hat{L}_{k}(\theta):=\frac{1}{\tau_k}\sum_{t=1}^{\tau_k}l_{k,t}(\theta),$ which is then used in the next epoch as if it is the true parameter vector. In the equation, $k,\tau_k$ denotes the index and length of epoch $k$. The estimator is computed using data in $hist(k)$, which denotes the transcript for epoch $1\sim k$. The pseudo-code of EMLP is summarized in Algorithm (ref). In the remainder of this section, we discuss the computational efficiency and prove the upper regret bound of $O(d\log{T})$.

\ifbool{compact}{\noindentComputational Efficiency.}{\paragraph{Computational Efficiency.}} {The calculations in EMLP are straightforward except for $\arg\min\hat{L}_k(\theta)$ and $J(u)$. As $g(v,u)$ is proved unimodal in Lemma (ref), we may efficiently calculate $J(u)$ by binary search. We will prove that $l_{k,t}$ is exp-concave (and thus also convex). Therefore, we may apply any off-the-shelf tools for solving convex optimization.}

\ifbool{compact}{\noindentMLE and Probit Regression.}{\paragraph{MLE and Probit Regression.}} { A closer inspection reveals that this log-likelihood function corresponds to a probit aldrich1984linear or a logit model wright1995logistic for Gaussian or logistic noises. See Appendix (ref).

}

\ifbool{compact}{\noindentAffine Invariance.}{\paragraph{Affine Invariance.}} {Both optimization problems involved depend only on $x^{\top} \theta$, so if we add any affine transformation to $x$ into $\tilde{x} = Ax$, the agent can instead learn a new parameter of $\tilde{\theta}^{*}=(A^{\top})^{-1}\theta^{*}$ and achieve the same $u_t=x_t^{\top}\theta^{*}$. Also, the regret bound is not affected as the upper bound $B$ over $x^{\top}\theta$ does not change \footnote{Here $A$ is assumed invertible, otherwise the mapping from $\tilde{x}_t$ to $u_t$ does not necessarily exist.}. Therefore, it is only natural that the regret bound does not depend on the distribution $x$, nor the condition numbers of $\mathbb{E}[xx^{\top}]$ (i.e., the ratio of $\lambda_{\max}/\lambda_{\min}$).}

Pricing with Adversarial Features

In this part, we propose an “Online Newton Step Pricing (ONSP)” algorithm that deals with adversarial $\{x_t\}$ series and guarantees $O(d\log{T})$ regret. The pseudo-code of ONSP is shown as Algorithm (ref). In each round, it uses the likelihood function as a surrogate loss and applies “Online Newton Step”(ONS) method to update $\hat{\theta}$. In the next round, it adopts the updated $\hat{\theta}$ and sets a price greedily. In the remainder of this section, we discuss some properties of ONSP and prove the regret bound.

The calculations of ONSP are straightforward. The time complexity of calculating the matrix inverse $A_{t}^{-1}$ is $O(d^3)$, which is fair as $d$ is small. In high-dimensional cases, we may use Woodbury matrix identity\footnote{$(A+xx^{\top})^{-1}=A^{-1}-\frac{1}{1+x^{\top}A^{-1}x}A^{-1}x(A^{-1}x)^{\top} .$} to reduce it to $O(d^2)$ as we could get $A^{-1}$ directly from the latest round.

Regret Analysis

In this section, we mainly prove the logarithmic regret bounds of EMLP and ONSP corresponding to stochastic and adversarial settings, respectively. Besides, we also prove an $\Omega(\sqrt{T})$ regret bound on fully parametric $F$ with one parameter unknown.

\texorpdfstring{$O(d\log{T})$}{Lg} Regret of EMLP

In this part, we present the regret analysis of Algorithm (ref). First of all, we propose the following theorem as our main result on EMLP.

theorem[Overall regret] With Assumptions (ref), (ref), (ref) and (ref), the expected regret of EMLP can be bounded by: \begin{equation} \mathbb{E}[Reg_{EMLP}]\leq 2C_{s}{d}{\log{T}}, \end{equation} where $C_{s}$ is a constant that depends only on $F(\omega)$ and is independent to $\mathbb{D}$.

The proof of Theorem (ref) is sophisticated. For the sake of clarity, we next present an inequality system as a roadmap toward the proof. After this, we formally illustrate each line of it with lemmas.

Since EMLP proposes $J(x_{k,t}^{\top}\hat{\theta}_{k})$ in every round of epoch $k$, we may denote the per-round regret as $Reg_t(\hat{\theta}_{k})$, where:

equation[equation omitted — 161 chars of source]

Therefore, it is sufficient to prove the following Theorem:

theorem[Expected per-round regret] For the per-round regret defined in Equation (ref), we have: \begin{equation*} \mathbb{E}[Reg_{k,t}(\hat{\theta}_k)]\leq C_{s}\cdot\frac{d}{\tau_k}. \end{equation*}

The proof roadmap of Theorem (ref) can be written as the following inequality system. \ifbool{twocol}{

equation[equation omitted — 370 chars of source]

}{

equation[equation omitted — 343 chars of source]

}

We explain Equation (ref) in details. The first inequality comes from the following Lemma (ref).

lemma[Quadratic regret bound] We have: \ifbool{twocol}{ \begin{equation} Reg_t(\theta)\leq C\cdot (\theta-\theta^{*})^{\top}x_tx_t^{\top}(\theta-\theta^{*}), \end{equation}$\forall\theta\in\mathbb{H}, \forall x_t\in\mathbb{D}$. }{ \begin{equation} Reg_t(\theta)\leq C\cdot (\theta-\theta^{*})^{\top}x_tx_t^{\top}(\theta-\theta^{*}), \forall\theta\in\mathbb{H}, \forall x_t\in\mathbb{D}. \end{equation} } Here $C=2B_f+(B+J(0))\cdot B_{f'}.$

The intuition is that function $g(J(u),u)$ is $2^{nd}$-order-smooth at $(J(u^*), u^*)$. A detailed proof of Lemma (ref) is in Appendix (ref). Note that $C$ is highly dependent on the distribution $F$. After this, we propose Lemma (ref) that contributes to the second inequality of Equation (ref).

lemma[Quadratic likelihood bound] For the expected likelihood function $L_t(\theta)$ defined in Equation (ref), we have: \begin{equation} L_t(\theta)-L_t(\theta^{*})\geq\frac12 C_{down}(\theta-\theta^{*})^{\top}x_tx_t^{\top}(\theta-\theta^{*}), \forall \theta\in\mathbb{H}, \forall x\in\mathbb{D}, \end{equation} \begin{equation} where \;\;\; C_{down}:=\inf_{\omega\in[-B, B+J(0)]}\min\left\{\frac{d^2\log(1-F(\omega))}{d\omega^2}, \frac{d^2\log(F(\omega))}{\text{d}\omega^2}\right\}>0. \end{equation}
proofSince the true parameter always maximizes the expected likelihood function murphy2012machine, by Taylor Expansion we have $\nabla L(\theta^{*})=0$, and hence $L_t(\theta)-L_t(\theta^{*}) = \frac{1}{2}(\theta-\theta^{*})^{\top}\nabla^2 L_t(\tilde{\theta})(\theta-\theta^{*})$ for some $\tilde{\theta}=\alpha\theta^{*}+(1-\alpha)\theta$. Therefore, we only need to prove the following lemma: \begin{lemma}[Strong convexity and Exponential Concavity] Suppose $l_{t}(\theta)$ is the negative log-likelihood function in epoch $k$ at time $t$. For any $\theta\in\mathbb{H}, x_{t}\sim\mathbb{D}$, we have: \ifbool{twocol}{ \begin{equation} \begin{aligned} \nabla^2l_{t}(\theta)&\succeq C_{down} x_{t}x_{t}^{\top}\\ &\succeq \frac{C_{down}} {C_{exp}}\nabla l_{t}(\theta)\nabla l_{t}(\theta)^{\top}\succeq 0, \end{aligned} \end{equation} }{ \begin{equation} \nabla^2l_{t}(\theta)\succeq C_{down} x_{t}x_{t}^{\top}\succeq \frac{C_{down}} {C_{exp}}\nabla l_{t}(\theta)\nabla l_{t}(\theta)^{\top}\succeq 0, \end{equation} } \begin{equation} \text{ where }\; C_{\text{exp}}:=\sup_{\omega\in[-B, B+J(0)]}\max\left\{\frac{f(\omega)^2}{F(\omega)^2}, \frac{f(\omega)^2}{(1-F(\omega))^2}\right\}<+\infty. \end{equation} \end{lemma} Proof of Lemma (ref) is in Appendix (ref). With this lemma, we see that Lemma (ref) holds.

With Lemma (ref) and Lemma (ref), we can immediately get the following Lemma (ref).

lemma[Surrogate Regret] The relationship between $Reg(\theta)$ and likelihood function can be shown as follows: \begin{equation} Reg_t(\theta)\leq \frac{2\cdot C}{C_{down}}\left(L_t(\theta)-L_t(\theta^{*})\right), \end{equation} $\forall\theta\in\mathbb{H},\forall{x}\in\mathbb{D}$, where $C$ and $C_{\text{down}}$ are defined in Lemma (ref) and (ref) respectively.

Lemma (ref) enables us to choose the negative log-likelihood function as a surrogate loss. This is not only an important insight of EMLP regret analysis, but also the foundation of ONSP design.

The last inequality of Equation (ref) comes from this lemma:

lemma[Per-epoch surrogate regret bound] Denoting $\hat{\theta}_k$ as the estimator coming from epoch $(k-1)$ and being used in epoch $k$, we have: \begin{equation} \mathbb{E}_{h}[\hat{L}_k(\hat{\theta}_k)-\hat{L}_k(\theta^{*})]\leq\frac{C_{exp}}{C_{down}}\cdot\frac{d}{\tau_k+1}. \end{equation} Here $C_{\text{exp}}$ is defined in Equation (ref), and $\mathbb{E}_h[\cdot] = \mathbb{E}[\cdot|hist(k-1)].$

Proof of Lemma (ref) is partly derived from the work koren2015fast, and here we give a proof sketch without specific derivations. A detailed proof lies in Appendix (ref).

\noindentProof sketch of Lemma (ref). We list the four main points that contribute to the proof:

itemize\topsep-1em \itemsep0em • Notice that $l_{k,t}(\theta)$ is strongly convex w.r.t. a seminorm $x_{k,t}x_{k,t}^{\top}$, we know $\hat{L}_{k}(\theta)$ is also strongly convex w.r.t. $\sum_{t=1}^{\tau_k}x_{k,t}x_{k,t}^{\top}$. • For two strongly convex functions $g_1$ and $g_2$, we can upper bound the distance between their arg-minimals (scaled by some norm $||\cdot||$) with the dual norm of $\nabla(g_1-g_2)$. • Since a seminorm has no dual norm, we apply two methods to convert it into a norm: (1) separation of parameters and likelihood functions with a “leave-one-out” method (to separately take expectations), and (2) separation of the spinning space and the null space. • As the dual data-dependent norm offsets the sum of $xx^{\top}$ to a constant, Lemma (ref) holds.

We have so far proved Inequality (ref) after proving Lemma (ref), (ref), (ref). Therefore, Theorem (ref) holds.

\texorpdfstring{$O(d\log{T})$}{Lg} Regret of ONSP

Here we present the regret analysis of Algorithm (ref) (ONSP). Firstly, we state the main theorem.

theoremWith Assumptions (ref), (ref), (ref), the regret of Algorithm (ref) (ONSP) satisfies: \begin{equation} Reg_{ONSP}\leq C_{a}\cdot d\log{T}, \end{equation} where $C_{a}$ is a function only dependent on $F$.
proofProof of Theorem (ref) here is more concise than Section (ref), because the important Lemma (ref) and (ref) have been proved there. From Lemma (ref), we have: \begin{equation} g(J(u_t^*),u_t^{*})-g(J(u_t),u_t^{*})\leq \frac{2\cdot C}{C_{down}}\cdot\mathbb{E}_{N_t}[l_t(\theta_{t})-l_t(\theta^{*})]. \end{equation} With Equation (ref), we may reduce the regret of likelihood functions as a surrogate regret of pricing. From Lemma (ref) we see that the log-likelihood function is $\frac{C_{\text{down}}}{C_{\text{exp}}}$-exponentially concave\footnote{A function $f(\mu)$ is $\alpha$-exponentially concave iff $\nabla^2f(\mu)\succeq\alpha\nabla f(\mu)\nabla f(\mu)^{\top}$.}. This enables an application of Online Newton Step method to achieve a logarithmic regret. Therefore, by citing from the Online Convex Optimization hazan2019introduction, we have the following Lemma. \begin{lemma}[Online Newton Step] With parameters $\gamma = \frac{1}{2}\min\{\frac{1}{4GD}, \alpha\}$ and $\epsilon=\frac{1}{\gamma^2D^2}$, and $T>4$ guarantees: \begin{equation*} \sup_{\{x_t\}}\left\{\sum_{t=1}^{T}l_t(\theta_{t})-\min_{\theta\in\mathbb{H}}\sum_{t=1}^{T}l_t(\theta)\right\}\leq5\left(\frac{1}{\alpha}+GD\right)d\log T. \end{equation*} Here $\alpha = \frac{C_{\text{down}}}{C_{\text{exp}}}$, $D=2\cdot B_1$ and $G=\sqrt{C_{\text{exp}}}\cdot B_2$. \end{lemma} With Equation (ref) and Lemma (ref), we have: \begin{equation} Reg=\sum_{t=1}^{T}\left(g(J(u_t^*),u_t^{*})-\mathbb{E}_{N_1, N_2, \ldots, N_{t-1}}[g(J(u_t),u_t^{*})]\right)\leq\frac{2\cdot C}{C_{down}}\cdot5\left(\frac{1}{\alpha}+GD\right)d\log T. \end{equation} Therefore, we have proved Lemma (ref).

Lower Bound for Unknown Distribution

In this part, we evaluate Assumption (ref) and prove that an $\Omega{(\sqrt{T})}$ lower regret bound is unavoidable with even a slight relaxation: a Gaussian noise with unknown $\sigma$. Our proof is inspired by broder2012dynamic Theorem 3.1, while our lower bound relies on more specific assumptions (and thus applies to more general cases).

We firstly state Assumption (ref) covering this part, and then state Theorem (ref) as a lower bound:

assumptionThe noise $N_t\sim\mathcal{N}(0,\sigma^2)$ independently, where $0<\sigma\leq 1$ is fixed and unknown.
theorem[Lower bound with unknown $\sigma$] Under Assumption (ref), (ref), (ref) and (ref), for any policy (algorithm) $\Psi: \mathbb{R}^{d}\times\left(\mathbb{R}^{d},\mathbb{R},\{0,1\}\right)^{t-1}\rightarrow\mathbb{R}^{+}$ and any $T>2$, there exists a Gaussian parameter $\sigma\in\mathbb{R}^{+}$, a distribution $\mathbb{D}$ of features and a fixed parameter $\theta^{*}$, such that: $Reg_{\Psi}\geq{\frac1{24000}}\cdot\sqrt{T}.$

\noindentRemark: Here we assume $x_t$ to be i.i.d., which also implies the applicability on adversarial features. However, the minimax regret of the stochastic feature setting is $\Theta(\sqrt{T})$ javanmard2019dynamic, while existing results have not yet closed the gap in adversarial feature settings.

\noindentProof sketch of Theorem (ref). Here we assume a fixed valuation, i.e. $u^{*}=x_t^{\top}\theta^{*}, \forall t=1,2,\ldots$. Equivalently, we assume a fixed feature. The main idea of proof is similar to that in broder2012dynamic: we assume $\sigma_1=1, \sigma_2 = 1-T^{-\frac14}$, and we prove that: (1) it is costly for an algorithm to perform well in both cases if the $\sigma$'s are different by a lot, and (2) it is costly for an algorithm to distinguish the two cases if $\sigma$'s are close enough to each other. We put the detailed proof in Appendix (ref).

Numerical Result

figure*[figure* omitted — 1,465 chars of source]

In this section, we conduct numerical experiments to validate EMLP and ONSP. In comparison with the existing work, we implement a discretized EXP-4 auer2002nonstochastic algorithm for pricing, as is introduced in cohen2020feature_journal (in a slightly different setting). We will test these three algorithms in both stochastic and adversarial settings.

Basically, we assume $d=2, B_1=B_2=B=1$ and $N_t\sim\mathcal{N}(0,\sigma^2)$ with $\sigma = 0.25$. In both settings, we conduct EMLP and ONSP for $T=2^{16}$ rounds. For ONSP, we empirically select $\gamma$ and $\epsilon$ that accelerates the convergence, instead of using the values specified in Lemma (ref). Since EXP-4 consumes exponential time and requires the knowledge of $T$ in advance to discretize the policy and valuation spaces, we execute EXP-4 for a series of $T=2^k, k=1,2,\ldots, 12$. We repeat every experiment 5 times for each setting and then take an average.

\ifbool{compact}{\noindentStochastic Setting.}{\paragraph{Stochastic Setting.}} We implement and test EMLP, ONSP and EXP-4 with stochastic $\{x_t\}$'s. The numerical results are shown in Figure (ref) on a log-log diagram, with the regrets divided by $\log(t)$. It shows $\log(t)$-convergences on EMLP and ONSP, while EXP-4 is in a $t^{\alpha}$ rate with $\alpha\approx 0.699$.

\ifbool{compact}{\noindentAdversarial Setting.}{\paragraph{Adversarial Setting.}} We implement the three algorithms and test them with an adversarial $\{x_t\}$'s: for the $k$-th epoch, i.e. $t=2^{k-1}, 2^{k-1}+1, \ldots, 2^k-1$, we let $x_t = [1, 0]^{\top}$ if $k\equiv1(\mod2)$ and $x_t=[0,1]^{\top}$ if $k\equiv0(\mod2)$. The numerical results are shown in Figure (ref) on a log-log diagram, with the regrets divided by $\log(t)$. The log-log plots of ONSP and EXP-4 are almost the same as those in Figure (ref). However, EMLP shows an almost linear ($t^{\alpha}$ rate with $\alpha\approx 0.912$) regret in this adversarial setting. This is because the adversarial series only trains one dimension of $\theta$ in each epoch, while the other is arbitrarily initialized and does not necessarily converge. However, in the next epoch, the incorrect dimension is exploited. Therefore, a linear regret originates.

Discussion

Here we discuss the coefficients on our regret bounds as a potential extension of future works. In Appendix (ref) we will discuss more on algorithmic design, problem modeling, and ethic issues.

\ifbool{compact}{\noindentCoefficients on Regret Bounds.}{\paragraph{Coefficients on Regret Bounds.}} The exact regret bounds of both EMLP and ONSP contain a constant $\frac{C_{\text{exp}}}{C_{\text{down}}}$ that highly depends on the noise CDF $F$ and could be large. A detailed analysis in Appendix (ref) shows that $\frac{C_{\text{exp}}}{C_{\text{down}}}$ is exponentially large w.r.t. $\frac{B}{\sigma}$ (see Equation (ref) and Lemma (ref)) for Gaussian noise $\mathcal{N}(0, \sigma^2)$, which implies that a smaller noise variance would lead to a (much) larger regret bound. This is very counter-intuitive as a larger noise usually leads to a more sophisticated situation, but similar phenomenons also occur in existing algorithms that are suitable for constant-variance noise, such as RMLP in javanmard2019dynamic and OORMLP in wang2020online. In fact, it is because a (constantly) large noise would help explore the unknown parameter $\theta^*$ and smoothen the expected regret. In this work, this can be addressed by increasing $T$ since we mainly concern the asymptotic regrets as $T\rightarrow\infty$ with fixed noise distributions. However, we admit that it is indeed a nontrivial issue for finite $T$ and small $\sigma$ situations. There exists a “ShallowPricing” method in cohen2020feature_journal that can deal with a very-small-variance noise setting (when $\sigma=\tilde{O}(\frac1{T})$) and achieve a logarithmic regret. Specifically, its regret bound would decrease as the noise variance $\sigma$ decreases (but would still not reach $O(\log\log{T})$ as the noise vanishes). We might also apply this method as a preprocess to cut the parameter domain and decrease $\frac{B}{\sigma}$ within logarithmic trials (see cohen2020feature_journal Thm. 3), but it is still open whether a $\log(T)$ regret is achievable when $\sigma=\Theta(T^{-\alpha})$ for $\alpha\in(0,1)$.

Conclusion

In this work, we studied the problem of online feature-based dynamic pricing with a noisy linear valuation in both stochastic and adversarial settings. We proposed a max-likelihood-estimate-based algorithm (EMLP) for stochastic features and an online-Newton-step-based algorithm (ONSP) for adversarial features. Both of them enjoy a regret guarantee of $O(d\log{T})$, which also attains the information-theoretic limit up to a constant factor. Compared with existing works, EMLP gets rid of strong assumptions on the distribution of the feature vectors in the stochastic setting, and ONSP improves the regret bound exponentially from $O(T^{2/3})$ to $O(\log{T})$ in the adversarial setting. We also showed that knowing the noise distribution (or the demand curve) is required to obtain logarithmic regret, where we prove a lower bound of $\Omega(\sqrt{T})$ on the regret for the case when the noise is knowingly Gaussian but with an unknown $\sigma$. In addition, we conducted numerical experiments to empirically validate the scaling of our algorithms. Finally, we discussed the regret dependence on the noise variance, and proposed a subtle open problem for further study.

Acknowledgments

The work is partially supported by the Adobe Data Science Award and a start-up grant from the UCSB Department of Computer Science. We appreciate the input from anonymous reviewers and AC as well as a discussion with Akshay Krishnamurthy for clarifying some details of krishnamurthy2020contextual.