NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Evolving Reinforcement Learning Algorithms

John D. Co-Reyes, Yingjie Miao, Daiyi Peng, Esteban Real, Quoc V. Le, Sergey Levine, Honglak Lee, Aleksandra Faust

Introduction

Researchers have proposed a novel method for meta-learning reinforcement learning (RL) algorithms by searching over the space of computational graphs. By using evolutionary algorithms to "breed" new RL update rules, they discovered novel loss functions—such as DQNReg—that outperform human-designed baselines like DQN and Double DQN. These learned algorithms are domain-agnostic, demonstrating remarkable generalization from simple gridworlds to complex Atari games.

What Problem Does This Paper Address?

Designing deep RL algorithms is a notoriously manual and iterative process. Researchers spend years tweaking loss functions and update rules to handle issues like overestimation bias or sample inefficiency. While "AutoML" has successfully automated neural network architecture design, automating the discovery of the underlying learning algorithms themselves is significantly harder.

The primary challenge is creating an algorithm that isn't just a "black box" tuned for one specific task, but a general-purpose update rule that is domain-agnostic. The goal is to shift from manually designing algorithms to designing the "language" and optimization methods that allow computers to discover better algorithms than humans can.

Methods

The authors treat the discovery of RL algorithms as a meta-learning problem with two distinct loops:

  1. The Inner Loop: An agent learns to solve a specific environment (like CartPole) using a candidate loss function $L$.
  2. The Outer Loop: An evolutionary search (specifically Regularized Evolution) explores the space of possible loss functions to maximize the agent's performance across training environments.
Meta-learning framework for evolving RL algorithms

Key components include: * Search Language: The authors defined a formal language where algorithms are represented as Directed Acyclic Graphs (DAGs). Nodes represent operations (like Add, Max, Log, or even neural network modules), and edges represent the flow of data (states, actions, rewards).

DAG representation of an RL algorithm
  • Bootstrapping: The search can start from scratch (random graphs) or "bootstrap" from known algorithms like DQN. Starting from DQN allows the evolution to find interpretable "mutations" that improve upon the state-of-the-art.
  • Efficiency Tricks: To avoid wasting compute on poorly performing algorithms, they implemented functional equivalence checks (hashing to see if two different graphs compute the same outputs) and early hurdles (testing algorithms on a simple task like CartPole first; if they fail, they are discarded immediately).

Datasets

A diverse set of environments was used to ensure the evolved algorithms were truly general:

  • Training Environments: Simple, computationally cheap tasks including classical control (CartPole, Acrobat, MountainCar, LunarLander) and 12 multitask gridworld environments from MiniGrid.
  • Test Environments: To test generalization, the best-evolved algorithms were evaluated on Atari games (Asteroids, Bowling, Boxing, RoadRunner). These are high-dimensional, image-based tasks that the meta-learner never saw during the evolutionary process.

Key Insights and Ideas

  • Rediscovering TD Learning: When allowed to evolve from scratch on simple tasks, the system successfully rediscovered the fundamental Temporal Difference (TD) error—the backbone of modern RL. This serves as a powerful validation of the search space and method.
  • The Power of Regularization: The most successful evolved algorithm, DQNReg, adds a simple term to the standard DQN loss: $L = 0.1 * Q(s_t, a_t) + \delta^2$. This small modification acts as a regularizer, preventing Q-values from exploding and effectively mitigating overestimation bias.
  • Simplicity Generalizes: Even though the algorithms were evolved on low-dimensional "toy" problems, the symbolic nature of the discovered loss functions allowed them to scale seamlessly to complex visual inputs in Atari.
  • Convergence: Bootstrapping from human knowledge (DQN) significantly sped up the search and led to more interpretable results compared to starting from total randomness.

Key Results

  • DQNReg & DQNClipped: These two evolved algorithms consistently outperformed standard DQN and Double DQN (DDQN) across both training and unseen test environments.
  • Atari Performance: In the game RoadRunner, DQNReg achieved a score of 65,516, significantly higher than DQN (~39k) and even PPO (~35k).
  • Stability: The evolved algorithms exhibited lower variance across different random seeds, suggesting they are more robust than standard human-designed baselines.

Limitations and Future Work

  • Scope: This work focused specifically on value-based, model-free RL for discrete action spaces. It does not yet cover continuous control or actor-critic architectures.
  • Exploration: The search language currently focuses on the loss function (the "how to learn" part) but doesn't evolve the exploration strategy (the "how to act" part, like $\epsilon$-greedy).
  • Parameter Tuning: While the structure of the algorithm is evolved, some constants (like the $0.1$ weight in DQNReg) might still benefit from environment-specific tuning.

Future work could expand the search language to include actor-critic methods and more complex memory structures, potentially leading to a completely automated pipeline for RL research.

Summary updated

BibTeX
@inproceedings{coreyes2021evolving,
  author = {John D. Co-Reyes and Yingjie Miao and Daiyi Peng and Esteban Real and Quoc V. Le and Sergey Levine and Honglak Lee and Aleksandra Faust},
  title = {{Evolving Reinforcement Learning Algorithms}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=_Isp-s3I_d},
}
Figure