Variance Reduction for Evolution Strategies via Structured Control Variates.

Yunhao Tang, Krzysztof Choromanski, Alp Kucukelbir

Abstract

Evolution Strategies (ES) offer a highly scalable, black-box optimization alternative to Policy Gradients (PG) for Reinforcement Learning (RL). However, ES is often limited by prohibitively high variance in gradient estimation. This paper introduces a novel variance reduction technique that utilizes Policy Gradients as a "structured control variate" for ES. By combining the robustness of black-box optimization with the sample efficiency of MDP-aware gradients, the proposed method achieves state-of-the-art performance across a suite of 16 continuous control tasks.

Introduction

In deep Reinforcement Learning, two primary paradigms exist for policy optimization: Policy Gradients (PG) and Evolution Strategies (ES). PG methods leverage the Markov Decision Process (MDP) structure and are generally sample-efficient, yet they can struggle with long horizons, sparse rewards, and unstable gradients. Conversely, ES methods treat the RL episode as a black-box function, offering high scalability and better handling of sparse rewards. However, ES gradient estimates suffer from high variance, necessitating massive data volumes for convergence.

While prior variance reduction efforts for ES relied on general-purpose Monte Carlo techniques like antithetic sampling or orthogonalization, these methods ignore the specific MDP structure of RL problems. This work investigates whether the underlying MDP structure can be leveraged to build a domain-specific variance reduction tool for ES.

Methodology: Structured Control Variates

The core contribution is the introduction of a structured control variate. A control variate reduces the variance of an estimator by subtracting a known, correlated value without introducing bias.

The method involves:

  1. Dual Gradient Estimators: The gradient is estimated using both the standard ES "score function" and a "reparameterized" gradient computed via standard PG (backpropagation through the policy).
  2. Relaxed Model: To mitigate the instability of PG on infinite-horizon problems, a discounted objective ($\gamma < 1$) is used as a "relaxed" model.
  3. Control Variate Construction: Both ES and PG gradients are computed on this relaxed model. The difference between these estimators serves as the control variate.
  4. Final Update: The standard ES gradient of the true undiscounted objective is adjusted by the control variate, scaled by a learned parameter $\eta$.

This approach, inspired by the REBAR technique for discrete latent variables, effectively blends the strengths of ES and PG.

Experimental Setup

The method was evaluated on 16 high-dimensional continuous control benchmarks, including:

  • MuJoCo (OpenAI Gym): Swimmer, HalfCheetah, Walker2d, BipedalWalker.
  • Roboschool: RoboschoolPong, RoboschoolCheetah.
  • DeepMind Control Suite: CheetahRun, HopperHop, AntWalk.
  • LQR: A Linear Quadratic Regulator task designed to test stability over long horizons ($T=2000$).

Key Results

The proposed Control Variate (CV) method demonstrated consistent improvements over the vanilla ES baseline across all 16 tasks.

Training curves across 12 benchmark tasks comparing the proposed Control Variate method against Vanilla ES, Orthogonal ES, GCMC, and QMC.

As shown in the training curves, the CV method (blue line) frequently achieves higher rewards and faster convergence than competing methods. Notably, on HalfCheetah, CV reached a final score of 1897 ± 232, significantly outperforming Vanilla ES (1339 ± 178) and Orthogonal ES (1185 ± 76). On Walker, CV hit 1476 ± 112 compared to Vanilla ES at 1155 ± 34.

Improvement percentage relative to Vanilla ES across all 16 tasks. The Control Variate method consistently maintains performance above the baseline.

The aggregate results indicate that CV outperformed other state-of-the-art variance reduction techniques (Orthogonal, GCMC, QMC) on 10 out of 16 tasks. Theoretical analysis confirms that in high-dimensional parameter spaces with small sample sizes—typical of modern Deep RL—this structured control variate provides superior variance reduction compared to generic methods like Orthogonal ES.

Discussion and Limitations

The synergy between ES and PG is a key insight: PG excels when policies are stochastic, while ES is more effective as policies become near-deterministic. By integrating them, the algorithm maintains stability throughout training.

However, some limitations remain. The reliance on Policy Gradients necessitates stochastic policies, precluding direct application to deterministic policies common in some continuous control settings. Additionally, the hybrid nature of the algorithm introduces engineering complexity, as it requires synchronizing both ES perturbations and PG gradients in a distributed environment. Future work may explore extending this framework to deterministic policies via critic functions or applying similar structured control variates to improve existing 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