Bayesian learning of the optimal action-value function in a Markov decision process
Jiaqi Guo, Chon Wai Ho, Sumeetpal S. Singh
TL;DR
This work develops a principled Bayesian framework for learning the optimal action-value function $Q^*$ in infinite-horizon, undiscounted MDPs with absorbing states, by constructing a likelihood directly from Bellman optimality equations and performing posterior inference on a parametric $Q_ heta$. It addresses both deterministic and stochastic rewards, introducing an ABC-like relaxation to maintain tractable inference when rewards are deterministic, and employing adaptive sequential Monte Carlo (SMC) with MCMC mutations for online learning. The approach generalizes Thompson sampling to MDPs by sampling policies from the posterior over optimal deterministic policies, enabling data-efficient exploration demonstrated on the Deep Sea benchmark where posterior sampling improves exploration and reduces regret compared to baselines like PSRL and bootstrapped DQN. The framework offers interpretable uncertainty quantification around $Q^*$, highlights challenges from non-identifiability and non-goal recurrent states, and provides a practical online algorithm that adaptively tunes tolerances and sampling strategies to balance approximation accuracy and computational cost. This work lays groundwork for principled Bayesian RL with exact BOE-driven likelihoods and adaptive, particle-based inference, potentially guiding future theory and scalable implementations in complex MDPs.
Abstract
The Markov Decision Process (MDP) is a popular framework for sequential decision-making problems, and uncertainty quantification is an essential component of it to learn optimal decision-making strategies. In particular, a Bayesian framework is used to maintain beliefs about the optimal decisions and the unknown ingredients of the model, which are also to be learned from the data, such as the rewards and state dynamics. However, many existing Bayesian approaches for learning the optimal decision-making strategy are based on unrealistic modelling assumptions and utilise approximate inference techniques. This raises doubts whether the benefits of Bayesian uncertainty quantification are fully realised or can be relied upon. We focus on infinite-horizon and undiscounted MDPs, with finite state and action spaces, and a terminal state. We provide a full Bayesian framework, from modelling to inference to decision-making. For modelling, we introduce a likelihood function with minimal assumptions for learning the optimal action-value function based on Bellman's optimality equations, analyse its properties, and clarify connections to existing works. For deterministic rewards, the likelihood is degenerate and we introduce artificial observation noise to relax it, in a controlled manner, to facilitate more efficient Monte Carlo-based inference. For inference, we propose an adaptive sequential Monte Carlo algorithm to both sample from and adjust the sequence of relaxed posterior distributions. For decision-making, we choose actions using samples from the posterior distribution over the optimal strategies. While commonly done, we provide new insight that clearly shows that it is a generalisation of Thompson sampling from multi-arm bandit problems. Finally, we evaluate our framework on the Deep Sea benchmark problem and demonstrate the exploration benefits of posterior sampling in MDPs.
