Abstract
Evolutionary Strategies (ES) are recognized for their stability and parallelizability in policy search but are often criticized for high sample complexity compared to Reinforcement Learning (RL). This paper introduces "importance mixing," a technique leveraging rejection sampling to reuse samples from previous generations. By identifying statistically valid samples across generations, algorithms like SNES and OPEN-ES can achieve over 95% sample reuse. This significantly improves the efficiency of ES, making it competitive with RL while preserving its robustness, particularly in sparse reward environments.
Introduction
In deep policy search, researchers face a classic trade-off between the sample efficiency of Reinforcement Learning (RL) and the stability of Evolutionary Strategies (ES). While RL methods like DDPG learn quickly, they are often sensitive to hyperparameters and prone to instability. Conversely, ES methods are robust and easy to parallelize but typically "memoryless," discarding all evaluation data from generation $t$ before sampling for $t+1$. This paper investigates "importance mixing" (IM) as a mechanism to bridge this efficiency gap by allowing ES to retain and reuse samples from previous generations.
Methods
The core of the proposed approach is built on the foundation of rejection sampling to identify which historical samples remain statistically valid under the current search distribution.
Importance Mixing (IM)
When transitioning from an old parameter distribution $p(z, \theta_{old})$ to a new one $p(z, \theta_{new})$, IM employs two primary rules to populate the new generation:
- Rule 1 (Reuse): Samples from the previous generation are accepted into the new population with a probability proportional to the ratio of the new density to the old density: $\min(1, \frac{p(z, \theta_{new})}{p(z, \theta_{old})})$.
- Rule 2 (New Sampling): To fill the remaining slots, new samples are drawn from $p(z, \theta_{new})$ but only accepted if they fall into the region not effectively covered by the old distribution, ensuring the final population correctly represents the new distribution.
Extended Importance Mixing (EIM)
The authors further extend this concept by looking back through an archive of multiple past generations ($K$ generations) rather than just the immediate predecessor. This recursive look-back aims to maximize the reuse of any valid historical data.
The researchers integrated these mechanisms into several popular ES variants, including OPEN-ES, SNES, CEM, and CMA-ES.
Experimental Setup
The methods were evaluated on standard OpenAI Gym benchmarks:
- CartPole: A classic control task with dense rewards.
- Acrobot: A double-pendulum swing-up task.
- ContinuousCartPoleHard: A custom variant with sparse rewards (reward only at the end of the episode) designed to test the limits of RL vs. ES.
Key Insights and Analysis
- High Reuse Rates: Gradient-based ES methods (SNES, OPEN-ES) showed massive overlap between successive generations, allowing for over 95% sample reuse. This reduces the number of new evaluations needed per generation by a factor of 20.
- Diminishing Returns of Memory: Surprisingly, Extended Importance Mixing (EIM) provided marginal gains over standard IM. The authors explain that if a sample is invalid for the immediate previous generation, it is rarely valid for a future one as the distribution drifts further away.
- Distribution Dynamics: IM is most effective when the search distribution evolves slowly. Algorithms like CMA-ES, which rapidly contract their search space (covariance), see lower reuse rates (~30-50%) as the distributions become disjoint quickly.
Results
On the CartPole task, the total number of evaluations required for SNES and OPEN-ES to converge dropped from 50,000 to just 2,000 when using importance mixing. While DDPG remained faster on dense reward tasks, it exhibited significant instability, occasionally diverging late in training. In the sparse reward "Hard" environment, DDPG failed to find any signal, whereas ES methods with importance mixing converged steadily. This proves that IM preserves the inherent robustness of evolutionary search while making it significantly faster.
Conclusion and Future Work
Importance mixing offers a powerful, low-overhead performance boost for diagonal-covariance ES methods. While it does not yet surpass RL in pure sample efficiency for dense rewards, it makes ES a much more viable candidate for real-world applications where stability and sparse reward handling are critical. The authors suggest that the future of policy search lies in hybrid frameworks that combine the sample-level efficiency of RL with the population-level stability and importance mixing of ES.
Summary updated