Lifelike Agility and Play on Quadrupedal Robots using Reinforcement Learning and Generative Pre-trained Models

Lei Han, Qingxu Zhu, Jiapeng Sheng, Chong Zhang, Tingguang Li, Yizheng Zhang, He Zhang, Yuzhen Liu, Cheng Zhou, Rui Zhao, Jie Li, Yufeng Zhang, Rui Wang, Wanchao Chi, Xiong Li, Yonghui Zhu, Lingzhu Xiang, Teng Xiao, Zhengyou ZhangResearch Square 2023

Abstract

Summarizing knowledge from animals and human beings inspires robotic innovations. In this work, we propose a framework for driving legged robots act like real animals with lifelike agility and strategy in complex environments. Inspired by large pre-trained models witnessed with impressive performance in language and image understanding, we introduce the power of advanced deep generative models to produce motor control signals stimulating legged robots to act like real animals. Unlike conventional controllers and end-to-end RL methods that are task-specific, we propose to pre-train generative models over animal motion datasets to preserve expressive knowledge of animal behavior. The pre-trained model holds sufficient primitive-level knowledge yet is environment-agnostic. It is then reused for a successive stage of learning to align with the environments by traversing a number of challenging obstacles that are rarely considered in previous approaches, including creeping through narrow spaces, jumping over hurdles, freerunning over scattered blocks, etc. These traversing capabilities are kept as reusable parameters at environmental-level, again. Finally, a task-specific controller is trained to solve complex downstream tasks by reusing the knowledge from previous stages, while the strategic-level knowledge for solving the task is preserved as reusable parameters, once again. Enriching the knowledge regarding each stage does not affect the usage of other levels of knowledge. This flexible framework offers the possibility of continual knowledge accumulation at different levels. We successfully apply the trained multi-level controllers to the MAX robot, a quadrupedal robot developed in-house, to mimic animals, traverse complex obstacles, and play in a designed challenging multi-agent Chase Tag Game, where lifelike agility and strategy emerge on the robots. The present research pushes the frontier of robot control with new insights on reusing multi-level pre-trained knowledge and solving highly complex downstream tasks in the real world.

Introduction

Traditional robot control typically falls into two camps: hand-engineered controllers that are stable but stiff, or end-to-end reinforcement learning (RL) that is flexible but often results in "robotic," unnatural movements. Furthermore, training a robot to solve a complex task from scratch is computationally expensive and often fails to generalize to new obstacles.

This paper presents a hierarchical RL framework that brings the "pre-train and fine-tune" paradigm from Large Language Models (LLMs) to the world of robotics. By decoupling motor primitives, environmental adaptation, and high-level strategy, researchers from Tencent Robotics X have enabled their "MAX" quadrupedal robot to move with the grace of a real animal while solving complex, multi-agent tasks.

Methodology: The Three-Tier Hierarchy

The researchers proposed a three-tier hierarchy to capture and reuse "expressive knowledge" of animal motion:

  1. Primitive-Level (VQ-PMC): Using motion capture data from a Labrador retriever, the team trained a Vector Quantised Primitive Motor Control (VQ-PMC) model. Similar to a VQ-VAE, this model compresses complex animal motions into a library of discrete "latent embeddings," creating a vocabulary of movement.
  2. Environmental-Level (EPMC): The robot's "vocabulary" is used to train an environmental-level network. This layer integrates sensory data (LIDAR, depth maps) to select appropriate motor primitives for navigating obstacles like stairs, hurdles, and narrow gaps.
  3. Strategic-Level (SEPMC): A high-level LSTM controller handles task-specific logic. For the "Chase Tag" game, this layer decides movement based on opponent positions, while lower layers handle agile execution.
The hierarchical framework: Stage 1 pre-trains motor primitives; Stage 2 aligns them with environmental obstacles; Stage 3 applies them to strategic tasks like Chase Tag.

A key technical highlight is Multi-Expert Distillation, which allows the robot to compress specialized skills (like creeping or jumping) into a single, versatile controller without losing performance across different terrains.

Key Insights: Discrete Latents and Knowledge Decoupling

The study revealed that using discrete latent embeddings (VQ-PMC) outperformed standard continuous Gaussian spaces. Discrete codes better capture the distinct "modes" of animal behavior, preventing the "blurry" or averaged-out movements often seen in continuous models. Furthermore, by freezing the weights of the primitive layer while training the strategic layer, the researchers ensured that the robot never "forgot" how to move like an animal, even when learning aggressive competitive strategies.

Experimental Results and Emergent Strategy

The MAX robot successfully traversed 18cm stairs and 25cm narrow spaces—obstacles rarely handled by "natural-looking" controllers. In the Chase Tag game, the RL-trained SEPMC outperformed a human-operated controller with a 2-0 win record, demonstrating that the AI's agility and reaction time exceeded human capability.

Real-world deployment on the MAX robot (A), training reward curves (B), and t-SNE visualization of the discrete latent space (C) showing distinct clusters for different gaits.

Perhaps most surprisingly, the robots developed lifelike strategies not explicitly programmed. For example, the "chaser" robot learned to "pounce" like a predator when close to its prey, and the "evader" learned to use obstacles to break the chaser's line of sight.

Conclusion

While the framework demonstrates impressive agility, a primary limitation remains the robot's sensing bottleneck. Performance is most stable under high-precision Motion Capture systems; onboard depth cameras introduce noise that can affect stability. Future work will focus on developing more robust onboard sensing and exploring ways to extract motion data from massive online video libraries to further scale the "foundation model" for robotic motion.

Summary updated

Abstract

<title>Abstract</title> Summarizing knowledge from animals and human beings inspires robotic innovations. In this work, we propose a framework for driving legged robots act like real animals with lifelike agility and strategy in complex environments. Inspired by large pre-trained models witnessed with impressive performance in language and image understanding, we introduce the power of advanced deep generative models to produce motor control signals stimulating legged robots to act like real animals. Unlike conventional controllers and end-to-end RL methods that are task-specific, we propose to pre-train generative models over animal motion datasets to preserve expressive knowledge of animal behavior. The pre-trained model holds sufficient primitive-level knowledge yet is environment-agnostic. It is then reused for a successive stage of learning to align with the environments by traversing a number of challenging obstacles that are rarely considered in previous approaches, including creeping through narrow spaces, jumping over hurdles, freerunning over scattered blocks, etc. These traversing capabilities are kept as reusable parameters at environmental-level, again. Finally, a task-specific controller is trained to solve complex downstream tasks by reusing the knowledge from previous stages, while the strategic-level knowledge for solving the task is preserved as reusable parameters, once again. Enriching the knowledge regarding each stage does not affect the usage of other levels of knowledge. This flexible framework offers the possibility of continual knowledge accumulation at different levels. We successfully apply the trained multi-level controllers to the MAX robot, a quadrupedal robot developed in-house, to mimic animals, traverse complex obstacles, and play in a designed challenging multi-agent Chase Tag Game, where lifelike agility and strategy emerge on the robots.<sup>1</sup> The present research pushes the frontier of robot control with new insights on reusing multi-level pre-trained knowledge and solving highly complex downstream tasks in the real world.
BibTeX
@inproceedings{han2023lifelike,
  author = {Lei Han and Qingxu Zhu and Jiapeng Sheng and Chong Zhang and Tingguang Li and Yizheng Zhang and He Zhang and Yuzhen Liu and Cheng Zhou and Rui Zhao and Jie Li and Yufeng Zhang and Rui Wang and Wanchao Chi and Xiong Li and Yonghui Zhu and Lingzhu Xiang and Teng Xiao and Zhengyou Zhang},
  title = {{Lifelike Agility and Play on Quadrupedal Robots using Reinforcement Learning and Generative Pre-trained Models}},
  booktitle = {Research Square},
  year = {2023},
  doi = {10.21203/rs.3.rs-3309878/v1},
}
Figure