Learning from Logged Implicit Exploration Data

Alexander L. Strehl, John Langford, Sham M. Kakade

Authors: Alex Strehl (Facebook), John Langford (Yahoo!), Sham Kakade (University of Pennsylvania)

Introduction

In the deployment of recommendation systems and online advertising platforms, a common objective is to "warm-start" a new policy using historical logs generated by a predecessor system. This scenario is modeled as a contextual bandit problem: given a context (e.g., user profile), the system selects an action (e.g., an advertisement) and observes a reward (e.g., a click).

A fundamental challenge in this setting is that historical logs are inherently biased. If the logging policy never explored certain actions for specific contexts, the resulting data provides no information on those counterfactuals. Standard supervised learning often fails because it ignores this selection bias. While importance weighting is a standard remedy, it requires knowledge of the logging policy's action probabilities—information that is frequently unrecorded or derived from a deterministic system. This paper addresses the problem of learning from such "passive" logs where the logging policy is an unknown "black box."

Methodology

The authors propose a robust three-step framework to transform historical logs into a viable training set for new policies:

  1. Policy Estimation: The logging policy $\pi$ is estimated ($\hat{\pi}$) via regression by calculating the empirical frequency of actions given specific features in the historical data.
  2. Synthetic Event Creation: For each log entry, a synthetic training example is generated using a modified importance weight: $1 / \max\{\hat{\pi}(a|x), \tau\}$. The parameter $\tau > 0$ serves as a safety threshold to prevent weight explosion for rare actions, ensuring numerical stability.
  3. Offline Learning: A contextual bandit algorithm is applied to these weighted events. The approach uses an "argmax regressor" that focuses on actions with a non-zero probability of having been observed, weighting training to ensure balanced estimation across actions.

A key theoretical insight is that even if the logging policy was deterministic at any single point in time, variations in the environment (e.g., changing ad availability) allow the aggregate data to be treated as if it originated from a stochastic policy—effectively substituting algorithmic randomization with natural environmental variance.

Experimental Evaluation

The framework was evaluated using a massive, proprietary Internet Advertising Dataset consisting of 35 million training events and 19 million test events. The dataset is characterized by high dimensionality, involving approximately 880,000 distinct ads and 3.4 million web pages, with features represented as sparse vectors.

Results

The proposed "Learned" policy was compared against a "Random" baseline and a "Naive" supervised learning approach.

Comparison of policy performance (Estimate) and confidence intervals across different methods and safety thresholds (τ).

As shown in the results table, the "Learned" policy significantly outperformed the "Random" baseline. At $\tau = 0.01$, the learned policy achieved an estimated reward of 0.0193, compared to 0.0154 for the random policy. Notably, the "Naive" approach, which ignores logging bias, failed completely, yielding a reward of 0.0. This underscores the necessity of un-biasing historical logs. Furthermore, performance improved as $\tau$ decreased, confirming that a smaller threshold allows the model to leverage a broader hypothesis space.

Conclusion

The use of the threshold $\tau$ introduces a "pessimistic bias," which serves as a safety feature by preventing over-optimization on sparse data. While the method is constrained by the support of the logging policy (it cannot learn about actions never taken), it provides a theoretically grounded and practically effective way to bootstrap bandit systems from existing data. Future work includes extending this framework to adaptive logging policies that learn online during data collection.

Summary updated

BibTeX
@inproceedings{strehl2010learning,
  author = {Alexander L. Strehl and John Langford and Sham M. 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