Distributional Reinforcement Learning with Regularized Wasserstein Loss

Ke Sun, Yingnan Zhao, Wulong Liu, Bei Jiang, Linglong Kong

TL;DR

SinkhornDRL introduces a new family of distributional reinforcement learning algorithms that utilize Sinkhorn divergence—an entropic regularized Wasserstein loss—to learn return distributions. By bridging the gap between Optimal Transport and Maximum Mean Discrepancy (MMD), it provides a theoretically grounded framework that excels in complex environments and naturally handles multi-dimensional rewards where traditional quantile-based methods struggle.

What Problem Does This Paper Address?

In classical Reinforcement Learning (RL), agents typically aim to maximize the expected cumulative reward. Distributional RL (DRL) goes a step further by estimating the entire probability distribution of future returns. While DRL has shown state-of-the-art performance, current dominant methods like Quantile Regression DQN (QR-DQN) face two major hurdles:

  1. The Non-Crossing Issue: Neural networks learning quantiles often fail to ensure that the 90th percentile is actually higher than the 10th percentile. This lack of monotonicity leads to inaccurate distribution estimates and poor model interpretability.
  2. Multi-dimensional Rewards: Many real-world tasks involve multiple reward sources (e.g., safety vs. speed). Quantile regression is mathematically difficult to scale to multi-dimensional output spaces, leaving a gap in how we handle complex, vector-valued rewards.

Methods

The authors propose SinkhornDRL, which replaces quantile regression with Sinkhorn divergence.

Sinkhorn divergence is a regularized version of the Wasserstein (or "Earth Mover's") distance. By adding an entropic regularization term to the optimal transport problem, the loss function becomes strongly convex and differentiable. This allows the use of Sinkhorn Iterations—a computationally efficient matrix-scaling algorithm that runs well on GPUs.

Unlike QR-DQN, which uses fixed quantiles, SinkhornDRL uses a "particle" representation. It treats the return distribution as a collection of unrestricted samples (particles). The algorithm then minimizes the Sinkhorn divergence between the agent's current return distribution and the target distribution generated by the Bellman operator.

Crucially, the authors provide a rigorous theoretical proof showing that the distributional Bellman operator is a contraction under Sinkhorn divergence. This ensures that the learning process will converge to a unique, stable distribution.

Datasets

The researchers evaluated SinkhornDRL using two primary benchmarks:

  • Atari 2600 Suite: A standard benchmark consisting of 55 different games to test general performance and stability.
  • Multi-dimensional Atari: A modified version of six games (AirRaid, Asteroids, Gopher, MsPacman, UpNDown, and Pong) where scalar rewards are decomposed into multi-dimensional vectors to test the algorithm's ability to handle complex reward structures.

Key Insights and Ideas

  • The Best of Both Worlds: Sinkhorn divergence acts as an interpolator. With low regularization ($\epsilon \to 0$), it behaves like the Wasserstein distance, capturing the underlying geometry of the data. With high regularization ($\epsilon \to \infty$), it behaves like MMD, which has favorable sample complexity. SinkhornDRL finds the "sweet spot" between these two.
  • Induced Smoothness: The entropic regularization encourages a "smoother" transport plan. This makes the algorithm less sensitive to noise and small perturbations in the return distributions compared to pure Wasserstein-based methods.
  • Geometric Awareness: Unlike MMD, which can be overly sensitive to kernel choice, SinkhornDRL inherently captures the spatial and geometric layout of return distributions, leading to better performance in games with complex dynamics.

Key Results

SinkhornDRL demonstrated significant improvements over classic baselines like C51, QR-DQN, and MMD-DQN.

  • Superior Performance: On the 55 Atari games, SinkhornDRL achieved the highest Mean and Interquartile Mean (IQM) scores. As shown in the learning curves, it consistently matches or exceeds the performance of existing state-of-the-art distributional algorithms.
Mean, Median, and IQM scores across 55 Atari games. SinkhornDRL (red) shows strong performance, particularly in the later stages of training.
  • Winning in Multi-dimensions: The algorithm truly shines in the multi-dimensional reward setting. Because it doesn't rely on 1D quantiles, it can effectively model joint distributions of multiple rewards, significantly outperforming MMD-DQN in these scenarios.
Figure 2: Ratio improvement of return for SinkhornDRL over QR-DQN (left) and MMD-DQN (right) averaged over 3 seeds. The ratio improvement is calculated by (SinkhornDRL - QR-DQN) / QR-DQN in (a) and (SinkhornDRL - MMD-DQN) / MMD-DQN in (b), respectively.

Limitations and Future Work

While powerful, SinkhornDRL is not a "free lunch." The authors note a few key limitations:

  • Computational Cost: The iterative nature of the Sinkhorn loss increases the computational overhead by roughly 20% to 50% compared to simpler methods like QR-DQN.
  • Hyperparameter Sensitivity: The algorithm introduces new hyperparameters, such as the regularization strength ($\epsilon$) and the number of Sinkhorn iterations ($L$), which require careful tuning to avoid numerical instability.

Future work includes extending SinkhornDRL with more expressive architectures like Implicit Quantile Networks (IQN) and exploring its application in offline RL and risk-sensitive control.

Summary updated

BibTeX
@inproceedings{sun2024distributional,
  author = {Ke Sun and Yingnan Zhao and Wulong Liu and Bei Jiang and Linglong Kong},
  title = {{Distributional Reinforcement Learning with Regularized Wasserstein Loss}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=CiEynTpF28},
}
Figure