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.
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$):
- $g_R$: The gradient of the task reward loss.
- $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.
- 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