Abstract
We derive an alternative proof for the regret of Thompson sampling (TS) in the stochastic linear bandit setting. While we obtain a regret bound of order $\widetilde{O}(d^{3/2}\sqrt{T})$ as in previous results, the proof sheds new light on the functioning of the TS. We leverage on the structure of the problem to show how the regret is related to the sensitivity (i.e., the gradient) of the objective function and how selecting optimal arms associated to optimistic parameters does control it. Thus we show that TS can be seen as a generic randomized algorithm where the sampling distribution is designed to have a fixed probability of being optimistic, at the cost of an additional $\sqrt{d}$ regret factor compared to a UCB-like approach. Furthermore, we show that our proof can be readily applied to regularized linear optimization and generalized linear model problems.
Introduction
In sequential decision-making, the Multi-Armed Bandit (MAB) framework serves as the fundamental model for balancing exploration and exploitation. Linear bandits extend this by assuming rewards are linear functions of arm features. Traditionally, two paradigms dominate: Optimism in the Face of Uncertainty (OFU), which selects arms based on upper confidence bounds, and Thompson Sampling (TS), a Bayesian approach that samples from a posterior distribution. While TS often exhibits superior empirical performance, its theoretical analysis has historically been more complex, often relying on intricate arm classification schemes. This work provides a fresh, geometric proof that clarifies the underlying mechanics of TS and extends its regret bounds to more complex settings like Generalized Linear Models (GLMs).
Thompson Sampling as Randomized Optimism
This analysis moves away from a strictly Bayesian interpretation, treating TS as a generic randomized algorithm. The core idea is that TS is effectively a randomized version of the OFU principle. To ensure sub-linear regret, the algorithm's sampling distribution $\mathcal{D}^{TS}$ must satisfy two properties: concentration (staying near the current estimate $\widehat{\theta}_t$) and anti-concentration (spreading enough to ensure a constant probability of being "optimistic").
To guarantee this optimism, the algorithm "over-samples" by a factor of $\sqrt{d}$ compared to the standard confidence ellipsoids used in UCB-style algorithms. This oversampling ensures that the sampled parameter $\widetilde{\theta}_t$ frequently falls within the optimistic region $\Theta^{opt}$, where the predicted reward exceeds the true optimal reward.
Regret Analysis via Sensitivity
A key contribution of this work is relating cumulative regret to the sensitivity (gradient) of the objective function. By viewing the optimal reward as a convex support function, we can show that regret is bounded by the sensitivity of the objective to errors in parameter estimation.
Choosing an optimal arm for an optimistic parameter ensures that the exploration step is "useful." Even if a sample is not perfectly accurate, a large gradient in a specific direction implies that the resulting action will provide highly informative data, effectively reducing future uncertainty in the directions that matter most for regret minimization.
Empirical Findings and Generalization
Numerical experiments on synthetic trajectories (up to $T = 200,000$ and $d = 30$) validate these theoretical insights. While the $\sqrt{d}$ oversampling (FreqTS) is necessary for the formal proof to guarantee a frequentist regret bound of $\widetilde{O}(d^{3/2}\sqrt{T})$, standard Bayesian TS (BayesTS) often performs better in practice, scaling closer to $O(d\sqrt{T})$. This suggests that the theoretical requirement for oversampling might be an artifact of the analysis rather than a fundamental necessity for the algorithm's success.
Furthermore, the geometric sensitivity approach is robust. It allows for the derivation of the first frequentist regret bounds for TS in Generalized Linear Models (GLMs) and regularized linear optimization problems, demonstrating the versatility of this analytical framework.
Conclusion
By revisiting Linear Thompson Sampling through a geometric lens, we show that its success stems from its ability to act as a randomized optimistic solver. While a $\sqrt{d}$ gap remains between the current theoretical bounds and empirical observations, this sensitivity-based analysis provides a clearer path for extending TS to more complex reinforcement learning environments and adversarial settings.
Summary updated