Abstract
This study develops a hierarchical learning and optimization framework that can learn and achieve well-coordinated multi-skill locomotion. The learned multi-skill policy can switch between skills automatically and naturally while tracking arbitrarily positioned goals and can recover from failures promptly. The proposed framework is composed of a deep reinforcement learning process and an optimization process. First, the contact pattern is incorporated into the reward terms to learn different types of gaits as separate policies without the need for any other references. Then, a higher-level policy is learned to generate weights for individual policies to compose multi-skill locomotion in a goal-tracking task setting. Skills are automatically and naturally switched according to the distance to the goal. The appropriate distances for skill switching are incorporated into the reward calculation for learning the high-level policy and are updated by an outer optimization loop as learning progresses. We first demonstrate successful multi-skill locomotion in comprehensive tasks on a simulated Unitree A1 quadruped robot. We also deploy the learned policy in the real world, showcasing trotting, bounding, galloping, and their natural transitions as the goal position changes. Moreover, the learned policy can react to unexpected failures at any time, perform prompt recovery, and successfully resume locomotion. Compared to baselines, our proposed approach achieves all the learned agile skills with improved learning performance, enabling smoother and more continuous skill transitions.
Introduction
Achieving the fluid agility of biological animals remains a significant hurdle for modern quadruped robots. Most current approaches rely on imitation learning, where robots mimic pre-recorded motion data. However, these methods are often limited by dataset quality and struggle with "out-of-distribution" scenarios, such as recovering from a fall. Furthermore, switching between different gaits (e.g., from a stable trot to a high-speed gallop) typically requires human engineers to hand-code specific velocity thresholds, which can lead to jerky transitions or mechanical instability.
This research addresses these challenges by proposing a framework that allows a robot to learn not just the skills themselves, but also the optimal criteria for when to use them, purely through trial and error.
Methodology
The authors developed a nested, hierarchical learning and optimization framework consisting of four key components:
- Low-Level Individual Skills: Using the Soft Actor-Critic (SAC) algorithm, separate neural network policies were trained for five skills: fall recovery, trotting, pacing, bounding, and galloping. Instead of reference motions, "contact patterns" (specifying foot-ground timing) were used as reward signals.
- High-Level Gating Network: A "manager" network learns to assign weights to these low-level skills based on the robot's state and its distance to a target goal.
- Multiplicative Composite Policy: To avoid the "blending artifacts" that cause stumbling during transitions, the framework uses multiplicative composition. This treats each skill as a Gaussian distribution and mathematically blends them into a single composite policy.
- Outer Loop Optimization (CMA-ES): An evolutionary strategy called CMA-ES runs outside the reinforcement learning process. it treats the "switching distances" as variables to be optimized, discovering the values that maximize overall stability and reward.
To bridge the sim-to-real gap, the team trained a velocity estimator on 215,000 pairs of simulated sensor data, allowing the robot to estimate its linear velocity in the real world without perfect ground-truth data.
Key Results
The system was successfully deployed on a physical Unitree A1 robot, demonstrating smooth, natural transitions between trotting, bounding, and galloping as the distance to the goal changed.
Key findings include:
- Auto-Discovery of Thresholds: The system autonomously discovered optimal transition points that maximized stability and speed, outperforming hand-coded thresholds.
- High-Speed Agility: The robot achieved stable high-speed galloping, a gait notoriously difficult to stabilize without reference motions.
- Integrated Robustness: By including fall recovery as a blendable skill, the robot could naturally transition from a tumble back into a trot as part of its goal-seeking behavior without needing a separate "recovery mode."
Conclusion and Future Work
This framework demonstrates that robots can "discover" optimal behavioral transitions through a combination of reinforcement learning and evolutionary optimization. While the real-world A1 robot faced some stability challenges during sustained galloping due to hardware factors like foot pad deformation and sensor noise, the approach provides a robust path forward for agile locomotion. Future work will focus on resolving these hardware-related stability issues and expanding the framework to include more complex skills like jumping or climbing.
Summary updated