BiERL: A Meta Evolutionary Reinforcement Learning Framework via Bilevel Optimization

Junyi Wang, Yuanyang Zhu, Zhi Wang, Yan Zheng, Jianye Hao, Chunlin Chen

TL;DR

BiERL is a new framework that automatically tunes the hyperparameters of Evolutionary Reinforcement Learning (ERL) algorithms on the fly. By using a bilevel optimization approach, it allows a single agent to adaptively adjust its own learning rate and noise levels during training, significantly improving performance and sample efficiency without the need for expensive manual tuning or massive compute clusters.

What Problem Does This Paper Address?

Reinforcement Learning (RL) via Evolution Strategies (ES) is popular because it’s highly parallelizable and robust. However, ES algorithms are notoriously "brittle"—their success depends heavily on meta-parameters like the noise covariance (how much to explore) and the learning rate.

If these are set incorrectly, the model either fails to explore enough or collapses entirely. Traditionally, finding the right settings requires "Grid Search" (trying everything) or "Population-Based Training" (training many agents at once), both of which are computationally expensive and require significant domain expertise. The authors seek a way to make ERL "self-tuning" within a single training run.

Methods

The authors introduce BiERL (Bilevel Evolutionary Reinforcement Learning). The core idea is a nested optimization loop:

  1. Inner-Level: A standard ES algorithm optimizes the agent's policy parameters ($\theta$) to maximize rewards, using hyperparameters provided by the meta-level.
  2. Meta-Level: A separate optimizer (either a Neural Network or Bayesian Optimization) adjusts the hyperparameters ($\mathcal{H}$) to maximize the agent's long-term progress.

Key Innovations: * Informative Population Representation: Instead of looking at the millions of weights in a neural network, the meta-level looks at the history of fitness scores of the population. It uses an LSTM (Long Short-Term Memory) network to encode how the population's performance has evolved over time, making the meta-optimizer task-agnostic. * Truncated Fitness Evaluation: To keep things fast, the meta-level doesn't wait for the agent to finish training. It estimates the "goodness" of a hyperparameter setting based on just one step of optimization. * Warm Starting: The meta-network is pre-trained on simple tasks (like a basic pendulum) so it starts with a "hunch" about how to tune parameters for more complex tasks (like a walking robot).

Datasets

The framework was evaluated on standard continuous control benchmarks:

  • MuJoCo: Ant-v2, HalfCheetah-v2, Walker2d-v2, Hopper-v2, Swimmer-v2, and InvertedDoublePendulum-v2.
  • Box2D: LunarLanderContinuous-v2 and BipedalWalker-v3.

These are standard "gym" environments used to test how well an AI can learn to balance, walk, or fly.

Key Insights and Ideas

  • Task-Agnostic Tuning: Because the meta-level uses fitness scores as input rather than raw state data, the same BiERL architecture can be used across totally different robots without redesigning the meta-network.
  • Automatic Annealing: The results show that BiERL naturally learns to reduce noise ($\sigma$) as the policy converges. It "knows" to explore wildly at the start and fine-tune carefully at the end—something researchers usually have to code by hand.
  • Efficiency over PBT: Unlike Population-Based Training (PBT) which requires maintaining a massive fleet of agents, BiERL achieves similar or better adaptation within the learning process of a single agent.

Key Results

  • Superior Performance: BiERL consistently outperformed "Vanilla" ES and other advanced variants like NSR-ES and ESAC across all tested environments.
  • Competitive with SOTA: In several tasks (like Ant-v2 and HalfCheetah-v2), BiERL outperformed state-of-the-art Deep RL algorithms like PPO, SAC, and TRPO, particularly in the early stages of training.
  • Low Overhead: Despite the extra "meta" layer, the running time of BiERL is roughly on par with standard ES and DRL methods because the meta-evaluations are highly efficient.
  • Scalability: The authors demonstrated that BiERL can successfully tune multiple hyperparameters (noise and learning rate) simultaneously, leading to even better results than tuning just one.

Limitations and Future Work

  • Architecture Diversity: While the LSTM/MLP combo worked well, the authors suggest that other architectures (like Transformers) could be explored for the meta-level.
  • Behavioral Diversity: Currently, the meta-level only looks at fitness (reward). The authors note that incorporating "behavioral" data (how the robot actually moves) into the population representation could lead to even more robust exploration.
  • Theoretical Grounding: The paper is primarily empirical. Future work could involve a deeper theoretical analysis of the convergence properties of this specific bilevel setup in a derivative-free context.

Summary updated

BibTeX
@inproceedings{wang2023bierl,
  author = {Junyi Wang and Yuanyang Zhu and Zhi Wang and Yan Zheng and Jianye Hao and Chunlin Chen},
  title = {{BiERL: A Meta Evolutionary Reinforcement Learning Framework via Bilevel Optimization}},
  booktitle = {ECAI},
  year = {2023},
  doi = {10.3233/faia230551},
}

Loading related content...

Figure