Optimal Posterior Sampling for Policy Identification in Tabular Markov Decision Processes

Cyrille Kone, Kevin Jamieson

TL;DR

This paper introduces PIPS, a novel algorithm for identifying the optimal policy in Markov Decision Processes (MDPs). PIPS achieves theoretical optimality in terms of sample complexity and posterior contraction rate, outperforming existing methods by avoiding suboptimal dependencies on key parameters and offering computational efficiency.

What Problem Does This Paper Address?

In reinforcement learning (RL), a key challenge is "policy identification": after exploring an unknown environment, the agent needs to confidently recommend an optimal policy. This is often framed as the $(\varepsilon, \delta)$-PAC (Probably Approximately Correct) problem, where the goal is to find a policy that is $\varepsilon$-optimal with probability at least $1-\delta$. Existing algorithms for this problem often struggle with high computational costs, making them impractical, and have theoretical guarantees that are suboptimal, especially when the confidence parameter $\delta$ is small. This paper aims to bridge this gap by developing an algorithm that is both theoretically optimal and computationally efficient for tabular, finite-horizon, episodic MDPs.

Methods

The core of PIPS lies in its innovative approach to exploration and policy identification. Instead of relying on traditional methods that might require enumerating many policies or using computationally expensive techniques, PIPS combines two key ideas:

  • Posterior Sampling: PIPS maintains a probabilistic belief (a posterior distribution) over possible MDP models. This allows it to guide exploration towards areas where uncertainty is highest.
  • Online Learning for Exploration: An online learning algorithm is used to adaptively explore the environment based on the current model estimate and a "challenger" MDP. This challenger MDP is sampled from the posterior and is designed to highlight discrepancies between the current best policy guess and what might be optimal under a slightly different model. This targeted exploration helps PIPS efficiently gather informative data.

The algorithm iteratively updates its estimate of the MDP, identifies the current best policy, and then constructs a challenger MDP to guide further exploration. This process continues until a stopping criterion is met, at which point the agent recommends its best policy guess. The paper also provides theoretical analysis for both the exact identification case ($\varepsilon=0$) and the approximate $(\varepsilon, \delta)$-PAC setting.

Datasets

Not discussed in the paper. The experiments are conducted on synthetic MDP environments (MOCA, RiverSwim, Combination Lock) designed to challenge exploration algorithms.

Key Insights and Ideas

  • Posterior Sampling as a Driver for Policy Identification: The paper demonstrates that posterior sampling, a technique well-established in bandit problems, can be effectively adapted for policy identification in MDPs, leading to optimal sample complexity.
  • Challenger MDPs for Targeted Exploration: The novel concept of using a "challenger" MDP, sampled from an inflated posterior, is crucial. This challenger MDP effectively directs exploration towards the most informative state-action pairs for distinguishing between candidate policies.
  • Asymptotic Optimality and Suboptimal Dependencies: PIPS achieves asymptotic optimality in sample complexity and posterior contraction rate, crucially avoiding the suboptimal polynomial dependence on $\log(1/\delta)$ that plagues some prior methods. This means PIPS scales much better with confidence requirements.
  • Computational Efficiency: The algorithm's per-episode computational complexity is $O(S^2AH)$, matching standard model-based approaches, making it practical for tabular MDPs.

Key Results

  • Theoretical Guarantees: PIPS is shown to achieve asymptotically optimal sample complexity and posterior contraction rates for policy identification in tabular, finite-horizon, episodic MDPs.
  • Improved Dependence on $\delta$: Unlike previous algorithms, PIPS avoids suboptimal polynomial dependence on $\log(1/\delta)$, leading to more efficient exploration, especially for high confidence requirements.
  • Computational Performance: The algorithm runs in $O(S^2AH)$ per episode, which is computationally efficient for tabular MDPs.
  • Empirical Validation: Experiments on challenging environments (MOCA, RiverSwim, Combination Lock) show that PIPS outperforms existing baselines like MOCA, UCBVI, and PSRL in terms of identification rate and performance factor, particularly in environments requiring sophisticated exploration.

Limitations and Future Work

  • Tabular MDP Assumption: The current work is limited to tabular MDPs. Extending the framework to function approximation settings (e.g., linear function approximation) is a significant future direction.
  • $(\varepsilon, \delta)$-PAC Setting: While the paper discusses an extension to the $(\varepsilon, \delta)$-PAC setting with $\varepsilon > 0$, the resulting guarantees are suboptimal. Developing an algorithm that achieves optimal guarantees in this more general setting remains an open question.
  • Finite-Sample Guarantees: The theoretical guarantees are primarily asymptotic. Obtaining tight finite-sample guarantees that explicitly depend on state, action, and horizon parameters, especially in the non-asymptotic regime, is another area for future research.
  • Computational Bottleneck: While efficient for tabular MDPs, the algorithm still requires sampling $O(S^2AH)$ parameters per round to generate a challenger MDP, which could be a bottleneck for very large state spaces.

Summary updated

BibTeX
@inproceedings{kone2026optimal,
  author = {Cyrille Kone and Kevin Jamieson},
  title = {{Optimal Posterior Sampling for Policy Identification in Tabular Markov Decision Processes}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=DmBeNcPi7n},
}
Figure