Executive Summary
Standard Prioritized Experience Replay (PER) often accelerates reinforcement learning by focusing on "surprising" transitions. However, it can be misled by inaccurate target values early in training. ReaPER (Reliability-adjusted Prioritized Experience Replay) addresses this by weighting priorities with a novel reliability score, ensuring the agent focuses on transitions where the learning signal is actually trustworthy. The result is significantly faster convergence and higher peak performance across classic control and Atari benchmarks.
The Challenge: Unreliable Targets in Experience Replay
In online Reinforcement Learning (RL), agents learn from past experiences stored in a replay buffer. Traditionally, agents sampled these experiences uniformly. Prioritized Experience Replay (PER) improved upon this by sampling transitions with a high Temporal Difference Error (TDE)—essentially focusing on moments where the agent’s prediction was most "wrong."
However, there is a critical flaw: the TDE is calculated using a target Q-value, which is itself just an approximation of future rewards. If the agent hasn't yet learned what happens in the future, that target value is unreliable. Prioritizing transitions based on these inaccurate targets can lead to unstable learning, biased updates, and poor final performance.
The authors identify this as a "temporal hierarchy" problem: an agent cannot reliably learn the value of an early-game state until it has a stable understanding of the late-game states that follow it in the episode's trajectory.
Introducing ReaPER
The authors introduce ReaPER, which extends PER by adding a "reliability" weight to the sampling priority.
- The Reliability Score ($R_t$): This score is based on the intuition that states closer to the end of an episode (terminal states) are more reliable because their targets are grounded in actual environment rewards rather than further approximations.
- Back-to-Front Learning: ReaPER defines reliability as being inversely related to the sum of future absolute TDEs in a trajectory. If the "future" of a transition still exhibits high errors, the current transition’s target is deemed unreliable, and its priority is down-weighted.
- The Algorithm: The sampling priority becomes $\Psi_t = R_t^\omega \cdot |\delta_t|^\alpha$. This ensures the agent prioritizes transitions that are both surprising (high TDE) and trustworthy (high reliability).
- Handling Ongoing Episodes: Since the future TDE sum is unknown for unfinished episodes, the authors use a conservative estimate based on the maximum episodic TDE sum currently found in the buffer.
Evaluation Environments
The researchers evaluated ReaPER against standard PER and uniform sampling using a diverse set of environments:
- Classic Control (Gymnasium): CartPole, Acrobot, and LunarLander.
- Atari-10 Benchmark: A computationally efficient subset of the Atari-57 suite (including games like Amidar, Bowling, and Qbert) that captures over 99% of the variance in median scores across the full benchmark.
- BlindCliffWalk: A stylized environment used specifically to validate the theoretical assumption that target bias is linked to downstream errors.
Core Mechanisms and Insights
- Trust, but Verify: A high TDE doesn't always equate to "high learning potential." Sometimes it merely indicates that the agent is confused by a noisy or unlearned future. ReaPER acts as a filter for this noise.
- Information Propagation: Learning in RL is a recursive process. By prioritizing "reliable" updates (often those closer to the end of a game), ReaPER helps stable information flow backward through the trajectory more efficiently.
- Variance Reduction: The authors provide a formal proof showing that reliability-aware sampling reduces the variance of Q-function updates, leading to more stable training curves.
- Robustness to Partial Observability: Notably, ReaPER’s advantage over PER increased in partially observable environments, where state signals are naturally noisier and more prone to misleading TDEs.
Empirical Performance
- Efficiency Gains: In classic control environments like CartPole and LunarLander, ReaPER reached maximum scores 16.6% to 32.6% faster than standard PER.
- Higher Peak Performance: On the Atari-10 benchmark, ReaPER achieved a 22.97% higher median peak score than PER.
- Superiority in Noise: In a partially observable variant of Atari-10, ReaPER outperformed PER by 34.98%, demonstrating its ability to ignore misleading priorities in complex, uncertain settings.
Limitations and Future Directions
- Reliance on Terminal States: The current reliability calculation is heavily dependent on reaching the end of an episode. While the authors proposed a conservative fix for ongoing episodes, the method's effectiveness in infinite-horizon tasks remains an open question.
- Computational Overhead: Tracking episodic sums of TDEs adds a layer of complexity. While the authors suggest optimizations to keep this at $O(n-t)$, a naive implementation could slow down the training loop in very large buffers.
- Hyperparameter Tuning: ReaPER introduces new exponents ($\alpha$ and $\omega$) that require tuning, though the authors noted that even minimal tuning yielded strong results.
- Future Work: The authors suggest extending this reliability framework to actor-critic methods and exploring how it might integrate with representation learning.
Summary updated