TL;DR
Endpoint Replay is a novel buffer-compression algorithm that reduces the memory footprint of deep reinforcement learning (DRL) agents by 10x to 50x without sacrificing performance. By compressing experience into a chain of connected $n$-step transitions and using an expectile loss function, it eliminates the value function corruption caused by "unanchored" bootstrap targets in traditional data compression methods.
What Problem Does This Paper Address?
Since the inception of DQN, almost every off-policy deep reinforcement learning algorithm has relied on a massive, uniformly sampled First-In-First-Out (FIFO) replay buffer—typically storing the last one million transitions. While highly effective for decorrelating samples and preventing catastrophic forgetting, these large buffers carry a massive memory footprint.
Previous attempts to compress this buffer using "coresets" (isolated, representative transitions) or reservoir sampling frequently fail to maintain performance. The authors identify a previously unrecognized culprit for this failure: unanchored bootstrap targets. When a buffer is downsampled into isolated transitions, the agent often bootstraps from next-states and actions that are never actually updated within the compressed buffer. As a result, neural network generalization shifts these unanchored values arbitrarily, corrupting the value function and causing the learning process to diverge.
Methods
The authors introduce Endpoint Replay, which addresses the unanchored bootstrap problem through two main mechanisms:
- Chained $n$-step Core Sets: Instead of saving isolated transitions, Endpoint Replay compresses experience as it leaves a small recency buffer by forming a continuous chain of jumpy $n$-step transitions (e.g., $n=10$). Because the next-state of one transition serves as the start-state for the next, every bootstrap target remains "anchored" and receives regular updates.
- $n$-step Expectile Sarsa: Using longer $n$-step returns from older data introduces a pessimistic bias because the data was collected by older, more suboptimal policies. To counteract this, the authors swap the standard mean-squared error (MSE) loss for an asymmetric expectile loss ($\tau \ge 0.5$, specifically tuned to $\tau=0.7$). The expectile loss places higher weight on positive deviations, effectively prioritizing updates from better action sequences and mitigating old-policy pessimism.
The complete architecture maintains a small recency buffer for standard 1-step updates on fresh data, alongside the larger $n$-step coreset buffer for replay.
Datasets
The algorithm was evaluated on two primary benchmarks:
- The Pinball Environment: A continuous state-space domain with simplified physics, used for controlled prediction and control experiments.
- Arcade Learning Environment (ALE): A suite of 12 Atari 2600 games (including the Atari-5 benchmark and 7 diverse games like Pong, Breakout, and Space Invaders) to test performance in high-dimensional, pixel-based environments.
Key Insights and Ideas
- The Danger of Isolation: In online RL, sub-sampling a trajectory into isolated states creates an out-of-sample action/state problem similar to offline RL. Without updates to anchor these states, neural network function approximation drifts, leading to divergence.
- Expectiles as an Optimistic Regularizer: While importance sampling is typically used to correct off-policy bias, it suffers from high variance. Expectile loss serves as a stable alternative, implicitly focusing the agent on the upper tail of the return distribution (better action choices) without explicitly tracking old policies.
- Theoretical Soundness: The authors prove that the non-linear Bellman operator associated with $n$-step expectile updates is a contraction mapping that converges to a unique fixed point, and that policy iteration successfully converges to the optimal policy under deterministic dynamics.
Key Results
In controlled prediction experiments within the Pinball domain, the authors demonstrated the severity of the anchoring problem. As shown in Figure 1, learners utilizing unanchored coresets quickly diverged, whereas the anchored approach tracked the true supervised baseline perfectly.
When scaled to benchmarks, Endpoint Replay achieved remarkable data efficiency:
- In Pinball, Endpoint Replay with a 10x to 20x smaller buffer matched the performance of a full-sized 10k recency buffer, significantly outperforming equal-sized standard buffers and MeDQN.
- Across 12 Atari games, Endpoint Replay operating with 10x (100k transitions) and 50x (20k transitions) less storage matched or exceeded the performance of the standard 1-million transition baseline. It significantly outperformed standard small buffers, 10-step small buffers, and reservoir-sampling coresets.
Limitations and Future Work
The primary limitation of Endpoint Replay is its sensitivity to environment stochasticity. Because the expectile loss heavily weights the upper tail of returns, a highly stochastic environment with sparse, high-variance rewards could cause the agent to erroneously chase random environmental luck rather than optimal action choices.
Consequently, the theoretical proofs and current empirical successes are largely constrained to deterministic or low-stochasticity environments. The authors suggest that future work could mitigate this by dynamically decaying the expectile parameter $\tau$ toward 0.5 (standard MSE) as learning progresses, or by developing adaptive methods to optimize the jump step $n$.
Summary updated