Distributed Distributional Deterministic Policy Gradients

Gabriel Barth-Maron, Matthew W. Hoffman, David Budden, Will Dabney, Dan Horgan, Dhruva Tb, Alistair Muldal, Nicolas Heess, Timothy Lillicrap

TL;DR

D4PG (Distributed Distributional Deep Deterministic Policy Gradient) is a powerful reinforcement learning algorithm that brings the benefits of "distributional" RL to continuous control tasks like robotics. By modeling the full distribution of potential future rewards—rather than just the average—and scaling up with a distributed architecture, D4PG achieves state-of-the-art performance on complex manipulation and locomotion benchmarks.

What Problem Does This Paper Address?

In traditional reinforcement learning (RL), agents typically estimate a "Q-value," which represents the expected (average) total reward an agent will receive from a given state and action. While this approach works for many tasks, it discards a massive amount of useful information. In complex, high-dimensional environments—like a robot navigating an obstacle course—the future is highly uncertain. A single "average" value cannot distinguish between a 50/50 chance of a huge success or a catastrophic failure versus a guaranteed mediocre outcome.

Furthermore, standard continuous control algorithms like DDPG (Deep Deterministic Policy Gradient) often struggle with sample efficiency and stability. Training a single agent on a single environment is slow, and the learning signal can be noisy, making it difficult to solve "hard" problems like dexterous hand manipulation or 3D locomotion.

Methods: The D4PG Architecture

The authors introduce D4PG, which enhances the standard DDPG algorithm with four key components designed to improve both stability and sample efficiency:

  1. Distributional Critic: Instead of learning a single scalar value for $Q(s, a)$, the "critic" network learns a probability distribution over possible returns. The authors utilize a Categorical distribution (specifically 51 "atoms" or discrete bins) to represent this range of outcomes.
  2. Distributed Architecture: Borrowing from the Ape-X framework, D4PG uses multiple independent actors (e.g., 32 or 64) running in parallel. These actors collect experience and feed it into a single, massive shared replay buffer. A central "learner" then uses this aggregated data to update the neural networks.
  3. $N$-step Returns: Rather than calculating the error based only on the immediate next reward, the algorithm looks $N$ steps into the future. This helps propagate reward information back through time much faster, accelerating learning.
  4. Prioritized Experience Replay (PER): The learner doesn't just sample data randomly; it focuses more on transitions that were "surprising" or had a higher temporal difference (TD) error, effectively spending more time learning from its mistakes.

Datasets and Architectures

The authors evaluated D4PG across three increasingly difficult domains:

  • DeepMind Control Suite: A set of standard physical simulation tasks (Acrobot, Cartpole, Cheetah, etc.) using the MuJoCo physics engine.
  • Manipulation Tasks: A highly complex simulated model of the Johns Hopkins Modular Prosthetic Limb (22 degrees of freedom) tasked with catching objects or rotating them in-hand.
  • Parkour: A challenging locomotion domain where 2D and 3D walkers must navigate randomly generated obstacles like gaps, platforms, and hurdles.

To handle the distinct sensory inputs of these advanced tasks, the authors adapted their network architectures.

Comparison of Standard and Parkour network architectures.

As shown above, while standard networks process a single state vector, the Parkour networks require specialized processing streams to handle complex terrain ($x_{terrain}$) and proprioceptive ($x_{proprio}$) inputs before combining them.

Key Insights and Results

D4PG consistently outperformed the baseline DDPG and even strong on-policy baselines like PPO (Proximal Policy Optimization) across the board.

  • The Power of the Distribution: The core insight is that modeling the full distribution of rewards provides a much richer, more stable gradient for the "actor" (the policy network). Even though the actor still aims to maximize the expected value, the distributional critic prevents the agent from getting stuck in local optima.
  • $N$-step is a Game Changer: Ablation studies show that moving from 1-step to 5-step returns provides a massive, uniform boost in performance across almost all tasks.
  • Distributional RL vs. Prioritization: Interestingly, the authors found that while Prioritized Experience Replay is crucial for non-distributional agents (like D3PG), it is less vital for D4PG. The distributional update itself appears to provide much of the stability that prioritization usually offers.
Training curves comparing D4PG, D3PG, and DDPG across various control tasks.

The training curves clearly demonstrate D4PG's superiority. It achieves top-tier results on the most difficult tasks, such as 3D Humanoid Parkour, and exhibits significantly more stability in manipulation domains where non-distributional counterparts often fail to learn entirely.

Limitations and Future Work

While highly effective, D4PG does have limitations:

  • Hyperparameter Sensitivity: The Categorical distribution requires the user to pre-define the range of possible rewards ($V_{min}$ and $V_{max}$). If these bounds are set incorrectly, the agent's performance can severely degrade.
  • Computational Cost: While the distributed framework is fast in terms of "wall-clock time," it requires significant hardware resources (many CPUs for actors and a powerful GPU for the learner).

For future work, the authors suggest exploring different types of distributions—such as Quantile Regression—that do not require pre-defined bounds. This could make the algorithm even more robust, easier to tune, and applicable to an even wider range of continuous control problems.

Summary updated

BibTeX
@inproceedings{barthmaron2018distributed,
  author = {Gabriel Barth-Maron and Matthew W. Hoffman and David Budden and Will Dabney and Dan Horgan and Dhruva TB and Alistair Muldal and Nicolas Heess and Timothy Lillicrap},
  title = {{Distributed Distributional Deterministic Policy Gradients}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=SyZipzbCb},
}
Figure