When Does Neuroevolution Outcompete Reinforcement Learning in Transfer Learning Tasks?

Eleni Nisioti, Erwan Plantec, Milton Montero, Joachim Pedersen, Sebastian Risi

TL;DR

This paper investigates whether neuroevolution (NE) methods can outperform traditional reinforcement learning (RL) in transfer learning scenarios, where agents must adapt to new tasks by leveraging prior experience. The authors introduce two novel benchmarks and find that certain NE approaches, particularly those that evolve network architecture, show a distinct advantage in transfer learning compared to RL baselines.

What Problem Does This Paper Address?

Transfer learning, the ability to apply knowledge gained from one task to another, is a crucial aspect of intelligence. While Reinforcement Learning (RL) has achieved remarkable success in complex control tasks, it often suffers from "catastrophic forgetting" and brittleness when faced with variations in tasks. Neuroevolution (NE), an alternative approach that uses evolutionary algorithms to train neural networks, has recently gained attention for its robustness and scalability. However, its capabilities in transfer learning, especially compared to modern RL, remain less understood. This paper aims to fill this gap by systematically evaluating various NE and RL methods on transfer learning tasks, seeking to understand when and why NE might excel.

Methods

The authors compare several neuroevolutionary and reinforcement learning algorithms.

Neuroevolution (NE) Methods: * NEAT (NeuroEvolution of Augmenting Topologies): A direct encoding method that evolves both the structure (architecture) and weights of neural networks. It starts with minimal networks and gradually grows them. * HyperNEAT: An indirect encoding method that uses a Compositional Pattern-Producing Network (CPPN) to generate the weights of a separate "policy" network. This allows for the evolution of structured and repetitive network architectures. * CMA-ES (Covariance Matrix Adaptation Evolution Strategy): A direct encoding method that optimizes the weights of a fixed neural network architecture. * MAP-Elites: A Quality-Diversity algorithm that aims to find a diverse set of high-performing solutions, often used for tasks with local optima.

Reinforcement Learning (RL) Methods: * PPO (Proximal Policy Optimization): A state-of-the-art policy gradient RL algorithm known for its stability and performance. * Goal-Conditioned PPO: A variant of PPO that takes the current goal as an input, designed to potentially mitigate non-stationarity in transfer learning.

The core of the methodology involves evaluating these algorithms on newly introduced benchmarks designed to specifically test transfer learning capabilities.

Datasets

The paper introduces two novel benchmarks:

  • Stepping Gates: This benchmark consists of tasks requiring agents to emulate logic circuits. It includes two specific circuits:
  • N-parity: Tests the ability to repeat identical modules.
  • Simple ALU: Requires repetition with variation, emulating a simplified Arithmetic Logical Unit. Both circuits are presented in a curriculum format, with tasks increasing in complexity.

  • Ecorobot: This benchmark extends the Brax physics engine to evaluate agents in environments requiring locomotion and navigation. It includes various robotic morphologies and tasks such as:

  • Deceptive Maze: A maze with a local optimum.
  • Maze with Stepping Stones: Requires agents to navigate a maze by following a sequence of "stepping stones."
    • Hierarchical Obstacles: Agents must learn to navigate over obstacles of increasing height.

These benchmarks are designed to isolate and test transfer learning by presenting tasks in a curriculum of increasing difficulty or by requiring adaptation to new environmental features.

Key Insights and Ideas

  • NEAT's Advantage in Transfer Learning: NEAT, which evolves network architecture, consistently outperforms RL baselines and other NE methods in transfer learning tasks across both benchmarks. This suggests that the ability to adapt the network structure is crucial for learning and transferring skills.
  • Curriculum Learning is Key for RL: RL methods like PPO struggle significantly when tasks are presented in a curriculum format, only succeeding when the full task is presented at once. This highlights a fundamental limitation of RL in learning progressively complex skills.
  • Indirect Encodings Struggle with Transfer: HyperNEAT, an indirect encoding method, shows poor performance in transfer learning tasks, likely due to its difficulty in building upon previous solutions. However, it demonstrates an advantage in avoiding local optima.
  • Diversity Optimization Not Always Sufficient: MAP-Elites, designed for exploring diverse solutions and avoiding local optima, performs poorly in the stepping stones task, suggesting that simply optimizing for diversity isn't enough for effective transfer learning.
  • Architecture Search Matters: The success of NEAT points to the importance of architecture search in enabling agents to adapt and transfer knowledge, a capability often lacking in fixed-architecture RL agents.

Key Results

  • Stepping Gates: NEAT and CMA-ES (a direct encoding) perform best, with NEAT solving N-parity and reaching level 5 of Simple ALU. PPO only solves the first level of both tasks when presented with a curriculum, but can solve 6-parity directly. HyperNEAT shows initial progress but quickly degrades.
  • Ecorobot (Stepping Stones Maze): NEAT achieves the highest rewards, successfully navigating about five out of seven stepping stones. HyperNEAT and CMA-ES reach fewer stones. Both PPO and goal-conditioned PPO get stuck at the first stone. MAP-Elites explores widely but fails to collect stones.
  • Ecorobot (Locomotion with Obstacles): NEAT performs best when learning to locomote over obstacles of increasing height. PPO's performance remains stable but its learned policies are "bumpy" and prone to flipping, indicating a lack of robust adaptation.
  • Morphology Complexity: When the robot morphology is made more complex (e.g., switching from SimpleRob to an Ant robot), NEAT's ability to progress in the stepping stones maze significantly degrades, indicating limitations in scaling.
  • Local Optima: HyperNEAT can effectively escape local optima in simpler deceptive maze tasks, outperforming PPO. However, this advantage diminishes with more complex morphologies or when competing against diversity-preserving NE methods.

Limitations and Future Work

  • RL Algorithm Scope: The study acknowledges that RL is a vast field, and other RL algorithms might perform differently. The focus was on demonstrating NE's potential, not on outcompeting all RL.
  • Hyperparameter Tuning: While some tuning was performed, the authors suggest that more extensive hyperparameter optimization could yield richer conclusions.
  • Indirect Encoding Diversity: The study used a specific instantiation of Quality-Diversity (MAP-Elites) and suggests that other variants might behave differently.
  • Scaling Challenges: The paper highlights that even promising methods like NEAT struggle when task complexity scales up (e.g., with more complex robot morphologies).
  • Future Directions: The authors propose exploring how to combine the benefits of indirect encodings (large evolutionary leaps, local optima avoidance) with direct encodings (transfer learning) to accelerate evolution. They also plan to enrich the ecorobot benchmark with features like camera observations and multi-robot scenarios to study more complex skills.

Summary updated

BibTeX
@inproceedings{nisioti2025when,
  author = {Eleni Nisioti and Erwan Plantec and Milton Montero and Joachim Pedersen and Sebastian Risi},
  title = {{When Does Neuroevolution Outcompete Reinforcement Learning in Transfer Learning Tasks?}},
  booktitle = {GECCO},
  year = {2025},
  doi = {10.1145/3712256.3726475},
}
Figure