An analysis of categorical distributional reinforcement learning

Mark Rowland, Marc G Bellemare, Will Dabney, Remi Munos, Yee Whye Teh · DOI · OpenReview

TL;DR

This paper provides a theoretical framework to analyze categorical distributional reinforcement learning (CDRL) algorithms, like the successful C51. It establishes convergence guarantees for these algorithms, bridging the gap between their empirical success and a lack of theoretical understanding, particularly concerning the crucial "projection" step.

What Problem Does This Paper Address?

Reinforcement learning (RL) agents learn by interacting with an environment and receiving rewards. Traditional value-based RL focuses on predicting the expected future reward. However, recent advances, like the C51 algorithm, have shown that modeling the entire distribution of future returns can lead to state-of-the-art performance. These "distributional RL" methods are powerful but lack a solid theoretical foundation, especially regarding the approximations and heuristics they employ. This paper aims to fill that gap by providing a rigorous analysis of CDRL, explaining why it works and proving its convergence.

Methods

The authors introduce a framework for analyzing CDRL algorithms. Key to their approach is the Cramér distance, a metric for comparing probability distributions, which they show is more suitable than the Wasserstein distance for analyzing CDRL. They define and analyze the projected distributional Bellman operator, which is central to CDRL algorithms like C51. This operator combines the standard Bellman update with a projection step to ensure the learned distributions remain within a chosen parametric family (e.g., categorical distributions). The paper then leverages this framework to prove convergence for both policy evaluation and control versions of CDRL, even in the presence of stochastic approximations (sampling from the environment).

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and convergence proofs, rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • The Projection Matters: The "projection" step, which forces learned distributions into a specific parametric form, is not just a heuristic but a critical component that breaks standard contraction properties. The Cramér distance is the right tool to analyze this.
  • Cramér Distance is Key: Unlike previous work that relied on Wasserstein distances, this paper demonstrates that the Cramér distance is essential for proving the contractivity of the projected distributional Bellman operator, which is a prerequisite for convergence.
  • Theoretical Guarantees for Practical Algorithms: The paper provides the first convergence proofs for sample-based categorical distributional RL algorithms, offering theoretical backing for the practical success of methods like C51.
  • Bridging Theory and Practice: The analysis connects the theoretical properties of the projected Bellman operator to the practical approximations used in CDRL, explaining how these components work together to achieve convergence.

Key Results

  • Contractivity with Cramér Distance: The projected distributional Bellman operator is shown to be a $\sqrt{\gamma}$-contraction in the Cramér distance, where $\gamma$ is the discount factor. This is a crucial theoretical result for convergence.
  • Convergence Proofs: The paper provides proofs of almost sure convergence for categorical policy evaluation and categorical Q-learning algorithms in the tabular setting, under standard assumptions.
  • Error Bounds: The analysis yields bounds on the approximation error introduced by the parametric representation of distributions, showing how this error decreases as the granularity of the chosen distribution support increases.

Limitations and Future Work

  • Tabular Setting: The convergence proofs are primarily for the tabular setting (finite state and action spaces). Extending these results to function approximation (where states and actions are continuous or high-dimensional) is a significant open question.
  • KL Divergence vs. Mixture Updates: The paper analyzes CDRL algorithms using a mixture update rule for convergence proofs. It notes that the convergence of algorithms using KL divergence (like the original C51) remains an open question.
  • Practical Algorithm Improvements: The theoretical findings suggest directions for improving practical CDRL algorithms, such as directly minimizing the Cramér distance or adapting the support of the categorical distributions based on domain knowledge or observed returns.
  • Function Approximation: The authors explicitly state that understanding the effects of function approximation on distributional RL is a key area for future research.

Summary updated

BibTeX
@inproceedings{rowland2018analysis,
  author = {Mark Rowland and Marc G Bellemare and Will Dabney and Remi Munos and Yee Whye Teh},
  title = {{An analysis of categorical distributional reinforcement learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
  url = {https://openreview.net/forum?id=ZHI-1IyCuzC},
}
Figure