In the landscape of Reinforcement Learning (RL), most agents are "expected value" thinkers—they attempt to predict the average reward they will receive from a specific state. However, real-world environments are characterized by noise and uncertainty. Distributional RL shifts this paradigm by requiring agents to model the entire probability distribution of potential returns, rather than just the mean.
At AAAI-21, researchers Luchen Li and A. Aldo Faisal introduced Bayesian Distributional Policy Gradients (BDPG), a framework that integrates Bayesian inference and generative modeling into distributional RL. By treating the Bellman update as a generative task, BDPG achieves superior performance in complex environments and provides a mathematically principled "curiosity" bonus that excels in hard-exploration challenges.
The Problem: Uncertainty and Exploration
Standard RL agents frequently struggle with three primary issues:
- The Scalar Trap: Collapsing a world of possibilities into a single scalar value ignores the "shape" of risk. Distributional RL addresses this, but many existing methods focus on state-action pairs ($Q$-values), making them difficult to adapt to successful algorithms that rely on state values ($V$-values).
- The Exploration Gap: In "sparse reward" environments, agents often wander aimlessly. Traditional "curiosity" heuristics are often ad-hoc and easily fooled by random noise (the "noisy TV" problem).
- Rigid Distributions: Many distributional methods use fixed "atoms" or quantiles to represent probability, which can be computationally rigid and fail to generalize to unseen data.
Methodology: Generative Bellman Updates
BDPG shifts the focus from modeling state-action-returns to state-return distributions. The authors prove that the Bellman operator for state-returns is a "contraction mapping" under the Wasserstein metric, ensuring that repeated applications will converge to a unique, correct distribution.
To implement this, BDPG utilizes a Bayesian Variational Inference approach:
- Adversarial Training: The framework treats the Bellman target as a data distribution. It employs an encoder-decoder architecture (similar to a Wasserstein Auto-Encoder) and a discriminator to ensure generated return distributions match the targets, effectively minimizing the Wasserstein distance through a minimax game.
- Information Gain (IG) Curiosity: Because BDPG maintains a variational posterior ( a "belief" about returns), it can measure how much new data changes that belief. This change, calculated as KL-divergence, serves as an internal "curiosity reward." If a transition provides significant new information about the return distribution, the agent is incentivized to explore it.
Experimental Evaluation
The researchers evaluated BDPG against several high-standard benchmarks, including the Atari 2600 (ALE) and MuJoCo physics engine for continuous control.
In Atari benchmarks, BDPG outperformed or matched state-of-the-art baselines (such as Quantile Regression and WGAN-based RL) in 6 out of 8 games. Notably, BDPG achieved the highest scores among all tested algorithms in the four designated "hard-exploration" games, validating the effectiveness of the IG curiosity bonus. In MuJoCo tasks, BDPG significantly outperformed PPO+WGAN, a success attributed to the Bayesian inference space providing more accurate predictions for unseen data.
Hyperparameter Sensitivity and Ablations
A critical component of BDPG's success is the tuning of the "bootstrap length" ($k$) and the truncation cap for curiosity ($\bar{u}$). The team found that longer bootstrap lengths—looking further into the future for updates—generally improved performance, provided the curiosity bonus was properly capped to prevent unstable, "radical" exploration.
Conclusion
BDPG represents a significant step forward by framing distributional RL as a generative inference problem. By focusing on state-returns, it integrates seamlessly with policy gradient methods like PPO. While the framework requires careful hyperparameter tuning and can exhibit variance due to its adversarial nature, its ability to solve hard-exploration tasks through principled curiosity marks a major advancement in the field.
Reference: Li, L., & Faisal, A. A. (2021). Bayesian Distributional Policy Gradients. Proceedings of the AAAI Conference on Artificial Intelligence, 35(10), 8429-8437.
Summary updated