# Energy-Efficient Gait Adaptation via Hierarchical Reinforcement Learning for Quadrupedal Locomotion Across Diverse Terrains

Robotics.world

> End-to-end reinforcement learning policies for quadruped robots must simultaneously generate a gait, stabilize the body, track a commanded velocity, and save energy, all through one reward function…

**arXiv**: 2610.10297 · Preprint · not peer-reviewed

**Published**: 2026-10-07

**Authors**: Ammar Issa, Anubhav Singh, Anton Tsaritsin, Sergey Kolyubin

## In plain words

End-to-end reinforcement learning policies for quadruped robots must simultaneously generate a gait, stabilize the body, track a commanded velocity, and save energy, all through one reward function, which makes them brittle and hard to interpret.

## AI summary

## Overview

**Research area:** Legged robotics / reinforcement learning for quadruped locomotion control, with a focus on energy efficiency (cost of transport) and gait adaptation.

**Technical level:** Intermediate. Readers should be comfortable with reinforcement learning basics (policies, rewards, PPO, actor-critic) and standard quadruped terminology (trot, pace, stance/swing phase), but the hierarchical split is explained in accessible terms.

**Scope:** The paper proposes a two-level learned controller in which a slow "gait" policy continuously tunes interpretable gait parameters while a fast, frozen joint-level policy executes them, and it evaluates energy use, tracking, and robustness in simulation plus zero-shot hardware deployment on a Unitree AlienGo.

## What This Paper Is About

End-to-end reinforcement learning policies for quadruped robots must simultaneously generate a gait, stabilize the body, track a commanded velocity, and save energy, all through one reward function, which makes them brittle and hard to interpret. This paper instead splits the job: a low-frequency high-level policy chooses gait parameters (timing offsets, stepping frequency, body height, stance geometry, swing height, stance duration), and a high-frequency low-level policy turns those into joint commands. The goal is locomotion that stays robust across speeds and terrains while explicitly minimizing cost of transport, without hand-coded gait switches or a predefined gait library.

## Key Contributions

1. A hierarchical RL framework that separates low-frequency gait adaptation from high-frequency velocity tracking and stabilization, followed by a post-training finetuning stage for the low-level policy.
2. A high-level reward that explicitly incorporates cost-of-transport-related energy optimization, enabling continuous (not discrete) modulation of gait parameters.
3. An evaluation of tracking performance and CoT across commanded speeds and across flat, uneven rough, and inclined terrain, compared against single-policy and hierarchical locomotion baselines.
4. Zero-shot deployment on a physical Unitree AlienGo quadruped, including slope traversal up to 20 degrees, the maximum training inclination.

## Main Findings

- **Three-stage training works without joint training:** Stage 1 trains the low-level policy on flat terrain following the multiplicity-of-behavior (MoB) framework; Stage 2 freezes it and trains the high-level policy on rough and inclined terrain; Stage 3 briefly finetunes the low-level policy with the high-level policy frozen.
- **Automatic speed-dependent gait change:** Contact-state plots show the hierarchy converging on a pacing-like gait with extended stance durations at low speed, a four-beat walking gait at moderate velocity, and trotting at higher speeds, with no explicit switching rules.
- **Terrain changes alter posture, not mainly timing:** During a flat-to-20-degree-uphill transition at a fixed 1.0 m/s command, realized body height and stance length decrease while body pitch and stance width increase, then settle at a new operating region. Timing parameters (stepping frequency, inter-leg offsets, stance duration) vary mainly with velocity.
- **Lower CoT than three baselines in simulation on Unitree Go1:** Against Walk These Ways (WTW) fixed trotting, Adaptive Energy Regularization (AER) with alpha = 1, and Fast & Efficient (F&E), the method reports lower CoT in the mid-to-high velocity range. For example, in the (1.0, 1.5] m/s interval the reported CoT is 0.384 ± 0.004 versus 0.680 ± 0.019 for WTW-Trotting, 0.681 ± 0.022 for AER, and 1.240 ± 0.078 for F&E. AER is lower at the lowest speeds (0.572 ± 0.021 versus 0.762 ± 0.198 in the (0.0, 0.5] m/s interval).
- **Reported average CoT reductions:** 27.7% versus AER, 33.5% versus WTW, and 70.5% versus F&E.
- **Robustness in stress-tested simulation:** Across 500 runs per terrain and velocity interval with friction and restitution uniformly randomized in [0, 1], fall rates were 0.0% on flat terrain in all intervals, 0.0% on rough terrain except 0.6% in (1.5, 2.0] m/s, and on slopes 2.4%, 0.4%, 0.0%, and 0.2% across the four intervals. The authors attribute the higher low-speed slope fall rate to reduced momentum and longer support phases.
- **The energy reward is what produces efficiency:** Removing the high-level energy term raises CoT dramatically — for example, from 1.249 ± 0.486 to 17.118 ± 8.179 in the (0, 0.5] m/s interval when testing on flat terrain, and from 1.846 ± 1.333 to 37.114 ± 37.478 on rough terrain.
- **Training terrain matters for the high-level policy:** A high-level policy trained only on flat terrain and deployed zero-shot on rough terrain reaches CoT 5.029 versus 1.846 for the complex-terrain-trained policy in the (0, 0.5] m/s interval.
- **Finetuning improves velocity tracking:** The third stage reduces RMSE from 0.165 to 0.039 m/s on flat terrain and from 0.182 to 0.047 m/s on rough terrain, with the largest gains above 1.0 m/s.
- **Hardware deployment succeeded without finetuning on the robot:** Zero-shot on the AlienGo with joint-space PD control (Kp = 50, Kd = 2), the robot completed all 10 trials on flat, inclined, and uneven rough terrain without falls, and reproduced the simulation's gait-transition-versus-velocity behavior.
- **End-to-end energy shaping is fragile:** An AER-style end-to-end policy on AlienGo with energy weight alpha = 0.5 produced a crouched, unstable posture with insufficient torque to support the robot, even though AER behaved stably on the smaller Go1 with alpha up to 1.0.

## Methodology in Plain English

The controller is split into two policies that run at different rates. The fast policy sees 58-dimensional observations (projected gravity, commanded velocities and gait parameters, joint offsets, joint velocities, previous actions, and four phase-clock signals) with a history of 5 observation frames, and outputs 12 desired joint positions for a PD controller. It runs every 0.02 s. The slow policy runs every 0.5 s, i.e. once per 25 fast steps, and outputs an 11-dimensional gait command: three inter-leg timing offsets, stepping frequency, body height, body roll, body pitch, stance length, stance width, foot-swing height, and stance duration. These timing offsets implicitly encode gaits like pronking, trotting, pacing, and bounding while allowing smooth interpolation.

The slow policy's state is deliberately compact (6 numbers): averaged body-frame forward and lateral velocity, averaged yaw rate, and the gravity vector, all aggregated over the 25 fast steps. Commanded velocities are withheld from the actor and given only to a critic in an asymmetric actor-critic setup, so gait modulation is driven by realized motion rather than desired commands.

Rewards are layered. The slow policy gets a reward combining an exponential energy term built from summed absolute joint mechanical power over the 25 steps, normalized by a weighted sum of forward speed and yaw rate; a penalty of 0.1 times the squared change in gait command for smoothness; and a small 0.002-weighted share of the accumulated fast-policy reward, which prevents energy minimization through crouching or poor tracking. The fast policy's auxiliary rewards tie each commanded gait parameter to a measurable behavior (orientation, foot clearance, body height, contact force, contact velocity, and a Raibert-style foothold target), with body-height references of 0.51 m for AlienGo and 0.30 m for Go1. No energy shaping is added at the fast level.

Training uses NVIDIA Isaac Gym with PPO across 4096 parallel environments. Stage 1 trains the fast policy on flat terrain with curriculum learning. Stage 2 freezes it and trains the slow policy on randomly generated flat, rough (heights uniformly sampled between 0 and 10 cm), and inclined terrain (angles randomly chosen from 0.2, 0.3, or 0.36 rad), with velocity curriculum disabled. Stage 3 briefly finetunes the fast policy on the same complex terrain with the slow policy frozen. Energy efficiency is measured with cost of transport, the sum of absolute joint mechanical power divided by weight times forward velocity, with metrics computed after an initial transient.

## Why This Matters

Coupling gait selection and energy optimization inside one flat reward makes efficient legged locomotion hard to tune and hard to interpret; this work shows that putting energy optimization at a slower, structured decision layer produces large efficiency gains while keeping the fast stabilization layer untouched and reusable. That separation also gives an interpretable interface — eleven gait parameters — that engineers can reason about, and it appears to make the policy robust enough for zero-shot hardware transfer.

Real-world applications:

- **Long-duration inspection and monitoring robots** where battery life limits mission range and cost of transport translates directly into operating time.
- **Search-and-rescue or disaster-response quadrupeds** that must keep moving across flat, rough, and sloped ground while conserving power far from a charging station.
- **Agricultural and outdoor survey platforms** traversing uneven fields and inclines at varying speeds.
- **Delivery and logistics legged platforms** where energy per meter is a primary cost driver alongside speed.

Industry relevance: the paper's comparison against Walk These Ways, AER, and Fast & Efficient places it within the current benchmark landscape for learned locomotion, and its demonstration that an end-to-end energy penalty destabilized a larger robot (AlienGo at alpha = 0.5) while the hierarchical version remained stable is a practical argument for layered architectures in commercial deployment.

## Future Directions

- **Adaptive high-level update rates and decimation strategies:** the authors identify the low high-level update frequency and sensitivity to the decimation factor as the main limit on responsiveness to rapid terrain changes.
- **Adding vision-based perception to the hierarchy:** exteroceptive terrain information could enable the high-level policy to exploit more of the gait-command space for large irregular obstacles, stair-like structures, and steep slopes.
- **Testing whether perception can expand traversable terrain without raising CoT:** the authors explicitly frame this as an open trade-off, since widening the high-level policy's scope may increase energy consumption.
- **Reducing dependence on low-level robustness:** execution and estimation errors propagate through the hierarchy, so improving or verifying the fast policy remains a concern.

## Target Audience

Robotics researchers and graduate students working on legged locomotion, hierarchical reinforcement learning, or sim-to-real transfer; control engineers evaluating whether layered learned controllers can meet energy budgets on real quadrupeds; and practitioners in industry who need interpretable, energy-efficient locomotion policies they can deploy on hardware without per-robot tuning.

## Authors’ abstract

While energy efficiency is a critical objective for legged-robot locomotion control, achieving low energy consumption while maintaining robust performance across different velocity ranges and terrain conditions remains a key challenge. This is particularly true for end-to-end RL policies, where gait generation, motion execution, and energy optimization are tightly coupled, leading to high sensitivity to reward design. In this work, we propose a hierarchical reinforcement…

[The full abstract on arXiv](https://arxiv.org/abs/2610.10297)

[Read the original paper](https://arxiv.org/abs/2610.10297)

## Related papers

- [ActTune: Action-Aware Precision and GPU Operating-Point Adaptation for Energy-Efficient Vision-Language-Action Inference](https://robotics.world/paper/acttune-action-aware-precision-and-gpu-operating-point-adaptation-for-2610.08444) 2026-10-06 · cs.RO · Key terms of the title in common
- [SkateNav: Learning Energy-Efficient Navigation through Adaptive Skating on Passive-Wheel Quadrupedal Robots](https://robotics.world/paper/skatenav-learning-energy-efficient-navigation-through-adaptive-skating-2610.25962) 2026-10-19 · cs.RO · Key terms of the title in common
- [DAVIO: Dense Monocular-Inertial SLAM with Feed-Forward Initialization and Pose-Conditioned Mapping](https://robotics.world/paper/davio-dense-monocular-inertial-slam-with-feed-forward-initialization-2609.27702) 2026-09-23 · cs.RO · Also by Sergey Kolyubin
- [Duty Factor Predicts Robust Constrained Quadrupedal Locomotion Across Gait Types](https://robotics.world/paper/duty-factor-predicts-robust-constrained-quadrupedal-locomotion-across-2609.22073) 2026-09-18 · cs.RO · Key terms of the title in common
- [Learning Fault-Tolerant Locomotion with Adaptive Gait Timing](https://robotics.world/paper/learning-fault-tolerant-locomotion-with-adaptive-gait-timing-2608.07328) 2026-08-07 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/energy-efficient-gait-adaptation-via-hierarchical-reinforcement-2610.10297
