VITS : Variational Inference Thompson Sampling for contextual bandits
Pierre Clavier, Tom Huix, Alain Durmus
TL;DR
This work tackles posterior intractability in Thompson Sampling for contextual bandits by introducing VITS, a Gaussian variational inference-based TS method. By using a non-degenerate Gaussian variational family and leveraging a Riemannian optimization framework, VITS provides tractable posterior samples and favorable computational properties. Theoretical results establish sub-linear regret in linear contextual bandits, and practical variants VITS-II and VITS-II Hessian-free reduce computational overhead while preserving performance. Empirical evaluations on synthetic benchmarks and the MovieLens dataset demonstrate competitive regret with real-world applicability and improved efficiency over traditional approximate TS methods. The approach offers a scalable, principled alternative for Bayesian exploration in contextual decision problems.
Abstract
In this paper, we introduce and analyze a variant of the Thompson sampling (TS) algorithm for contextual bandits. At each round, traditional TS requires samples from the current posterior distribution, which is usually intractable. To circumvent this issue, approximate inference techniques can be used and provide samples with distribution close to the posteriors. However, current approximate techniques yield to either poor estimation (Laplace approximation) or can be computationally expensive (MCMC methods, Ensemble sampling...). In this paper, we propose a new algorithm, Varational Inference Thompson sampling VITS, based on Gaussian Variational Inference. This scheme provides powerful posterior approximations which are easy to sample from, and is computationally efficient, making it an ideal choice for TS. In addition, we show that VITS achieves a sub-linear regret bound of the same order in the dimension and number of round as traditional TS for linear contextual bandit. Finally, we demonstrate experimentally the effectiveness of VITS on both synthetic and real world datasets.
