Collaborative Evolutionary Reinforcement Learning

Shauharda Khadka, Somdeb Majumdar, Tarek Nassar, Zach Dwiel, Evren Tumer, Santiago Miret, Yinyin Liu, Kagan Tumer

Overview

Deep reinforcement learning (DRL) algorithms have achieved incredible feats in continuous control tasks, but they remain notoriously brittle. CERL is a hybrid framework designed to overcome these limitations by combining the precision of gradient-based Reinforcement Learning (RL) with the exploratory power of Neuroevolution. By maintaining a "portfolio" of learners with different time-horizons and sharing a collective replay buffer, CERL solves complex control tasks—like the MuJoCo Humanoid—that individual state-of-the-art algorithms fail to master.

The Challenge: Exploration and Sensitivity

Two major hurdles stand in the way of widespread DRL adoption:

  1. Exploration: Most DRL agents explore by simply adding noise to their current actions. This often leads to "local optima," where the agent gets stuck in sub-optimal behavior because it hasn't adequately explored the environment.
  2. Hyperparameter Sensitivity: DRL performance is highly dependent on settings like the discount factor ($\gamma$), which determines how much the agent values future rewards versus immediate ones. A "greedy" agent (low $\gamma$) learns fast but misses the big picture, while a "far-sighted" agent (high $\gamma$) struggles with high variance and slow convergence.

Instead of trying to find one perfect set of hyperparameters, CERL uses a diverse team of learners that collaborate to solve the environment.

The CERL Architecture

CERL introduces a multi-layered architecture that blends several distinct strategies to maximize both learning speed and exploration.

CERL Architecture
  • The Portfolio: Instead of a single learner, CERL runs multiple gradient-based learners (specifically TD3) in parallel. Each learner is assigned a different discount factor ($\gamma$), forcing them to optimize over different time-horizons.
  • Shared Replay Buffer: This is the collaborative heart of the system. Every experience (state, action, reward, next state) encountered by any learner or evolutionary agent is dumped into a single, global pool. All learners sample from this shared pool, significantly boosting sample efficiency.
  • Adaptive Resource Allocation: A "Resource Manager" uses a Multi-Armed Bandit algorithm (UCB) to track which learners are performing best. It dynamically allocates more computational resources (roll-out workers) to the most promising learners.
  • Neuroevolution & Lamarckian Transfer: In parallel to the gradient learners, a population of agents undergoes evolution (mutation and crossover). Periodically, the best-performing gradient-based learners are copied into this population—a process called Lamarckian transfer. This allows the system to combine the fast learning of gradients with the robust searching of evolution.

Key Insights

  • Diversity as a Feature: By using a portfolio with varying $\gamma$ values, CERL creates "behavioral diversity" that naturally covers more of the state space. Greedy learners provide stable, easy-to-learn data, while far-sighted ones aim for the ultimate goal.
  • Parameter Space vs. Action Space: Standard RL explores by changing actions (adding noise). Evolution explores by changing parameters (mutating neural network weights). CERL does both simultaneously, making it much harder for the system to get stuck.
  • The "Emergent Learner": The final product isn't just one of the TD3 agents; it's an "emergent" agent formed by the evolutionary process that has integrated the best features discovered by the entire portfolio.

Key Results

The framework was evaluated on the MuJoCo suite, a standard benchmark for continuous control in robotics (including Hopper, Swimmer, HalfCheetah, Walker2D, and Humanoid).

Performance on Humanoid Task
  • Solving the Humanoid: This is the headline result. On the highly complex MuJoCo Humanoid benchmark, all individual TD3 learners failed entirely regardless of their discount factor. CERL, however, achieved a high score (~4700) within 1 million steps.
  • Robustness on Swimmer: The Swimmer task is famously difficult for gradient methods due to sparse rewards and local optima. While all TD3 variants failed, CERL successfully solved it by leveraging its evolutionary component.
  • Efficiency: Despite running multiple agents, CERL proved more sample-efficient than standard methods because the shared replay buffer ensures no piece of data is wasted. It inherits the best performance of its components across all tested tasks without needing manual hyperparameter tuning.

Limitations and Future Work

While highly effective, CERL does have limitations. It is computationally heavy, requiring significant parallel processing power (CPUs/GPUs) to maintain the portfolio and evolutionary population. Furthermore, for very simple tasks where ideal hyperparameters are already known, CERL can be less efficient than a single tuned learner because it spends resources exploring sub-optimal configurations.

Future directions could include expanding the portfolio to mix entirely different types of algorithms (e.g., Soft Actor-Critic with TD3) and incorporating more advanced learning within the Resource Manager itself.

Summary updated

BibTeX
@inproceedings{khadka2019collaborative,
  author = {Shauharda Khadka and Somdeb Majumdar and Tarek Nassar and Zach Dwiel and Evren Tumer and Santiago Miret and Yinyin Liu and Kagan Tumer},
  title = {{Collaborative Evolutionary Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=BJbZ3oWubB},
}
Figure