Abstract
In this work, we first show that the classical Thompson sampling algorithm for multi-arm bandits is differentially private as-is, without any modification. We provide per-round privacy guarantees as a function of problem parameters and show composition over $T$ rounds; since the algorithm is unchanged, existing $O(\sqrt{NT\log N})$ regret bounds still hold and there is no loss in performance due to privacy. We then show that simple modifications—such as pre-pulling all arms a fixed number of times and increasing the sampling variance—can provide tighter privacy guarantees. We provide privacy guarantees that depend on these new parameters, allowing the analyst to tune the privacy level as desired. We also provide a novel regret analysis for this modified algorithm, showing how the new parameters impact expected regret. Finally, we empirically validate our theoretical findings and demonstrate that tuning the new parameters substantially improves the privacy-regret tradeoff.
Introduction
In the multi-armed bandit (MAB) setting, an agent seeks to maximize rewards by choosing between several options ("arms") with unknown reward distributions. In sensitive applications like clinical trials or personalized recommendations, these rewards often represent private user data. Standard Differential Privacy (DP) techniques typically require adding artificial noise, which usually increases "regret"—the difference between the earned reward and the optimal possible reward. This paper explores a provocative question: Is the inherent randomness already built into Thompson Sampling (TS) sufficient to protect privacy on its own?
The "As-Is" Privacy of Thompson Sampling
The researchers focus on Thompson Sampling with Gaussian priors. They demonstrate that the core mechanism of TS—sampling from a posterior distribution—is mathematically equivalent to the Gaussian Mechanism, a cornerstone of DP. Because the algorithm only outputs the index of the chosen arm (an "argmax" operation) rather than the sampled values themselves, the specific reward of any single user is naturally obscured through post-processing.
Using the Gaussian Differential Privacy (GDP) framework, which excels at handling the accumulation of privacy loss over many rounds ($T$), the authors prove that standard TS satisfies $(\epsilon, \delta)$-DP. Specifically, for $T$ rounds, it satisfies $\sqrt{T/2}$-GDP. This means practitioners can use existing, optimized TS implementations and receive DP guarantees without any performance "privacy tax."
Enhancing Privacy via Tuning
While standard TS is private, its default privacy budget might be too high for some applications. To provide more control, the authors introduce two modifications:
- Pre-pulling ($b$): Pulling every arm $b$ times at the start to ensure the posterior variance is sufficiently high (a "warm start").
- Variance Scaling ($c$): Multiplying the sampling variance by a factor $c \ge 1$ to intentionally increase the privacy noise.
As shown in the figure above, increasing $b$ or $c$ allows the analyst to significantly tighten the privacy guarantee (lowering $\epsilon$). The authors' analysis shows that while $c$ increases regret linearly, the overall performance remains competitive.
Empirical Evaluation and Regret Tradeoffs
The authors evaluated the modified TS algorithm using synthetic simulations with Bernoulli and Truncated Exponential rewards. A key finding is the existence of a "phase transition" in the regret curves. During the initial pre-pulling phase ($b$), regret grows quickly as the algorithm explores every arm. However, once the TS phase begins, the "warm start" allows the algorithm to converge on the optimal arm very rapidly.
In head-to-head tests, the modified TS algorithm significantly outperformed other state-of-the-art private bandit algorithms like DP-SE and Anytime-Lazy-UCB. By jointly tuning $b$ and $c$, the authors were able to reduce the privacy parameter from a baseline of $\sim 316$-GDP down to a strict $1$-GDP while maintaining functional regret curves.
Conclusion and Future Work
This work establishes that Thompson Sampling is a naturally private algorithm. By leveraging its internal randomness, practitioners can achieve differential privacy without modifying the algorithm or sacrificing performance. For stricter requirements, the introduced $b$ and $c$ parameters offer a tunable way to trade a small amount of regret for significantly stronger privacy. Future research may extend these proofs to non-Gaussian priors (like Beta-Bernoulli) and explore the implications for unbounded reward distributions.
Summary updated