Instance Weighted Incremental Evolution Strategies for Reinforcement Learning in Dynamic Environments

Zhi Wang, Chunlin Chen, Daoyi Dong · DOI

Abstract

Reinforcement learning (RL) agents often struggle to adapt when environments shift from their training conditions, frequently falling into local optima by attempting to apply obsolete strategies. This paper proposes Instance Weighted Incremental Evolution Strategies (IW-IES), a framework that facilitates rapid adaptation by weighting policy mutations based on both their performance quality and their behavioral novelty relative to previous optimal policies. Experimental results across navigation and robotic locomotion tasks demonstrate that IW-IES significantly outperforms existing meta-learning and robust RL baselines in both speed of adaptation and final performance.

Introduction

Standard RL algorithms typically assume stationary environments. However, real-world applications—ranging from robotics to autonomous navigation—are inherently dynamic. When environmental transitions or reward functions change, agents face "catastrophic forgetting" if they restart learning, or "local optima bias" if they fine-tune from a previous policy. Evolution Strategies (ES), while efficient and parallelizable, are particularly susceptible to getting stuck in old habits when the environment shifts.

The IW-IES Framework

To address these challenges, the authors introduce IW-IES, which builds upon Natural Evolution Strategies (NES). The core innovation is an instance-weighting layer applied to the mutation process. When an environment change is detected, the agent initializes with the previous optimal policy parameters ($\theta_{t-1}^*$). Instead of treating all mutations equally, IW-IES calculates a weight ($w_i$) for each mutation based on two metrics:

  1. Instance Novelty ($N$): Measures how much the mutation's behavior deviates from the previous optimal behavior. This encourages exploration away from failing habits.
  2. Instance Quality ($Qu$): Measures the return of the mutation in the new environment, ensuring the agent prioritizes high-performing strategies.
Figure 2: Illustration of the adaptation process. (a) The agent follows a straight path to the goal in the original environment. (b) When an obstacle appears, mutations are evaluated based on their novelty relative to the old path and their quality in the new setup.

By combining these metrics into a mixing variant, the algorithm reinforces mutations that are both effective and behaviorally distinct from the obsolete strategy. A "temperature" parameter is used to initially favor exploration (novelty) and gradually shift toward exploitation (quality) as the agent converges.

Algorithm 1: The Incremental Learning Framework for IW-IES.

Experimental Evaluation

The researchers evaluated IW-IES in several domains:

  • 2D Navigation: In a task where a deceptive obstacle was introduced, IW-IES reached near-optimal performance in just 40 generations, whereas baselines like ES-MAML failed to adapt even after 200 generations.
  • MuJoCo Locomotion: In high-dimensional tasks like "Swimmer" and "HalfCheetah" with changing target velocities, IW-IES nearly doubled the performance of the best baseline methods (e.g., achieving ~21.78 vs ~12.75 in the Swimmer task).

Key Insights

The success of IW-IES stems from its ability to break the "bias of the past." By explicitly incentivizing behavioral deviation through the Instance Novelty metric, the agent is "nudged" to stop attempting strategies that are no longer viable. Furthermore, because novelty is measured in behavior space (e.g., physical coordinates) rather than parameter space, the exploration is more semantically meaningful. Crucially, this approach maintains the linear scalability of ES with negligible computational overhead.

Conclusion and Future Work

IW-IES provides a robust and efficient mechanism for RL agents to adapt to dynamic environments. Future research directions include automating behavior characterization using autoencoders and integrating automated change detection modules to trigger the incremental learning process in real-time without manual intervention.

Summary updated

BibTeX
@article{wang2020instance,
  author = {Zhi Wang and Chunlin Chen and Daoyi Dong},
  title = {{Instance Weighted Incremental Evolution Strategies for Reinforcement Learning in Dynamic Environments}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2020},
  doi = {10.1109/tnnls.2022.3160173},
}
Figure