[Paper Review] Remember and Forget for Experience Replay
This paper proposes Remember and Forget Experience Replay (ReF-ER), a novel experience replay method that improves off-policy deep reinforcement learning by filtering out experiences that are too dissimilar to the current policy and regulating policy update speed via KL divergence constraints. ReF-ER enhances stability and performance across DDPG, NAF, and off-policy PG methods on continuous-control benchmarks and partially observable fluid dynamics tasks without requiring extensive hyperparameter tuning.
Experience replay (ER) is a fundamental component of off-policy deep reinforcement learning (RL). ER recalls experiences from past iterations to compute gradient estimates for the current policy, increasing data-efficiency. However, the accuracy of such updates may deteriorate when the policy diverges from past behaviors and can undermine the performance of ER. Many algorithms mitigate this issue by tuning hyper-parameters to slow down policy changes. An alternative is to actively enforce the similarity between policy and the experiences in the replay memory. We introduce Remember and Forget Experience Replay (ReF-ER), a novel method that can enhance RL algorithms with parameterized policies. ReF-ER (1) skips gradients computed from experiences that are too unlikely with the current policy and (2) regulates policy changes within a trust region of the replayed behaviors. We couple ReF-ER with Q-learning, deterministic policy gradient and off-policy gradient methods. We find that ReF-ER consistently improves the performance of continuous-action, off-policy RL on fully observable benchmarks and partially observable flow control problems.
Motivation & Objective
- To address the instability and performance degradation in off-policy deep reinforcement learning when policy behavior diverges from past experiences in experience replay.
- To reduce variance and improve data efficiency by selectively using only 'near-policy' experiences for gradient updates.
- To maintain policy similarity with replayed behaviors through trust-region constraints based on KL divergence.
- To enable robust performance across diverse off-policy algorithms (DDPG, NAF, off-PG) without extensive hyperparameter tuning.
- To demonstrate effectiveness in both standard Gym environments and complex, partially observable fluid dynamics simulations.
Proposed method
- Classifies experiences as 'near-policy' or 'far-policy' based on the importance weight ratio ρ = π^w(a|s)/μ(a|s), where ρ measures policy divergence.
- Computes gradient updates exclusively from 'near-policy' experiences (ρ within a predefined threshold) to avoid incorrect updates from outdated or divergent behaviors.
- Introduces a trust-region penalty that minimizes D_KL(μ || π^w) to constrain policy updates and prevent rapid divergence from replayed behaviors.
- Gradually anneals the threshold for ρ and the trust-region penalty during training to allow increasing accuracy from on-policy-like updates.
- Integrates seamlessly with Q-learning (NAF), deterministic policy gradient (DDPG), and off-policy policy gradient (off-PG) algorithms.
- Employs LSTM-based function approximators for partially observable environments to handle non-Markovian dynamics.
Experimental results
Research questions
- RQ1Can filtering out far-policy experiences improve the stability and performance of off-policy deep RL algorithms?
- RQ2Does regulating policy update speed via KL divergence constraints enhance learning efficiency and data utilization?
- RQ3Can ReF-ER improve performance across diverse off-policy algorithms without requiring task-specific hyperparameter tuning?
- RQ4How does ReF-ER perform in partially observable environments with complex dynamics, such as fluid flow control?
- RQ5Can ReF-ER enable faster convergence and better final performance in high-fidelity physics simulations?
Key findings
- ReF-ER consistently improves performance across DDPG, NAF, and off-policy PG methods on fully observable OpenAI Gym benchmarks.
- In partially observable 2D flow control tasks, DDPG with ReF-ER learns to maintain position with minimal actuation cost faster than standard ER and other methods.
- V-RACER with ReF-ER achieves the best final performance in fluid dynamics control, outperforming ACER and standard DDPG.
- The method reduces training variance and enables reliable learning without extensive hyperparameter optimization.
- The trust-region component of ReF-ER effectively limits policy divergence, improving gradient estimate accuracy over time.
- ReF-ER enables stable training with LSTM-based function approximators in non-Markovian environments, supporting complex control tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.