Introduction
In the realm of contextual bandits—the mathematical foundation behind personalized advertisements and recommendation systems—the objective is to learn the optimal action (or "arm") based on a given context (user features). Thompson Sampling (TS) is a gold-standard algorithm for this task because it elegantly balances exploration and exploitation by sampling from a posterior distribution of expected rewards.
However, for most complex, real-world models, calculating this exact posterior is mathematically intractable. Researchers typically resort to approximations:
- Laplace Approximation: Fast, but often inaccurate.
- MCMC/Langevin Methods: Accurate, but computationally grueling due to the need for many iterations per round.
- Ensemble Methods: Easier to implement but require maintaining multiple models simultaneously.
To address this, researchers have introduced VITS (Variational Inference Thompson Sampling), a new framework that makes Thompson Sampling both computationally efficient and theoretically robust. By utilizing Gaussian Variational Inference instead of slow MCMC methods or inaccurate Laplace approximations, VITS achieves state-of-the-art performance and provides the first sub-linear regret bounds for variational inference in sequential learning.
The VITS Methodology
VITS uses Gaussian Variational Inference (VI) to approximate the posterior. Instead of attempting to find the exact posterior, VI finds the "closest" Gaussian distribution to it by minimizing the Kullback-Leibler (KL) divergence.
Key technical innovations in the paper include:
- Riemannian Gradient Descent: Rather than standard optimization, VITS-I leverages the geometric structure of the Gaussian family (specifically the Wasserstein metric) to update the mean and covariance efficiently.
- VITS-II: A faster variant that uses a first-order Taylor expansion to avoid costly $O(d^3)$ matrix inversions, reducing the computational complexity to $O(d^2)$.
- VITS-II Hessian-free: A variant employing a clever integration-by-parts trick to estimate the Hessian (the matrix of second derivatives) using only the gradient. This is critical for complex models like neural networks where the true Hessian is too expensive to compute.
- Warm Starts: By initializing each round's optimization with the result from the previous round, the algorithm converges in just a few steps.
Theoretical Insights
A major contribution of this work is bridging theory and practice. While Variational Inference is widely used in machine learning, this paper provides the first sub-linear regret bound for VI in a sequential learning setting. The authors prove a regret of $\tilde{O}(d\sqrt{T})$, which matches the order of magnitude of the best-known theoretical bounds for exact linear Thompson Sampling.
This theoretical backing is justified by the Bernstein-Von Mises theorem, which states that as more data is collected, the posterior distribution naturally converges to a Gaussian. This makes Gaussian VI a highly principled choice for bandits, where data accumulates sequentially over time. Furthermore, in "ill-conditioned" problems where some features are vastly more informative than others, VITS remains stable and accurate, whereas MCMC methods like Langevin Monte Carlo (LMC) often struggle to converge.
Experimental Results
The paper evaluates VITS across synthetic linear bandits, synthetic quadratic bandits, and the classic MovieLens (1M ratings) dataset for recommendation systems.
Regret Performance and Speed: In linear settings, VITS-I and VITS-II perform almost identically to "Exact" Thompson Sampling and significantly outperform Langevin-based methods (LMC-TS). Computationally, VITS-II is dramatically faster than both VITS-I and MCMC methods, with the "Hessian-free" version providing further speedups for high-dimensional problems without sacrificing much accuracy.
Real-World Success: On the MovieLens dataset, the task is to recommend movies based on latent features using a logistic reward model. Here, VITS slightly outperformed LMC-TS and significantly beat standard Linear TS, which fails because it incorrectly assumes rewards are linear rather than logistic.
Limitations and Future Work
The primary limitation acknowledged by the authors is that their theoretical regret bounds are currently restricted to the linear bandit case. While empirical experiments demonstrate that VITS works brilliantly for non-linear tasks (like quadratic and logistic bandits), the mathematical proofs for those specific cases remain an open challenge.
Future work will likely focus on extending these theoretical guarantees to generalized linear models and neural-contextual bandits. If successful, this could position VITS as the default choice for high-performance, scalable recommendation engines.
Summary updated