[Paper Review] On Thompson Sampling with Langevin Algorithms
This paper proposes a computationally efficient variant of Thompson sampling for multi-armed bandits using Langevin-based Markov Chain Monte Carlo (MCMC) methods to approximate posterior samples. By leveraging posterior concentration and sample reuse, the method achieves logarithmic regret with constant computational cost per round, ensuring optimal instance-dependent frequentist regret without scaling with the time horizon.
Thompson sampling for multi-armed bandit problems is known to enjoy favorable performance in both theory and practice. However, it suffers from a significant limitation computationally, arising from the need for samples from posterior distributions at every iteration. We propose two Markov Chain Monte Carlo (MCMC) methods tailored to Thompson sampling to address this issue. We construct quickly converging Langevin algorithms to generate approximate samples that have accuracy guarantees, and we leverage novel posterior concentration rates to analyze the regret of the resulting approximate Thompson sampling algorithm. Further, we specify the necessary hyperparameters for the MCMC procedure to guarantee optimal instance-dependent frequentist regret while having low computational complexity. In particular, our algorithms take advantage of both posterior concentration and a sample reuse mechanism to ensure that only a constant number of iterations and a constant amount of data is needed in each round. The resulting approximate Thompson sampling algorithm has logarithmic regret and its computational complexity does not scale with the time horizon of the algorithm.
Motivation & Objective
- To address the computational bottleneck of exact Thompson sampling, which requires costly posterior sampling at each iteration.
- To develop approximate sampling methods that maintain optimal regret guarantees while reducing computational overhead.
- To ensure the regret remains logarithmic and instance-dependent optimal even with approximate posterior samples.
- To design an anytime algorithm where computational complexity does not grow with the time horizon.
- To provide explicit hyperparameter choices for Langevin algorithms that guarantee optimal performance.
Proposed method
- Uses unadjusted Langevin algorithm (ULA) with initialization from the previous round's approximate sample to exploit posterior concentration.
- Employs a constant number of iterations per round and a constant batch size in stochastic gradient Langevin dynamics (SGLD) to ensure low computational cost.
- Leverages novel posterior concentration rates to bound approximation error and maintain regret guarantees.
- Introduces a sample reuse mechanism that reduces the number of MCMC iterations needed per round to a constant.
- Derives explicit hyperparameters (step size, number of steps) for ULA and SGLD to achieve optimal regret.
- Analyzes regret under general log-concave likelihoods and weakly informative priors, with explicit dependence on dimension, variance, and prior quality.
Experimental results
Research questions
- RQ1Can Langevin-based MCMC methods be used to approximate posterior samples in Thompson sampling while preserving optimal regret?
- RQ2What hyperparameters and iteration counts are required for ULA and SGLD to maintain logarithmic regret?
- RQ3How does posterior concentration enable a constant number of MCMC steps per round?
- RQ4Can the computational cost of approximate Thompson sampling be made independent of the time horizon?
- RQ5What is the relationship between approximation error in posterior sampling and the resulting regret?
Key findings
- The proposed approximate Thompson sampling algorithm achieves logarithmic regret with explicit constants depending on dimension, variance, and prior quality.
- With proper hyperparameter tuning, ULA and SGLD maintain instance-dependent optimal regret using only a constant number of MCMC steps per round.
- The regret bound scales as $\mathcal{O}(\log T)$ with explicit dependence on $d_a$, $\kappa_a$, and $\Delta_a$, matching known lower bounds.
- The computational complexity of the algorithm does not grow with the time horizon $T$, making it an anytime algorithm.
- Numerical experiments confirm that the approximate Thompson sampling with Langevin methods matches the performance of exact Thompson sampling and UCB across different prior settings.
- The method remains robust even under adversarial priors, demonstrating strong empirical stability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.