Introduction
Thompson Sampling (TS) is a cornerstone algorithm in Reinforcement Learning (RL), favored for its intuitive design and strong empirical performance. By sampling from a posterior distribution and acting optimally according to that sample, TS naturally balances exploration and exploitation. However, establishing rigorous theoretical guarantees for its performance—specifically in terms of Bayesian regret—has remained a significant challenge in complex RL environments.
A recent study from researchers at Purdue University and Toyota Motor North America introduces a novel "surrogate environment" framework and leverages posterior consistency to provide the first general Bayesian regret bounds for TS. This work addresses long-standing gaps in the literature, including flawed proofs and restrictive assumptions on prior beliefs.
The Challenge of Bayesian Regret in RL
In RL, an agent's regret is the cumulative difference between the rewards of an optimal policy and the rewards actually obtained. Bayesian regret averages this value over the agent's initial prior distribution of possible environments.
While Bayesian regret is well-understood for simple bandit problems, extending these results to Markov Decision Processes (MDPs) is difficult. Previous attempts often relied on restrictive Dirichlet priors, were limited to time-homogeneous settings, or, as this paper identifies, contained fundamental analytical errors.
Methodological Framework
The authors propose a three-part strategy to derive tighter, more general bounds:
- Surrogate Learning: The authors discretize the potentially infinite space of environments into a finite set of "surrogate environments." They demonstrate that an agent capable of learning within this surrogate space will effectively learn the true environment. This approach utilizes the Kolmogorov $l_1$-dimension to quantify environment complexity.
- Refined Information Ratio: Using an information-theoretic decomposition, the authors analyze the Information Ratio, which quantifies the cost of exploration relative to the information gained about the optimal policy.
- Posterior Consistency: By applying Doob’s consistency theorem, the authors show that the agent's posterior distribution concentrates around the true environment as interactions increase. This allows for tighter bounding of the information ratio compared to previous "worst-case" estimation methods.
Key Theoretical Contributions
The Value Diameter ($\lambda$)
A central innovation is the introduction of the Value Diameter ($\lambda$), representing the average difference between optimal values across different states. In environments where states are well-connected and easily reachable, $\lambda$ is significantly smaller than the episode length $H$. This leads to regret bounds that are much tighter than those relying solely on $H$.
Correcting the Literature
The authors identify a critical flaw in the linear RL regret analysis by Hao and Lattimore (2022). They provide a counterexample showing that the previous proof's logic would erroneously imply zero regret for tabular RL. This paper provides the first correct derivation for linear Bayesian RL.
Prior Independence
Unlike previous works that required specific priors (e.g., Dirichlet), these new bounds are prior-independent. They hold for any initial distribution, provided a consistent estimator for the environment exists.
Results and Comparison
The paper establishes a general Bayesian regret bound of $\tilde{O}(\lambda \sqrt{d_{l1} T})$, where $T$ is the total time and $d_{l1}$ is the environment dimension.
As shown in the table above, the proposed bounds match or improve upon state-of-the-art results across several settings:
- Tabular RL: Achieves $\tilde{O}(\lambda \sqrt{HSAT})$, generalizing previous results to time-inhomogeneous settings and arbitrary priors.
- Linear RL: Provides the first correct bound scaling with feature dimension $d_f$.
- Finite Mixtures: Establishes the first TS Bayesian regret bound for finite mixture MDPs, of order $\tilde{O}(\lambda \sqrt{HmT})$.
Conclusion
This work provides a robust theoretical foundation for Thompson Sampling in RL. While the bounds are currently asymptotic (holding for "large enough $T$"), they represent a significant step forward. Future research may address "prior misspecification"—where the true environment lies outside the agent's prior—and seek to prove the authors' conjecture that $\lambda$ can be replaced by $\sqrt{H}$ to match frequentist lower bounds.
Summary updated