Variance Reduction for Evolution Strategies via Structured Control Variates

Yunhao Tang, Krzysztof Choromanski, Alp Kucukelbir

Abstract

Evolution Strategies (ES) offer a robust alternative to Policy Gradient (PG) methods in reinforcement learning but are often hampered by high gradient variance due to their black-box nature. This paper introduces a novel Structured Control Variate (CV) that leverages the underlying Markov Decision Process (MDP) structure to reduce variance. By blending ES and PG estimators, the proposed method achieves superior stability and performance across a diverse set of continuous control benchmarks, outperforming general-purpose variance reduction techniques.

Introduction

In Reinforcement Learning (RL), Policy Gradient (PG) methods are standard but struggle with long time horizons and sparse rewards. Evolution Strategies (ES) have emerged as a competitive alternative, treating RL as a black-box optimization problem by randomly perturbing policy parameters and observing total rewards. However, by ignoring the sequential MDP structure, ES suffers from high gradient variance. While general-purpose Monte Carlo techniques like antithetic sampling or orthogonalization help, they do not exploit the specific structure of RL problems. This paper addresses this gap by designing a variance reduction technique that explicitly utilizes the MDP structure.

Methods

The authors introduce a Structured Control Variate (CV) to reduce the variance of the ES gradient estimator. A control variate reduces variance by subtracting a zero-expectation term that is highly correlated with the target variable. The CV is constructed by blending ES and PG:

  1. The Target: Estimating the ES gradient of the undiscounted RL objective.
  2. The Relaxed Model: A discounted objective (factor $\gamma < 1$) serves as a lower-variance "relaxed" model.
  3. Two Estimators: For this discounted objective, the authors compute a standard ES score function gradient and a reparameterized gradient via standard Policy Gradients (backpropagation).
  4. The Control Variate: The difference between these two discounted estimators (which has an expectation of zero) is subtracted from the main undiscounted ES gradient.

The scaling and discount factor $\gamma$ are dynamically adapted during training to minimize variance, a technique inspired by REBAR in variational inference.

Experimental Setup

The method was evaluated on 16 high-dimensional continuous control benchmarks from OpenAI Gym (e.g., Swimmer, HalfCheetah), Roboschool (e.g., Pong, Cheetah), and the DeepMind Control Suite (e.g., CheetahRun, HopperStand). Additionally, a Linear Quadratic Regulator (LQR) task was used to test stability over long horizons (2,000 steps).

Key Insights and Results

The integration of ES and PG proves complementary: PG excels when policies are stochastic, while ES is better as they become near-deterministic. By utilizing the MDP structure, the CV method is more robust than general-purpose methods like Quasi-Monte Carlo or Orthogonal ES, which often fail in noisy RL environments.

Learning curves across various benchmark tasks demonstrate the superior stability and performance of the Control Variate (CV) method compared to baselines.

Empirical results show that the CV method improved upon the vanilla ES baseline in all 16 tasks and outperformed other variance reduction techniques in 10 of them. Notably, CV-enhanced ES outperformed pure PG baselines and trust-region methods like PPO and TRPO, which can be unstable without heavy bias.

Comparison of average returns across 16 benchmark tasks. The CV (Ours) method consistently achieves top performance and lower variance compared to other ES variants and Policy Gradient methods.

Conclusion

While the CV method significantly improves stochastic ES, it currently requires stochastic policies to compute the Policy Gradient, limiting its application to deterministic ES setups. Future work includes extending this approach to deterministic policies via critic functions and applying ES-inspired techniques to reduce variance in state-of-the-art PG algorithms.

Summary updated

BibTeX
@inproceedings{tang2020variance,
  author = {Yunhao Tang and Krzysztof Choromanski and Alp Kucukelbir},
  title = {{Variance Reduction for Evolution Strategies via Structured Control Variates}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure