Rethinking Langevin Thompson Sampling from A Stochastic Approximation Perspective
Weixin Wang, Haoyang Zheng, Guang Lin, Wei Deng, Pan Xu
TL;DR
This work introduces TS-SA, a Thompson Sampling variant that replaces a non-stationary, round-specific posterior with a fixed stationary target posterior. By integrating stochastic approximation through time-averaging of Langevin proposals and using gradient estimates from the most recent rewards, TS-SA achieves a fixed step-size and a unified convergence framework. Theoretical results establish posterior concentration and near-optimal regret bounds $\widetilde{\mathcal{O}}(\sqrt{KT})$, while experiments show strong empirical performance and robustness compared to TS, UCB, and TS-SGLD. The stationary-target perspective simplifies analysis, reduces memory, and offers practical guidelines for implementation in non-conjugate reward settings. TS-SA thus provides a principled, efficient alternative to dynamic-posterior TS methods with broad applicability to bandits and related sequential decision problems.
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.
