Bayesian Distributional Policy Gradients

Luchen Li, A. Aldo Faisal

This research introduces Bayesian Distributional Policy Gradients (BDPG), a framework that integrates Bayesian inference into Distributional Reinforcement Learning (RL). By modeling the complete distribution of future returns and framing the learning process as a variational inference problem, BDPG achieves accelerated learning and provides a principled mechanism for exploration in complex environments.

Introduction

Standard Reinforcement Learning typically optimizes for the expected return—the average reward an agent anticipates from a given state. However, focusing solely on the mean discards critical information about risk and uncertainty. Distributional RL addresses this by modeling the full probability distribution of returns, providing a richer signal for learning.

A primary challenge in distributional RL is the stable minimization of the Wasserstein distance between current return estimates and Bellman targets. Previous approaches often relied on rigid approximations or unstable adversarial training. BDPG overcomes these hurdles by treating the distributional Bellman update as an inference-based auto-encoding process, which naturally yields a "curiosity" bonus based on information gain to drive exploration.

Methodology

BDPG is built upon several key innovations:

  1. State-Return Modeling: Unlike many distributional RL methods that focus on state-action pairs ($Q$-values), BDPG models the distribution of returns for states ($V$-values). The authors demonstrate that the Bellman operator for state-returns is a contraction mapping, ensuring convergence to a unique solution.
  2. Variational Inference Framework: The Bellman update is formulated as a generative process using an encoder-decoder-discriminator architecture. This allows the agent to minimize Wasserstein metrics through a stable inference-based auto-encoding process, resembling the Expectation-Maximization (EM) algorithm.
  3. Posterior Information Gain (IG): Leveraging its Bayesian nature, BDPG calculates the "new information" provided by a transition. This is defined as the KL divergence between the variational posterior of the Bellman target and the current estimate. This IG serves as a "moments-invariant" curiosity reward, targeting epistemic uncertainty (lack of data) rather than aleatoric noise.
  4. Policy Integration: These components are integrated into a policy gradient framework (using PPO as the base), where the agent receives the standard environment reward plus the internal curiosity bonus.

Experimental Results

The authors evaluated BDPG on the Atari 2600 benchmark and MuJoCo continuous control tasks. In Atari games, BDPG consistently demonstrated faster learning and higher final scores compared to baselines like PPO+WGAN and PPO+QR.

Performance comparison of BDPG against baselines on eight Atari 2600 games.

As shown in Figure 1, BDPG is particularly effective in "hard-exploration" games such as Venture and Freeway, where sparse rewards typically cause standard agents to stall. In continuous control tasks (MuJoCo), BDPG outperformed WGAN-based benchmarks, suggesting that the Bayesian approach generalizes more effectively in high-dimensional spaces.

Hyperparameter Sensitivity and Ablation

Ablation studies confirmed that the curiosity reward (IG) is vital for performance. However, the mechanism is sensitive to certain hyperparameters, most notably the "truncation cap" ($\bar{u}$) for the information gain. This cap prevents the agent from becoming over-obsessed with uncertain states at the expense of the primary task.

Impact of posterior information gain cap and bootstrap length on final scores for Breakout and Q*bert.

Figure 5 illustrates how different values of the information gain cap $\bar{u}$ and the bootstrap length $k$ affect the final performance. Finding the optimal balance is crucial for maximizing the agent's score across different environments.

Conclusion

BDPG represents a significant step forward in making Distributional RL more robust and exploratory. By framing return estimation as Bayesian inference, the model becomes more resilient to unseen data and gains a mathematically sound method for curiosity-driven exploration. Future work may involve integrating BDPG with other advanced RL components, such as prioritized replay or noisy networks, to further enhance performance.

Summary updated

BibTeX
@inproceedings{li2021bayesian,
  author = {Luchen Li and A. Aldo Faisal},
  title = {{Bayesian Distributional Policy Gradients}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i10.17024},
}
Figure