Abstract
Bayesian reinforcement learning (BRL) offers a decision-theoretic solution for reinforcement learning. While "model-based" BRL algorithms have focused either on maintaining a posterior distribution on models or value functions and combining this with approximate dynamic programming or tree search, previous Bayesian "model-free" value function distribution approaches implicitly make strong assumptions or approximations. We describe a novel Bayesian framework, Inferential Induction, for correctly inferring value function distributions from data, which leads to the development of a new class of BRL algorithms. We design an algorithm, Bayesian Backwards Induction, with this framework. We experimentally demonstrate that the proposed algorithm is competitive with respect to the state of the art.
Introduction
In Reinforcement Learning (RL), an agent learns to make decisions in an unknown environment (the Markov Decision Process or MDP) to maximize cumulative rewards. Bayesian RL (BRL) handles this by maintaining a "belief"—a probability distribution—over what the true environment might be.
Historically, BRL has been split into two primary methodologies:
- Model-based: Maintaining a distribution over possible MDPs. While theoretically sound, this is often computationally expensive.
- Model-free: Maintaining a distribution over value functions (expected long-term rewards). This is often faster but frequently relies on "empirical models" or hidden assumptions that are not fully Bayesian, leading to inconsistent results.
This paper argues that true probabilistic estimation of value functions requires an explicit link to the underlying model. The authors introduce Inferential Induction (II), a framework for joint inference that respects the recursive nature of the Bellman equation.
Methodology
The core contribution is the development of the Link Distribution, which allows for the calculation of the value function distribution at time $t$ based on the distribution at time $t+1$ by marginalizing over the MDP posterior. This distinguishes between utility distribution (caused by environment stochasticity) and value function distribution (caused by epistemic uncertainty regarding the environment's rules).
Bayesian Backwards Induction (BBI)
Since there is no closed-form solution for this joint distribution, the authors propose Bayesian Backwards Induction (BBI). This algorithm uses a Monte Carlo approach to sample possible MDPs from the posterior and use them to weight different value function candidates. Unlike standard value iteration, which uses point estimates, BBI propagates entire distributions backwards through time.
As detailed in Algorithm 2, the process involves sampling model parameters and value functions to iteratively update the belief $\psi_i$ over the value function at each step of a lookahead horizon $H$. This enables the agent to maximize Bayesian expected utility while accounting for uncertainty.
Experimental Results
The authors evaluated the BBI framework on several classic discrete MDP benchmarks, including NChain, DoubleLoop, and LavaLake (a stochastic grid world testing safety).
- Competitive Performance: In NChain and DoubleLoop, BBI performed on par with Posterior Sampling for Reinforcement Learning (PSRL), the state-of-the-art for Bayesian RL in discrete spaces.
- Superiority over Distributional Baselines: BBI significantly outperformed VDQN, suggesting that explicit joint inference is more effective than the approximations used in some deep RL variants.
- Safety Gains: In LavaLake experiments, a risk-averse variant of BBI fell into lava pits significantly fewer times than other algorithms. In a 10x10 lake, BBI Safety hit the lava only 65 times on average, compared to over 2,600 times for standard PSRL.
Conclusion and Future Work
Inferential Induction demonstrates that attempting to estimate value function distributions without an explicit MDP model usually results in a "mean-field approximation" that ignores critical uncertainty. By providing a full distribution of values, BBI allows for "plug-and-play" risk sensitivity, enabling agents to be either exploratory or risk-averse depending on the application.
While currently limited to discrete state spaces, the framework provides a roadmap for "Deep Bayesian RL." Future research will explore replacing Monte Carlo sampling with more efficient neural approximations or variational inference to scale the approach to high-dimensional environments.
Summary updated