Emphatic Algorithms for Deep Reinforcement Learning

Ray Jiang, Tom Zahavy, Zhongwen Xu, Adam White, Matteo Hessel, Charles Blundell, Hado van Hasselt

TL;DR

This paper introduces new "emphatic" reinforcement learning (RL) algorithms designed to stabilize off-policy learning in deep neural networks. By deriving multi-step emphatic traces (WETD and NETD) and combining them with variance-reduction techniques, the authors achieved a new state-of-the-art median human-normalized score of 497% on 57 Atari games for agents without experience replay.

The Challenge: The Deadly Triad

In reinforcement learning, the "deadly triad" refers to the unstable combination of three core components: function approximation (using neural networks), bootstrapping (updating guesses based on other guesses), and off-policy learning (learning about one policy while following another). When these three meet, learning often diverges, leading to exploding values and failed agents.

While theoretical solutions like Emphatic Temporal Difference (ETD) learning exist, they were originally designed for simple linear models and "backward-view" eligibility traces. Modern deep RL systems typically use "forward-view" $n$-step returns (like V-trace), which do not integrate easily with standard ETD. This paper bridges that gap, bringing the stability of emphatic methods to the high-performance world of deep RL.

Emphatic Adaptations for Deep RL

The authors propose two primary ways to adapt emphatic weighting to multi-step deep RL:

  1. Windowed ETD (WETD): This adapts the original ETD algorithm to work with fixed-length update windows. It essentially "resets" the bootstrapping influence at the end of every $n$ steps by setting the $\lambda$ parameter to zero.
  2. Emphatic TD(n) (NETD): A novel derivation specifically for $n$-step TD updates. Unlike WETD, which is a modified version of the original trace, NETD is built from the ground up for fixed-length trajectories. It is mathematically "tamer" than WETD, meaning it doesn't grow as large and is less likely to cause numerical instability.

To make these work at scale, the authors introduced Clipped Emphases, where importance sampling (IS) weights are clipped to reduce variance. This is a crucial step for preventing the blow-up often seen in off-policy deep RL.

Learning curves demonstrating the stabilizing effect of clipping on emphatic traces.

They also extended these traces to Actor-Critic architectures (ACE variants), applying the emphatic weights to both the value function and the policy gradient updates.

Experimental Validation

The algorithms were rigorously tested across different tiers of complexity, from diagnostic Markov Decision Processes (MDPs) designed to trigger instability, to the Arcade Learning Environment (ALE)—the standard benchmark of 57 classic Atari 2600 games.

Key Insights

  • NETD is "Tamer" than WETD: The authors proved that the NETD trace is a strict lower bound of the WETD trace. In practice, this means NETD is much more stable when using the long bootstrap lengths common in deep RL.
  • Clipping is the Secret Sauce: Naive emphatic traces can still exhibit high variance. Clipping the importance sampling weights used to calculate the trace proved essential for successful training in deep neural networks.
  • Boosting Auxiliary Tasks: The authors introduced an agent called Surreal, which uses auxiliary heads to "fantasize" about different policies. Emphatic traces allowed these off-policy auxiliary tasks to be learned more effectively, which in turn improved the shared representation for the main task.

Performance and Results

  • Stability: In diagnostic tasks where standard $n$-step TD and V-trace diverged, the emphatic variants (especially clipped versions) converged reliably.
  • Atari Performance: The NETD-ACE algorithm applied to the Surreal agent achieved a median human-normalized score of 497% across 57 games. This significantly outperformed the baseline Surreal agent (403%) and set a new record for RL agents trained for 200M frames without experience replay.
  • Efficiency: The emphatic algorithms achieved their best performance using smaller learning rates than the baselines, suggesting a more stable and controlled optimization process.
Hyper-parameter sensitivity showing emphatic algorithms achieving better performance with smaller step-sizes.

Limitations and Future Work

While NETD performed exceptionally well, WETD remained unstable at scale, even with variance reduction techniques. The authors also noted that emphatic traces are derived based on steady-state distributions of fixed policies; their impact is most noticeable later in training as the agent's policy stabilizes.

Future research could explore applying these emphatic traces to a wider variety of off-policy targets and investigating how to further automate the variance-bias trade-off inherent in trace clipping.

Summary updated

BibTeX
@inproceedings{jiang2021emphatic,
  author = {Ray Jiang and Tom Zahavy and Zhongwen Xu and Adam White and Matteo Hessel and Charles Blundell and Hado van Hasselt},
  title = {{Emphatic Algorithms for Deep Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=QjmEJXthYFm},
}
Figure