[Paper Review] Experience Replay with Likelihood-free Importance Weights
This paper proposes likelihood-free importance weighting for experience replay in actor-critic reinforcement learning, using density ratio estimation via a classifier to prioritize experiences based on their likelihood under the current policy’s stationary distribution. The method improves sample efficiency, achieving superior performance on Mujoco environments compared to uniform sampling and prior prioritization methods like PER and ERE.
The use of past experiences to accelerate temporal difference (TD) learning of value functions, or experience replay, is a key component in deep reinforcement learning. Prioritization or reweighting of important experiences has shown to improve performance of TD learning algorithms.In this work, we propose to reweight experiences based on their likelihood under the stationary distribution of the current policy. Using the corresponding reweighted TD objective, we implicitly encourage small approximation errors on the value function over frequently encountered states. We use a likelihood-free density ratio estimator over the replay buffer to assign the prioritization weights. We apply the proposed approach empirically on two competitive methods, Soft Actor Critic (SAC) and Twin Delayed Deep Deterministic policy gradient (TD3) -- over a suite of OpenAI gym tasks and achieve superior sample complexity compared to other baseline approaches.
Motivation & Objective
- To improve sample efficiency in off-policy deep reinforcement learning by reweighting experiences based on their frequency under the current policy’s stationary distribution.
- To address the limitation of heuristic prioritization methods like prioritized experience replay (PER), which focus on high TD errors rather than high-frequency states.
- To develop a practical, likelihood-free method for estimating density ratios between on-policy and off-policy experience distributions in replay buffers.
- To integrate the proposed weighting scheme into state-of-the-art actor-critic algorithms like SAC and TD3 without architectural changes.
- To empirically validate that prioritizing frequently visited states leads to better value function estimation and faster policy learning.
Proposed method
- The method uses a classifier to distinguish between near-on-policy experiences (from a fast replay buffer) and off-policy experiences (from a slow replay buffer), estimating the density ratio between them.
- The estimated density ratio serves as importance weights for the Q-value update objective, favoring updates on state-action pairs that are more likely under the current policy.
- The approach is grounded in a theoretical analysis showing that minimizing expected TD error under the stationary distribution leads to better contraction properties for the Bellman operator.
- The method avoids explicit likelihood computation by using a likelihood-free density ratio estimator, making it applicable to complex, high-dimensional environments.
- The importance weights are applied directly to the TD learning objective, effectively reweighting the replay buffer to be closer to on-policy data.
- The framework is compatible with existing actor-critic algorithms and can be integrated with minimal modifications to training pipelines.
Experimental results
Research questions
- RQ1Can reweighting experience replay based on likelihood under the stationary policy distribution lead to better sample efficiency in actor-critic methods?
- RQ2Does prioritizing frequently visited states—rather than high TD error states—improve value function estimation and policy performance?
- RQ3Can a likelihood-free density ratio estimator effectively approximate the stationary distribution's likelihood without requiring explicit density models?
- RQ4How does the proposed method compare to existing prioritization schemes like PER and ERE in terms of sample complexity and final performance?
- RQ5Is the method robust to hyperparameter choices such as replay buffer size and classifier temperature?
Key findings
- The proposed LFIW method achieves superior sample complexity compared to uniform sampling, PER, and ERE on 4 out of 5 Mujoco tasks with SAC and all tasks with TD3.
- On Humanoid-v2, SAC+LFIW achieves a Pearson correlation of 0.74 with ground-truth Q-values, compared to 0.41 for SAC alone, indicating significantly better Q-function estimation.
- The classifier used for density ratio estimation achieves 73.1% accuracy and 87.3% precision, confirming that importance weights effectively identify on-policy-like experiences.
- LFIW shows robustness to hyperparameter variations, including temperature, replay buffer size, and network width, as shown in ablation studies.
- In environments like Hopper, where policies converge early, LFIW provides little improvement because the slow replay buffer already contains mostly on-policy data, validating the method’s focus on on-policy proximity.
- Combining LFIW with PER yielded little benefit, suggesting that PER’s objective (max Q-learning) is misaligned with actor-critic goals, where on-policy accuracy is more critical.
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.