Rethinking Langevin Thompson Sampling from A Stochastic Approximation Perspective

Weixin Wang, Haoyang Zheng, Guang Lin, Wei Deng, Pan Xu
10/6/2025
cs.LGcs.AIstat.ML

No official code found. Best implementation: panxulab/TS-SA (0 stars, MIT, last commit 2025-11-18).

Abstract

Most existing approximate Thompson Sampling (TS) algorithms for multi-armed bandits use Stochastic Gradient Langevin Dynamics (SGLD) or its variants in each round to sample from the posterior, relaxing the need for conjugacy assumptions between priors and reward distributions in vanilla TS. However, they often require approximating a different posterior distribution in different round of the bandit problem. This requires tricky, round-specific tuning of hyperparameters such as dynamic learning rates, causing challenges in both theoretical analysis and practical implementation. To alleviate this non-stationarity, we introduce TS-SA, which incorporates stochastic approximation (SA) within the TS framework. In each round, TS-SA constructs a posterior approximation only using the most recent reward(s), performs a Langevin Monte Carlo (LMC) update, and applies an SA step to average noisy proposals over time. This can be interpreted as approximating a stationary posterior target throughout the entire algorithm, which further yields a fixed step-size, a unified convergence analysis framework, and improved posterior estimates through temporal averaging. We establish near-optimal regret bounds for TS-SA, with a simplified and more intuitive theoretical analysis enabled by interpreting the entire algorithm as a simulation of a stationary SGLD process. Our empirical results demonstrate that even a single-step Langevin update with certain warm-up outperforms existing methods substantially on bandit tasks.

View on arXivView PDF

Code Implementations(1)

panxulab/TS-SACommunity59%
MIT

Code for the paper "Rethinking Langevin Thompson Sampling from A Stochastic Approximation Perspective"

00Shell, PythonNov 18, 202511 months agoMIT

Similar Papers

Cite this paper

@article{wang2025rethinking,
  title  = {Rethinking Langevin Thompson Sampling from A Stochastic Approximation Perspective},
  author = {Weixin Wang and Haoyang Zheng and Guang Lin and Wei Deng and Pan Xu},
  year   = {2025},
  eprint = {2510.05023},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.05023v1}
}

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

Discussion