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

TL;DR

While distributional reinforcement learning (RL) empirically crushes standard expectation-based RL, theoretical explanations for why have lagged behind. This paper demystifies its success by framing distributional RL as an entropy-regularized Maximum Likelihood Estimation (MLE) problem that promotes stable optimization, tighter representation clustering, and faster convergence. Building on these theoretical insights, the authors introduce SinkhornDRL, an algorithm using entropic optimal transport that interpolates between Wasserstein distance and Maximum Mean Discrepancy (MMD).

What Problem Does This Paper Address?

In standard RL, algorithms such as DQN learn the expected discounted cumulative return $Q(s, a) = \mathbb{E}[Z(s, a)]$. In contrast, distributional RL models the entire distribution of the return random variable $Z(s, a)$. While distributional algorithms (e.g., C51, QR-DQN) set empirical performance records across complex benchmarks, prior theory (notably Lyle et al., 2019) demonstrated that in tabular and linear settings, distributional RL behaves identically to expected RL.

Why, then, does it work so much better when combined with deep neural networks? This paper tackles the fundamental theory gap across four fronts: regularization, optimization stability, optimization acceleration, and representation dynamics, while translating these insights into a practical new distributional algorithm.

Methods

  • Neural Z-Fitted Iteration & Entropy-Regularized MLE: The authors formalize deep distributional RL as Neural Z-fitted iteration (generalizing Neural Q-fitted iteration). Using a gross-error decomposition, they split the return distribution into an expected-return component and a residual distribution. Under Kullback–Leibler (KL) divergence, the loss decomposes into:
  • An MLE loss centered at the expected return $\mathbb{E}[Z(s, a)]$.
  • A state-action-wise cross-entropy regularization term that matches the learned distribution to the environment's true residual uncertainty.
  • Connection to Soft RL: They prove that soft Bellman updates with this cross-entropy regularizer converge to a soft value objective, offering a risk-aware analog to Maximum Entropy RL (e.g., SAC) that operates on returns rather than policy entropy.
  • Uniform Stability Analysis: Using a histogram distributional loss parameterization, they prove that the loss is convex, $kl$-Lipschitz, and $kl^2$-smooth. Through algorithmic stability theory, they bound the generalization gap under SGD at $O(T/n)$.
  • Sinkhorn Distributional RL (SinkhornDRL): The authors propose optimizing the return distribution using the entropic-regularized Wasserstein distance (Sinkhorn divergence). Sinkhorn loss smoothly bridges the geometry of the Wasserstein metric (as $\varepsilon \to 0$) and the favorable sample complexity and unbiased gradients of Maximum Mean Discrepancy (as $\varepsilon \to \infty$). Returns are parameterized as a set of deterministic particles updated via Sinkhorn fixed-point iterations.

Datasets

  • Atari 2600: Evaluated on standard benchmark environments from the Arcade Learning Environment (ALE), including Breakout, Enduro, Pong, Space Invaders, Berzerk, BattleZone, Yars' Revenge, Alien, Qbert, and Up'n Down*.
  • No new datasets were introduced.

Key Insights and Ideas

  • Why Expectation-Based Deep RL Suffers: In standard DQN, least-squares regression gradients $|\delta| \cdot \|\nabla_\theta Q\|$ can grow arbitrarily large when temporal-difference (TD) errors spike. In contrast, histogram-based distributional losses have bounded gradients ($\|\nabla_\theta \mathcal{L}\| \le kl$), directly yielding uniform stability and robust generalization under SGD.
  • The "Acceleration Effect" Depends on Target Accuracy: The paper derives that when the model's distributional approximation error to the true return distribution is small ($\kappa \le \tau^2 / 4\sigma^2$), the sample complexity to achieve a $\tau$-stationary point drops dramatically from $O(1/\tau^4)$ (for standard MLE) to $O(1/\tau^2)$. This directly explains the empirical puzzle of why distributional RL achieves inconsistent speedups across different Atari games: speedups occur primarily when the TD target distribution is accurately approximated.
  • Better Representation Clustering: Latent representations in distributional models act similarly to neural nets trained with label smoothing: states sharing the policy's preferred action form significantly tighter clusters in penultimate layer activations compared to standard DQN.

Key Results

  • Competitive or Superior Atari Benchmarks: Evaluated against DQN, C51, QR-DQN, and MMD, SinkhornDRL achieves competitive or state-of-the-art returns across evaluated games. It noticeably outperforms MMD on Breakout (~400 vs. ~300 average score) and Space Invaders (~1750 vs. ~1250), showing the benefit of preserving Wasserstein geometric transport costs.
  • Hyperparameter Robustness: In sensitivity experiments on Breakout, SinkhornDRL's performance remains stable across two orders of magnitude of the entropic regularization hyperparameter $\varepsilon \in [1, 100]$.
  • Particle Count Trade-off: Increasing particle count $N$ from 50 to 200 improves performance, but overly large numbers ($N=500$) slightly degrade performance, indicating a trade-off between expressive capacity and optimization variance.

Limitations and Future Work

  • Theoretical Gap in Sinkhorn Contractions: While the authors prove that the limiting cases of the Sinkhorn loss ($\varepsilon \to 0$ and $\varepsilon \to \infty$) induce contractive distributional Bellman operators, the intermediate Sinkhorn operator is governed by a Gibbs kernel and is not guaranteed to be contractive in the general case.
  • Use of KL Divergence for Theory: The theoretical analysis of regularized MLE relies heavily on KL divergence, whereas practical algorithms (including SinkhornDRL and QR-DQN) rely on Wasserstein, Cramér, or MMD metrics. Extending the regularization and acceleration proofs directly to Wasserstein spaces remains an open challenge.
  • Static Ground Costs: The current SinkhornDRL implementation utilizes a fixed kernel/cost function; learning adaptive cost metrics via implicit generative models is left for future research.

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},
}

Loading related content...

Figure