Intrinsic Benefits of Categorical Distributional Loss: Uncertainty-aware Regularized Exploration in Reinforcement Learning

Ke Sun, Yingnan Zhao, Enze Shi, Yafei Wang, Xiaodong Yan, Bei Jiang, Linglong Kong

This paper provides a compelling answer to a long-standing question in Reinforcement Learning (RL): Why does Distributional RL perform so much better than classical RL?

While classical RL (like DQN) only tries to estimate the average (expected) future reward, Distributional RL (like C51) models the entire probability distribution of possible outcomes. We’ve known for years that this works better, but the "why" has remained somewhat elusive. The authors of this paper argue that the secret sauce isn't just better representation—it’s a hidden, built-in mechanism for exploration.

TL;DR

The authors demonstrate that the loss function used in Categorical Distributional RL (CDRL) implicitly contains a powerful "uncertainty-aware" entropy regularization term. This term acts as an internal compass, automatically pushing the agent to explore states where its understanding of environmental uncertainty is lagging, leading to superior performance over classical methods.

What Problem Does This Paper Address?

In standard RL, we care about the expected value: "On average, how many points will I get if I take this action?" Distributional RL (Dist-RL) asks a harder question: "What is the full range of scores I might get, and how likely is each?"

Despite Dist-RL's massive empirical success, researchers have struggled to pinpoint exactly why it beats expectation-based RL in complex, non-linear environments. Previous theories suggested it helps with representation learning or provides more stable gradients. This paper tackles a different hypothesis: Does the specific way we calculate loss in Dist-RL force the agent to explore the environment more effectively?

Methods

The researchers focus on Categorical Distributional RL (CDRL), which represents the return distribution as a histogram with fixed bins. Their key technical contribution is a Return Density Decomposition.

  1. Decomposition: They mathematically split the categorical distributional loss into two parts:
  2. A Mean-Related Term: This behaves like classical RL, trying to get the average right.
  3. A Distribution-Matching Regularization Term: This is the "aha!" moment. It’s a cross-entropy term that measures how well the agent’s current distribution estimate matches the (estimated) uncertainty of the environment.
Distribution-matching regularization pushes the agent's narrow uncertainty estimate to match the broader environmental uncertainty.
  1. Theoretical Framework: They prove that this second term acts as an augmented reward. In an Actor-Critic setup, the policy is updated not just to maximize points, but to align itself with the environmental uncertainty.
  2. Ablation via $\epsilon$: They introduce a hyperparameter $\epsilon$ that allows them to "dial down" the influence of this distribution-matching term, effectively turning a Dist-RL algorithm back into a classical RL algorithm to see what happens.

Datasets

The authors validated their theory across two major benchmarks:

  • Atari 2600 (Value-based): 8 games including Breakout, Alien, Frostbite, and Hero. They compared the famous C51 algorithm against their decomposed versions.
  • MuJoCo (Actor-Critic): 8 continuous control tasks like HalfCheetah, Ant, Humanoid, and Walker2d. They used these to compare their "Uncertainty-aware Entropy" (UE) against the "Vanilla Entropy" (VE) used in algorithms like Soft Actor-Critic (SAC).

Key Insights and Ideas

  • Implicit vs. Explicit Exploration: In MaxEnt RL (like SAC), we explicitly tell the agent to be "surprised" by its own actions (action entropy). In CDRL, the agent is implicitly encouraged to visit states where its current model of the world's randomness is inaccurate.
  • The "Catch-Up" Effect: The regularization term pushes the agent's current return distribution to "catch up" with the target distribution. If the target shows high variance (uncertainty) that the agent hasn't captured yet, the loss increases, signaling the agent to pay more attention to that state-action pair.
  • Uncertainty Alignment: Unlike standard entropy which just wants the agent to try different things, this "uncertainty-aware" entropy wants the agent's internal model of risk/uncertainty to match the actual environment.

Key Results

  • The Performance Slide: In Atari games, as the authors decreased the influence of the distribution-matching term (moving from $\varepsilon=0.8$ to $0.1$), performance consistently degraded from C51 levels down toward standard DQN levels. This confirms that the distribution-matching term is a primary driver of Dist-RL's success.
Learning curves on Breakout demonstrate that reducing the distribution-matching term ($\epsilon$) degrades performance from C51 levels down to DQN levels.
  • Mutual Impact: In MuJoCo, they found that combining Vanilla Entropy (action diversity) with their Uncertainty-aware Entropy (return distribution matching) often led to "Mutual Improvement." For example, on HumanoidStandup, the combined version (AC+UE+VE) significantly outperformed either one alone.
  • Interference: Interestingly, they noted that in some tasks (like Ant), the two types of entropy can interfere with each other, suggesting they sometimes pull the policy in conflicting directions.

Limitations and Future Work

  • Scope of Distributional Types: The heavy lifting in this paper is done for Categorical Dist-RL. While the authors provide an extension for Quantile Distributional RL (like QR-DQN) in the appendix, they admit that the analytical techniques required for Quantile loss are quite different and deserve more dedicated study.
  • Instability in Actor-Critic: The authors noted that the benefits of this regularization are sometimes masked by the inherent instability of actor-critic architectures compared to value-based methods.
  • Future Direction: A major next step is developing a unified theory that covers all forms of distributional loss (Expectile, Quantile, etc.) under this "uncertainty-aware exploration" umbrella.

Summary updated

BibTeX
@inproceedings{sun2025intrinsic,
  author = {Ke Sun and Yingnan Zhao and Enze Shi and Yafei Wang and Xiaodong Yan and Bei Jiang and Linglong Kong},
  title = {{Intrinsic Benefits of Categorical Distributional Loss: Uncertainty-aware Regularized Exploration in Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=sORaSF9Uxo},
}
Figure