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.
42,593 characters · 6 sections · 28 citation commands
Semi-Parametric Efficient Policy Learning with Continuous Actions
We consider off-policy evaluation and optimization with continuous action spaces from observational data, where the data collection (logging) policy is unknown. We take a semi-parametric approach where we assume that the value function takes a known parametric form in the treatment, but we are agnostic on how it depends on the observed contexts/features. In particular, we assume that:
for some known feature functions $\phi$ but unknown functions $\theta_0$. We assume that we are given a set of $n$ observational data points $(x_{1},..., x_{n}) $ that consist of i.i.d copies of the random vector $x=(y, a, z)\in {\cal Y}\times {\cal A}\times {\cal Z}$, such that $\mathbb{E}[y\mid a, z]=V(a, z)$.\footnote{In most of the paper, we can allow for the case where $z$ is endogenous, in the sense that $\mathbb{E}[y \mid a, z] = V(a, z) + f_0(z)$. In other words, the noise in the random variable $y$ can be potentially correlated with $z$. However, we assume that conditional on $z$, there is no remaining endogeneity in the choice of the action in our data. The latter is typically referred to as conditional ignorability/exogeneity imbens2015causal.}
Our goal is to estimate a policy $\hat{\pi}: {\cal Z}\rightarrow {\cal A}$ from a space of policies $\Pi$ that achieves good regret:
for some regret rate that depends on the policy space $\Pi$ and the sample size $n$.
The semi-parametric value assumption allows us to formulate a doubly robust estimate $V_{DR}$ of the value function, from the observational data, which depends on first stage regression estimates of the coefficients $\theta_0(z)$ and the conditional covariance of the features $\Sigma_0(z)=\mathbb{E}[\phi(a,z)\phi(a,z)^T\mid z]$. The latter is the analogue of the propensity function when actions are discrete. Our estimate is doubly robust in that it is unbiased if either $\theta_0$ or $\Sigma_0$ is correct. Then we optimize this estimate:
\paragraph{Main contributions.} We show that the double robustness property implies that our objective function satisfies a Neyman orthogonality criterion, which in turn implies that our regret rates depend only in a second order manner on the estimation errors on the first stage regression estimates of the functions $\theta_{0}, \Sigma_0$. Moreover, we prove a regret rate whose leading term depends on the variance of the difference of our estimated value between any two policy values within a “small regret-slice” and on the entropy integral of the policy space. We achieve this with a computationally efficient variant of the empirical risk minimization (ERM) algorithm (of independent interest) that uses a validation set to construct a preliminary policy and use it to regularize the policy computed on the training set. Hence, we manage to achieve variance-based regret bounds without the need for variance or moment penalization maurer2009empirical,swaminathan2015counterfactual,foster2019orthogonal used in prior work and which can render a computationally tractable policy learning problem, non-convex. We also show that the asymptotic variance of our off-policy estimate (which governs the scale of the leading regret term) is asymptotic minimax optimal, in the sense that it achieves the semi-parametric efficiency lower bound.
\paragraph{Robustness to mis-specification.} Notably, our approach provides meaningful guarantees even when our semi-parametric value function assumption is violated. Suppose that the true value function does not take the form of Equation (ref), but rather takes some other form $V_0(a, z)$. Then one can consider the projection of this value function onto the forms of Equation (ref), as:
where the expectation is taken over the distribution of observed data. Then our approach takes the interpretation of achieving good regret bounds with respect to this best linear semi-parametric approximation. This is an alternative to the kernel smoothing approximation proposed by swaminathan2015counterfactual in contextual bandit setting, as a regret target, and related to kallus2018policy. If there is some rough domain knowledge on the form of how the action affects the reward, then our semi-parametric approximate target should achieve better performance when the dimension of the action space is large, as the bias of kernel methods will typically incur an exponential in the dimension bias.
\paragraph{Double robustness.} In cases where the collection policy is known, our doubly robust approach can be used for variance reduction via fitting first stage regression estimates to the policy value, whilst maintaining unbiasedness. Thus we can apply our approach to improve regret in the counterfactual risk minimization framework swaminathan2015counterfactual, kallus2018policy and as a variance reduction method in contextual bandit algorithms with continuous actions swaminathan2015counterfactual.
\paragraph{Related Literature.} Our work builds on the recent work at the intersection of semi-parametric inference and policy learning from observational data. The important work of athey2017efficient analyzes the binary treatments and infinitesimal nudges to continuous treatments. They also take a doubly robust approach so as to obtain regret bounds whose leading term depends on the semi-parametric efficient variance and the entropy integral and which is robust to first stage estimation errors. The problem we study in this paper is different in that we consider optimizing over continuous action spaces, rather than infinitesimal nudges, under semi-parametric functional form. This assumption is without loss of generality if treatment is binary or multi-valued. Hence, our results are a generalization of binary treatments to arbitrary continuous actions spaces, subject to our semi-parametric value assumption. In fact we show formally in the Appendix how one can recover the result of athey2017efficient for the binary setting, from our main regret bound. In turn our work builds on a long line of work on policy learning and counterfactual risk minimization qian2011performance,zhao2012estimating,zhou2017residual,athey2017efficient,kitagawa2018should,zhou2018offline,beygelzimer2009offset,dudik2011doubly,swaminathan2015counterfactual,kallus2018policy,krishnamurthy. Notably, the work of zhou2018offline extends the work of athey2017efficient to many discrete actions, but only proves a second moment based regret bound, which can be much larger than the variance. Our setting also subsumes the setting of many discrete actions and hence our regularized ERM offers an improvement over the rates in zhou2018offline. foster2019orthogonal formulates a general framework of statistical learning with a nuisance component. Our method falls into this framework and we build upon some of the results in foster2019orthogonal. However, for the case of policy learning the implications of foster2019orthogonal provide a variance based regret only when invoking second moment penalization, which can be intractable. We side-step this need and provide a computationally efficient alternative. Finally, most of the work on policy learning in machine learning assumes that the current policy (equiv. $\Sigma_0(z)$) is known. Hence, double robustness is used mostly as a variance reduction technique. Even for this literature, as we discuss above, our method can be seen an alternative of recent work on policy learning with continuous actions kallus2018policy,krishnamurthy that makes use of non-parametric kernel methods.
Our work also connects to the semi-parametric estimation literature in econometrics and statistics. Our model is an extension of the partially linear model which has been extensively studied in the econometrics engle1986semiparametric, robinson1988root. By considering context-specific coefficients (random coefficients) and modeling a value function that is non-linear in treatment, we substantially extend the partially linear model. wooldridge2004estimating, graham2018semiparametrically studied a special case of our model where output is linearly dependent on treatment given context, with the aim of estimating the average treatment effect. graham2018semiparametrically constructed the doubly robust estimator and showed its semi-parametric efficiency under the linear-in-treatment assumption. We extend their results to a more general functional form and use the double-robustness property and semi-parametric efficiency for policy evaluation and optimization rather than treatment effect estimation. Our work is also connected to the recent and rapidly growing literature on the orthogonal/locally robust/debiased estimation literature chernozhukov2018double, chernozhukov2016locally, van2011targeted.
Let $\hat{\theta}$ be a first stage estimate of $\theta_0(z)$, which can be obtained by minimizing the square loss:
where $\Theta$ is an appropriate parameter space for the parameters $\theta(z)$. Let $\Sigma_0(z)$ denote the conditional covariance matrix:
This is the analogue of the propensity model in discrete treatment settings. An estimate $\hat{\Sigma}(z)$ can be obtained by running a multi-task regression problem for each entry to the matrix, i.e.:
where ${\cal S}_{ij}$ is some appropriate hypothesis space for these regressions. Finally, the doubly robust estimate of the off-policy value takes the form:
where:
The quantity $\theta_{DR}(y, a, z)$ can be viewed as an estimate of $\theta_0(z)$, based on a single observation. In fact, if the matrix $\hat{\Sigma}$ was equal to $\Sigma_0$, then one can see that $\theta_{DR}(y, a, z)$ is an unbiased estimate of $\theta_0(z)$. Our estimate $v_{DR}$ also satisfies a doubly robust property, i.e. it is correct if either $\hat{\theta}$ is unbiased or $\hat{\Sigma}^{-1}$ is unbiased (see Appendix (ref) for a formal statement). Finally, we will denote with $\theta_{DR}^0(y, a, z)$ the version of $\theta_{DR}$, where the nuisance quantities $\theta$ and $\Sigma$ are replaced by their true values, and correspondingly define $v_{DR}^0(y, a, z; \pi)$. We perform policy optimization based on this doubly robust estimate:
Moreover, we let $\pi_*^0$ be the optimal policy:
Our main regret bounds are derived for a slight variation of the ERM algorithm that we presented in the preliminary section. In particular, we crucially need to augment the ERM algorithm with a “validation” step, where we split our data into a training and validation step, and we restrict attention to policies that achieve small regret on the training data, while still maintaining small regret on the validation set. This extra modification enabled us to prove variance based regret bounds and is reminiscent of standard approaches in machine learning, like $k$-fold cross-validation and early stopping, hence could be of independent interest.
We note that we present our theoretical results for the simpler case where the nuisance estimates are trained on a separate split of the data. However, our results qualitatively extend to the case where we use the cross-fitting idea of chernozhukov2018double (i.e. train a model on one half and predict on the other and vice versa).
\paragraph{Regret bound.} To show the properties of this algorithm, we first show that the regret of the doubly robust algorithm is impacted in a second order manner by the errors in the first stage estimates. We will also make the following preliminary definitions. For any function $f$ we denote with $\|f\|_2 = \sqrt{\mathbb{E}[f(x)^2]}$, the standard $L^2$ norm and with $\|f\|_{2,n}=\sqrt{\mathbb{E}_n[f(x)^2]}$ its empirical analogue. Furthermore, we define the empirical entropy of a function class $H_2(\epsilon, {\cal F}, n)$ as the largest value, over the choice of $n$ samples, of the logarithm of the size of the smallest empirical $\epsilon$-cover of ${\cal F}$ on the samples with respect to the $\|\cdot\|_{2,n}$ norm. Finally, we consider the empirical entropy integral:
Our statistical learning problem corresponds to learning over the function space:
where the data is $x=(y,a,z)$. We will also make a very benign assumption on the entropy integral:
We provide a proof of this Theorem in Appendix (ref). The regret result contains two main contributions: 1) first the impact of the nuisance estimation error is of second order (i.e. $h_{n,\delta}^2$ instead of $h_{n,\delta}$), 2) the leading regret term depends on the variance of small-regret policy differences and the entropy integral of the policy space. The first property stems from the Neyman orthogonality property of the doubly robust estimate of the policy. The second property stems from the out-of-sample regularization step that we added to the ERM algorithm. Typically, we will have $h_{n,\delta}^2=o(1/\sqrt{n})$ and thereby this term is of lower order than the leading term. Moreover, for many policy spaces $\kappa(0, {\cal F}_{\Pi})=0$, in which case we see that if the setting satisfies a “margin” condition (i.e. the best policy is better by a constant $\Delta$ margin), then eventually the variance of small regret policies is $0$, since it only contains the best policy. In that case, our bound leads to fast rates of $\log(n)/n$ as opposed to $1/\sqrt{n}$, since the leading term vanishes (similar to the $\log(n)/n$ achieved in bandit problems with such a margin condition).
Dependence on the quantity $V_2^0$ is quite intuitive: if two policies have almost equivalent regret up to a $\mu_n$ rate, then it will be very easy to be mislead among them if one has much higher variance than the other. For some classes of problems, the above also implies a regret rate that only depends on the variance of the optimal policy (e.g. when all policies with low regret have a variance that is not much larger than the variance of the optimal policy. In Appendix (ref) we show that the latter is always the case for the setting of binary treatment studied in athey2017efficient and therefore applying our main result, we recover exactly their bound for binary treatments.
\paragraph{Semi-parametric efficient variance.} Our regret bound depends on the variance of our doubly robust estimate of the value function. One then wonders if there are other estimates of the value function that could achieve better variance than $V_{DR}(\pi)$. However, we show that at least asymptotically and without further assumptions on the functions $\theta_{0}(z)$ and $\Sigma_{0}(z)$, this cannot be the case. In particular, we show that our estimator achieves what is known as the semi-parametric efficient variance limit for our setting. More importantly for our regret result, this is also true for the semiparametric efficient variance of the policy differences. This is the case in our main setup; where the model is mis-specified and only a projection of the true value; and even if we assume that our model is correct, but make the extra assumption of homoskedasticity, i.e., the conditional variance of residuals of outcomes $y$ do not depend on $(a, z)$.
We provide a proof for the value function, but this result also extends to the difference of values. We conclude the section by providing concrete examples of rates for policy classes of interest.
\paragraph{Extension: Semi-Bandit Feedback} Suppose that our value function takes the form: $V(a, z) = \phi(a, z)^T\, \Theta_0(z)\, \phi(a, z)$, where $\Theta_0(z)$ is a $p\times p$ matrix and we observe semi-bandit feedback, i.e. we observe a vector $Y$ s.t.: $ \mathbb{E}[ Y \mid a, z] = \Theta_0(z)^T \phi(a, z)$. Then we can apply our DR approach to each coordinate of $Y$ separately.
All the theorems in this section extend to this case, which will prove useful in our pricing application where $a$ is the price of a set of products and $Y$ is the vector of observed demands for each product.
Consider the personalized pricing of a single product. The objective is the revenue:
where $b(z)\geq \gamma > 0$ and $a(z) + b(z)p $ gives the unknown, context-specific demand function. We assume that we observe an unbiased estimate $d$ of demand:
We want to optimize over a space of personalized pricing policies $\Pi$. If, for instance, the observational policy was homoskedastic (i.e. the exploration component was independent of the context $z$), we show in Appendix (ref) that doubly robust estimators for $a(z)$ and $b(z)$ are
where $g(z)=\mathbb{E}[p\mid z]$ and the variance $\sigma^2$. Thus, in this example, we only need to estimate the mean treatment policy $\mathbb{E}[p\mid z]$ and the variance $\sigma^2$.
\paragraph{Experimental evaluation.} We empirically evaluate our framework on the personalized pricing application with synthetic data. In particular, we use simulations to assess our estimator's ability to evaluate and optimize personalized pricing functions. To do this, we compare the performance of our doubly robust estimator with (1) Direct estimator, $\langle \hat \theta (z), \phi(a,z) \rangle$, (2) Inverse propensity score estimator \footnote{ $\theta_{IPS}(y, a, z) = \hat{\Sigma}(z)^{-1}\, \phi(a, z)\, y$}, (3) Oracle orthogonal estimator, $v_{DR}^{o} (x, \pi)$.
\paragraph{Data Generating Process.} Our simulation design considers a sparse model. We assume that there are $k$ continuous context variables distributed uniformly $z_{i} \sim U(1,2)$ for $i=1, \dots, k$ but only $l$ of them affects demand. Let $\bar z = 1/l (z_i + \dots + z_l)$. Price $p$ and demand $d$ are generated as $ x \sim \mathcal{N} (\bar z, 1), d= a(\bar z) - b (\bar z) x + \epsilon \ \text{and} \ \epsilon \sim \mathcal{N} (0, 1) $. We consider four functional forms for the demand model: (i) (Quadratic) $ a (z) =2z^2, b (z) = 0.6z$, (ii) (Step) $ a (z) = 5 \{ z<1.5\} + 6 \{ z>1.5\}, b (z) = 0.7 \{ z<1.5\} + 1.2 \{ z>1.5\}$, (iii) (Sigmoid) $ a (z) = 1/(1+\exp(z)) + 3, b(z) = 2/(1+\exp(z)) +0.1 $, (iv) (Linear) $ a (z) = 6 z, b (z) = z $
These functions and the data generating process ensure that the conditional expectation function of demand given $z$ is non-negative for all $z$, the observed prices are positive with high probability, and the optimal prices are in the support of the observed prices. In each experiment, we generate 1000, 2000, 5000, and 10000 data points, and report results over 100 simulations. We estimate the nuisance functions using 5-fold cross-validated lasso model with polynomials of degrees up to 3 and all the two-way interactions of context variables. We present the results for two regimes: (i) Low dimensional with $k=2, l=1$, (ii) High dimensional with $k=10, l=3$. \paragraph{Policy Evaluation.} For policy evaluation we consider four pricing functions: (i) Constant, $ \pi(z)=1 $, (ii) Linear, $ \pi(z)=z $, (iii) Threshold, $ \pi(z)= 1 + 1\{ z>1.5 \}$, (iv) Sin, $ \pi(z)= \text{sin}(z)$. The results for the low dimensional regime are summarized in Figure (ref)(a), where each row and column corresponds to a different demand function and a policy function, respectively\footnote{The results are very similar for the high dimensional model which are reported in Figure (ref)(a) in the appendix.}. The results show that, as expected, our the performance of our method is very similar to the oracle estimator and achieves a significantly better performance than the direct and inverse propensity score methods, which suffer from large biases. These results also support our claim that the asymptotic variance of the doubly robust estimate is the same as the variance of the oracle method. It is also important to point out that we obtain similar performances across two different regimes. \paragraph{Regret.} To investigate the regret performance of our method, we consider a constant pricing function, $\pi(z) = \gamma$ and a linear policy $\pi(z) = (\gamma_1 z_1 + \dots + \gamma_k z_k)$. We compute the optimal pricing functions in these two function spaces and report the distribution of regret in Figure (ref)(b) under the low dimensional regime and in Appendix (ref) under the high dimensional regime. Across the four demand functions and two pricing functions we consider, our method achieves small regrets, comparable to the oracle method. The direct and inverse propensity methods, depending on the demand function, yield large regrets.
Finally, we consider the same simulation exercise under the assumption that an unbiased estimate of revenue rather than demand is observed. Since revenue depends on the $p^2$ the model is now quadratic
For the data generating process we use the same functions $a(z)$ and $b(z)$ as in the personalized pricing example \footnote{We provide the calculation of the doubly robust estimators for this example in Appendix (ref).}. Figures (ref) and (ref) in Appendix (ref) summarize results for policy evaluation and optimization. The overall performance of our doubly robust estimator is similar to the demand model, and it performs better the direct model. One important difference to note is that when the sample size is small, we observe some finite sample biases for some function classes.
Motivated by a resource allocation scenario, we also analyze experimentally the special case where $\phi(a, z)=a$. Consider the case where we have $p$ possible tasks to invest in, and we have investment costs. Each task yields a return on investment that is a linear function of the investment, but an unknown function $\theta(z)$ of the context $z$. Moreover, to maintain an investment portfolio of $\pi(z)$ we need to pay a known cost $C(\pi(z))$. Given a policy space $\Pi: {\cal Z}\rightarrow \mathbb{R}^p$, our goal is to optimize:
This falls into our framework, if we treat the offset part as of the form $\langle \theta_0(z), C(\pi(z)) \rangle$ but with a known $\theta_0(z)=1$. So in that case we simply consider $\theta_{DR,0}(z)=\theta_0(z)=1$. Then applying our framework we optimize:
In the case of quadratic costs $C(\pi(z))=\frac{\lambda}{2} \|\pi(z)\|_2^2$, then this boils down to exactly optimizing a square loss objective, since:
Thus policy optimization reduces to a multi-task regression problem where we are trying to predict $\theta_{DR}(z)/\lambda$ from $z$.\footnote{The above reasoning extends to heterogeneous costs across tasks e.g. $C(\pi(z)) = \sum_i c_i \pi_i(z)^2$. In this case the label of the $i$-th task of the multi-task regression problem is $\theta_{DR,i}(z)/c_i$ and we need to perform a weighted multi-task regression where the weight on the square loss for task $i$ is equal $c_i$.}
We can consider sparse linear policies:
where $\alpha_i$ corresponds to the $i$-th row of matrix $A$. In this case our problem reduces to the MultiTask Lasso problem where the label is $\theta(z)/\lambda$.
\paragraph{Experimental Evaluation.} For experimental evaluation we consider a model with two tasks, $a_1$ and $a_2$:
We use the same distributions and functions, $a(z)$ and $b(z)$, given above for the pricing application. To estimate the optimal allocation and its regret, we run a 5-fold cross validated MultiTask Lasso algorithm and set $\lambda=1$. We report the distribution of return on investment obtained from different models in Figure ((ref)). The results suggest that doubly robust method achieves a significantly lower regret than the direct method in both regimes and its performance is similar to the oracle method \footnote{For comparison, the value achieved by best-in-class policy is 22.2 in low dimensional regime and ? in high dimensional regime. We omit the inverse propensity score regrets since they are too large to report together with other estimates}.