Finetuning Deep Reinforcement Learning Policies with Evolutionary Strategies for Control of Underactuated Robots

Marco Calí, Alberto Sinigaglia, Niccolò Turcato, Ruggero Carli, Gian Antonio Susto

Introduction

In the field of robotic control, underactuated systems—where the number of control inputs is fewer than the degrees of freedom—present a significant challenge. Traditional Reinforcement Learning (RL) approaches often struggle to bridge the gap between the dense surrogate rewards required for stable training and the sparse, trajectory-wide metrics used to evaluate real-world performance. This paper introduces EvolSAC, a hybrid optimization framework developed by researchers at the University of Padova. By combining the sample efficiency of Soft Actor-Critic (SAC) with the precise fine-tuning capabilities of the Separable Natural Evolution Strategy (SNES), EvolSAC achieves superior performance in complex control tasks.

The Challenge of Reward Engineering

Standard RL algorithms typically rely on "dense" rewards to provide constant feedback to the agent. However, the ultimate success of a robotic controller is often measured by sparse metrics, such as the time taken to reach a target state or the total energy consumed. Training an agent solely on surrogate rewards (like distance to a goal) can lead to sub-optimal behaviors that do not align with the actual evaluation criteria. Conversely, training with Evolutionary Strategies (ES) from scratch is often computationally prohibitive for high-dimensional neural network policies.

The EvolSAC Framework

The authors propose a two-phase training methodology designed to leverage the strengths of both RL and ES:

Phase 1: Policy Initialization with SAC

The first phase utilizes Soft Actor-Critic (SAC) to train a baseline policy. SAC is chosen for its stability and its maximum-entropy objective, which encourages the exploration of diverse and robust behaviors. During this phase, the agent is trained using a surrogate reward function, such as potential or kinetic energy shaping, to learn the fundamental mechanics of the underactuated system.

Phase 2: Fine-tuning with SNES

Once a stable baseline is established, the policy weights are fine-tuned using the Separable Natural Evolution Strategy (SNES). As a black-box optimization method, SNES does not require gradients and can optimize the policy directly against the "true" scoring metrics of the task. This allows the agent to overcome the biases introduced by the surrogate rewards used in Phase 1.

Maintaining Robustness

To ensure that the evolutionary fine-tuning does not result in brittle, overfitted trajectories, the authors incorporate noise injection into the action space. This technique preserves the policy's reliability across varying initial conditions and environmental perturbations.

Experimental Results

The EvolSAC framework was evaluated on standard benchmarks and high-stakes competition environments.

Classic Cartpole Swing-up

In the cartpole swing-up task, EvolSAC demonstrated a dramatic improvement over standard RL. The average swing-up time was reduced from 2.085 seconds (using standard SAC) to 1.135 seconds, representing a 45.6% improvement.

IROS 2024 AI Olympics

The methodology was further tested in the 2nd AI Olympics using the RealAIGym environment, focusing on two underactuated configurations:

  • Acrobot: EvolSAC achieved a score of 0.608, outperforming the SAC baseline (0.602) and significantly surpassing classical control methods like TVLQR (0.555) and iLQR (0.267).
  • Pendubot: The hybrid approach reached a score of 0.696, compared to 0.684 for SAC and 0.395 for iLQR.

Discussion: The "Finisher" Effect

A key insight from this research is the role of Evolutionary Strategies as a "finisher." While RL is efficient at finding the general vicinity of an optimal solution, it often plateaus due to the limitations of the surrogate reward. The SNES phase effectively bridges this "reality gap," requiring only a relatively small number of additional episodes (approximately 1,000) to achieve significant performance gains.

Conclusion and Future Work

EvolSAC provides a practical and effective pipeline for optimizing robotic control policies. By combining the strengths of SAC and SNES, the framework achieves state-of-the-art results in underactuated systems. Future research will focus on improving the robustness of the fine-tuning phase and exploring the integration of this methodology with model-based RL algorithms.

Summary updated

BibTeX
@inproceedings{cali2025finetuning,
  author = {Marco Calí and Alberto Sinigaglia and Niccolò Turcato and Ruggero Carli and Gian Antonio Susto},
  title = {{Finetuning Deep Reinforcement Learning Policies with Evolutionary Strategies for Control of Underactuated Robots}},
  booktitle = {IFAC-PapersOnLine},
  year = {2025},
  doi = {10.1016/j.ifacol.2025.12.006},
}
Figure