Automatic Gain Tuning for Humanoid Robots Walking Architectures Using Gradient-Free Optimization Techniques

Carlotta Sartore, Marco Rando, Giulio Romualdi, Cesare Molinari, Lorenzo Rosasco, Daniele Pucci · DOI

Introduction

Achieving stable bipedal locomotion in humanoid robots remains one of the most significant challenges in robotics engineering. Modern walking architectures typically rely on hierarchical control stacks that decompose the problem into manageable layers, ranging from high-level trajectory planning to low-level joint torque control. However, the performance of these systems is highly sensitive to a large set of "gains" and "weights"—numerical parameters that dictate how the robot balances stability against agility and energy efficiency.

Traditionally, tuning these parameters has been a manual, "black art" process requiring weeks of expert intervention and trial-and-error. While Reinforcement Learning (RL) offers an automated alternative, it often lacks the theoretical stability guarantees inherent in classical control and requires prohibitive amounts of data. This paper proposes a middle ground: maintaining a robust hierarchical control structure while automating the parameter tuning process using gradient-free optimization techniques.

The Hierarchical Control Architecture

The researchers targeted a sophisticated three-layer control stack implemented within the open-source bipedal-locomotion-framework:

  1. Centroidal Model Predictive Control (MPC): This layer plans the necessary contact forces and momentum to maintain balance.
  2. ZMP-CoM Controller: This component computes the required Center of Mass (CoM) velocity based on Zero Moment Point (ZMP) criteria.
  3. Whole-body Quadratic Programming (QP) Kinematic Controller: The final layer translates high-level plans into specific joint velocities and torques.

Across these layers, the authors identified 14 critical parameters that govern the robot's behavior. Because the physics of walking—modeled in the MuJoCo simulator—is non-differentiable and functions as a "black box," traditional gradient-based optimization is inapplicable.

Methodology: Gradient-Free Optimization

To find the optimal configuration for these 14 parameters, the study evaluated four distinct gradient-free (zeroth-order) optimization techniques:

  • Genetic Algorithm (GA): A population-based approach that uses crossover and mutation to evolve superior parameter sets.
  • Covariance Matrix Adaptation Evolution Strategy (CMA-ES): A method that adapts a search distribution to navigate complex landscapes.
  • Evolution Strategy (ES) and Differential Evolution (DE): Alternative evolutionary heuristics used for global optimization.

The optimization was guided by two primary objective functions:

  • Objective $G_1$: Maximizing the duration of the walk without falling (up to a 20-second limit).
  • Objective $G_2$: Maximizing walking time while simultaneously minimizing joint torques to improve energy efficiency.

Experimental Results and Insights

Optimization Performance

The Genetic Algorithm (GA) emerged as the most effective method. While other algorithms like CMA-ES required upwards of 25,000 function evaluations or failed to converge, the GA reached optimal values in approximately 1,500 evaluations for the simple objective ($G_1$) and 10,000 for the multi-objective torque minimization ($G_2$). The use of walking duration as a reward signal proved crucial, providing a sufficiently smooth gradient-like landscape for the optimizer to follow.

Sim-to-Real Transfer

A critical finding of the research was the robustness of the GA-tuned parameters. Parameters optimized in a MuJoCo simulation for a simple straight-line walk were transferred directly to the physical ergoCub humanoid robot. In real-world testing, the robot successfully navigated a complex parabolic path involving arm swinging—a task it had not "seen" during the optimization phase. This suggests that the automated tuning captured fundamental physical stability rather than merely over-fitting to a specific simulation scenario.

Efficiency and Symmetry

When optimizing for $G_2$ (torque minimization), the algorithm naturally converged on solutions that exhibited more symmetric contact forces. This indicates a mathematical link between energy efficiency and the "natural" gait patterns often observed in biological systems.

Conclusion

The proposed framework achieved a 100% success rate in both simulation and real-world validation, significantly outperforming manual tuning. While the researchers noted a high degree of variance in the final parameter sets—suggesting a search space with many local optima—the ability to automate the "black art" of gain tuning represents a major step forward for humanoid deployment.

Future work will focus on expanding this methodology to complex terrains and incorporating more stringent constraints, such as specific walking speeds and higher-fidelity energy metrics, to further refine the robot's performance in unpredictable environments.

Summary updated

BibTeX
@inproceedings{sartore2024automatic,
  author = {Carlotta Sartore and Marco Rando and Giulio Romualdi and Cesare Molinari and Lorenzo Rosasco and Daniele Pucci},
  title = {{Automatic Gain Tuning for Humanoid Robots Walking Architectures Using Gradient-Free Optimization Techniques}},
  booktitle = {Humanoids},
  year = {2024},
  url = {https://openreview.net/forum?id=ag9y8tzgjz},
}
Figure