TL;DR
Evolution Strategies (ES) are highly effective for continuous control but fail miserably when forced to learn tasks sequentially due to severe catastrophic forgetting. This paper provides the first systematic study of ES in a continual learning setting, demonstrating that a simple experience replay mechanism naturally mitigates forgetting and exposes a classic stability-plasticity trade-off.
What Problem Does This Problem Address?
Most reinforcement learning agents are trained under the assumption that their environment remains stationary. Continual Learning (CL) breaks this assumption, requiring agents to adapt to a continuous stream of changing tasks without erasing previously acquired skills.
While CL has been deeply explored for gradient-based deep reinforcement learning, population-based black-box optimization methods—specifically Evolution Strategies (ES)—have been largely ignored in this context. ES offers a powerful alternative to gradient descent by optimizing a distribution of candidate solutions based purely on episodic rewards. However, how ES behaves when exposed to strictly sequential task streams has remained an open question. This paper fills that gap by characterizing forgetting, transfer, and adaptation in sequential ES.
Methods
The authors evaluate a standard parallel ES procedure in a sequential setup where policy parameters are passed from one task to the next without resets. To combat the inevitable forgetting that occurs, they introduce a replay mechanism directly into the evolutionary loop:
- Evolutionary Replay: During training on the current task, the agent performs extra fitness evaluations on a buffer of previously encountered tasks.
- Joint Rank-Normalization: Crucially, these replay fitness values are rank-normalized jointly with the current task's samples. This seamlessly biases the evolutionary update step, steering the search trajectory toward parameter regions that maintain high performance across both past and present tasks.
The paper also investigates two structural variations:
- Task-Agnostic (Shared-Head): A single network architecture where the hidden and output layers are entirely shared across all tasks.
- Task-Aware (Multi-Head): An architecture where each task is assigned a distinct, task-specific output head to isolate action mappings.
Datasets
The approach is evaluated on three standard continuous control locomotion benchmarks from the MuJoCo suite:
- Hopper-v5
- Walker2d-v5
- Swimmer-v5
These tasks present distinct morphologies and control dynamics, creating varying degrees of representational conflict and similarity when learned sequentially.
Key Insights and Ideas
- Evolutionary Catastrophic Forgetting is Severe: Just like gradient-based neural networks, naive sequential ES suffers from immediate and drastic performance drops on older tasks as soon as a new environment is introduced.
- Replay as a Geometric Regularizer: In ES, replay does not require gradient computations or complex objectives. Instead, it acts as a natural regularizer by shaping the fitness landscape, forcing the population distribution to shift toward "compromise regions" in the parameter space.
- The Stability-Plasticity Trade-off: The size of the replay budget matters immensely. A small replay budget preserves the agent's flexibility ("plasticity") to learn new tasks but fails to prevent forgetting. Conversely, an excessively large replay budget over-stabilizes the policy, locking the parameters in place and preventing the agent from adapting to new tasks.
- The Output Head Bottleneck: A massive source of interference occurs at the final action-mapping layer. When tasks share an output head, the network forces task-dependent semantics onto the same parameters. Isolating these via task-specific heads drastically reduces forgetting even before replay is introduced.
Key Results
- Naive Collapse: Without replay, performance on Hopper collapses to near-zero immediately after transitioning to subsequent tasks.
- Replay to the Rescue: Introducing a moderate replay budget (~25% of the population size) successfully flattens the post-switch performance drop, keeping older behaviors stable while still allowing the agent to master new tasks.
- Quantifying Interference: Measuring "interference at acquisition" confirms that intermediate replay levels provide the optimal balance. Excessive replay budgets cause interference to spike again, demonstrating a clear loss of plasticity.
Limitations and Future Work
The authors note that while replay successfully mitigates forgetting, knowledge transfer across tasks remains highly limited and asymmetric. Positive forward or backward transfer only emerges between specific, highly compatible task pairs (such as legged locomotion tasks helping each other), rather than uniformly across the stream.
As a next step, the authors suggest combining evolutionary replay with other established continual learning paradigms, such as regularization-based methods (e.g., functional distillation) or importance-weighting techniques adapted for black-box optimization.
Summary updated