TL;DR
Ensemble Sampling (ES) is a popular, scalable alternative to Thompson Sampling for complex reinforcement learning tasks, but it has long lacked a solid theoretical foundation. This paper provides the first rigorous Bayesian regret analysis for ES in linear bandits, proving that its performance matches exact Thompson Sampling as the ensemble size increases.
The Challenge of Computational Intractability
In the world of multi-armed bandits and reinforcement learning, Thompson Sampling (TS) is a gold-standard heuristic for balancing exploration (trying new things) and exploitation (choosing what is known to work). To function perfectly, TS requires maintaining an exact "posterior distribution"—a mathematical representation of what the agent believes about the world based on all past data.
However, for complex models like deep neural networks, calculating and updating this exact distribution is computationally intractable. Practitioners instead rely on Ensemble Sampling (ES). ES maintains a finite "ensemble" of models (for instance, 10 or 30 distinct versions of a neural network) and picks one at random to make decisions at each step.
While ES is widely used in deep reinforcement learning and recommendation systems due to its scalability, there has been a glaring problem: the community lacked a rigorous mathematical proof that it actually works. A previous attempt at a proof in 2017 was found to have a technical flaw, leaving researchers without a theoretical guarantee that ES wouldn't fail in unexpected ways. This paper successfully fills that critical gap.
Methods and Algorithmic Framework
As a theoretical contribution, this paper focuses on mathematical proofs and algorithmic analysis rather than empirical datasets. The authors center their analysis on linear-Gaussian bandits, a standard "sanity check" environment in bandit theory.
The core of their approach is the introduction of a General Regret Bound (Theorem 2). This is a new, versatile analytical tool capable of evaluating any learning algorithm, not just ES. This general bound measures the "distance"—specifically the squared Hellinger distance—between two distributions:
- The distribution of actions the algorithm actually takes.
- The distribution of actions an optimal Bayesian agent would take.
To analyze ES specifically, the authors demonstrate how the ensemble's discrete distribution approximates the true continuous Gaussian posterior. They utilize information-theoretic concepts, such as Shannon entropy and mutual information, to track how much information the agent gains over time and how much "regret" it incurs because its ensemble is only a finite approximation of the truth.
Key Insights
- The "Two-Term" Regret Structure: The authors show that the regret of Ensemble Sampling can be split into two clean mathematical components. The first term is identical to the regret of exact Thompson Sampling. The second term acts as a "penalty" for using a finite ensemble instead of the true posterior.
- The Power of Ensemble Size ($M$): The second term of the regret bound decreases as the ensemble size ($M$) increases. This confirms the practical intuition that a larger ensemble leads to better performance, eventually converging to the behavior of exact TS.
- Hellinger Distance as a Bridge: By incorporating the Hellinger distance into their general bound, the authors successfully bridged the gap between a discrete set of models (the ensemble) and a continuous probability distribution (the true posterior) without the mathematics breaking down.
- Information Ratios: The paper leverages the "Information Ratio" framework, which relates the cost of an action (regret) to the information gained from it. The authors successfully extended this framework to handle "posterior mismatch"—the scenario where the agent's internal model doesn't perfectly match the true posterior.
Key Results
The primary result of the paper is a rigorous Bayesian regret bound for Ensemble Sampling:
$$\text{Regret}(T) \leq O\left(\sqrt{dT\mathbb{H}(A_*)} + T\sqrt{\frac{K \log(TM)}{M}}\right)$$
- Term 1 (The TS baseline): Grows at a rate of $\sqrt{T}$, which is the optimal rate for these types of bandit problems.
- Term 2 (The ES penalty): Grows linearly with time ($T$) but is divided by the square root of the ensemble size ($M$).
- Practical Implication: If the ensemble size $M$ is set large enough (specifically, proportional to the time horizon $T$), the "penalty" term becomes negligible. Under these conditions, ES performs just as well as the computationally expensive exact Thompson Sampling.
Limitations and Future Work
While this paper establishes a crucial theoretical foundation, several avenues for future research remain:
- Dependence on Action Space ($K$): The current bound depends on the number of actions ($K$). In many linear bandit problems, the action space can be infinite or exceptionally large. The authors conjecture that this dependence on $K$ is an artifact of their specific analysis technique and could likely be replaced by the dimension $d$ in future refinements.
- Linear-Gaussian Constraint: This paper provides a vital proof for linear models, but most practical applications of ES involve non-linear models like deep neural networks. Extending this rigorous theory to the "Deep RL" regime remains a major open challenge for the field.
- Computational Efficiency: Although ES is vastly more efficient than exact TS, it still requires training and updating $M$ separate models. Future research could explore even more efficient methods to maintain these ensembles while preserving the newly established theoretical guarantees.
Summary updated