Motion Priors Reimagined: Adapting Flat-Terrain Skills for Complex Quadruped Mobility

Zewei Zhang, Chenhao Li, Takahiro Miki, Marco Hutter · DOI

Introduction

Training legged robots to move naturally is a significant challenge in robotics. While standard reinforcement learning (RL) can achieve functional locomotion, it often requires extensive "reward engineering" to prevent unnatural, jittery movements. Conversely, motion imitation—training robots to mimic animal motion capture data—produces lifelike movement but typically fails when the robot encounters terrain more complex than a flat laboratory floor. This "covariate shift" between flat-ground training and rugged real-world environments causes imitation policies to break down. This research introduces a hierarchical RL framework that preserves the graceful "style" of animal movement while providing the "grit" necessary to navigate stairs, slopes, and obstacles without complex reward functions.

Methodology

The proposed framework utilizes a four-stage hierarchical pipeline to bridge the gap between animal-like motion priors and complex terrain navigation.

The four-stage hierarchical pipeline: Motion Processing, Pre-Training, Task Training, and Policy Distillation.
  1. Motion Processing: Raw animal motion capture data (walking, pacing, cantering) is retargeted to the kinematic structure of the ANYmal-D robot.
  2. Pre-training (The Priors): A low-level policy and a Fourier Latent Dynamics (FLD) encoder are trained on flat ground. The encoder compresses complex motions into a low-dimensional latent space, teaching the robot the fundamental "style" of animal movement.
  3. Task Training (The Teacher): A high-level "teacher" policy is trained in simulation on rough terrain. It selects gaits via latent commands to the low-level policy and calculates joint residuals—small adjustments to joint angles that help the robot compensate for uneven ground.
  4. Policy Distillation (The Student): The teacher’s knowledge is distilled into a student policy capable of handling noisy real-world sensor data (LiDAR and proprioception) using a belief encoder (Gated Recurrent Unit).

Key Insights

  • Residuals as a Bridge: By separating "style" (low-level prior) from "stability" (high-level residual), the robot can adapt its learned behaviors to new challenges without losing its natural movement patterns.
  • The Penalty Tradeoff: A "Goldilocks zone" exists for penalizing residual actions. Excessive penalties force the robot to stick too strictly to the prior (failing on obstacles), while insufficient penalties lead to the abandonment of the prior in favor of efficient but "robotic" jumping gaits.
  • Inherent Regularization: Using motion priors reduces the need for manual reward tuning. The prior's inherent smoothness eliminates the need for standard penalties on base acceleration or vertical velocity.
  • Emergent Navigation: The robot demonstrates local navigation, such as obstacle avoidance, as an emergent property of the locomotion policy rather than requiring a separate path planner.

Results and Deployment

The framework was successfully deployed on an ANYmal-D robot in various indoor and outdoor environments, including stairs and random obstacles.

ANYmal-D robot navigating complex terrains including stairs, obstacles, and outdoor slopes using the learned motion priors.

In simulation, the policy achieved success rates of 84-85% on 0.25m stairs and 90-95% on 24-degree slopes. Furthermore, models trained with motion priors exhibited a significantly lower Cost of Transport (CoT) compared to baselines trained from scratch, as the priors naturally steer the robot away from energy-inefficient movements. Real-world testing confirmed that the high-level policy "works harder" (increasing joint residual variance) only when terrain difficulty increases, maintaining efficiency on simpler paths.

Limitations and Future Work

While successful, the framework faces challenges such as "mode collapse," where the high-level policy may favor a single gait over the full library of available motions. Current work is also limited to steady-state locomotion; future research will explore dynamic maneuvers like jumping across gaps or crawling. Additionally, testing in more extreme environments requiring precise foot placement remains a goal for future development.

Summary updated

BibTeX
@inproceedings{zhang2025motion,
  author = {Zewei Zhang and Chenhao Li and Takahiro Miki and Marco Hutter},
  title = {{Motion Priors Reimagined: Adapting Flat-Terrain Skills for Complex Quadruped Mobility}},
  booktitle = {Conference on Robot Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=JXBm4Xfrvj},
}
Figure