Towards Understanding Distributional Reinforcement Learning: Regularization, Optimization, Acceleration and Sinkhorn Algorithm

Ke Sun, Yingnan Zhao, Yi Liu, Enze Shi, Yafei Wang, Aref Sadeghi, Xiaodong Yan, Bei Jiang, Linglong Kong · OpenReview

Abstract: Distributional reinforcement learning (RL) is a class of state-of-the-art algorithms that estimate the whole distribution of the total return rather than only its expectation. Despite the remarkable performance of distributional RL, a theoretical understanding of its advantages over expectation-based RL remains elusive. In this paper, we attribute the superiority of distributional RL to its regularization effect in terms of the value distribution information regardless of its expectation. Firstly, by leverage of a variant of the gross error model in robust statistics, we decompose the value distribution into its expectation and the remaining distribution part. As such, the extra benefit of distributional RL compared with expectation-based RL is mainly interpreted as the impact of a risk-sensitive entropy regularization within the Neural Fitted Z-Iteration framework. Meanwhile, we establish a bridge between the risk-sensitive entropy regularization of distributional RL and the vanilla entropy in maximum entropy RL, focusing specifically on actor-critic algorithms. It reveals that distributional RL induces a corrected reward function and thus promotes a risk-sensitive exploration against the intrinsic uncertainty of the environment. Finally, extensive experiments corroborate the role of the regularization effect of distributional RL and uncover mutual impacts of different entropy regularization.

Introduction

While Distributional Reinforcement Learning (RL) consistently outperforms classical RL, the exact reason for its "superpowers" has remained a bit of a mystery. This research reveals that the categorical loss used in algorithms like C51 implicitly acts as an uncertainty-aware exploration bonus, pushing agents to visit states where their internal model of return uncertainty hasn't yet caught up to the environment's actual stochasticity.

In classical RL, agents try to predict the expected value (the average) of future rewards. Distributional RL takes this a step further by predicting the entire probability distribution of those rewards. This paper addresses the "intrinsic benefit" question: What is it about the specific loss functions used in distributional RL that makes them so effective in complex, non-linear environments?

Return Density Decomposition

The authors introduce a technique called Return Density Decomposition to isolate the unique benefits of distributional RL. They take the standard histogram-based density estimator used in Categorical Distributional RL (CDRL) and break it into two parts:

  1. A Mean-Related Term: This captures the expectation, effectively behaving like the loss in classical RL (DQN).
  2. A Distribution-Matching Regularization Term: This captures higher-order information (like variance and skewness) of the return distribution.
Decomposition of the value distribution into a mean-related term and a residual distribution.

By analyzing this decomposition within a framework called Neural Fitted Z-Iteration (Neural FZI), they prove that the categorical loss is mathematically equivalent to a classical RL loss plus an entropy-based regularization term. This regularization acts as an "augmented reward" that guides the agent's policy.

Implicit Exploration and Regularization

The most striking finding is that distributional RL doesn't just "know" more about the environment; it uses that knowledge to explore better. The regularization term rewards the agent for visiting states where its current estimate of return uncertainty "lags behind" the target uncertainty.

This is distinct from standard Maximum Entropy (MaxEnt) RL, like Soft Actor-Critic (SAC), which encourages agents to try many different actions. CDRL provides a different kind of entropy that encourages agents to align their internal model with environmental uncertainty.

Experimental Results

The researchers validated their theory across Atari 2600 games and MuJoCo continuous control tasks. By introducing a hyperparameter ($\varepsilon$) that controls the weight of this regularization, the authors could smoothly transition an agent's performance.

Performance of the decomposed distributional RL on Atari games with varying regularization weights.

As shown in the results for games like Breakout and Seaquest, at high $\varepsilon$, the agent performs like C51; as $\varepsilon$ decreases, the performance degrades until it matches classical DQN. This provides a direct "smoking gun" for the benefit of the distributional loss.

Conclusion and Future Work

The paper successfully establishes a theoretical and empirical bridge between distributional RL and risk-sensitive entropy regularization. While the focus was on Categorical methods, the authors also provided a preliminary extension to Quantile methods (like QR-DQN). Future work involves developing more sophisticated ways to balance action-diversity and uncertainty-alignment, as the results suggest that different types of entropy can sometimes interfere with each other depending on the task.

Summary updated

BibTeX
@inproceedings{sun2022towards,
  author = {Ke Sun and Yingnan Zhao and Yi Liu and Enze Shi and Yafei Wang and Aref Sadeghi and Xiaodong Yan and Bei Jiang and Linglong Kong},
  title = {{Towards Understanding Distributional Reinforcement Learning: Regularization, Optimization, Acceleration and Sinkhorn Algorithm}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=nK7eZEURiJ4},
}
Figure