Genetic Drift Regularization: On Preventing Actor Injection from Breaking Evolution Strategies

Paul Templier, Emmanuel Rachelson, Antoine Cully, Dennis G. Wilson

Abstract

Evolutionary Reinforcement Learning (ERL) seeks to leverage the global exploration capabilities of Evolution Strategies (ES) alongside the sample efficiency of gradient-based Reinforcement Learning (RL). A common technique, actor injection, incorporates an RL-trained agent into the ES population. However, this often leads to "Genetic Drift," where the RL agent moves into parameter regions incompatible with the ES distribution, causing catastrophic performance collapse. We propose Genetic Drift Regularization (GDR), a method that tethers the RL actor to the ES population center via a simple penalty term. Our results on the Brax physics engine demonstrate that GDR prevents performance collapse and achieves superior results across various continuous control tasks.

Introduction

In the pursuit of robust and efficient reinforcement learning, researchers have increasingly turned to hybrid methods that combine Evolution Strategies (ES) and gradient-based RL (e.g., TD3). The goal is to achieve the "best of both worlds": the broad search space coverage of ES and the rapid convergence of gradient-based methods. A standard approach is actor injection, where an RL agent trains on data from the ES population and is then inserted back into that population to guide the evolutionary search.

The Problem: Genetic Drift

The authors identify a critical failure mode in standard actor injection termed Genetic Drift. ES algorithms typically assume the population follows a specific distribution (often Gaussian). Because RL agents optimize a different objective (Q-values) than the ES (direct rewards), their parameters often drift far from the ES population center. When this "outlier" is injected back, it violates the mathematical assumptions of the ES update step, frequently leading to a total collapse in population fitness.

Genetic Drift Regularization (GDR)

To address this, the paper introduces Genetic Drift Regularization (GDR). The core idea is to constrain the RL actor's movement to stay within a "trust region" defined by the ES population.

Methodology

The problem is framed as a constrained optimization: maximize RL rewards such that the Euclidean distance between the actor parameters ($\theta_a$) and the ES center ($\theta_{ES}$) remains below a threshold. In practice, this is implemented as a penalty term in the actor's loss function:

  • GDR: Adds the L2 distance: $\epsilon \|\theta_a - \theta_{ES}\|_2$
  • GDR²: Adds the squared L2 distance: $\epsilon \|\theta_a - \theta_{ES}\|_2^2$

This regularization requires negligible computational overhead since the ES center is already calculated during the normal evolutionary process.

Experimental Results

The researchers evaluated GDR using the Brax library, a JAX-based physics engine, across several environments including HalfCheetah, Walker2D, and Hopper.

Preventing Performance Collapse

In environments like Walker2D, standard actor injection often causes fitness to plummet. GDR and GDR² successfully mitigate this. For instance, on Walker2D, GDR² achieved a score of 2679, outperforming pure ES (2554) and significantly surpassing standard injection, which collapsed to a score of 249.

As shown in the distance plots, standard actor injection (red) allows the agent to drift significantly further from the ES center than regularized versions (blue/orange). This drift is even more pronounced in the Hopper environment, where the unregularized actor moves far beyond the typical distribution of the ES population.

Genetic drift in the Hopper environment.

Mutual Benefit

Interestingly, GDR does not just protect the ES population; it also improves the RL actor's learning. By staying close to the ES distribution, the RL agent is guided by the evolutionary search, which helps avoid noisy gradients and local optima in the early stages of training. The authors note that the RL actor itself reaches higher fitness levels when regularized, suggesting that the ES provides a useful "trust region" for the RL agent.

Conclusion

Genetic Drift Regularization provides a simple yet powerful solution to the instability of actor injection in Evolutionary Reinforcement Learning. By maintaining the RL agent within the ES population's parameter distribution, GDR ensures that the benefits of gradient-based learning do not come at the cost of evolutionary stability. Future work may explore dynamic scaling of the regularization term or the integration of on-policy RL methods to further align the search landscapes.

Summary updated

BibTeX
@inproceedings{templier2024genetic,
  author = {Paul Templier and Emmanuel Rachelson and Antoine Cully and Dennis G. Wilson},
  title = {{Genetic Drift Regularization: On Preventing Actor Injection from Breaking Evolution Strategies}},
  booktitle = {CEC},
  year = {2024},
  doi = {10.1109/cec60901.2024.10611871},
}
Figure