Off-Policy Evolutionary Reinforcement Learning with Maximum Mutations

Karush SuriAAMAS 2022

TL;DR

This paper introduces ESAC, a novel reinforcement learning algorithm that combines the scalability of evolutionary strategies with the sample efficiency of Soft Actor-Critic (SAC). ESAC achieves improved performance and robustness on complex locomotion tasks by abstracting exploration from exploitation and introducing an Automatic Mutation Tuning (AMT) mechanism to mitigate hyperparameter sensitivity.

What Problem Does This Paper Address?

Reinforcement Learning (RL) has shown great promise in achieving optimal control in complex environments. However, traditional RL methods often struggle with scalability, especially in high-dimensional action spaces and long-horizon tasks, due to computationally expensive gradient-based updates. Evolutionary Strategies (ES), on the other hand, offer scalability but are notoriously sensitive to hyperparameters, particularly mutation rates, leading to inconsistent performance. This paper addresses the challenge of combining the strengths of both approaches – the scalability of ES and the performance and sample efficiency of RL methods like SAC – while mitigating their respective weaknesses, particularly the hyperparameter sensitivity of ES.

Methods

The core innovation is the Evolution-based Soft Actor-Critic (ESAC) algorithm, which integrates Evolutionary Strategies (ES) with Soft Actor-Critic (SAC).

  • Abstracting Exploration from Exploitation: ESAC separates exploration (handled by ES in the policy's weight space) from exploitation (handled by SAC's gradient-based learning). This allows for broad exploration through evolutionary mutations while leveraging SAC's learned policies for efficient decision-making.
  • Soft Winner Selection and Hindsight Crossovers: Instead of discarding less successful offspring, ESAC uses a "soft winner selection" mechanism. This allows dominant skills to be transferred between offspring and winners through genetic crossovers, even in hindsight, promoting robust policy learning.
  • Automatic Mutation Tuning (AMT): This novel component addresses ES's hyperparameter sensitivity. AMT automatically tunes the mutation rate ($\sigma$) using a clipped gradient-ascent approach. It dynamically adjusts $\sigma$ to maximize exploration in a small, clipped region, providing robustness without requiring backpropagation. This mechanism is designed to guide exploration towards the objective by expanding the search horizon.
  • Reduced SAC Updates: ESAC exponentially anneals the frequency of SAC's gradient updates, further reducing computational overhead and emphasizing the evolutionary exploration.

Datasets

The paper evaluates ESAC on a variety of locomotion tasks from:

  • MuJoCo: Including HalfCheetah-v2, Humanoid-v2, Ant-v2, Walker2d-v2, Swimmer-v2, Hopper-v2, LunarLanderContinuous-v2, Reacher-v2, and InvertedDoublePendulum-v2.
  • DeepMind Control Suite: Including CheetahRun, WalkerWalk, and FishUpright.

The paper also uses a custom long-horizon discrete Cyclic MDP as a motivating example to illustrate the challenges of exploration and scalability.

Key Insights and Ideas

  • Synergy of Evolution and Gradient Methods: The paper demonstrates that combining evolutionary exploration with gradient-based learning (SAC) can yield superior results compared to using either method in isolation, effectively bridging the gap between scalability and performance.
  • Hindsight Crossovers for Skill Transfer: The "hindsight" aspect of genetic crossovers is crucial. It allows for the preservation and transfer of successful traits from previous generations, leading to more robust and consistent learning, especially in complex tasks.
  • AMT as a Robustness Enabler: The Automatic Mutation Tuning (AMT) is a key contribution. It effectively tackles the notorious hyperparameter sensitivity of ES, making the algorithm more reliable and easier to tune in practice. This is achieved without the computational cost of backpropagation.
  • Scalability Beyond Pure ES: ESAC manages to retain a significant portion of ES's scalability, even with the addition of gradient-based updates, by strategically reducing the frequency of these updates and leveraging evolutionary operations.

Key Results

  • Improved Performance: ESAC demonstrated improved average returns on 10 out of 15 locomotion tasks compared to state-of-the-art methods like SAC, TD3, and PPO.
  • Sample Efficiency: ESAC showed better sample efficiency, particularly in the motivating cyclic MDP example, where it solved the task within the first 100 episodes, significantly faster than DDPG.
  • Scalability: ESAC exhibited scalability comparable to pure ES, with average episode execution times decreasing quadratically with the number of CPUs. This suggests efficient utilization of computational resources.
  • Robustness: The AMT mechanism contributed to robustness, with ESAC showing consistent performance across different seeds, especially in large action spaces and sparse reward scenarios. The paper highlights that ESAC's robustness to mutation sensitivity is superior to that of pure ES.
  • Reduced Updates: ESAC performed significantly fewer backpropagation updates compared to SAC, highlighting its computational efficiency.

Limitations and Future Work

  • Generalization in Sparse Rewards: The paper acknowledges that while ESAC performs well, the high variance of SAC in sparse reward settings can hinder the learning of optimal policies through evolution. Future work could involve combining ESAC with meta-controllers or more sophisticated architectures (like master-slave frameworks) to address this.
  • Understanding Generalization: The authors suggest that the effect of combining evolutionary and gradient operations on policy generalization needs further investigation.

Summary updated

BibTeX
@inproceedings{suri2022off,
  author = {Karush Suri},
  title = {{Off-Policy Evolutionary Reinforcement Learning with Maximum Mutations}},
  booktitle = {AAMAS},
  year = {2022},
  url = {https://openreview.net/forum?id=cN6orToRxv},
}
Figure