Non-conflicting Energy Minimization in Reinforcement Learning based Robot Control

Skand Peri, Akhil Perincherry, Bikram Pandit, Stefan Lee

TL;DR

This paper introduces PEGrad (Projecting Energy Gradients), a hyperparameter-free optimization method that minimizes a robot's energy consumption without compromising its task performance. By projecting energy minimization gradients onto the orthogonal subspace of task reward gradients, PEGrad ensures that energy-saving adjustments only occur along the "level-sets" of the reward function, achieving an average of 64% energy reduction in simulation and successful Sim2Real transfer.

What Problem Does This Paper Address?

Untethered robots, such as quadrupeds and humanoids, are strictly limited by battery capacity, often operating for only a few hours per charge. To maximize deployment duration, reinforcement learning (RL) controllers must minimize energy expenditure (like joint torques) while successfully completing tasks (like walking or running).

The standard approach to this problem is reward shaping, combining objectives into a weighted sum: $$r = r_{\text{task}} + \lambda r_{\text{energy}}$$

However, tuning the scalar $\lambda$ is notoriously difficult. If $\lambda$ is too low, the robot wastes battery; if it is too high, the energy penalty dominates, causing the robot to adopt sluggish or completely dysfunctional behaviors (e.g., crawling instead of running). Furthermore, the optimal $\lambda$ varies wildly across different robot designs, environments, and tasks, requiring tedious manual tuning for every new setup.

Figure 1: RL control policies often optimize a weighted combination of task reward and energy penalties, i.e., rtask + λrenergy. However, tuning the weighting factor λ is challenging due to high variability in its optimal value across tasks, environments, and embodiments. (Left) When a Soft Actor Critic (SAC) agent is trained on the dog-run task, λ=0.01 and λ=0.1 result in significantly different performance – with the policy at λ=0.1 achieving low returns by crawling rather than running. However, λ=0.1 works well in the less dynamic dog-walk environment (Not shown). (Right) For a humanoid sitting task, both λ=0.01 and 0.1 yield policies that are equally energy- efficient and task-effective, showcasing the inter-environment variability. In both cases, our pro- posed hyperparameter-free method, PEGrad (⋆), leads to performant and energy efficient policies. (The lightly shaded markers represent the checkpoint with the highest average evaluation score over 50 episodes, while the solid markers indicate the overall average value across all runs.)

Methods

The authors propose PEGrad, a hyperparameter-free gradient manipulation method inspired by multi-task learning. Instead of blending rewards, PEGrad treats task performance and energy minimization as separate, prioritized objectives.

During policy optimization, the algorithm computes two distinct gradients with respect to the policy parameters ($\theta$):

  1. $g_R$: The gradient of the task reward loss.
  2. $g_E$: The gradient of the energy expenditure loss.

To ensure that energy minimization never interferes with the main task, PEGrad projects $g_E$ onto the orthogonal subspace of $g_R$. According to a first-order Taylor approximation, moving the policy parameters in a direction orthogonal to $g_R$ results in zero change to the task reward.

The modified descent direction $d$ is formulated as: $$d = -\alpha g_R - \beta g_{E\perp R}$$

Where $g_{E\perp R}$ is the orthogonal component of the energy gradient, $\alpha$ is the standard learning rate, and $\beta$ is an adaptively scaled step size. The adaptive scaling ensures that the magnitude of the energy update never overpowers the task update. This method can be easily integrated into standard actor-critic RL pipelines like Soft Actor-Critic (SAC) and Proximal Policy Optimization (PPO) with minimal code modifications.

Datasets & Benchmarks

The authors evaluated PEGrad across 10 simulation tasks and a real-world robotic deployment:

  • DM-Control Suite: Evaluated on the Quadruped (Walk, Run) and the highly complex 38-DoF Dog embodiment (Stand, Walk, Run, Trot).
  • HumanoidBench: Evaluated on the Unitree H1 humanoid robot across four fundamental locomotion tasks (Stand, Walk, Run, Sit).
  • Sim2Real Deployment: Tested on a physical Unitree Go2 quadruped robot for Standing and Walking (SaW) control, trained using IsaacLab and the Adversarial Motion Prior (AMP) framework.

Key Insights and Ideas

  • Strict Priority Ordering: Unlike existing multi-task gradient surgery methods (like PCGrad) which only alter gradients when they directly conflict (negative cosine similarity), PEGrad always projects the subordinate gradient. This explicitly prioritizes task completion over energy savings at all times.
  • Energy Minimization as a Regularizer: Surprisingly, the authors found that minimizing energy objectives can actually improve sample efficiency in complex tasks (like humanoid running). By penalizing erratic, high-energy joint movements, PEGrad effectively guides the policy search away from chaotic, non-functional spaces.
  • Level-Set Traversal: The core mathematical intuition is that PEGrad forces the policy to explore the "level-sets" (regions of equal performance) of the task reward function to find the most energy-efficient parameter configuration.

Key Results

  • Simulation Performance: Across DM-Control and HumanoidBench, PEGrad achieved an average 64% reduction in energy usage (measured as the sum of absolute torques) compared to vanilla RL ($\lambda=0$), while maintaining or exceeding task performance.
Figure 2: DMControl Suite Results: We show results on six tasks from DMControl suite [11]. Low applied torque and higher returns are better.Across all tasks, PEGrad achieves high task perfor- mant policies that are also energy-efficient. For 4 out of 6 tasks, PEGrad achieves results beyond the Pareto front identified by adjusting λ.
  • Sim2Real Efficiency: When deployed on the physical Unitree Go2 quadruped, the PEGrad policy successfully transferred from simulation to reality. In walking tests, PEGrad was 19.74% more efficient in battery current draw and applied 15.8% less net torque than a meticulously hand-tuned multi-objective baseline.

Limitations and Future Work

A key limitation highlighted by the authors is the interplay with style rewards. When PEGrad is used without a motion prior or style constraint (like AMP), the energy minimization objective can exploit loopholes in the simulator to find bizarre, unsafe local minima. For example, one policy learned to maximize its base height to reduce per-step torque, resulting in tiny, rapid, unstable steps. Another policy learned a "dragging behavior" where two legs did all the work while the other two dragged behind.

As a future direction, the authors suggest extending PEGrad recursively to handle a larger hierarchy of multiple prioritized objectives (e.g., Task Success > Safety/Style > Energy Minimization), each utilizing its own separate critic network.

Summary updated

Abstract

Efficient robot control often requires balancing task performance with energy expenditure. A common approach in reinforcement learning (RL) is to penalize energy use directly as part of the reward function. This requires carefully tuning weight terms to avoid undesirable trade-offs where energy minimization harms task success. In this work, we propose a hyperparameter-free gradient optimization method to minimize energy expenditure without conflicting with task performance. Inspired by recent works in multitask learning, our method applies policy gradient projection between task and energy objectives to derive policy updates that minimize energy expenditure in ways that do not impact task performance. We evaluate this technique on standard locomotion benchmarks of DM-Control and HumanoidBench and demonstrate a reduction of 64% energy usage while maintaining comparable task performance. Further, we conduct experiments on a Unitree GO2 quadruped showcasing Sim2Real transfer of energy efficient policies. Our method is easy to implement in standard RL pipelines with minimal code changes, is applicable to any policy gradient method, and offers a principled alternative to reward shaping for energy efficient control policies.
BibTeX
@inproceedings{peri2025non,
  author = {Skand Peri and Akhil Perincherry and Bikram Pandit and Stefan Lee},
  title = {{Non-conflicting Energy Minimization in Reinforcement Learning based Robot Control}},
  booktitle = {Conference on Robot Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=kUA2ec94LI},
}
Figure