Source-linked AI summary

Unbiased Offline Evaluation of Contextual-bandit-based News Article Recommendation Algorithms

Lihong Li, Wei Chu, John Langford, Xuanhui Wang

arXiv:1003.5956v2cs.LGcs.AIcs.ROstat.ML

TL;DR

Reliable offline evaluation of contextual-bandit recommenders is difficult because logs contain feedback only for displayed articles, while simulators can be costly and biased. The paper introduces a replay evaluator based directly on randomized log data, proves unbiasedness, and tests it on Yahoo! Front Page data. Its empirical results agree with theory and online bucket evaluations, while data cost and random-policy requirements remain important limitations.

  • Problem

    Offline evaluation is needed to protect user experience, but partial-label logs lack feedback for articles that were not displayed.

  • Method

    The paper evaluates bandit algorithms by replaying log data generated independently with arms selected by an ideally uniform random policy, rather than using a simulator.

  • Results

    The method provides unbiased estimates and sample-complexity guarantees for fixed policies, with empirical accuracy and stability confirmed against online bucket results.

  • Takeaways & Limitations

    Replay evaluation can support accurate, stable, and replicable comparisons of bandit algorithms using real-world news recommendation data.

  • Takeaways & Limitations

    The method requires randomized logging data, while uniformly random policies may be impractical and rejection sampling reduces data efficiency.

Abstract

from arXiv · show

Contextual bandit algorithms have become popular for online recommendation systems such as Digg, Yahoo! Buzz, and news recommendation in general. \emph{Offline} evaluation of the effectiveness of new algorithms in these applications is critical for protecting online user experiences but very challenging due to their "partial-label" nature. Common practice is to create a simulator which simulates the online environment for the problem at hand and then run an algorithm against this simulator. However, creating simulator itself is often difficult and modeling bias is usually unavoidably introduced. In this paper, we introduce a \emph{replay} methodology for contextual bandit algorithm evaluation. Different from simulator-based approaches, our method is completely data-driven and very easy to adapt to different applications. More importantly, our method can provide provably unbiased evaluations. Our empirical results on a large-scale news article recommendation dataset collected from Yahoo! Front Page conform well with our theoretical results. Furthermore, comparisons between our offline replay and online bucket evaluation of several contextual bandit algorithms show accuracy and effectiveness of our offline evaluation method.

1. INTRODUCTION

Contextual-bandit recommendation faces partial feedback, making reliable offline evaluation difficult. The paper proposes a replay method with theoretical unbiasedness and empirical agreement with online bucket evaluation.

  • User feedback is observed only for displayed articles, creating a partial-label problem when evaluating recommendations for other candidate articles.
  • Bucket tests provide direct evaluation but require substantial engineering, risk user experience, and may be difficult to replicate because online metrics vary over time.
  • Simulator-based evaluation avoids live deployment but is challenging to build and may misrepresent actual performance through modeling bias.
  • The paper introduces an offline evaluation method with theoretical guarantees including unbiasedness and accuracy.
  • The method is empirically assessed against online bucket results using a large volume of Yahoo! Front Page data.
  • The work extends an earlier sketch with improved theoretical guarantees and empirical evidence from online bucket data.

2. CONTEXTUAL BANDIT PROBLEMS

Contextual bandits select actions using changing context while observing payoff only for the chosen action. Their exploration-exploitation tradeoff motivates algorithms that balance immediate rewards with information gathering and eventual regret reduction.

  • A contextual bandit supplies a feature vector and payoff vector each trial, with these variables drawn independently and identically from an unknown distribution.
  • The algorithm chooses an arm from prior observations and the current context, then receives payoff only for that chosen arm.
  • Contextual bandits are also known as bandits with covariates, associative reinforcement learning, and other related names in the literature.
  • After observing the current context, action, and chosen-arm payoff, the algorithm improves its arm-selection strategy.
  • In news recommendation, articles are arms and a click yields payoff 1 while no click yields 0, so expected payoff equals click-through rate.
  • Exploration can increase short-term regret but improve payoff estimates and reduce long-term regret by collecting information about seemingly suboptimal arms.
  • Low-regret algorithms target vanishing average regret, while Bayesian methods such as Gittins index methods form another algorithm class.
  • The evaluation method is algorithm independent and can therefore be applied to Bayesian algorithms as well as representative low-regret algorithms.

3. UNBIASED OFFLINE EVALUATION

The paper introduces a replay-based offline evaluator that uses uniformly randomized logged events to evaluate contextual-bandit algorithms without simulator modeling bias. It proves unbiasedness and sample-complexity guarantees, while identifying limits for finite streams and history-dependent algorithms.

  • Motivation: Offline evaluation is needed because live bucket tests are costly, risky to user experience, and difficult to replicate, while logged data reveals feedback only for displayed arms.The resulting problem is an off-policy evaluation challenge because the evaluated algorithm and logging policy may choose different arms.
  • Evaluator: The replay evaluator retains a logged event only when the evaluated algorithm selects the same arm as the uniformly random logging policy.It then appends the matching event to the simulated history and accumulates its observed payoff until T valid events are collected.
  • Unbiasedness: Theorem 1 establishes that replay histories have the same probability as real-world histories, making estimated per-trial payoffs unbiased.The guarantee applies for all distributions, algorithms, trial counts, histories, and streams satisfying the stated i.i.d. and uniform-logging assumptions.
  • Finite streams: For fixed policies independent of history, Algorithm 2 provides high-probability accuracy as the logged-stream length L increases, although its output is not generally unbiased.The theorem controls the retained-event count near L/K and yields error decreasing to 0 as L increases.
  • Limitations: General history-dependent algorithms do not admit an exponential-tail deviation bound, but repeated evaluations can still be averaged for accurate estimates.The paper notes provable deviation bounds for some algorithms and reports stable empirical results for the algorithms tested.

4. CASE STUDY

The Yahoo! Front Page case study evaluates the replay method on large-scale randomized news data, comparing offline estimates with online bucket performance. Across article-level, policy-level, variance, convergence, and cross-policy analyses, the results support accuracy, stability, and consistency with online evaluation despite real-world departures from theoretical assumptions.

  • Case study design: The study applies the offline evaluation method to Yahoo! Front Page, targeting unbiasedness, convergence, low variance, and changing article pools.The experiments use a real-world contextual-bandit recommendation problem with variable arm sets and compare offline evaluations with online performance.
  • Case study design: About 40 million randomized-bucket events, with roughly 20 available articles at each moment, provide the offline evaluation dataset.The data were collected from November 1–10, 2009, with articles randomly selected from the pool.
  • Unbiasedness analysis: Offline per-article CTR estimates are very close to online CTRs for winner articles viewed more than 20,000 times in the serving bucket.The online CTRs for these frequently viewed articles were treated as accurate enough to serve as ground truth.
  • Unbiasedness analysis: Offline and online policy-level CTRs are very close on each individual day, corroborating the method’s unbiasedness guarantee.The comparison aggregates CTR across all articles served by the policy.
  • Convergence rate analysis: The empirical results suggest the error decays at the rate predicted by Theorem 2 for reasonably stable algorithms.This evidence concerns the observed convergence behavior in the case-study experiments.
  • Low variance of evaluation results: The CTR estimates are stable across random runs: standard-deviation-to-mean ratios are about 2.4% for ϵ-greedy and below 1.5% for UCB and LinUCB.The experiment reports small variance for representative algorithms and indicates that one evaluation run can be reliable with large datasets.
  • Consistency with online performance: Online and offline evaluations show strong linear correlation for both SEMP and the more complex contextual policy CEMP, with regression slopes of 1.019 and 1.113, respectively.For SEMP, the residual standard deviation is 0.0563 across 16 days; for CEMP, it is 0.075 across 18 days, with millions of views per bucket.

5. CONCLUSIONS AND FUTURE WORK

The paper presents a data-driven offline evaluation method that relies directly on randomly generated log data rather than simulators, with unbiasedness, accuracy, and empirical validation against online bucket results. Its main efficiency limitation is that it discards most logged events, while uniformly random logging may be impractical in risk-sensitive applications.

  • Conclusions and Future Work: The method evaluates bandit algorithms directly from log data generated i.i.d. by an ideally uniformly random policy, rather than from a simulator.It provides unbiased estimates of quantities such as total payoffs and a sample-complexity bound for fixed policies.
  • Conclusions and Future Work: The method’s Yahoo! Front Page evaluation verifies theoretical guarantees and demonstrates accuracy and stability against real online bucket results.The paper reports comparisons with online bucket data as empirical validation.
  • Conclusions and Future Work: The evaluation method ignores (K −1)/K of logged data, reducing data use when K is large or data are expensive to obtain.This is an explicit efficiency limitation of the replay procedure.
  • Conclusions and Future Work: Uniformly random logging may be impractical in risk-sensitive applications because of constraints such as user satisfaction.Rejection sampling can extend evaluation to any random logging policy, but reduces data efficiency.

APPENDIX

The appendix reviews contextual-bandit algorithms spanning ε-greedy, upper-confidence-bound methods, EXP4 variants, epoch-greedy, and linear-payoff approaches. Their exploration strategies and guarantees depend on assumptions about the payoff model, context sequence, or computational access to an oracle.

  • Appendix: ε-greedy estimates each arm’s average payoff, chooses the best estimate with probability 1−ε, and explores randomly with probability ε.Each arm is tried infinitely often, so estimates converge to true values with probability 1 as t →∞.
  • Appendix: With appropriately decaying ε, ε-greedy’s per-step regret RA(T )/T converges to 0 with probability 1.
  • Appendix: Upper-confidence-bound algorithms balance exploration and exploitation using both payoff estimates and confidence intervals.They avoid treating all randomly selected arms alike by incorporating uncertainty into action selection.
  • Appendix: EXP4 variants achieve ˜O(T) regret in expectation against adversarial contexts and payoffs, but can have exponential computational complexity in the number of features.The cited guarantee applies even when contexts and payoffs are chosen by an adversarial world.
  • Appendix: Linear-payoff assumptions enable LinRel and LinUCB to obtain stronger regret guarantees than earlier algorithms and the more general epoch-greedy method.These approaches generalize upper-confidence-bound methods to linear payoff functions.
Loading 1003.5956v2…