How Does Return Distribution in Distributional Reinforcement Learning Help Optimization?

Ke Sun, Bei Jiang, Linglong Kong

TL;DR

This paper investigates why distributional reinforcement learning (DRL) is so effective, focusing on its optimization advantages over traditional RL. By analyzing DRL within a novel Neural Fitted Z-Iteration (Neural FZI) framework, the authors demonstrate that DRL's focus on the entire return distribution leads to more stable gradients and faster convergence, particularly when the return distribution is well-approximated.

What Problem Does This Paper Address?

Standard Reinforcement Learning (RL) agents learn to maximize the expected return from a given state-action pair. However, recent advances in "distributional RL" (DRL) have shown that learning the entire distribution of possible returns can lead to significantly better performance. Despite this empirical success, the theoretical reasons behind DRL's optimization benefits have remained unclear. This paper aims to bridge this gap by dissecting how the distributional information learned by DRL algorithms contributes to more stable and efficient optimization compared to classical RL.

Methods

The authors introduce and utilize the Neural Fitted Z-Iteration (Neural FZI) framework. This framework is designed to analyze practical DRL algorithms with general function approximators by connecting them to supervised learning concepts. Key aspects of their approach include:

  • Categorical Parameterization: They model the return distribution using a categorical distribution, which is a common approach in DRL.
  • KL Divergence Loss: They employ the Kullback-Leibler (KL) divergence as the distributional loss function, which is shown to have desirable smoothness properties.
  • Return Density Decomposition: To understand the acceleration effects, they decompose the return distribution into its expected value component and the remaining distributional part. This allows them to isolate the impact of learning the full distribution versus just the expectation.
  • Theoretical Analysis: They provide theoretical guarantees for both the uniform stability of the optimization process (ensuring stable gradients) and the acceleration effect (faster convergence) of DRL algorithms within the Neural FZI framework.

Datasets

The experiments were conducted on continuous control MuJoCo environments. The paper does not introduce new benchmarks but uses these standard environments to evaluate the performance of their proposed methods against baselines.

Key Insights and Ideas

  • Smoothness is Key to Stability: The distributional loss function in DRL, particularly when using KL divergence, possesses desirable smoothness properties (e.g., being k-Lipschitz and k²-smooth). This inherent smoothness leads to more stable gradients, making the optimization process less prone to oscillations and divergence compared to the least-squared loss used in classical RL.
  • DRL Naturally Enjoys Stable Optimization: Unlike classical RL, which often requires explicit regularization techniques to achieve optimization stability, DRL's distributional loss function inherently promotes this stability.
  • Distributional Information Accelerates Learning: By decomposing the return distribution, the authors show that DRL can achieve faster convergence. This acceleration is contingent on the quality of the return distribution approximation. A more accurate approximation leads to a smaller "distribution parameterization error," which directly translates to speedup.
  • The "Why" Behind DRL's Success: The paper provides a theoretical framework that explains how DRL's distributional knowledge translates into tangible optimization benefits, moving beyond empirical observations.

Key Results

  • Uniform Stability: Theoretical analysis (Theorem 1) demonstrates that DRL algorithms, under the Neural FZI framework, exhibit uniform stability, leading to bounded loss differences and improved generalization.
  • Acceleration Effect: Theorem 2 shows that DRL can achieve a faster convergence rate (sample complexity of O(1/τ²)) compared to classical RL (O(1/τ⁴)) when the return distribution approximation is favorable. This speedup is directly linked to the approximation error parameter, κ.
  • Empirical Validation: Experiments on MuJoCo environments show that DRL agents (DAC (C51) and DAC (IQN)) exhibit significantly smaller gradient norms in both the input space (proxy for uniform stability) and the weight space (proxy for acceleration) compared to classical RL agents (AC). This empirically supports the theoretical findings.

Limitations and Future Work

  • Categorical Parameterization Assumption: The theoretical analysis is primarily based on categorical parameterization. The authors acknowledge that similar conclusions might be expected for non-linear parameterizations but suggest further investigation.
  • Wasserstein Distance Analysis: The paper suggests that an alternative analysis using Wasserstein distance could complement their findings and provide broader insights into distributional RL algorithms.
  • Precise Evaluation of κ: While the parameter κ (representing distribution parameterization error) is crucial for understanding acceleration, its precise evaluation in practice is noted as tricky and left as future work.
  • Explaining Performance in Certain Games: The paper mentions that while DRL often outperforms classical RL, it can be inferior in certain games. The authors suggest that a more comprehensive explanation for these specific cases is needed and is a direction for future research.

Summary updated

BibTeX
@inproceedings{sun2023how,
  author = {Ke Sun and Bei Jiang and Linglong Kong},
  title = {{How Does Return Distribution in Distributional Reinforcement Learning Help Optimization?}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=pT4ref-FMAX},
}
Figure