Introduction
Experience Replay (ER) is a fundamental component of modern deep reinforcement learning (RL), enabling agents to reuse past experiences for more efficient learning. While uniform sampling is the standard approach, Prioritized Experience Replay (PER) was introduced to focus on "surprising" transitions—those with high Temporal Difference (TD) errors. However, despite its initial success on the Atari benchmark, PER's performance in broader applications has been inconsistent. This paper investigates the underlying causes of this fragility, specifically examining the interplay between prioritization, bootstrapping, and neural network generalization.
The Mechanism of Prioritization
The authors dissect PER into several components to isolate the drivers of performance. They compare three primary variants:
- Naive PER: A stripped-down version that samples proportional to TD error without importance sampling or priority squashing.
- DM-PER: The standard, canonical implementation used in most deep RL libraries.
- Expected PER (EPER): A novel variant introduced in this paper. EPER addresses the noise inherent in instantaneous TD errors by learning a secondary estimator to predict the expected TD error, aiming for greater stability in stochastic environments.
Additionally, the study evaluates algorithmic modifications such as sampling without replacement and periodic recomputation of buffer priorities to see if these "best practices" actually yield benefits in deep RL settings.
The Over-Generalization Feedback Loop
A central finding of the research is the "over-generalization feedback loop." In tabular RL, updating a state's value is a local operation. In deep RL, however, updating a state via a neural network affects the values of similar states due to function approximation.
When PER over-samples a high-reward transition, the network may over-generalize this value to neighboring states. This creates a surge in TD errors for those neighbors, which in turn leads to them being sampled more frequently. This vicious cycle often results in massive overestimation spikes early in training, potentially destabilizing the agent. Interestingly, the authors found that "target networks"—which provide lagging value estimates—act as a crucial buffer against this effect, slowing down the propagation of these overestimations.
Empirical Results and Reality Checks
The study utilized a 50-state Markov Chain to test value propagation and classic control benchmarks (MountainCar, Acrobot, Cartpole, and Cliffworld) to test non-linear dynamics. The results provide a stark contrast between tabular and neural settings:
- The Tabular-Neural Gap: In tabular environments, prioritized methods significantly outperform uniform sampling. However, when using neural networks, the advantage often vanishes. In many control tasks, uniform replay proved as good as or better than PER.
- The Failure of Naive PER: Due to the over-generalization spike, Naive PER frequently performed worse than uniform sampling in neural network settings.
- Stability of EPER: The new EPER variant proved much more stable in environments with outlier rewards (like Cliffworld). While it did not always outperform uniform sampling, it successfully avoided the catastrophic performance collapses seen in other prioritized methods.
- Computational Overhead: Computationally expensive tasks, such as periodically recomputing all priorities in the buffer, yielded almost no benefit for neural network agents.
Conclusion
This study provides a necessary "reality check" for prioritization in RL. It demonstrates that current TD-error-based schemes are often at odds with the way neural networks generalize. The findings suggest that for prioritization to be effective in deep RL, we may need new mechanisms that account for how specific updates cause the network to generalize across the state space, rather than relying solely on instantaneous error metrics.
Summary updated