Skip to main content
QUICK REVIEW

[Paper Review] Online Learning for Stochastic Shortest Path Model via Posterior Sampling

Mehdi Jafarnia-Jahromi, Liyu Chen|arXiv (Cornell University)|Jun 9, 2021
Advanced Bandit Algorithms ResearchDecision Sciences39 references6 citations
TL;DR

This paper proposes PSRL-SSP, a posterior sampling-based reinforcement learning algorithm for the Stochastic Shortest Path (SSP) problem with unknown transition dynamics. The algorithm uses epoch-based exploration, sampling a model from the posterior at each epoch's start and following the optimal policy for that sample, achieving a Bayesian regret bound of $\tilde{\mathcal{O}}(B_{\star}S\sqrt{AK})$, which is near-optimal and outperforms optimism-based methods numerically.

ABSTRACT

We consider the problem of online reinforcement learning for the Stochastic Shortest Path (SSP) problem modeled as an unknown MDP with an absorbing state. We propose PSRL-SSP, a simple posterior sampling-based reinforcement learning algorithm for the SSP problem. The algorithm operates in epochs. At the beginning of each epoch, a sample is drawn from the posterior distribution on the unknown model dynamics, and the optimal policy with respect to the drawn sample is followed during that epoch. An epoch completes if either the number of visits to the goal state in the current epoch exceeds that of the previous epoch, or the number of visits to any of the state-action pairs is doubled. We establish a Bayesian regret bound of $O(B_\star S\sqrt{AK})$, where $B_\star$ is an upper bound on the expected cost of the optimal policy, $S$ is the size of the state space, $A$ is the size of the action space, and $K$ is the number of episodes. The algorithm only requires the knowledge of the prior distribution, and has no hyper-parameters to tune. It is the first such posterior sampling algorithm and outperforms numerically previously proposed optimism-based algorithms.

Motivation & Objective

  • To develop a posterior sampling-based reinforcement learning algorithm for the Stochastic Shortest Path (SSP) problem with unknown transition kernels.
  • To address the challenge of designing effective exploration epochs in SSP, where episode lengths are unbounded and not fixed.
  • To achieve a near-optimal Bayesian regret bound while maintaining superior numerical performance compared to optimism-based algorithms.
  • To provide a method that leverages prior knowledge through the prior distribution and requires no hyperparameter tuning.

Proposed method

  • The algorithm operates in epochs, restarting a new epoch when either the number of episodes in the current epoch exceeds that of the previous epoch or the visit count to any state-action pair doubles.
  • At the beginning of each epoch, a transition kernel is sampled from the posterior distribution over unknown model dynamics.
  • The agent follows the optimal policy with respect to the sampled model during the entire epoch.
  • The algorithm uses a perturbed cost function $c_{\epsilon}(s,a) = \max\{c(s,a), \epsilon\}$ with $\epsilon = (S^2A/K)^{2/3}$ to ensure finite expected episode length and enable regret analysis.
  • Regret analysis relies on bounding the expected cumulative cost deviation from the optimal policy, leveraging concentration inequalities and posterior sampling properties.
  • The regret bound is derived by combining bounds on model sampling error, episode length, and the impact of perturbed costs, ultimately yielding a $\tilde{\mathcal{O}}(B_{\star}S\sqrt{AK})$ bound.

Experimental results

Research questions

  • RQ1Can posterior sampling be effectively adapted to the Stochastic Shortest Path (SSP) setting with unbounded episode lengths?
  • RQ2What epoch termination criteria enable effective exploration and policy switching in SSP without fixed episode horizons?
  • RQ3Does a posterior sampling algorithm for SSP achieve near-optimal regret while outperforming optimism-based methods in practice?
  • RQ4How can prior knowledge be incorporated into an SSP learning algorithm without requiring hyperparameter tuning?

Key findings

  • The PSRL-SSP algorithm achieves a Bayesian regret bound of $\tilde{\mathcal{O}}(B_{\star}S\sqrt{AK})$, where $B_{\star}$ is an upper bound on the expected cost of the optimal policy, $S$ is the state space size, $A$ is the action space size, and $K$ is the number of episodes.
  • The algorithm requires no hyperparameter tuning and only needs knowledge of the prior distribution over the transition kernel.
  • Numerical experiments show that PSRL-SSP outperforms previously proposed optimism-based algorithms in terms of cumulative cost and learning efficiency.
  • The regret bound is within a $\sqrt{S}$ factor of the minimax lower bound, which is consistent with known gaps in posterior sampling literature for SSP.
  • By introducing a perturbed cost function with $\epsilon = (S^2A/K)^{2/3}$, the algorithm ensures finite expected episode length and enables a refined regret analysis with additional terms involving $T_{\star}$, the expected time to reach the goal under the optimal policy.
  • The analysis establishes that the expected number of episodes is finite, ensuring that $K$ episodes eventually terminate, which validates the regret bound's applicability.

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.