Introduction
In the field of Deep Reinforcement Learning (RL), gradient-based methods such as Q-learning and Policy Gradients have long been considered the standard. Even Evolution Strategies (ES), which have recently gained traction, are often interpreted as a form of stochastic gradient descent. This has led to a prevailing assumption that traditional, gradient-free genetic algorithms (GAs) cannot scale to the high-dimensional parameter spaces—often involving millions of weights—required for modern deep neural networks.
This paper challenges that assumption by demonstrating that a simple GA can successfully train deep neural networks with over 4 million parameters. The researchers show that this "Deep GA" is not only competitive with state-of-the-art methods like DQN and A3C on Atari benchmarks but also offers unique advantages in terms of training speed and the ability to navigate deceptive environments.
Methodology: The Deep GA
The researchers implemented a basic GA to establish a clear performance baseline. The algorithm follows a standard evolutionary loop:
- Population-based Search: Maintaining a population of $N$ individuals, each represented by a neural network weight vector.
- Truncation Selection: Selecting the top $T$ performers to serve as parents for the next generation.
- Gaussian Mutation: Creating offspring by adding random Gaussian noise to a parent's weights.
- Elitism: Preserving the single best individual from each generation without modification.
A critical innovation that enables scaling is a compact encoding technique. Rather than transmitting millions of weights across a distributed network, each individual is represented by an initial random seed and a list of seeds used for subsequent mutations. This allows a 4-million-parameter network to be reconstructed from just a few kilobytes of data, facilitating massive parallelization across hundreds of CPU cores with minimal communication overhead.
Additionally, the authors explored Novelty Search (GA-NS). Unlike standard GAs that optimize for a reward signal, GA-NS rewards agents for exhibiting unique behaviors. This approach is specifically designed to overcome "deceptive" environments where the most direct path to a reward leads to a local optimum or a dead end.
Experimental Setup
The performance of Deep GA was evaluated across three distinct domains:
- Atari 2600: 13 games from the Arcade Learning Environment, providing a diverse set of visual and strategic challenges.
- Humanoid Locomotion: A continuous control task in the MuJoCo simulator requiring a bipedal robot to learn a stable walking gait.
- Image Hard Maze: A highly deceptive maze task designed to test exploration. Agents must navigate based on raw pixel inputs, where simple reward-following leads to traps.
Results and Discussion
Performance on Atari Benchmarks
The Deep GA proved to be a formidable competitor in the RL arena. It achieved state-of-the-art results on the game Skiing and remained competitive with DQN, A3C, and ES across most other games.
One surprising finding was the "Origin" effect: many high-quality policies exist relatively close to the random initialization point. This was evidenced by Random Search (RS) outperforming sophisticated algorithms like DQN on several Atari games, suggesting that the search space for these tasks may be less daunting than previously thought.
Overcoming Deception
The Image Hard Maze highlighted a significant strength of neuroevolution. Standard reward-following algorithms, including DQN, A3C, and even the basic GA, consistently failed by getting stuck in a local optimum ("Trap 2"). In contrast, the novelty-seeking GA-NS successfully navigated to the goal by prioritizing behavioral diversity over immediate reward.
Computational Efficiency
The wall-clock speed of the Deep GA is a major advantage. Because it requires only forward passes and no backpropagation, and benefits from the compact encoding's 10,000-fold compression, it is exceptionally fast. Training an Atari agent can take as little as one hour on a distributed cluster.
Conclusion and Future Work
While the Deep GA excelled in discrete environments like Atari, it struggled with continuous control tasks like Humanoid Locomotion, where it was significantly slower than ES. This suggests that gradient information remains crucial for fine-tuning smooth, complex movements.
The success of this "extremely simple" GA opens several avenues for future research. Incorporating advanced neuroevolutionary techniques—such as crossover, indirect encoding, or hybridizing GAs with gradient-based local search—could further enhance performance. This work demonstrates that genetic algorithms are a viable and powerful tool for deep reinforcement learning, particularly in domains where exploration and speed are paramount.
Summary updated