Skip to main content
QUICK REVIEW

[Paper Review] Learning Unknown Markov Decision Processes: A Thompson Sampling Approach

Yi Ouyang, Mukul Gagrani|arXiv (Cornell University)|Sep 14, 2017
Advanced Bandit Algorithms ResearchDecision Sciences9 references14 citations
TL;DR

This paper proposes Thompson Sampling with Dynamic Episodes (TSDE), a reinforcement learning algorithm for learning unknown weakly communicating Markov Decision Processes (MDPs). By sampling from the posterior over MDP parameters and using two stopping criteria—doubling visits to state-action pairs and controlled episode length growth—TSDE achieves a Bayesian expected regret bound of $\tilde{O}(HS\sqrt{AT})$, matching the best-known theoretical performance for this class of MDPs and outperforming existing algorithms in simulations.

ABSTRACT

We consider the problem of learning an unknown Markov Decision Process (MDP) that is weakly communicating in the infinite horizon setting. We propose a Thompson Sampling-based reinforcement learning algorithm with dynamic episodes (TSDE). At the beginning of each episode, the algorithm generates a sample from the posterior distribution over the unknown model parameters. It then follows the optimal stationary policy for the sampled model for the rest of the episode. The duration of each episode is dynamically determined by two stopping criteria. The first stopping criterion controls the growth rate of episode length. The second stopping criterion happens when the number of visits to any state-action pair is doubled. We establish $ ilde O(HS\sqrt{AT})$ bounds on expected regret under a Bayesian setting, where $S$ and $A$ are the sizes of the state and action spaces, $T$ is time, and $H$ is the bound of the span. This regret bound matches the best available bound for weakly communicating MDPs. Numerical results show it to perform better than existing algorithms for infinite horizon MDPs.

Motivation & Objective

  • To address the lack of theoretically grounded Thompson Sampling algorithms for general infinite-horizon MDPs without special structural assumptions.
  • To design a dynamic episode scheduling mechanism that enables strong regret guarantees in weakly communicating MDPs.
  • To balance exploration and exploitation through posterior sampling and adaptive episode termination.
  • To establish a regret bound matching the best-known theoretical performance for weakly communicating MDPs.

Proposed method

  • The algorithm uses posterior sampling to generate a model sample at the start of each episode from the current belief over unknown MDP parameters.
  • Each episode ends when either the number of visits to any state-action pair doubles (doubling trick), or the episode length grows linearly with time.
  • The episode length is dynamically controlled via a growth-rate criterion to ensure sufficient exploration and stability in regret analysis.
  • The agent follows the optimal stationary policy for the sampled MDP throughout each episode.
  • The algorithm leverages Bayesian inference with a Dirichlet prior over transition probabilities to maintain posterior distributions.
  • Regret analysis combines concentration inequalities and bounds on episode count and span to derive the final regret bound.

Experimental results

Research questions

  • RQ1Can Thompson Sampling be effectively applied to general infinite-horizon MDPs without structural assumptions like recurrence or known recurrent states?
  • RQ2What episode termination criteria are necessary to achieve strong regret bounds in Thompson Sampling for MDPs?
  • RQ3Does a dynamic episode length schedule, combining growth-rate control and visit-doubling, lead to improved regret performance?
  • RQ4How does the proposed TSDE algorithm compare empirically to existing algorithms with similar regret orders?

Key findings

  • TSDE achieves a Bayesian expected regret bound of $\tilde{O}(HS\sqrt{AT})$, matching the best-known bound for weakly communicating MDPs.
  • The regret bound is tight up to logarithmic factors, approaching the theoretical lower bound in order of $T$.
  • In simulations on randomly generated MDPs, TSDE significantly outperforms UCRL2, TSMDP, and Lazy PSRL in terms of expected regret.
  • In the RiverSwim benchmark, TSDE outperforms all baselines, including TSMDP with a carefully chosen resampling state, highlighting its robustness to model uncertainty.
  • The performance gap between TSDE and Lazy PSRL demonstrates the importance of the first stopping criterion (growth-rate control) in balancing exploitation and exploration.
  • The results suggest that TSDE may also achieve similar regret bounds under a non-Bayesian setting, despite the analysis being in a Bayesian framework.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.