TL;DR
Prioritized Experience Replay (PER) is a cornerstone of modern reinforcement learning, yet its benefits are surprisingly inconsistent. This paper reveals that the interaction between prioritization and neural network generalization often leads to problematic "overestimation spikes," and demonstrates that in many control tasks, simple uniform sampling remains remarkably hard to beat.
What Problem Does This Paper Address?
In Reinforcement Learning (RL), agents learn from past experiences stored in a "replay buffer." While most agents sample these experiences uniformly, Prioritized Experience Replay (PER) attempts to be "smarter" by focusing on transitions with high Temporal Difference (TD) errors—essentially focusing on the data the agent finds most surprising or difficult.
While the original PER paper showed impressive gains in Atari games, subsequent research has yielded mixed results. The authors of this paper set out to understand why PER behaves so differently across different settings. Specifically, they investigate the friction between prioritization (sampling "important" states) and generalization (how neural networks spread information across similar states).
Methods
The authors compare several variants of experience replay:
- Uniform Replay: The baseline where every transition has an equal chance of being sampled.
- DM-PER: The standard implementation of PER (from DeepMind) which includes "tricks" like importance sampling weights and priority squashing.
- Naive PER: A stripped-down version that samples strictly based on TD error without the extra bells and whistles, used here to isolate the effects of prioritization.
- Expected PER (EPER): A novel variant introduced by the authors. Instead of using the instantaneous (and often noisy) TD error, EPER learns a secondary estimator to predict the expected TD error. This is designed to prevent the agent from "chasing noise" in stochastic environments.
They also experiment with two structural changes: sampling without replacement (to prevent a single high-error transition from dominating a mini-batch) and periodically recomputing priorities for the entire buffer to keep them from becoming outdated.
Datasets
The study utilizes a mix of idealized and classic benchmarks:
- 50-State Markov Chain: A custom environment designed to be a "pure" test of value propagation. The agent must move from one end of a long chain to the other to receive a single reward.
- Classic Control Tasks: MountainCar, Acrobot, and Cartpole—standard low-dimensional continuous state environments.
- Cliffworld: A tabular gridworld where falling off a cliff results in a massive negative reward, testing how agents handle rare but extreme "outlier" errors.
Key Insights and Ideas
- The Generalization Trap: In tabular settings, prioritization is a clear win because updates to one state don't affect others. However, with neural networks (NNs), oversampling a high-error state causes the NN to change its values for nearby states as well. This "over-generalization" can lead to a feedback loop of incorrect values and massive error spikes.
- Target Networks as a Stabilizer: The authors found that delaying target network updates can mitigate the error spikes caused by Naive PER. By slowing down how quickly new (and potentially over-generalized) values are used as bootstrap targets, the system stays more stable.
- Tabular Control Paradox: Surprisingly, in the tabular version of the 50-state chain control task, uniform replay actually outperformed prioritized methods. Prioritization focused too much on the end of the chain, neglecting the exploration needed at the beginning.
- Stability via EPER: In environments with high-variance rewards (like Cliffworld), the new EPER method proved much more stable than standard PER or uniform replay, avoiding the sudden performance collapses that plague other methods when they encounter rare, large errors.
Key Results
The most striking finding is the "spike" in error when combining Naive PER with neural networks, as seen in Figure 1.
While prioritization helps in tabular prediction, the results in control tasks (Figure 6) show that no prioritized variant consistently beats uniform replay. In the NN setting, the performance of all methods often overlaps significantly, suggesting that the "smart" sampling of PER might just be adding complexity without a clear performance payoff in these domains.
Furthermore, the authors found that sampling without replacement significantly improved Naive PER in tabular settings but had almost no impact when using neural networks.
Limitations and Future Work
The paper primarily focuses on smaller-scale environments to allow for exhaustive hyperparameter tuning and statistical significance (using many "seeds"). While this provides deep insight into the mechanics of RL, the results might differ in massive-scale problems like those found in modern LLM training or complex 3D simulations.
The authors conclude that noise isn't the primary reason uniform replay often wins; rather, it's the complex interplay between bootstrapping and function approximation. Future work is needed to design prioritization schemes that explicitly account for how neural networks generalize, rather than just treating them as high-capacity tables.
Summary updated