Thompson Sampling for Contextual Bandits with Linear Payoffs

Shipra Agrawal, Navin Goyal
9/15/2012
1,225 citations
cs.LGcs.DSstat.ML

No confident code implementation found for this paper.

Abstract

Thompson Sampling is one of the oldest heuristics for multi-armed bandit problems. It is a randomized algorithm based on Bayesian ideas, and has recently generated significant interest after several studies demonstrated it to have better empirical performance compared to the state-of-the-art methods.

Show full abstract

However, many questions regarding its theoretical performance remained open. In this paper, we design and analyze a generalization of Thompson Sampling algorithm for the stochastic contextual multi-armed bandit problem with linear payoff functions, when the contexts are provided by an adaptive adversary. This is among the most important and widely studied versions of the contextual bandits problem. We provide the first theoretical guarantees for the contextual version of Thompson Sampling. We prove a high probability regret bound of $\tilde{O}(d^{3/2}\sqrt{T})$ (or $\tilde{O}(d\sqrt{T \log(N)})$), which is the best regret bound achieved by any computationally efficient algorithm available for this problem in the current literature, and is within a factor of $\sqrt{d}$ (or $\sqrt{\log(N)}$) of the information-theoretic lower bound for this problem.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{agrawal2012thompson,
  title  = {Thompson Sampling for Contextual Bandits with Linear Payoffs},
  author = {Shipra Agrawal and Navin Goyal},
  year   = {2012},
  eprint = {1209.3352},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1209.3352}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1209.3352.svg)](https://codeofpaper.com/paper/1209.3352)

Discussion