Bandits with Generalized Linear Models

Lihong Li, Wei Chu, John Langford, Taesup Moon, Xuanhui Wang

This mini-paper explores foundational research addressing two critical hurdles in deploying contextual bandit algorithms for real-world applications (such as news recommendation and advertising): how to evaluate them without risky live tests, and how to model binary rewards—like user clicks—more effectively than standard linear models.

Executive Summary

The authors present a provably unbiased, data-driven method for the offline evaluation of contextual bandits, moving away from biased simulators. Leveraging this evaluation method, they demonstrate that bandit algorithms based on Generalized Linear Models (GLMs), such as logistic and probit regression, significantly outperform traditional linear models when dealing with binary rewards.

The Core Challenges

Contextual bandit algorithms are the engine behind modern personalization. They learn to pick the best "arm" (e.g., a news article) for a specific "context" (e.g., a user's history) while balancing exploration (trying new things) and exploitation (picking known winners). However, deploying these systems historically faced two major gaps:

  1. The Evaluation Gap: In supervised learning, ground-truth labels exist for every example. In bandits, the system only observes the reward for the action it actually took (the "partial-label" problem). To test new algorithms, researchers traditionally built simulators. Unfortunately, simulators are notoriously difficult to tune and often introduce "modeling bias" that fails to reflect reality.
  2. The Modeling Gap: Most theoretical bandit research has focused on linear models (like LinUCB). But in web applications, rewards are usually binary (click or no-click). Using a linear model to predict a 0/1 outcome is a mathematical mismatch that can lead to suboptimal performance.

Methodology

The research contributes solutions on two primary fronts:

1. Unbiased Offline Evaluation (Policy Replay)

The authors advocate for a "replay" technique. Given a log of historical events where actions were chosen uniformly at random, a new algorithm can be evaluated offline. The process is simple: "run" the new algorithm on the log. If the algorithm picks the same action that was recorded in the log, the event is kept and the algorithm is updated. If it picks a different action, the event is ignored. This method is provably unbiased, yielding the same expected reward as a live online test.

2. GLM-based Bandit Algorithms

The authors develop bandit algorithms using Logistic and Probit regression. Because these models lack the neat, closed-form solutions of linear models, the authors employ several approximation techniques:

  • Inference: They use Laplace approximation for logistic models and Assumed Density Filtering (ADF) / Expectation Propagation (EP) for probit models to maintain a Gaussian posterior over the model weights.
  • Exploration: They adapt the Upper Confidence Bound (UCB) strategy to these GLMs, testing various numerical approximations (labeled U0 through U3) to calculate the "uncertainty" needed for effective exploration.

Empirical Validation

The study validates these methods using a massive real-world dataset from Yahoo! Front Page’s "Today Module." * Scale: 34 million user visits collected over one week in 2009. * Features: Over 1,000 categorical user features, reduced to 21 dimensions using Principal Component Analysis (PCA). * Public Availability: A similar dataset was released through the Yahoo! Webscope program to serve as a benchmark for the broader research community.

Key Insights and Results

  • Simulators are a Trap: The authors argue strongly against simulator-based evaluation, noting that building a high-quality simulator is often harder than building the policy itself. Their data-driven replay method provides a "gold standard" for offline testing.
  • The Binary Advantage: The empirical proof shows that modeling the reward distribution correctly matters immensely. Logistic and Probit models consistently and substantially beat linear models in terms of normalized Click-Through Rate (nCTR) because they better capture the true nature of click probabilities.
  • Learning vs. Deployment: Evaluated using a "two-bucket" metric, GLMs proved superior at both "learning" (maximizing rewards while actively exploring) and "deployment" (the quality of the greedy policy derived after the learning phase).
  • Optimistic Initialization is Powerful: A surprising finding was that "optimistic initialization"—simply starting with a high prior for all arms—can be so effective that it sometimes removes the need for explicit exploration strategies (like $\epsilon$-greedy) entirely.
  • UCB > $\epsilon$-greedy: Even with the added complexity of numerical approximations, UCB-based exploration generally outperformed the simpler $\epsilon$-greedy approach. Furthermore, for the logistic model, most of the proposed UCB approximations performed similarly well, suggesting the choice of the underlying GLM is more critical than the specific numerical approximation.

Limitations and Future Directions

While the empirical results are highly compelling, the authors acknowledge a few limitations:

  • Theoretical Lag: At the time of publication, GLM-based bandits lacked the rigorous "regret bounds" (theoretical guarantees on performance limits) that linear models enjoyed.
  • Computational Overhead: GLMs require more complex updates (Laplace/EP) than the simple matrix inversions used in linear bandits. This computational cost could be a limiting factor in ultra-low-latency production systems.

Future work in this domain points toward developing tighter regret bounds for these GLM variants and exploring even more complex, non-linear reward models to further close the gap between theory and real-world application.

Summary updated

BibTeX
@article{li2012bandits,
  author = {Lihong Li and Wei Chu and John Langford and Taesup Moon and Xuanhui Wang},
  title = {{Bandits with Generalized Linear Models}},
  journal = {ICML},
  year = {2012},
}
Figure