Introduction
In off-policy reinforcement learning (RL), agents store past experiences in a "replay buffer" and repeatedly sample from it to update their knowledge. However, not all past experiences are equally valuable. This paper introduces Reducible Loss (ReLo), a novel prioritization scheme for RL experience replay. Unlike standard methods that prioritize samples with the highest error, ReLo prioritizes samples based on how much the agent can actually learn from them, effectively ignoring noisy or unlearnable data points that often derail training.
The Problem with Prioritized Experience Replay
The standard approach to sampling from a replay buffer is Prioritized Experience Replay (PER). PER samples transitions with a high Temporal Difference (TD) error, operating on the assumption that a high error indicates high learning potential.
However, the authors identify a critical flaw in this assumption: high error does not always mean high learnability. A transition might exhibit a high TD error simply because the environment is noisy or inherently stochastic. PER will repeatedly sample these "unlearnable" points, wasting computational resources and potentially destabilizing the agent. ReLo aims to distinguish between states where the agent is genuinely lacking knowledge versus states that are merely random noise.
Reducible Loss (ReLo): A New Prioritization Metric
The core innovation of this paper is the Reducible Loss (ReLo) metric. Inspired by recent advancements in supervised learning, the authors define a sample's priority by how much the loss decreases when moving from an older "hold-out" model to the current online model.
In the context of Q-learning, RL architectures already possess a built-in hold-out model: the target network (a standard component in algorithms like DQN and SAC that lags behind the main network). The priority $p_i$ for a sample is calculated as:
$$ReLo = L_\theta - L_{\bar{\theta}}$$
Where:
- $L_\theta$ is the loss of the current online network.
- $L_{\bar{\theta}}$ is the loss calculated using the parameters of the target network.
By subtracting the target network's loss, the agent focuses on samples where the online network is making progress relative to its slightly older self. If a sample is purely noisy, both networks will yield high, similar losses, resulting in a low ReLo score and consequently a lower sampling priority.
Key Insights and Mechanisms
- Avoiding the "Noise Trap": The authors demonstrate that PER gets "stuck" on states with random rewards. ReLo successfully ignores these states because the loss is not reducible.
- Zero Computational Overhead: Using the target network as a proxy for the hold-out model is a highly efficient design choice. It requires almost zero additional computational overhead—just one extra forward pass.
- Mitigating Catastrophic Forgetting: In multi-task scenarios, ReLo helps the agent remember old tasks better. When the agent stops seeing data from a previous task, the online network's performance on those older samples starts to slip relative to the target network. This increases their ReLo score, forcing the agent to "re-study" those forgotten samples.
Experimental Results
The authors evaluated ReLo across a massive range of standard RL benchmarks, including GridWorld, the DeepMind Control Suite (DMC), OpenAI Gym, MinAtar, and the Arcade Learning Environment (ALE).
Key findings include:
- Superior Overall Performance: Across DMC, MinAtar, and Atari, ReLo consistently achieved higher Interquartile Mean (IQM) scores and lower optimality gaps compared to PER and uniform sampling.
- Stochastic Stability: In modified versions of the DeepMind Control Suite with added reward noise, ReLo significantly outperformed PER, which suffered from high variance and poor convergence.
- Fixing Gym Instabilities: ReLo resolved known issues where PER actually hurts performance in certain Mujoco-based Gym environments (like Walker2d) due to instability from early terminations.
- Lower Validation Error: Agents trained with ReLo ended up with lower TD errors on unseen "validation" transitions, suggesting better overall generalization.
Limitations and Future Work
While highly effective empirically, the paper notes a few areas for future exploration:
- Theoretical Depth: A deeper theoretical analysis of the learning dynamics induced by ReLo compared to PER is a necessary next step.
- Mapping Functions: Currently, negative ReLo values are clipped to zero. The authors suggest there may be more sophisticated ways to map the raw ReLo score to a probability distribution.
- Exploration vs. Exploitation: While ReLo significantly improves exploitation (learning efficiently from the buffer), its exact relationship with exploration (finding new states) remains an open question.
Summary updated