Nonlinear Distributional Gradient Temporal-Difference Learning

Chao Qu, Shie Mannor, Huan Xu

This paper bridges the gap between the theoretical stability of Gradient Temporal-Difference (GTD) learning and the empirical success of Distributional Reinforcement Learning. The authors introduce non-linear distributional variants of GTD algorithms—specifically Distributional GTD2, TDC, and Greedy-GQ—that use the Cramér distance to model the full distribution of returns. This approach provides asymptotic convergence guarantees for non-linear function approximators, like neural networks, while maintaining linear computational complexity.

The Problem: Divergence in Deep RL

In reinforcement learning, standard Temporal-Difference (TD) learning can catastrophically diverge when combined with the "deadly triad": off-policy learning, bootstrapping, and non-linear function approximation (like deep neural networks). To fix this, researchers previously developed Gradient TD (GTD) methods, which optimize a projected Bellman error objective to guarantee mathematical convergence.

Simultaneously, a separate breakthrough in RL has been Distributional RL (e.g., the C51 algorithm). Instead of just learning the expected value of future returns, Distributional RL learns the entire probability distribution. This yields richer representations and more stable learning. However, the theoretical properties of distributional RL are poorly understood when paired with non-linear function approximators. This paper tackles this exact intersection: designing a distributional RL algorithm that works with deep neural networks, operates off-policy, and has mathematical guarantees against divergence.

Proposed Methods: Distributional GTD

The authors propose a distributional counterpart to the Mean-Squared Projected Bellman Error (MSPBE) objective, aptly named D-MSPBE. To optimize this new objective, they introduce three algorithms:

  • Distributional GTD2 and Distributional TDC for policy evaluation.
  • Distributional Greedy-GQ for control (finding the optimal policy).

Key Technical Innovations

  • Cramér Distance: Instead of using the Wasserstein metric (which suffers from biased sample gradients) or KL divergence (which can be brittle to disjoint distributions), the authors use the Cramér distance. It allows for unbiased sample gradient estimation, making it highly practical and perfectly suited for stochastic gradient descent.
  • Two-Time-Scale Updates: Inheriting from standard GTD, the algorithms use a "weight-duplication trick." They maintain a secondary set of weights updated on a "faster" timescale to estimate the gradient of the objective, while the main network parameters are updated on a "slower" timescale.
  • Hessian-Vector Products: Because the function approximator is non-linear, the update rules require computing a term involving the Hessian matrix. The authors cleverly avoid explicitly calculating the massive Hessian by using forward and backward propagation tricks (Hessian-vector products). This keeps the computational cost strictly linear with respect to the number of network parameters—taking only about four times the computation of a standard backpropagation pass.

Key Results

The authors evaluated their algorithms across several standard RL environments, ranging from a simple custom Gridworld to OpenAI Gym's CartPole-v0 and LunarLander-v2, and finally VizDoom ("Defend the Center"), a 3D first-person shooter environment.

Convergence and Stability in Policy Evaluation

By swapping the standard TD error for a temporal distribution difference within the GTD framework, the authors achieved the empirical stability of Distributional RL without sacrificing convergence guarantees. They successfully proved the asymptotic almost-sure convergence of Distributional GTD2 and TDC to a local optimum, even when using smooth non-linear function approximators.

Empirically, in the Gridworld and CartPole environments, Distributional GTD2 and TDC successfully converged. Furthermore, they outperformed their vanilla (non-distributional) counterparts, learning faster in early stages and exhibiting significantly lower variance (fewer oscillations) during training.

Convergence and performance comparison of Distributional GTD methods against their vanilla counterparts.

Competitive Control Performance

In the control environments (CartPole, LunarLander, and VizDoom), the proposed Distributional Greedy-GQ algorithm proved highly effective. It performed comparably to, and sometimes slightly better than, the popular C51 (Distributional DQN) algorithm. Both distributional methods vastly outperformed standard DQN, demonstrating the practical value of combining distributional representations with gradient-based TD learning.

Performance of Distributional Greedy-GQ compared to C51 and DQN across multiple control environments.

Limitations and Future Directions

While the paper makes significant theoretical and empirical strides, the authors note a few limitations:

  • Unproven Control Convergence: While convergence is proven for the policy evaluation algorithms (GTD2 and TDC), proving convergence for the control algorithm (Distributional Greedy-GQ) with non-linear approximators remains an open, highly difficult mathematical problem.
  • Projection Errors: In practice, the shifted target distributions do not perfectly align with the fixed discrete atoms of the network's output, requiring a projection step (rounding to the nearest atoms). This introduces approximation errors that are not fully analyzed in the current theoretical framework.

For future work, the authors suggest utilizing the learned distribution for better exploration strategies (e.g., "optimism in the face of uncertainty"), rather than simply collapsing the rich distribution back down to an expected value to choose actions.

Summary updated

BibTeX
@inproceedings{qu2019nonlinear,
  author = {Chao Qu and Shie Mannor and Huan Xu},
  title = {{Nonlinear Distributional Gradient Temporal-Difference Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=rJWwwjZu-r},
}
Figure