Doubly Robust Policy Evaluation and Optimization

Miroslav Dudík, Dumitru Erhan, John Langford, Lihong LiarXiv 2015 · DOI

TL;DR

This paper introduces the Doubly Robust (DR) estimation technique to the field of contextual bandits, providing a powerful framework for evaluating new policies using historical data. By combining reward modeling with importance sampling, the DR estimator remains unbiased if either the reward model or the action-probability model is correct, significantly reducing variance and improving policy optimization compared to traditional methods.

What Problem Does This Paper Address?

In many real-world scenarios—like personalized medicine, ad targeting, or news recommendations—we operate in a contextual bandit setting. We see a context (a patient's history), take an action (a specific treatment), and observe a reward (recovery). Crucially, we never see what would have happened if we had chosen a different action.

The challenge arises when we want to evaluate a new policy using old data (off-policy evaluation). Traditionally, researchers used two methods:

  1. Direct Method (DM): Build a model to predict rewards. If the model is slightly wrong, the evaluation is biased.
  2. Inverse Propensity Scoring (IPS): Weight the observed rewards by how likely the old policy was to take that action. While unbiased, this often suffers from extreme variance—if the old policy rarely took an action the new policy loves, the weights explode, making the estimate noisy and unreliable.

Methods

The authors propose the Doubly Robust (DR) estimator. It uses a reward model $\hat{r}$ as a baseline and then applies a correction term based on the actual observed rewards, weighted by the action probabilities (propensities).

Mathematically, for a context $x$ and action $a$: $$V_{DR} = \hat{r}(x, \nu) + \frac{\nu(a|x)}{\hat{\mu}(a|x)}(r - \hat{r}(x, a))$$ Where $\nu$ is the new policy, $\hat{\mu}$ is the estimated old policy, and $r$ is the observed reward.

What’s new here? * Double Protection: The estimate is unbiased if either the reward model $\hat{r}$ or the propensity model $\hat{\mu}$ is accurate. * Non-asymptotic Analysis: Unlike previous work that focused on how these estimators behave with infinite data, this paper provides bounds for finite sample sizes. * Non-stationary Extension: The authors introduce DR-ns, an algorithm that evaluates "online" learning policies (which change over time) by combining DR with an improved version of rejection sampling that uses a tunable bias-variance tradeoff.

Datasets

The authors validated their approach across several diverse settings:

  • UCI Benchmarks: 9 public multiclass classification datasets (e.g., Letter, Optdigits, Yeast) transformed into bandit tasks by "hiding" labels for unselected classes.
  • User Visit Data: A proprietary dataset of 4 million user records from an Internet portal, used to simulate "covariate shift" (where the data distribution changes).
  • Content Slotting: A proprietary dataset of 1.2 million web search queries to evaluate how different result types (news vs. web links) perform in the top slot.
  • RCV1: A large-scale public text categorization dataset used specifically to test the evaluation of non-stationary (adaptive) policies.

Key Insights and Ideas

  • The "Residual" Trick: The DR estimator essentially performs IPS on the errors (residuals) of the reward model. If the reward model is good, the residuals are small, which naturally tames the high variance typically seen in IPS.
  • Robustness to Misspecification: In real-world engineering, logging is often imperfect and reward models are often simple linear approximations. DR is designed to survive these imperfections by leveraging whichever piece of information is more accurate at the moment.
  • Controlled Bias for Efficiency: For non-stationary policies, the authors found that introducing a tiny, controlled amount of bias (via a quantile-based heuristic for acceptance rates) allows the algorithm to use much more of the historical data, leading to an order-of-magnitude improvement in evaluation quality.

Key Results

  • Lower Error: In the user visit experiment, DR reduced the Root Mean Squared Error (RMSE) by an average of 13.6% over IPS.
  • Better Policies: When used for policy optimization (training a new model), DR-based methods consistently produced classifiers with lower error rates than those trained using IPS.
  • Non-stationary Success: On the RCV1 dataset, the DR-ns approach achieved an RMSE of 0.0089, nearly twice as accurate as standard rejection sampling (0.0179).
  • Stability: The experiments showed that DR is much less sensitive to the "small propensity" problem (where rare actions cause IPS to spike) because the reward model acts as a stabilizing baseline.

Limitations and Future Work

  • Logging Quality: While DR is robust, it still performs best with "perfect logging." In systems where action probabilities are not recorded and must be estimated, a slight bias can still creep in.
  • Hyperparameter Tuning: For non-stationary evaluation (DR-ns), the choice of the quantile parameter $q$ involves a manual tradeoff between bias and variance. The authors note that automating this selection is an open research question.
  • Model Complexity: The paper primarily uses linear models for rewards. Exploring how DR interacts with more complex deep learning reward models in high-dimensional spaces remains a promising direction.

Summary updated

BibTeX
@misc{dudik2015doubly,
  author = {Miroslav Dudík and Dumitru Erhan and John Langford and Lihong Li},
  title = {{Doubly Robust Policy Evaluation and Optimization}},
  year = {2015},
  eprint = {1503.02834},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1503.02834},
}
Figure