Parametric Return Density Estimation for Reinforcement Learning

Tetsuro Morimura, Masashi Sugiyama, Hisashi Kashima, Hirotaka Hachiya, Toshiyuki Tanaka

This paper, a foundational work in what is now commonly called Distributional Reinforcement Learning, proposes a shift in how agents perceive the future. Instead of just asking "What is my expected reward?", the authors develop a framework for agents to estimate the entire probability density of future returns.

TL;DR

The authors introduce a parametric method to estimate the full probability density of returns in Reinforcement Learning (RL) using a new "Distributional Bellman Equation." By applying natural gradients to models like Gaussian and Laplace distributions, they enable agents to perform risk-sensitive decision-making and remain robust against extreme outliers.

What Problem Does This Paper Address?

Most Reinforcement Learning algorithms (like standard Q-learning) are "expectation-based"—they aim to maximize the average cumulative reward. While this works for many games, it is insufficient for real-world applications like financial portfolio management or autonomous driving.

In these fields, the "average" isn't enough; you care about the risk. You want to avoid the "small chance of suffering a large loss" (the tail of the distribution). To do this, an agent needs to understand the full distribution of potential outcomes, not just the mean. The challenge is how to estimate this complex density efficiently and use it to make decisions in an unknown environment.

Methods

The authors bridge the gap between classic RL and density estimation through three key contributions:

  1. Distributional Bellman Equation: They extend the recursive Bellman equation—usually used for expected values—to cover conditional probability densities. This provides a theoretical foundation for learning return distributions.
  2. Parametric Density Models: To make the math tractable, they assume the return follows a specific parametric form. They provide update rules for:
  3. Gaussian: The "normal" symmetric distribution.
  4. Laplace: A symmetric, fat-tailed distribution.
  5. Skewed Laplace: An asymmetric distribution that can model different weights for gains vs. losses.
  6. Stochastic Natural Gradient (NG): Standard gradient descent can be unstable when updating probability distributions because the "space" of parameters isn't flat (Euclidean). The authors use Natural Gradients—which account for the geometry of the distribution via the Fisher Information Matrix—to ensure stable and efficient learning.
  7. $q$-Q Learning: They introduce a policy where the agent selects actions based on a specific quantile ($q$) of the return distribution (e.g., the bottom 10% worst-case scenario) rather than the mean.

Datasets

The researchers evaluated their algorithms using the Cliff Walk task (Figure 2), a classic RL benchmark.

  • The Environment: A grid world where the agent must move from a start (S) to a goal (G). One edge of the grid is a "cliff." Falling off results in a large negative reward and a reset.
  • Reward Distributions: To test robustness, they didn't just use fixed rewards. They tested the agents against:
  • Gamma distributions: Often used to model financial losses.
  • Student’s t-distributions: Used to simulate "heavy-tailed" noise and extreme outliers (infinite variance scenarios).
Figure 2: Cliffwalk task

Key Insights and Ideas

  • Gaussian RL is just standard TD: The authors prove that if you use a Gaussian model, the update rule for the mean ($\mu$) is mathematically identical to conventional Temporal Difference (TD) learning. This shows their framework is a true generalization of standard RL.
  • Laplace for Robustness: The Laplace model's update rule is naturally bounded. This means that if the agent encounters a "huge noise" (an outlier reward), the Laplace-based agent won't overreact, whereas a standard agent's value function might be severely distorted.
  • Natural Gradients are Essential: The authors found that using ordinary gradients led to unstable learning processes. The Natural Gradient (Figure 1) was crucial for making the parametric estimation work in practice.
Figure 1: The examples of the NGs of the (A) Gaus- sian, (B) Laplace, and (C1,2) skewed Laplace distri- butions with respect to the temporal difference δ.

Key Results

  • Risk Aversion: In the Cliff Walk task, standard Q-learning (which maximizes the mean) often takes the risky path right along the edge of the cliff. The proposed $q$-Q learning (with $q=0.1$) successfully learns to take a safer, longer path to avoid the risk of falling (Figure 3).
  • Performance under Noise: As shown in Table 2 (Figure 6), the Laplace model significantly outperformed others when rewards were drawn from the heavy-tailed Student's t-distribution. It maintained a higher mean return and better worst-case (0.01-quantile) returns compared to standard Q-learning.
Figure 3: Typical learning results: (A) Q learning and (B) q=0.1-Q learning with the Gaussian distribution.

Limitations and Future Work

  • Stationary Policy Assumption: The authors acknowledge that the optimal policy for criteria like quantiles or Value-at-Risk might actually be non-stationary (changing over time), but they restricted their study to stationary policies for simplicity.
  • Model Selection: The performance depends heavily on choosing the "right" parametric model (e.g., Gaussian vs. Laplace) for the specific task. Future work could involve automated model selection or non-parametric approaches.
  • Convergence Analysis: While the empirical results are promising, a deeper theoretical analysis of the convergence properties of these distributional updates is still needed.

Summary updated

BibTeX
@misc{morimura2012parametric,
  author = {Tetsuro Morimura and Masashi Sugiyama and Hisashi Kashima and Hirotaka Hachiya and Toshiyuki Tanaka},
  title = {{Parametric Return Density Estimation for Reinforcement Learning}},
  year = {2012},
  eprint = {1203.3497},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1203.3497},
}
Figure