Near-optimal Bayesian Solution For Unknown Discrete Markov Decision Process

Aristide C. Y. Tossou, Christos Dimitrakakis, Debabrota Basu · DOI

Abstract

We tackle the problem of acting in an unknown finite and discrete Markov Decision Process (MDP) for which the expected shortest path from any state to any other state is bounded by a finite number $D$. An MDP consists of $S$ states and $A$ possible actions per state. Upon choosing an action $a_t$ at state $s_t$, one receives a real value reward $r_t$, then one transits to a next state $s_{t+1}$. The reward $r_t$ is generated from a fixed reward distribution depending only on $(s_t, a_t)$ and similarly, the next state $s_{t+1}$ is generated from a fixed transition distribution depending only on $(s_t, a_t)$. The objective is to maximize the accumulated rewards after $T$ interactions. In this paper, we consider the case where the reward distributions, the transitions, $T$ and $D$ are all unknown. We derive the first polynomial time Bayesian algorithm, BUCRL that achieves up to logarithm factors, a regret of the optimal order $\tilde{\mathcal{O}}(\sqrt{DSAT})$. Importantly, our result holds with high probability for the worst-case (frequentist) regret and not the weaker notion of Bayesian regret. We perform experiments in a variety of environments that demonstrate the superiority of our algorithm over previous techniques.

Introduction

In Reinforcement Learning (RL), an agent navigates an unknown environment to maximize cumulative rewards, a process typically modeled as a Markov Decision Process (MDP). The fundamental challenge lies in the exploration-exploitation trade-off. Existing approaches generally bifurcate into frequentist and Bayesian methods. Frequentist algorithms, such as UCRL2, employ "optimism in the face of uncertainty" via confidence intervals. While they offer strong worst-case (frequentist) regret guarantees, they are often overly conservative in practice. Conversely, Bayesian algorithms like Posterior Sampling (PSRL) maintain a distribution over environments, typically yielding better empirical performance but only providing "Bayesian regret" guarantees—performance that is good on average assuming the prior is correct, but potentially poor in the worst case.

This paper introduces BUCRL (Bayesian Upper Confidence Reinforcement Learning), bridging this gap by providing a Bayesian algorithm that is both practically efficient and theoretically optimal in the frequentist sense for communicating MDPs.

Methodology

BUCRL's primary innovation is its handling of uncertainty through Bayesian Quantiles. Rather than sampling a single MDP from the posterior or relying on loose frequentist concentration inequalities (e.g., Hoeffding bounds), BUCRL computes marginal quantiles from the posterior distribution.

The algorithm constructs a set of "statistically plausible" MDPs within these quantiles and identifies the optimal policy across this set using a modified Extended Value Iteration. To maintain computational efficiency, BUCRL employs an Extended Doubling Trick, updating its policy only when the data collected for state-action pairs has significantly increased. Furthermore, the authors derived sharper mathematical bounds for the KL-divergence of Bernoulli variables and quantiles for Beta and Binomial distributions to support their theoretical framework.

Experiments and Results

The algorithm was evaluated against several standard RL benchmarks: Bandits (single-state), RiverSwim (requiring deep exploration), and GameOfSkill-v1 & v2 (complex transition and reward dynamics).

Average regret across different environments: (a) RiverSwim, (b) GameOfSkill-v1, (c) Bandits, and (d) GameOfSkill-v2.

The empirical results demonstrate that BUCRL consistently outperforms state-of-the-art frequentist algorithms (UCRL-V, KL-UCRL) and Bayesian variants (TSDE). Notably, BUCRL achieves the optimal regret order of $\tilde{\mathcal{O}}(\sqrt{DSAT})$, matching the theoretical lower bound for this problem class. The "Bayesian edge" comes from utilizing the full shape of the posterior distribution, which provides tighter bounds than generic frequentist inequalities.

Conclusion

BUCRL represents the first polynomial-time Bayesian algorithm to achieve near-optimal frequentist regret in discrete MDPs. While currently limited to tabular settings with finite state/action spaces and specific prior assumptions (Beta/Dirichlet), it demonstrates that Bayesian tools do not require sacrificing theoretical rigor. Future work will explore extending the Bayesian Quantile approach to high-dimensional environments using linear function approximation or deep learning architectures.

Summary updated

BibTeX
@misc{tossou2019near,
  author = {Aristide C. Y. Tossou and Christos Dimitrakakis and Debabrota Basu},
  title = {{Near-optimal Bayesian Solution For Unknown Discrete Markov Decision Process}},
  year = {2019},
  eprint = {1906.09114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.09114},
}
Figure