NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Variance Reduction based Experience Replay for Policy Optimization

Hua Zheng, Wei Xie, M. Ben Feng · DOI

TL;DR

Reinforcement learning (RL) agents often struggle with complex, stochastic environments due to noisy policy gradient estimates. This paper introduces Variance Reduction Experience Replay (VRER), a novel framework that intelligently selects and reuses historical data to significantly reduce this noise. VRER accelerates learning and improves the performance of state-of-the-art RL algorithms by prioritizing more relevant past experiences.

What Problem Does This Paper Address?

Policy gradient methods in RL are powerful for solving complex control problems, but their performance heavily relies on accurate gradient estimation. When dealing with stochastic systems, historical data can be invaluable for improving these estimates. However, traditional "experience replay" mechanisms treat all past experiences equally, which can be inefficient and even detrimental if irrelevant or outdated data is overused. This leads to high variance in gradient estimates, slowing down learning and hindering convergence. The core challenge this paper addresses is how to intelligently select and reuse historical samples to effectively reduce this variance and accelerate policy optimization in complex, stochastic environments.

Methods

The paper proposes a general Variance Reduction Experience Replay (VRER) framework. The key innovation lies in a selection criterion that dynamically determines which historical samples (or behavioral policies) are most relevant for the current policy update. This criterion is based on comparing the estimated variance of policy gradient estimators derived from historical data versus newly generated data.

VRER can be applied to both episode-based and step-based RL algorithms. It leverages importance sampling (IS) and mixture likelihood ratio (MLR) techniques to account for the distributional differences between the target policy (the one being learned) and the behavioral policies (from which historical data was collected). To manage computational complexity, especially as the number of historical samples grows, the authors introduce approximated selection rules. These rules aim to efficiently estimate the relevance of past data without requiring exhaustive calculations. The framework is designed to be easily integrated into existing policy gradient algorithms with minimal structural changes.

Datasets

Not discussed in the paper. The experiments were conducted on standard control benchmarks.

Key Insights and Ideas

  • Selective Replay is Crucial: Simply reusing all historical data is suboptimal. VRER demonstrates that intelligently selecting the "most relevant" past experiences significantly improves learning efficiency and stability.
  • Variance Reduction as a Selection Metric: The core idea is to use the estimated variance of policy gradient estimators as a proxy for sample relevance. Samples that lead to lower variance are prioritized.
  • Bridging Episode- and Step-Based RL: VRER is designed to be a general framework applicable to different types of experience replay strategies, unifying their benefits.
  • Computational Efficiency is Key: The authors recognize that sophisticated selection can be computationally expensive and propose approximations to make VRER practical for real-time applications.
  • Theoretical Guarantees: The paper provides theoretical analysis showing that VRER can improve convergence rates and stabilize learning, especially in non-convex optimization settings.

Key Results

The empirical studies demonstrate that VRER significantly enhances the performance of state-of-the-art policy optimization algorithms like VPG, TRPO, and PPO.

  • Improved Convergence Speed and Stability: VRER consistently leads to faster learning and more stable performance across various control tasks (Acrobot, CartPole, Inverted Pendulum).
  • Significant Performance Gains: For example, in the inverted pendulum task, VRER improved average rewards by up to 204% for VPG and 25.6% for PPO.
  • Reduced Policy Gradient Variance: Table 5 shows a substantial reduction in the square root of total gradient variance differences when using VRER compared to baseline methods.
  • Robustness: The performance of VRER was found to be robust to the choice of selection constant c and buffer size B.
  • Fixed Learning Rate Convergence: Theorem 2 and experimental results show that VRER can achieve convergence even with a fixed learning rate, which is a significant advantage over traditional methods that require diminishing step sizes.

Limitations and Future Work

  • Computational Cost of Selection: While approximations are introduced, the selection process can still be computationally intensive, especially as the number of historical samples grows. The paper suggests that the choice of buffer size B is critical for balancing exploration and exploitation.
  • Assumptions for Theoretical Analysis: The theoretical convergence analysis relies on certain assumptions (e.g., strong concavity, continuity) that might not always hold in practice. Relaxing these assumptions is identified as future work.
  • Bias in CLR Estimator: The Clipped Likelihood Ratio (CLR) estimator, while useful for variance reduction, introduces a bias. The paper acknowledges this and provides bounds on the bias.
  • Further Exploration of Selection Rules: The paper proposes multiple selection rules and recommends specific ones for episode-based vs. step-based algorithms. Further research could explore novel selection criteria.
  • Hyperparameter Tuning: While VRER is shown to be robust, optimal performance might still depend on careful tuning of hyperparameters like the selection constant c and buffer size B.

Summary updated

BibTeX
@misc{zheng2022variance,
  author = {Hua Zheng and Wei Xie and M. Ben Feng},
  title = {{Variance Reduction based Experience Replay for Policy Optimization}},
  year = {2022},
  eprint = {2208.12341},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.12341},
}
Figure