Skip to main content
QUICK REVIEW

[Paper Review] Langevin Monte Carlo for Contextual Bandits

Pan Xu, Hongkai Zheng|arXiv (Cornell University)|Jun 22, 2022
Advanced Bandit Algorithms ResearchDecision Sciences4 citations
TL;DR

This paper proposes Langevin Monte Carlo Thompson Sampling (LMC-TS), a computationally efficient posterior sampling method for contextual bandits that replaces Laplace approximation with noisy gradient descent via Langevin Monte Carlo. The method achieves the same sublinear regret bound as state-of-the-art Thompson sampling algorithms in linear contextual bandits while enabling scalable, high-dimensional posterior sampling without covariance matrix inversion or Gaussian assumptions.

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. 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.

Motivation & Objective

  • To address the computational inefficiency of Laplace approximation in high-dimensional posterior sampling for Thompson sampling in contextual bandits.
  • To overcome the limitation of Gaussian approximations when the true posterior is non-Gaussian, especially in nonlinear reward models like generalized linear or neural bandits.
  • To develop a practical, scalable algorithm that directly samples from the true posterior using MCMC, avoiding costly covariance matrix computations.
  • To establish theoretical regret bounds for the proposed method that match the best-known results in linear contextual bandits.
  • To empirically validate the method's performance and efficiency across synthetic and real-world datasets.

Proposed method

  • Uses Langevin Monte Carlo (LMC) to perform noisy gradient descent updates for approximate posterior sampling, avoiding explicit Laplace approximation.
  • Employs a stochastic gradient update rule: $\theta_{k+1} = \theta_k + \frac{\eta}{2} \nabla \log p(\theta | \mathcal{D}_t) + \sqrt{\eta} \xi_k$, where $\xi_k \sim \mathcal{N}(0, I)$.
  • Integrates LMC with Thompson sampling by sampling from the current LMC iterate to select actions, enabling uncertainty-aware exploration.
  • Leverages the fact that LMC converges to the true posterior distribution under mild conditions, allowing arbitrary accuracy with sufficient iterations.
  • Applies the method to linear, generalized linear, and neural contextual bandit models without architectural changes.
  • Uses adaptive step size and convergence monitoring to balance sampling accuracy and computational cost.

Experimental results

Research questions

  • RQ1Can Langevin Monte Carlo sampling from the true posterior outperform Laplace approximation-based Thompson sampling in terms of regret and computational efficiency?
  • RQ2Does LMC-TS achieve sublinear regret in linear contextual bandits without relying on Gaussian approximations?
  • RQ3How does LMC-TS perform in high-dimensional settings where Laplace approximation becomes computationally prohibitive?
  • RQ4Can LMC-TS be effectively applied to nonlinear reward models such as generalized linear and neural bandits?
  • RQ5Is the proposed method scalable and robust across diverse synthetic and real-world contextual bandit environments?

Key findings

  • LMC-TS achieves the same sublinear regret bound as the best Thompson sampling algorithms in linear contextual bandits, proving theoretical competitiveness.
  • The algorithm avoids the computational bottleneck of sampling from a general covariance matrix by using noisy gradient updates instead of matrix inversion.
  • Experiments on synthetic and real-world datasets show LMC-TS is both computationally efficient and empirically competitive with state-of-the-art methods.
  • The method maintains strong performance across linear, generalized linear, and neural contextual bandit models without requiring problem-specific covariance tuning.
  • Theoretical analysis confirms that the algorithm's sampling error diminishes with sufficient iterations, ensuring convergence to the true posterior distribution.
  • The method achieves a regret bound of $O(\sqrt{d \log T})$ under standard assumptions, matching known optimal rates for linear bandits.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.