Double Doubly Robust Thompson Sampling for Generalized Linear Contextual Bandits

Wonyoung Kim, Kyungbok Lee, Myunghee Cho Paik

Abstract

This paper introduces DDRTS-GLM, a novel Thompson Sampling algorithm for generalized linear contextual bandits. By employing a "Double Doubly Robust" (DDR) estimator, the algorithm achieves a state-of-the-art regret bound of $\tilde{O}(\sqrt{dT})$ without the need to discard data for statistical independence. Empirical results across synthetic and real-world datasets demonstrate its superior performance over existing baselines.

Introduction

In the contextual bandit problem, a learner chooses an action (arm) based on a context (features) to maximize cumulative rewards. When rewards follow a Generalized Linear Model (GLM)—such as binary rewards in logistic regression—the challenge is to balance exploration and exploitation efficiently.

The theoretical "gold standard" for regret is a dependence on the square root of the feature dimension ($\sqrt{d}$). However, most existing GLM bandit algorithms either have a worse dependence (like $d$ or $d^{3/2}$) or achieve $\sqrt{d}$ by discarding a significant portion of observed data to maintain sample independence. This data-discarding is inefficient for real-world applications. The authors propose a method to reach the tight $\sqrt{d}$ bound while utilizing every piece of collected data.

Methodology: The Double Doubly Robust Estimator

The core innovation is the Double Doubly Robust (DDR) estimator.

  1. Doubly Robust Foundation: Standard DR estimators use observed rewards for selected arms and "imputed" (predicted) rewards for unselected arms. This allows the algorithm to use the context vectors of all arms to build a more stable representation of feature covariance (the Gram matrix).
  2. The "Double" Improvement: The authors refine this by using a specific, bounded imputation estimator and updating all past pseudo-rewards at every step using the most up-to-date model. This system provides a much tighter error bound than conventional DR methods.
  3. DDRTS-GLM Algorithm: This estimator is integrated into a Thompson Sampling framework. It includes a resampling step: if the probability of picking the chosen arm is too low (risking high variance), the algorithm resamples the parameters until it finds a more stable choice.
  4. New Analysis Tools: To prove their results, the authors developed a "maximal elliptical potential lemma," a technical tool used to bound the uncertainty of the model when using contexts from all arms simultaneously.

Experimental Evaluation

The authors evaluated DDRTS-GLM against four major baselines: GLM-UCB, TS-GLM, SupCB-GLM, and SupLogistic.

Synthetic Data

Simulated environments with binary rewards were tested, varying the number of arms ($N=10, 20$) and dimensions ($d=20, 30$). As shown in the synthetic results below, DDRTS-GLM consistently achieves lower cumulative regret than all competitors across these settings.

Cumulative regret on synthetic datasets with varying arms (N) and dimensions (d).

Real-World Datasets

The algorithm was also tested on the Forest Cover Type Dataset, where it predicted tree species using 32 arms and 11-dimensional contexts. DDRTS-GLM demonstrated superior performance here as well.

Performance comparison on the Forest Cover Type dataset (N=32, d=11).

Furthermore, on the Yahoo! News Article Recommendation log data, DDRTS-GLM achieved the highest Click-Through Rate (CTR) among all tested algorithms, demonstrating its practical utility in recommendation systems.

Key Insights and Results

  • Data Efficiency: DDRTS-GLM proves that you don't have to throw away data to get a $\sqrt{d}$ regret bound. By using a robust estimator, one can maintain necessary statistical properties while being data-efficient.
  • Learning from All Contexts: Most bandit algorithms only learn from the context of the chosen arm. By using a DDR estimator, this algorithm learns from the contexts of every arm presented in a round, significantly stabilizing the model.
  • Theoretical Guarantees: The paper proves a regret bound of $\tilde{O}(\sqrt{\kappa^{-1}dT})$, matching the best-known bounds for GLMs. Additionally, under a "probabilistic margin condition," the algorithm achieves logarithmic regret ($O(\log T)$), the first such bound for this class of models with arm-specific contexts.

Conclusion

DDRTS-GLM represents a significant step forward in contextual bandit research, offering a data-efficient approach with strong theoretical guarantees and empirical performance. While computationally more intensive than standard Thompson Sampling due to the pseudo-reward updates and resampling, its ability to leverage all available information makes it highly effective for complex recommendation tasks. Future research will explore adaptations for infinite arm sets and non-stationary environments.

Summary updated

BibTeX
@inproceedings{kim2023double,
  author = {Wonyoung Kim and Kyungbok Lee and Myunghee Cho Paik},
  title = {{Double Doubly Robust Thompson Sampling for Generalized Linear Contextual Bandits}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.26001},
}
Figure