NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TSEB: More Efficient Thompson Sampling for Policy Learning

P. Prasanna, Sarath Chandar, Balaraman RavindranarXiv 2015

Introduction

In Reinforcement Learning (RL), agents must navigate the exploration-exploitation dilemma: balancing the use of known high-reward actions with the exploration of unknown states to improve future performance. Two primary frameworks evaluate this balance: Regret Minimization and Probably Approximately Correct (PAC-MDP). While Thompson Sampling (TS) is renowned for its empirical success in regret minimization, it has historically lacked formal PAC guarantees because it can be "too greedy," failing to explore sufficiently to ensure near-optimal policy convergence within polynomial time.

TSEB (Thompson Sampling with Exploration Bonus) addresses this gap by introducing an adaptive, uncertainty-aware bonus to the classic TS approach, providing the first-ever PAC guarantees for a Thompson Sampling-based agent.

Methodology: The TSEB Twist

Standard model-based Thompson Sampling maintains a posterior distribution over possible Markov Decision Processes (MDPs), samples a model, and follows its optimal policy. TSEB modifies this loop by augmenting the reward function of the sampled model with an adaptive exploration bonus ($\rho$). The value function update is redefined as a convex combination:

$$V(s) = \lambda R(s, a) + (1-\lambda)\rho(s, a) + \gamma \sum P(s'|s, a)V(s')$$

Here, $\lambda$ acts as a trade-off parameter where $\lambda=1$ represents pure Thompson Sampling. The bonus $\rho$ is derived from the variance of model estimates; as the agent gains experience with a state-action pair, the uncertainty—and thus the bonus—decays.

Theoretical Contributions

The primary contribution of TSEB is the derivation of a sample complexity bound, making it the first TS-based algorithm with PAC-MDP guarantees. The authors proved that by biasing sampled rewards with an uncertainty-based bonus, the agent is guaranteed to find an $\epsilon$-optimal policy with high probability.

Comparison of PAC-MDP sample complexity bounds.

As shown in the comparison above, TSEB achieves a sample complexity bound of $O\left(\frac{SAf_0(K_r, \gamma)}{\epsilon^2} \log \frac{1}{\delta}\right)$, which is theoretically tighter than several established PAC algorithms such as MBIE-EB.

Empirical Evaluation

The algorithm was tested on benchmark environments including Chain World—a 5-state environment where greedy agents often get trapped in sub-optimal loops—and Queuing World.

Key Results in Chain World

Experimental results demonstrate that a small amount of added exploration significantly improves performance. In Chain World, TSEB with $\lambda=0.1$ outperformed pure Thompson Sampling ($\lambda=1.0$).

Average cumulative reward in Chain World for varying lambda values.

The data indicates that $\lambda=0.1$ achieved the highest average cumulative reward (~1963.74), whereas pure TS ($\lambda=1.0$) achieved ~1942.63. This confirms that the exploration bonus prevents the agent from converging prematurely on local optima. Furthermore, empirical analysis of model accuracy (the "f-function") showed that the exploration bonus accelerates the posterior distribution's convergence to true model parameters.

Conclusion and Future Work

TSEB successfully bridges the gap between the practical efficiency of Thompson Sampling and the rigorous guarantees of PAC-MDP theory. While currently requiring manual tuning of the $\lambda$ parameter, future iterations may explore dynamic adaptation of $\lambda$ based on real-time reward variance. Extending these principles to non-parametric settings and more complex, continuous state spaces remains a promising direction for future research.

Summary updated

BibTeX
@misc{prasanna2015tseb,
  author = {P. Prasanna and Sarath Chandar and Balaraman Ravindran},
  title = {{TSEB: More Efficient Thompson Sampling for Policy Learning}},
  year = {2015},
  eprint = {1510.02874},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1510.02874},
}
Figure