Online Learning for Unknown Partially Observable MDPs

Mehdi Jafarnia-Jahromi, Rahul Jain, Ashutosh Nayyar

Abstract

This paper introduces PSRL-POMDP, the first online reinforcement learning algorithm for Partially Observable Markov Decision Processes (POMDPs) with an unknown transition model that achieves sub-linear regret. By combining posterior sampling (Thompson Sampling) with a novel "pseudo-count" technique to manage exploration, the authors prove that an agent can learn to act optimally even when it cannot directly observe the environment's state. We establish regret bounds of $O(\log T)$ for finite parameter sets and $\tilde{O}(T^{2/3})$ for continuous parameter sets.

Introduction

In standard Reinforcement Learning (RL), environments are typically modeled as Markov Decision Processes (MDPs), where the agent has full knowledge of its current state. However, real-world applications—ranging from robotics to healthcare—are more accurately modeled as POMDPs, where the underlying state is hidden and the agent only receives noisy or partial observations.

Learning in POMDPs presents a "triple threat" of challenges:

  1. Partial Observability: The agent must maintain a "belief" (a probability distribution) over hidden states.
  2. Unknown Dynamics: The transition model governing how actions change the world is unknown.
  3. Exploration-Exploitation Trade-off: The agent must balance exploiting current knowledge with exploring to improve its model.

While near-optimal algorithms with proven "regret bounds" (the performance gap between the learner and an omniscient expert) exist for MDPs, providing such bounds for POMDPs with unknown models has remained an open challenge until this work.

Methods: The PSRL-POMDP Algorithm

The authors propose PSRL-POMDP (Posterior Sampling Reinforcement Learning for POMDPs), a Bayesian approach that operates in episodes.

Posterior Sampling

At the start of each episode, the agent samples a transition model from its current posterior distribution—its "best guess" based on accumulated data. It then computes the optimal policy for this specific sampled model and follows it throughout the episode.

Belief State Recasting and Pseudo-Counts

Since the true state is hidden, the agent uses the sampled model to update its belief state and choose actions. A critical technical hurdle in POMDPs is that standard exploration triggers (like counting state-action visits) are impossible because states are unobserved. To solve this, the authors introduce pseudo-counts ($m_t$), which represent the expected number of visits to a state-action pair given the history. These pseudo-counts are used to trigger new learning episodes and manage the exploration rate.

Algorithm 1: The PSRL-POMDP algorithm, utilizing posterior sampling and pseudo-counts for exploration.

The algorithm assumes the observation model (mapping states to observations) is known, while the transition model is entirely unknown.

Key Results and Insights

The primary contribution of this work is the mathematical proof that sub-linear regret is achievable in POMDPs. This implies that as time $T$ increases, the agent's average performance converges to the optimal policy.

The paper provides two quantitative bounds for cumulative regret ($R_T$):

  1. Finite Parameter Set: If the possible transition models belong to a finite set, the algorithm achieves $O(\log T)$ regret, indicating extremely fast learning.
  2. Continuous Parameter Set: In the general case where the transition model is any valid probability kernel, the algorithm achieves $\tilde{O}(T^{2/3})$ regret. While slower than the finite case, it remains sub-linear.

A vital insight is that pseudo-counts serve as an effective proxy for actual visitations, providing the necessary technical bridge to adapt MDP theory to the POMDP setting. Furthermore, the authors show that the posterior distribution over transition models concentrates around the true model exponentially fast under certain conditions.

Discussion and Future Work

While PSRL-POMDP represents a significant theoretical milestone, several limitations remain:

  • Known Observation Model: The assumption of a known mapping from states to observations is often violated in practice. Future research should address learning both transition and observation models simultaneously.
  • Computational Complexity: Solving for the optimal policy in a POMDP is PSPACE-hard. This paper focuses on statistical efficiency (data requirements) rather than computational efficiency. Practical implementations will require efficient approximation methods for the policy update step.
  • Regret Gap: There is a gap between the $\tilde{O}(T^{2/3})$ bound found here and the $\tilde{O}(\sqrt{T})$ bound typical in MDPs. Closing this gap is a key objective for future theoretical work.

In conclusion, PSRL-POMDP provides the first rigorous guarantee that online learning in unknown POMDPs can be performed with sub-linear regret, opening new avenues for robust RL in partially observable environments.

Summary updated

BibTeX
@inproceedings{jafarniajahromi2022online,
  author = {Mehdi Jafarnia-Jahromi and Rahul Jain and Ashutosh Nayyar},
  title = {{Online Learning for Unknown Partially Observable MDPs}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
}
Figure