ECO: Energy-Constrained Optimization with Reinforcement Learning for Humanoid Walking

Weidong Huang, Jingwen Zhang, Jiongye Li, Shibowen Zhang, Jiayang Wu, Jiayi Wang, Hangxin Liu, Yaodong Yang, Yao Su

TL;DR

The paper introduces ECO (Energy-Constrained Optimization), a constrained reinforcement learning framework that treats energy efficiency as an explicit physical constraint rather than a blended reward penalty. By decoupling energy metrics from the main reward function, ECO eliminates tedious hyperparameter tuning and achieves stable, highly energy-efficient walking on the BRUCE humanoid robot, outperforming traditional model predictive control (MPC) and standard RL baselines.

What Problem Does This Paper Address?

Humanoid robots are notoriously power-hungry compared to their biological counterparts, severely limiting their operational range, endurance, and payload capacity.

To make humanoids energy-efficient, roboticists typically rely on Model Predictive Control (MPC) or Reinforcement Learning (RL) with "reward shaping." In standard RL, this means adding negative penalties to the reward function for high joint torques or accelerations. However, balancing these energy penalties against task objectives (like velocity tracking and stability) is a notorious headache. It requires non-intuitive, time-consuming hyperparameter tuning where a single training run can take days. Worse, these conflicting objectives often lead to suboptimal behaviors—either the robot prioritizes stability and wastes energy (e.g., walking with overly flexed knees), or it saves energy but becomes highly unstable.

Methods

ECO addresses this by reformulating humanoid locomotion as a Constrained Markov Decision Process (CMDP). Instead of mixing energy metrics into the reward function, ECO treats them as explicit inequality constraints with real physical units.

The framework utilizes the PPO-Lagrangian algorithm to dynamically balance rewards and constraints. The policy maximizes the main tracking rewards while a set of Lagrange multipliers—optimized via the Adam optimizer—acts as adaptive penalties that scale up only when constraints are violated.

ECO focuses on two primary constraints:

  1. Energy Constraint: A long-term, discounted sum constraint based on the absolute motor power ($\sum | \tau \cdot \dot{q} |$). The threshold (e.g., 60 Joules for a 24-second episode) is found using a straightforward linear search.
  2. Reference Motion Constraint: An average sum constraint utilizing Mirror Loss. This forces the policy to maintain left-right symmetry and gait stability without requiring manually engineered reference trajectories.
Fig. 2: Overview of the training and deployment process in proposed ECO framework. The policy network, taking velocity commands and proprioception data as inputs, outputs desired joint positions at 100Hz to a PD controller, which updates torque commands at 1kHz. The reward critic is trained with privileged observations. The simulator provides the reward, energy cost, and symmetry cost, which are used to compute the reward and cost returns. The policy is then updated using the Lagrangian formulation in Eq. (20) to balance rewards and costs. The trained policy is directly deployed to the real world.

Datasets

Not discussed in the paper. As is standard for reinforcement learning control frameworks, the policy was trained entirely from scratch within a physics simulator (IsaacGym) using parallelized environments and domain randomization, rather than utilizing pre-existing datasets.

Key Insights and Ideas

  • Physical Interpretability over Guesswork: Setting a constraint threshold in Joules or Watts is physically intuitive for an engineer. This is a massive upgrade over standard RL, where researchers must blindly guess abstract reward weights (e.g., -0.01 vs -0.02 for torque penalties).
  • Emergent Bio-Inspired Behaviors: When forced to minimize energy under a strict constraint, the robot naturally discovered energy-saving gaits without explicit programming. It began walking with straighter (more extended) knees and taking lighter steps—mechanisms heavily documented in human biomechanics to minimize the cost of transport.
Comparison of walking gaits
  • The Humanoid Constraint Bottleneck: While quadrupedal robots can easily converge using five or more simultaneous constraints (e.g., self-collision, foot clearance, contact velocity), humanoids have a much smaller stability region. The authors discovered that piling on too many constraints causes humanoid policies to fail to converge, making a minimal two-constraint setup (energy + symmetry) crucial for success.

Key Results

The authors validated ECO through sim-to-sim transfers (testing in MuJoCo and Gazebo) and successfully deployed it directly onto the physical, kid-sized humanoid robot BRUCE.

  • Massive Energy Savings: In real-world hardware deployments, ECO achieved roughly 6x lower energy consumption than MPC and 2.3x lower energy consumption than standard PPO baselines.
  • Robustness Maintained: Despite being optimized for low energy, the ECO policy did not compromise on stability. The robot successfully rejected sudden external force disturbances and successfully traversed unpredictable outdoor terrains like grass and brick pathways.

Limitations and Future Work

The primary limitation of the current ECO framework is its focus on flat-ground locomotion. A highly energy-efficient flat-ground gait inherently favors low foot clearance to save power. However, this strategy fails catastrophically when encountering obstacles or climbing stairs, where high foot lifts are mandatory.

For future work, the authors plan to introduce mode-aware constraints. By integrating a visual encoder or terrain classifier, a hierarchical planner could dynamically relax the energy constraints when rough terrain or stairs are detected, allowing the robot to prioritize safety over energy conservation when the environment demands it.

Summary updated

BibTeX
@article{huang2026eco,
  author = {Weidong Huang and Jingwen Zhang and Jiongye Li and Shibowen Zhang and Jiayang Wu and Jiayi Wang and Hangxin Liu and Yaodong Yang and Yao Su},
  title = {{ECO: Energy-Constrained Optimization with Reinforcement Learning for Humanoid Walking}},
  journal = {IEEE Trans Autom. Sci. Eng.},
  year = {2026},
  doi = {10.1109/tase.2026.3662755},
}
Figure