Learning from Logged Implicit Exploration Data

Alexander L. Strehl, John Langford, Lihong Li, Sham Kakade

Abstract Summary

This paper introduces a robust framework for the "warm-start" problem in contextual bandits: learning an optimal decision-making policy from historical logs where the original exploration strategy is unknown or even deterministic. By estimating the logging policy's behavior over time and applying a stabilized importance-weighting technique, the authors provide a way to safely optimize new policies using "offline" data.

The Challenge of Counterfactual Evaluation

In many real-world systems—like ad placement on Facebook or news recommendation on Yahoo!—companies log vast amounts of data. We want to use this data to train better algorithms. However, this is harder than standard supervised learning because of the "counterfactual" problem: the logs only tell us the reward for the action the system actually took, not what would have happened if it had chosen differently.

Standard techniques for "Contextual Bandits" (learning to choose actions based on context) usually require knowing the exact probability with which the logging system chose an action. But in practice, that logging policy is often a "black box," or worse, it’s deterministic (choosing an action with 100% certainty), which breaks traditional statistical tools. This paper addresses how to learn from these "non-random" logs without needing to control the system during data collection.

Methodology

The authors propose a three-step approach to turn messy historical logs into a "synthetic" controlled experiment:

  1. Logging Policy Estimation: For every event in the logs, they use regression to estimate $\hat{\pi}(a|x)$—the probability that the logging policy would choose action $a$ given context $x$. Crucially, they treat the policy as stochastic over time, effectively averaging the different (possibly deterministic) versions of the policy used throughout the logging period.
  2. Importance Weighting with a Safety Valve: They create synthetic events where each reward is weighted by $1 / \max\{\hat{\pi}(a|x), \tau\}$. The parameter $\tau$ is a threshold that prevents weights from exploding when the estimated probability is very low.
  3. Policy Optimization: They then apply an offline learning algorithm to these weighted events to find a new policy $h$ that maximizes expected reward.

The mathematical core of the paper is proving that this estimator is "pessimal"—it tends to underestimate the value of a policy rather than overestimate it. This "safe" bias ensures the learner doesn't accidentally choose a bad policy just because of a few lucky data points.

Datasets

The authors validated their approach using two massive real-world datasets from Yahoo!:

  • Yahoo! Today Module (Experiment I): A dataset of 64.7 million events from a news recommendation engine. This was unique because the data was collected using uniformly random exploration, providing a "ground truth" to verify that their offline evaluator actually worked.
  • Yahoo! Ad Display Dataset (Experiment II): A more challenging dataset containing 35 million training events and 19 million test events involving 880,000 different ads and 3.4 million web pages. This represented a true "warm-start" scenario with non-random logging.

Key Insights

  • Implicit Exploration: The "aha moment" is realizing that even if a policy is deterministic at any single moment, it usually changes over days or weeks as models are updated. This variation acts as a form of "implicit exploration" that can be harvested to learn new strategies.
  • The "Underestimate, Don't Overestimate" Rule: By using the threshold $\tau$, the authors create a lower bound on the true value of a policy. This is a deliberate choice: it’s better for an algorithm to be skeptical of a new policy it hasn't seen much evidence for than to be overconfident and deploy a failure.
  • Lifting Restrictions: Unlike previous methods, this approach doesn't require the researcher to have controlled the original data collection or to have recorded the random seeds of the original algorithm.

Key Results

Evaluator Accuracy: In the news recommendation experiment, the offline estimate closely tracked the "ground truth" across a wide range of $\tau$ values. While a naive approach failed miserably, the proposed method was remarkably stable.

Offline estimate tracking ground truth

Superior Performance: In the ad display experiment, the "Learned" policy significantly outperformed both a "Random" policy and a "Naive" supervised learning approach. Specifically, the learned policy achieved an estimated reward (CTR) of approximately 0.0193, compared to 0.0154 for the random baseline.

Performance comparison of Learned, Random, and Naive methods

Generalization: The results showed that the method could successfully distinguish between good and bad policies even when the action space was massive (hundreds of thousands of ads).

Limitations and Future Work

  • The Bias Trade-off: The use of $\tau$ introduces a "pessimistic" bias. If a potentially great action was rarely explored in the logs, the algorithm might never "discover" it because its value will be heavily discounted.
  • IID Assumption: The theoretical proofs assume the world is "Identically and Independently Distributed" (IID), meaning the underlying distribution of users and rewards doesn't change, even if the policy does. In fast-moving web environments, this assumption is often stretched.
  • Scaling to RL: The authors suggest that while this paper focuses on contextual bandits (one-shot decisions), the same importance-weighting logic could be extended to full Reinforcement Learning (sequences of decisions), which remains a major frontier in the field.

Summary updated

BibTeX
@inproceedings{strehl2010learning,
  author = {Alexander L. Strehl and John Langford and Lihong Li and Sham Kakade},
  title = {{Learning from Logged Implicit Exploration Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2010},
  url = {https://openreview.net/forum?id=HkWq6uW_-S},
}
Figure