Efficient Counterfactual Learning from Bandit Feedback

Yusuke Narita, Shota Yasui, Kohei Yata

Introduction: The Challenge of Off-Policy Evaluation

In modern digital ecosystems—from news recommendation engines to real-time bidding in advertising—contextual bandit algorithms are the standard for decision-making. These systems select actions (like displaying a specific ad) based on a user's context to maximize a reward (like a click). To improve these systems, researchers often want to evaluate a new "counterfactual" policy.

While A/B testing is the gold standard for evaluation, it is often prohibitively expensive or risky. The alternative is Off-Policy Evaluation (OPE): using historical logs from an existing system to estimate how a new policy would have performed. However, log data is inherently biased and noisy. The central challenge in OPE is finding an estimator that is "statistically efficient," providing the most precise estimate with the narrowest possible confidence intervals.

The Innovation: The "Estimated is Better" Paradox

The standard approach to OPE is Inverse Probability Weighting (IPW). Traditionally, IPW weights observed rewards by the inverse of the "propensity score"—the probability that the logging policy chose that specific action.

Conventional wisdom suggests that using the true propensity score (the actual logic used by the logger) should yield the most accurate results. However, this paper presents a counterintuitive finding: using an estimated propensity score $\hat{p}(x)$ is mathematically superior. The authors prove that by estimating these probabilities from the data using machine learning models (such as Gradient Boosting or Ridge Regression), the estimator reaches the semiparametric efficiency bound. This means no other reasonable estimator can produce a lower variance.

This "paradox" occurs because an estimated score "corrects" for accidental correlations or random fluctuations present in a specific data sample. It aligns the estimator more closely with the actual realizations in the log, effectively reducing noise.

Empirical Validation: Real-World Ad Optimization

The researchers validated their theory using a large-scale dataset from CyberAgent Inc., a leading Japanese internet advertisement company. The task involved optimizing the visual design of advertisements across four distinct choices, using a dataset of 57,619 observations.

Figure 2: Comparison of expected reward estimates and confidence intervals across different propensity score estimators.

As shown in the figure above, the choice of estimator significantly impacts the precision of the reward estimate. While the point estimates remain relatively consistent, the error bars (confidence intervals) vary significantly depending on whether the true score or an ML-based estimate is used.

Key Results and Precision Gains

The empirical results confirmed the theoretical predictions. By using estimated propensity scores, the researchers achieved substantial variance reduction compared to the "True Score" benchmark.

Figure 3: Detailed breakdown of confidence intervals (CI) and the percentage of shrinkage achieved by using estimated scores.

Key findings from the ad-design application include:

  • Variance Reduction: Using Gradient Boosting or Ridge Regression reduced the length of confidence intervals by 22% to 34%.
  • Decision Clarity: Under the standard "true score" benchmark, the predicted improvement of the new policy was not statistically significant. However, using the efficient estimator, the team confirmed a 10-15% improvement in CTR with 95% confidence.
  • Model Performance: Interestingly, models that fit the data closely (like GBM) performed better for this task than "smoother" models like Random Forests, as they better captured sample-specific noise that needed to be corrected.

Conclusion and Future Directions

This research demonstrates that statistical efficiency in counterfactual learning is not just a theoretical concern but a practical tool for making better business decisions. By reaching the semiparametric efficiency bound, practitioners can extract more certainty from their existing data.

Future work remains to address the convergence requirements of these estimators in extremely high-dimensional settings and to explore scenarios where the logging policy might be "degenerate" (never exploring certain actions), which remains a fundamental limit of any OPE method.

Summary updated

BibTeX
@inproceedings{narita2019efficient,
  author = {Yusuke Narita and Shota Yasui and Kohei Yata},
  title = {{Efficient Counterfactual Learning from Bandit Feedback}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33014634},
}
Figure