[Paper Review] Thompson Sampling is Asymptotically Optimal in General Environments
This paper establishes that Thompson sampling achieves asymptotic optimality in mean and sublinear regret in general stochastic environments—without requiring Markov, ergodic, or fully observable assumptions. By sampling from the posterior over a countable class of environments and acting optimally for a lookahead horizon, the method converges to optimal performance and incurs vanishing regret under a recoverability condition.
We discuss a variant of Thompson sampling for nonparametric reinforcement learning in a countable classes of general stochastic environments. These environments can be non-Markov, non-ergodic, and partially observable. We show that Thompson sampling learns the environment class in the sense that (1) asymptotically its value converges to the optimal value in mean and (2) given a recoverability assumption regret is sublinear.
Motivation & Objective
- To establish asymptotic optimality and sublinear regret for Thompson sampling in general, non-Markov, non-ergodic, and partially observable stochastic environments.
- To overcome limitations of Bayesian agents in general RL by showing Thompson sampling avoids prior bias and achieves objective optimality.
- To provide theoretical guarantees for Thompson sampling in nonparametric, countable environment classes without strong assumptions on ergodicity or posterior behavior.
- To reconcile Bayesian exploration with frequentist regret bounds in a general reinforcement learning framework.
- To demonstrate that Thompson sampling can be asymptotically optimal in mean and achieve sublinear regret under mild recoverability assumptions.
Proposed method
- Thompson sampling selects an environment model ρ from the posterior distribution over a countable class of stochastic environments.
- For each sampled environment ρ, the agent follows the ρ-optimal policy for a lookahead horizon that captures most of the discount function’s mass.
- The policy is updated at each time step by resampling from the posterior and acting optimally for the current effective horizon.
- The analysis relies on a recoverability assumption to ensure that the agent can escape poor states and eventually recover optimal performance.
- Theoretical results are derived using Bayesian updating and concentration of the posterior on environments indistinguishable from the true one.
- Regret bounds are established via coupling arguments and the use of discount functions satisfying specific integrability and decay conditions.
Experimental results
Research questions
- RQ1Can Thompson sampling achieve asymptotic optimality in mean for general stochastic environments without Markov or ergodic assumptions?
- RQ2Does Thompson sampling yield sublinear regret in general environments under a recoverability condition?
- RQ3How does Thompson sampling compare to Bayes-optimal agents in terms of regret and convergence when the prior is misspecified?
- RQ4Can Thompson sampling achieve off-policy prediction or information gain through its exploration mechanism?
- RQ5Is Thompson sampling weakly asymptotically optimal in the general setting considered?
Key findings
- Thompson sampling is asymptotically optimal in mean: the discounted value of the policy converges to the optimal value for all environments in the class.
- Under the recoverability assumption, the worst-case regret of Thompson sampling is sublinear, i.e., Rₘ(πₜ, μ) ∈ o(m) for the Thompson sampling policy πₜ.
- The convergence is in probability and does not require strong assumptions on posterior behavior or ergodicity.
- The regret bound is the first to be established for Thompson sampling in such general environments, including non-Markov and partially observable settings.
- Thompson sampling's exploration is reward-oriented rather than information-maximizing, differing from Bayes-Exp in its exploration strategy.
- Despite strong prior bias, Thompson sampling can achieve near-optimal performance in the Bayesian mixture ξ when the prior assigns high probability to ξ.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.