Evolution-Guided Policy Gradient in Reinforcement Learning

Shauharda Khadka, Kagan Tumer

Introduction

Evolutionary Reinforcement Learning (ERL) is a hybrid framework that merges the sample efficiency of gradient-based Deep Reinforcement Learning (DRL) with the robust exploration and global optimization capabilities of Evolutionary Algorithms (EA). By sharing a replay buffer and periodically syncing the RL agent into the EA population, ERL overcomes the brittle convergence and sparse reward problems that frequently plague standard DRL approaches.

The Challenge with Deep Reinforcement Learning

While DRL has achieved remarkable success, applying it to complex, real-world problems reveals three primary hurdles:

  1. Temporal Credit Assignment: In environments with sparse rewards (e.g., receiving a score only at the end of a long sequence), agents struggle to identify which specific actions led to success.
  2. Lack of Effective Exploration: Agents often get trapped in local optima, repeating mediocre behaviors because they fail to explore high-dimensional state spaces effectively.
  3. Brittle Convergence: DRL is notoriously sensitive to hyperparameters. Minor adjustments can cause the learning process to collapse entirely.

Evolutionary Algorithms naturally excel in these areas because they evaluate total episode fitness rather than step-by-step rewards and maintain a diverse population of solutions. However, EAs are "gradient-blind," making them significantly slower and less sample-efficient than DRL.

The ERL Framework

To bridge this gap, the authors introduce Evolutionary Reinforcement Learning (ERL), creating a symbiotic relationship between an EA and a DRL agent (specifically DDPG).

ERL Architecture

The framework operates on several key mechanisms:

  • The Population: ERL maintains a population of "actors" (neural networks) that interact with the environment to collect data.
  • Shared Replay Buffer: All experiences (state, action, reward, next state) gathered by the EA population are stored in a single, shared replay buffer.
  • The RL Learner: A standalone DRL agent (the RL-actor and its Critic) trains continuously using the diverse data in this shared buffer.
  • The Sync (RL → EA): Periodically, the weights of the RL agent are copied into the EA population, replacing the weakest member. This injects gradient-informed knowledge back into the evolutionary pool.
  • The Selection (EA → RL): The EA uses total episode reward as a fitness metric to select the best performers. This naturally biases the replay buffer toward high-quality data, helping the RL agent focus on successful strategies.

Key Insights

  • Two-Level Exploration: ERL explores the parameter space by mutating the weights of the neural networks (EA) while simultaneously exploring the action space by adding noise to specific movements (RL). This dual approach is far more robust than either method alone.
  • Implicit Prioritization: Because only "fit" individuals survive to generate more data, the EA's selection process automatically fills the replay buffer with high-performing trajectories, acting as an implicit form of Prioritized Experience Replay.
  • The Safety Net: If a gradient update breaks the RL agent—a common issue in DDPG—the EA selection process simply discards that version in the next generation, preventing catastrophic forgetting.

Experimental Results

The researchers evaluated ERL on standard MuJoCo continuous control benchmarks (e.g., HalfCheetah, Ant, Walker2D) and a custom "Hard" Inverted Double Pendulum task designed with extreme sparse rewards to break standard DRL algorithms.

Performance on Sparse Reward Task
  • Superior Performance: ERL significantly outperformed both pure DRL (DDPG, PPO) and pure EA across almost all MuJoCo benchmarks.
  • Solving the "Unsolvable": On the complex 3D quadruped Ant benchmark, standard DDPG failed to make any progress, whereas ERL solved it effectively.
  • Sparse Reward Mastery: In the "Hard" Pendulum task, DDPG failed completely due to the delayed reward. ERL solved it in roughly 10,000 episodes—twice as fast as the pure EA, which required over 20,000 episodes.
  • Minimal Overhead: Despite maintaining a population, ERL required only about 3% more wall-clock time than standard DDPG.

Limitations and Future Directions

While ERL makes RL substantially more robust, it introduces new EA-specific hyperparameters (such as population size and mutation rates) that require tuning. Furthermore, the paper primarily tested a small population size of 10; scaling to larger populations or integrating more complex Quality Diversity evolutionary strategies remains an open question. Future work may also explore integrating advanced RL techniques like Hindsight Experience Replay (HER) or expanding into multi-agent reinforcement learning (MARL) environments.

Summary updated

BibTeX
@inproceedings{khadka2018evolution,
  author = {Shauharda Khadka and Kagan Tumer},
  title = {{Evolution-Guided Policy Gradient in Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure