Langevin Monte Carlo for Contextual Bandits

Pan Xu, Hongkai Zheng, Eric Mazumdar, Kamyar Azizzadenesheli, Anima Anandkumar
6/22/2022
cs.LGstat.ML

Official code: devzhk/LMCTS (12 stars, Python, last commit 2022-08-03).

Abstract

We study the efficiency of Thompson sampling for contextual bandits. Existing Thompson sampling-based algorithms need to construct a Laplace approximation (i.e., a Gaussian distribution) of the posterior distribution, which is inefficient to sample in high dimensional applications for general covariance matrices.

Show full abstract

Moreover, the Gaussian approximation may not be a good surrogate for the posterior distribution for general reward generating functions. We propose an efficient posterior sampling algorithm, viz., Langevin Monte Carlo Thompson Sampling (LMC-TS), that uses Markov Chain Monte Carlo (MCMC) methods to directly sample from the posterior distribution in contextual bandits. Our method is computationally efficient since it only needs to perform noisy gradient descent updates without constructing the Laplace approximation of the posterior distribution. We prove that the proposed algorithm achieves the same sublinear regret bound as the best Thompson sampling algorithms for a special case of contextual bandits, viz., linear contextual bandits. We conduct experiments on both synthetic data and real-world datasets on different contextual bandit models, which demonstrates that directly sampling from the posterior is both computationally efficient and competitive in performance.

View on arXivView PDF

Code Implementations(1)

devzhk/LMCTSOfficial100%
125PythonOct 22, 20214 years ago

Similar Papers

Cite this paper

@article{xu2022langevin,
  title  = {Langevin Monte Carlo for Contextual Bandits},
  author = {Pan Xu and Hongkai Zheng and Eric Mazumdar and Kamyar Azizzadenesheli and Anima Anandkumar},
  year   = {2022},
  eprint = {2206.11254},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.11254}
}

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/2206.11254.svg)](https://codeofpaper.com/paper/2206.11254)

Discussion