[Paper Review] Making Sense of Reinforcement Learning and Probabilistic Inference
This paper identifies a critical flaw in the popular 'reinforcement learning as inference' framework: it neglects epistemic uncertainty, leading to poor exploration and performance even in simple problems. The authors propose a modified inference framework—equivalent to K-learning—that properly accounts for uncertainty, enabling provably efficient exploration and outperforming standard approaches like soft Q-learning in both tabular and deep RL settings.
Reinforcement learning (RL) combines a control problem with statistical estimation: The system dynamics are not known to the agent, but can be learned through experience. A recent line of research casts `RL as inference' and suggests a particular framework to generalize the RL problem as probabilistic inference. Our paper surfaces a key shortcoming in that approach, and clarifies the sense in which RL can be coherently cast as an inference problem. In particular, an RL agent must consider the effects of its actions upon future rewards and observations: The exploration-exploitation tradeoff. In all but the most simple settings, the resulting inference is computationally intractable so that practical RL algorithms must resort to approximation. We demonstrate that the popular `RL as inference' approximation can perform poorly in even very basic problems. However, we show that with a small modification the framework does yield algorithms that can provably perform well, and we show that the resulting algorithm is equivalent to the recently proposed K-learning, which we further connect with Thompson sampling.
Motivation & Objective
- To identify a fundamental flaw in the 'reinforcement learning as inference' framework that leads to poor exploration in simple decision problems.
- To clarify the correct way to cast reinforcement learning as probabilistic inference by including inference over future actions and observations.
- To show that the original Bayes-optimal solution already embeds both control and inference, but is computationally intractable.
- To propose a principled modification to the 'RL as inference' framework that incorporates epistemic uncertainty for better exploration.
- To demonstrate empirically that the modified framework (K-learning) scales gracefully with problem size, unlike soft Q-learning.
Proposed method
- Reframe the RL problem as a Bayesian inference problem over future actions and observations, including epistemic uncertainty in the model.
- Use a probabilistic graphical model (PGM) to represent the MDP with exponentiated rewards, treating the policy as a latent variable.
- Introduce a modified inference objective that accounts for the value of information, ensuring exploration is driven by uncertainty.
- Derive K-learning as a principled approximation to this corrected inference framework, using posterior sampling over Q-values.
- Implement the method using ensemble methods and randomized prior functions to approximate posterior distributions in deep RL.
- Evaluate performance on tabular and deep RL benchmarks, particularly the DeepSea MDP, using regret and learning time as metrics.
Experimental results
Research questions
- RQ1Why does the standard 'reinforcement learning as inference' framework fail in simple decision problems despite its theoretical appeal?
- RQ2How can the connection between reinforcement learning and probabilistic inference be correctly formalized to include epistemic uncertainty?
- RQ3What modifications to the 'RL as inference' framework yield provably efficient exploration?
- RQ4How does the resulting algorithm compare to Thompson sampling and soft Q-learning in terms of sample efficiency?
- RQ5Can the insights from the corrected inference framework scale to deep RL with function approximation?
Key findings
- The standard 'reinforcement learning as inference' framework fails in simple problems because it ignores epistemic uncertainty, leading to poor exploration and exponential regret scaling with problem size.
- Soft Q-learning, which is derived from this flawed framework, does not scale gracefully with problem size, requiring exponential time to learn optimal policies in DeepSea MDPs.
- K-learning, a modified version of the inference framework that accounts for uncertainty, scales polynomially with problem size, achieving near-optimal learning times.
- Thompson sampling and K-learning both exhibit graceful scaling in both tabular and deep RL settings, while soft Q-learning fails on exploration-intensive tasks.
- The deep RL implementation of K-learning using neural network ensembles and randomized priors successfully drives deep exploration in the DeepSea environment with one-hot pixel input.
- The results confirm that incorporating epistemic uncertainty into the inference framework is essential for efficient exploration, and that K-learning provides a principled solution to this challenge.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.