Accelerating Approximate Thompson Sampling with Underdamped Langevin Monte Carlo

Haoyang Zheng, Wei Deng, Christian Moya, Guang Lin

Abstract

Approximate Thompson sampling with Langevin Monte Carlo broadens its reach from Gaussian posterior sampling to encompass more general smooth posteriors. However, it still encounters scalability issues in high-dimensional problems when demanding high accuracy. To address this, we propose an approximate Thompson sampling strategy, utilizing underdamped Langevin Monte Carlo, where the latter is the go-to workhorse for simulations of high-dimensional posteriors. Based on the standard smoothness and log-concavity conditions, we study the accelerated posterior concentration and sampling using a specific potential function. This design improves the sample complexity for realizing logarithmic regrets from $\mathcal{\tilde O}(d)$ to $\mathcal{\tilde O}(\sqrt{d})$. The scalability and robustness of our algorithm are also empirically validated through synthetic experiments in high-dimensional bandit problems.

Introduction

The Multi-Armed Bandit (MAB) problem is a fundamental framework for decision-making under uncertainty, requiring a careful balance between "exploration" and "exploitation." Thompson Sampling (TS) is a powerful Bayesian approach to this problem, but its practical application is often limited by the need to sample from complex posterior distributions at every step.

While Gaussian approximations are common, they often fail for non-Gaussian, complex posteriors. Researchers frequently employ Langevin Monte Carlo (LMC)—specifically the "overdamped" version—to handle these cases. However, overdamped LMC scales poorly as the dimensionality ($d$) of the problem increases. In high-dimensional settings, it becomes computationally prohibitive and often fails to maintain the accuracy required for low cumulative regret.

Methodology: Underdamped Langevin Thompson Sampling

This work proposes integrating Underdamped Langevin Monte Carlo (ULMC) into the Thompson Sampling framework. Unlike the standard overdamped version, ULMC incorporates momentum, mimicking a physical system with both "position" (the parameter estimate) and "velocity."

Key Technical Contributions

  • Continuous-Time Analysis: Using a novel potential function to analyze Stochastic Differential Equation (SDE) trajectories, the authors prove that the posterior concentrates around the true parameter significantly faster than in the overdamped case.
  • Stochastic Gradient ULMC: To ensure scalability for large datasets, the algorithm supports mini-batching (stochastic gradients), drastically reducing the computational cost per iteration.
  • Resampling Strategy: A specific resampling step is implemented at the end of each round to accelerate the mixing rate, ensuring diverse samples for effective exploration.

Experimental Validation

The algorithm was evaluated using synthetic high-dimensional bandit environments (with $d$ ranging from 10 to 1,000) and real-world restaurant rating data from Google Maps.

Comprehensive regret analysis across different settings, including gradient types, sample complexity, momentum, and dimensionality.

Key Results and Insights

  • The Power of Momentum: Adding velocity allows the sampler to "glide" through the distribution rather than performing a simple random walk. This fundamentally changes the convergence rate, reducing sample complexity from $\tilde{O}(d)$ to $\tilde{O}(\sqrt{d})$.
  • Breaking the Dimensionality Barrier: ULMC-TS maintains logarithmic regret even in high dimensions where overdamped methods often revert to linear regret due to insufficient accuracy.
  • Stability and Robustness: ULMC is notably more robust to large step sizes and varying momentum values ($\gamma$), with $\gamma=2.0$ identified as an empirical and theoretical "sweet spot."

High-Dimensional Scaling

In tests where $d=1000$, the ULMC approach demonstrated significantly lower cumulative regret compared to standard Langevin methods, confirming its superior scalability.

Regret performance in high-dimensional cases (d=100 and d=1000).

Discussion and Future Work

While ULMC-TS offers significant improvements, some challenges remain. The algorithm's performance is sensitive to the initial "prior" distribution; non-informative (flat) priors can lead to initial exploration struggles. Furthermore, while the current theory relies on log-concavity, future research aims to extend these benefits to non-convex scenarios, potentially enabling the use of complex models like deep neural networks in Thompson Sampling frameworks.

Summary updated

BibTeX
@inproceedings{zheng2024accelerating,
  author = {Haoyang Zheng and Wei Deng and Christian Moya and Guang Lin},
  title = {{Accelerating Approximate Thompson Sampling with Underdamped Langevin Monte Carlo}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=Z6Km7Yy5iQ},
}
Figure