Abstract
Evolutionary reinforcement learning (ERL) algorithms recently raise attention in tackling complex reinforcement learning (RL) problems due to high parallelism, while they are prone to insufficient exploration or model collapse without carefully tuning hyperparameters (aka meta-parameters). In the paper, we propose a general meta ERL framework via bilevel optimization (BiERL) to jointly update hyperparameters in parallel to training the ERL model within a single agent, which relieves the need for prior domain knowledge or costly optimization procedure before model deployment. We design an elegant meta-level architecture that embeds the inner-level's evolving experience into an informative population representation and introduce a simple and feasible evaluation of the meta-level fitness function to facilitate learning efficiency. We perform extensive experiments in MuJoCo and Box2D tasks to verify that as a general framework, BiERL outperforms various baselines and consistently improves the learning performance for a diversity of ERL algorithms.
Introduction
Reinforcement Learning (RL) via Evolution Strategies (ES) offers significant advantages in terms of robustness and parallelizability. However, the performance of ES algorithms is notoriously sensitive to meta-parameters, such as noise covariance ((\sigma)) and learning rate ((\alpha)). Suboptimal settings often lead to exploration failure or total model collapse. Traditionally, optimizing these parameters requires exhaustive grid searches or resource-intensive Population-Based Training (PBT), both of which demand substantial computational power and domain expertise. BiERL addresses this by enabling a "self-tuning" mechanism within a single training run, optimizing hyperparameters dynamically through a bilevel optimization approach.
The BiERL Framework
The core of BiERL is a nested optimization structure consisting of two levels:
- Inner-Level: A standard ES algorithm optimizes the agent's policy parameters ((\theta)) to maximize cumulative rewards, guided by hyperparameters provided by the meta-level.
- Meta-Level: A separate optimizer adjusts the hyperparameters ((\mathcal{H})) to maximize the agent's long-term progress.
To achieve task-agnostic tuning, the meta-level utilizes an Informative Population Representation. Instead of processing high-dimensional neural network weights, it encodes the history of population fitness scores using a Long Short-Term Memory (LSTM) network. This representation captures the evolution of performance over time. A Hyperparameter Learner (MLP) then generates optimal parameters. To maintain efficiency, BiERL employs Truncated Fitness Evaluation, estimating hyperparameter quality based on a single optimization step rather than full training cycles. Additionally, the meta-network can be "warm-started" through pre-training on simpler tasks, providing a robust initialization for complex target environments.
Experimental Evaluation
The framework was rigorously tested on standard continuous control benchmarks, including MuJoCo (e.g., Ant-v2, HalfCheetah-v2) and Box2D (e.g., LunarLanderContinuous-v2).
Key Results
BiERL demonstrated superior performance over "Vanilla" ES and advanced variants like NSR-ES and ESAC. Notably, it proved competitive with, and in some cases outperformed, state-of-the-art Deep RL algorithms such as PPO, SAC, and TRPO, particularly in the early and middle stages of training.
The framework also exhibited an emergent "automatic annealing" behavior, where it naturally reduced exploration noise as the policy converged—a process that typically requires manual scheduling. Despite the additional meta-optimization layer, the computational overhead remained low due to the efficiency of the meta-evaluations and the use of a single-agent training paradigm rather than a large population fleet.
Discussion and Conclusion
BiERL provides a scalable and efficient solution for hyperparameter tuning in ERL. By leveraging fitness-based representations, it remains task-agnostic and avoids the heavy computational costs associated with traditional meta-optimization methods. Future research may explore alternative meta-level architectures, such as Transformers, or incorporate behavioral diversity metrics into the population representation to further enhance exploration robustness in sparse-reward environments.
Summary updated