A surrogate-assisted controller for expensive evolutionary reinforcement learning

Yuxing Wang, Tiantian Zhang, Yongzhe Chang, Xueqian Wang, Bin Liang, Bo Yuan

TL;DR

Hybrid Evolutionary Reinforcement Learning (ERL) frameworks combine the diverse exploration of evolutionary algorithms with the sample efficiency of deep RL, but evaluating large populations in the environment remains prohibitively expensive. This paper introduces a Surrogate-assisted Controller (SC) that cleverly repurposes the RL agent's critic network as a "free" surrogate model to estimate fitness. By strategically alternating between real and surrogate evaluations, SC drastically reduces environment interactions while boosting both learning speed and final performance.

What Problem Does This Paper Address?

Deep Reinforcement Learning (DRL) is powerful but notoriously sensitive to hyperparameters and prone to getting stuck in local optima. Evolutionary Algorithms (EAs) solve this by maintaining a diverse population of solutions, making them robust to sparse rewards and local traps. Recently, researchers have combined the two into hybrid frameworks (like ERL and PDERL) where an RL agent learns alongside an evolving population of policies.

However, there is a massive bottleneck: EAs are incredibly sample-inefficient. In these hybrid frameworks, every individual in the genetic population must be evaluated by interacting with the real environment. In complex simulations or real-world robotics, running hundreds of policies through the environment every generation is computationally expensive, agonizingly slow, and potentially damaging to physical equipment. The authors aim to bypass these expensive real-world evaluations without losing the exploration benefits of the EA.

Methods

To solve the evaluation bottleneck, the authors propose a Surrogate-assisted Controller (SC). Instead of interacting with the environment, SC uses a predictive "surrogate" model to guess how well a policy will perform.

  • The Critic as a Free Surrogate: Instead of training a separate, complex surrogate model from scratch, SC simply repurposes the off-policy RL agent's critic network. Since the critic is already being trained to estimate expected returns (Q-values), it naturally serves as a fitness estimator.
  • Evaluation Memory: To evaluate a policy without the environment, SC pulls a batch of recent states from the RL replay buffer. It asks the policy what actions it would take in those states, feeds those state-action pairs to the critic, and averages the predicted Q-values to calculate a "fitness" score.
  • Management Strategies: Because the critic's predictions aren't perfect, relying on them entirely could mislead the evolutionary process. SC mitigates this using two strategies:
  • Generation-based Control (GC): Probabilistically decides whether an entire generation will be evaluated in the real environment or by the surrogate.
  • Individual-based Control (IC): Generates a massive pool of mutated candidates, uses the surrogate to pre-select the most promising ones, and only evaluates that filtered "trust region" in the real environment.
  • Elite Protection: A crucial safeguard that ensures the best-performing individuals (verified by real evaluations) are never accidentally discarded due to a faulty surrogate prediction.

Datasets

The authors evaluated their methods on 6 standard continuous control tasks from the OpenAI Gym platform, powered by the MuJoCo physics engine:

  • Ant, Hopper, Walker, Swimmer, Reacher, and HalfCheetah. (No new datasets were introduced; these are standard benchmarks for continuous control RL).

Key Insights and Ideas

  • Zero-Overhead Surrogates: Traditional surrogate-assisted EAs require training a dedicated model, which is computationally heavy. By piggybacking on the RL agent's critic network, SC gets a highly capable surrogate model essentially for free.
  • Inaccuracy Can Be a Feature: Early in training, the critic's predictions are often inaccurate. Surprisingly, this doesn't necessarily harm the EA. The inaccurate surrogate can actually warp the fitness landscape in a way that pushes the population out of local optima and encourages broader exploration.
  • Elite Protection is Non-Negotiable: The authors found that without protecting the top individuals, a biased surrogate can easily discard the best policies, causing dramatic performance collapses. Real-world grounding is required to keep the EA on track.
  • Stabilizing Internal Dynamics: By filtering out poor policies before they hit the real environment, SC stabilizes the bidirectional flow of information between the RL agent and the EA population, leading to more robust and intriguing behavioral patterns (e.g., agents learning to better stabilize their center of gravity).

Key Results

The authors integrated SC into two state-of-the-art baselines (ERL and PDERL) to create SERL and SPDERL.

  • Massive Sample Reductions: SC drastically cuts down the number of environment interactions needed. In the Walker environment, the baseline ERL required ~3 million more environment interactions than SERL to reach the same score. In Hopper, PDERL needed 300,000 more interactions than SPDERL.
  • Wall-Clock Speedups: In the Ant task, SERL-I reached the target score in just 4.5 hours, whereas the baseline ERL failed to reach it even after the maximum 8-hour training limit.
  • Performance Boosts: The SC-enhanced frameworks consistently outperformed their base versions in both learning speed and final reward across almost all tested MuJoCo environments.
  • Computational Efficiency: While SC adds some FLOPs due to extra forward passes through the critic network, this computational cost is negligible compared to the massive time savings gained by skipping real environment interactions.

Limitations and Future Work

  • Limitations: The individual-based control strategy initially failed in the Swimmer environment. Because the RL agent was misled by deceptive gradients in that specific task, its critic network became a terrible surrogate. (The authors bypassed this by mutating the best EA actor instead of the RL actor). Additionally, surrogate evaluations do introduce extra forward-propagation overhead, though this is highly parallelizable.
  • Future Work: The authors suggest applying this framework to real-world settings like embodied AI (physical robotics), where sample efficiency is paramount. They also propose exploring self-adaptive evolution control strategies (dynamically adjusting the ratio of real vs. surrogate evaluations on the fly) and extending the approach to multi-agent RL with multiple surrogates.

Summary updated

BibTeX
@article{wang2022surrogate,
  author = {Yuxing Wang and Tiantian Zhang and Yongzhe Chang and Xueqian Wang and Bin Liang and Bo Yuan},
  title = {{A surrogate-assisted controller for expensive evolutionary reinforcement learning}},
  journal = {Information Sciences},
  year = {2022},
  url = {https://openreview.net/forum?id=7gsvpl4NY},
}
Figure