Adaptive Energy Regularization for Autonomous Gait Transition and Energy-Efficient Quadruped Locomotion

Boyuan Liang, Lingfeng Sun, Xinghao Zhu, Bike Zhang, Ziyin Xiong, Yixiao Wang, Chenran Li, Koushil Sreenath, Masayoshi Tomizuka

TL;DR

By adding an adaptive, distance-averaged energy penalty into reinforcement learning, quadruped robots can autonomously discover and transition between energy-efficient gaits—from four-beat walking to flying trots—across different speeds. This eliminates the need for handcrafted gait schedules or complex reward shaping, enabling a single policy to generalize across speeds, terrains, and even different robot embodiments like the Unitree Go1 and ANYmal-C.

What Problem Does This Paper Address?

Getting legged robots to walk naturally and efficiently across diverse speeds typically demands intricate reward engineering. Standard reinforcement learning (RL) approaches often rely on explicit gait references, contact schedules, or fine-tuned auxiliary penalties (e.g., feet-air time, ground impact limits).

While energy minimization should theoretically induce natural gaits from first principles, standard energy penalties (such as penalizing total motor power $-\tau \dot{q}$) are negatively unbounded and scale inconsistently across different reference velocities. As a result, previous attempts either trained separate policies for individual fixed speeds or required low-level model predictive controllers (MPC) to enforce gait timing. The challenge lies in training a single, end-to-end RL policy that stably tracks a wide range of linear and angular velocities while discovering optimal gaits on its own.

Methods

The authors introduce an adaptive energy regularization term based on the Cost of Transportation (CoT)—energy consumed per unit distance traveled:

  1. Velocity-Normalized Energy Reward ($R_{en}$): Instead of penalizing raw power, the authors divide the mechanical power $\sum_i |\tau_i||\dot{q}_i|$ by a generalized motion distance that accounts for both linear velocity $|v_x|$ and angular velocity $|\omega_z|$: $$R_{en} = \exp\left(-\frac{\sum_i |\tau_i| |\dot{q}_i|}{\sigma_{en,x}|v_x| + \sigma_{en,z}|\omega_z|}\right)$$ Taking the absolute value of joint velocity and torque ensures that negative mechanical work (braking) is not mistakenly rewarded as energy regeneration.

  2. Bounded Exponential Formulation: Both motion tracking ($R_{motion}$) and energy regularization ($R_{en}$) use exponential kernels mapped strictly to $(0, 1]$. This prevents unbounded negative penalties from destabilizing policy optimization and allows a single regularization weight ($\alpha_{en} = 1.0$) to work across speed ranges and platforms.

  3. Auxiliary Rewards: Multiplicative terms $\exp(-R_{aux})$ penalize unsafe behaviors such as limb collisions, out-of-range joint limits, and high-frequency joint oscillations without injecting explicit gait priors.
  4. Training Setup: Policies are trained in Isaac Gym using Proximal Policy Optimization (PPO), a velocity command curriculum, and domain randomization over friction, added base mass ($-0.1$ to $3.0\text{ kg}$), and observation noise.

Datasets

  • Simulation Environments: Built within Isaac Gym using models of the Unitree Go1 and ANYmal-C quadrupeds over flat ground and rough slope terrains (adapted from standard legged_gym environments).
  • Physical Platform: Real-world validation conducted on the Unitree Go1 quadruped robot. (No pre-collected offline datasets were used; data was generated interactively via simulation.)

Key Insights and Ideas

  • Gaits Emerge Strictly from Efficiency: Without predefined leg sequences or contact timing, the robot naturally discovers biological gait transitions as commanded speed increases:
  • $0.0 - 0.4\text{ m/s}$: Four-beat walking.
  • $0.4 - 1.1\text{ m/s}$: Two-beat walking (diagonal leg pairs with four-leg stance phases).
  • $1.1 - 1.7\text{ m/s}$: Standard trotting.
  • $> 1.7\text{ m/s}$: "Fly-trotting" (trotting with observable four-leg flight phases).
  • No Energy Regularization Leads to Bouncing: Setting the energy weight to zero ($\alpha_{en} = 0$) causes the robot to adopt an inefficient, pronounced bouncing gait across the entire velocity envelope.
  • Cross-Embodiment Portability: The identical scaling hyperparameters ($\sigma_{en,x} = 1000$, $\sigma_{en,z} = 500$, $\alpha_{en} = 1.0$) transfer directly between the 12 kg Unitree Go1 and the heavier ANYmal-C platform without manual retuning.

Key Results

  • Cost of Transportation: Adding the adaptive energy term ($\alpha_{en} = 1.0$) drastically lowered CoT across all tested linear velocities ($0.1\text{ m/s}$ to $2.5\text{ m/s}$) and angular velocities (up to $2.5\text{ rad/s}$) compared to unregularized baselines.
  • Hardware Deployment: The single policy ran zero-shot on a physical Unitree Go1 accelerating from $0$ to $2.5\text{ m/s}$ at $0.5\text{ m/s}^2$, reproducing the gait transitions observed in simulation.
  • Obstacle Traversability: On rough terrain, the policy maintained energy-efficient trotting and successfully cleared steps up to $20\text{ cm}$ tall (a significant obstacle relative to the Go1's leg length).

Limitations and Future Work

  • Overtuning Risks: Setting $\alpha_{en}$ too high (e.g., $\alpha_{en} = 1.5$) causes the optimizer to prioritize energy savings over velocity tracking, causing the robot to stop moving at command speeds above $1.9\text{ m/s}$.
  • Auxiliary Rewards Still Required: Energy minimization alone is insufficient to prevent awkward joint limits or limb scuffing; small safety-oriented auxiliary terms ($R_{aux}$) remain necessary.
  • Future Directions: The authors plan to extend this velocity-normalized, energy-centric reward principle beyond locomotion to robotic manipulation and interactive whole-body control tasks.

Summary updated

BibTeX
@inproceedings{liang2025adaptive,
  author = {Boyuan Liang and Lingfeng Sun and Xinghao Zhu and Bike Zhang and Ziyin Xiong and Yixiao Wang and Chenran Li and Koushil Sreenath and Masayoshi Tomizuka},
  title = {{Adaptive Energy Regularization for Autonomous Gait Transition and Energy-Efficient Quadruped Locomotion}},
  booktitle = {Safe-VLM @ ICRA},
  year = {2025},
  url = {https://openreview.net/forum?id=zJqysFQFvi},
}
Figure