SayTap: Language to Quadrupedal Locomotion

Yujin Tang, Wenhao Yu, Jie Tan, Heiga Zen, Aleksandra Faust, Tatsuya Harada · DOI

Abstract

SayTap introduces a novel approach to quadrupedal locomotion by using foot contact patterns as a bridge between high-level natural language instructions and low-level motor control. By leveraging Large Language Models (LLMs) to translate human commands into binary contact sequences, the system enables robots to execute diverse and expressive behaviors—such as "happy" jumping or "limping"—that are traditionally difficult to program. This framework decouples high-level reasoning from physical execution, allowing for robust, zero-shot sim-to-real transfer and a significant increase in gait expressiveness.

Introduction

While Large Language Models (LLMs) have demonstrated remarkable capabilities in high-level reasoning and planning, applying them to the low-level control of legged robots remains a significant challenge. The high frequency required for motor torque commands (often 50Hz or higher) and the complex physics of unstable robotic systems are beyond the direct output capabilities of current text-based models.

Existing solutions typically rely on high-level APIs, such as a pre-programmed walk() function. While these methods ensure safety, they are inherently rigid, limiting a robot's movement to a predefined library of behaviors. SayTap addresses this limitation by introducing a "Goldilocks" interface: foot contact patterns. This interface is expressive enough to describe complex gaits but simple enough for an LLM to generate reliably.

Methodology

The SayTap system consists of three primary components: the contact pattern interface, the LLM translation layer, and the reinforcement learning controller.

The Contact Pattern Interface

The core of SayTap is a $4 \times L$ binary matrix representing foot contact patterns. In this matrix, each row corresponds to one of the quadruped's four feet (Front Left, Front Right, Rear Left, Rear Right), and each column represents a discrete time step. A value of '1' indicates the foot is in contact with the ground, while '0' indicates it is in the air. This representation provides a compact yet flexible language for describing locomotion.

LLM-Based Translation

The researchers utilized GPT-4 to map natural language prompts to these binary matrices. By providing the LLM with a prompt containing gait definitions (e.g., trotting, bounding) and a small set of examples, the model learns to generate appropriate contact sequences for both direct commands ("Trot forward slowly") and abstract instructions ("Act as if the ground is very hot").

Controller Training and Execution

To translate these patterns into physical movement, a low-level controller was trained using Deep Reinforcement Learning (DRL), specifically Proximal Policy Optimization (PPO). Training was conducted in the IsaacGym simulation environment using a model of the Unitree A1 quadruped.

To ensure the controller could handle the variety of patterns generated by the LLM, the researchers employed a Random Pattern Generator during training. This exposed the controller to a wide distribution of feasible contact sequences, making it robust to novel or unconventional gaits. Additionally, a "double-pass" technique was used to maintain natural gait symmetry during execution.

Experimental Setup and Results

The system was evaluated using a benchmark of 30 tasks, categorized into 20 "basic" instructions (specific gait and speed requests) and 10 "generalization" tasks (complex or composed instructions).

Key Findings

  • Accuracy: SayTap achieved a 50% higher success rate in predicting correct contact patterns compared to baseline methods using discrete gait selectors or sinusoidal functions.
  • Robustness: The system successfully completed 10 more tasks in the 30-task benchmark than the strongest baseline.
  • Sim-to-Real Transfer: The controller demonstrated successful zero-shot transfer from simulation to real-world Unitree A1 hardware. The robot successfully performed complex behaviors, such as high-frequency trotting and limping, based solely on natural language input.
  • Interpretation of Ambiguity: One of the most notable results was the LLM's ability to interpret "vibes" or emotional context. For example, when told "Good news, we are going to a picnic!", the LLM associated the positive sentiment with a bounding gait. Similarly, for the command "The ground is very hot," the LLM generated a fast-pacing gait where foot-ground contact time was minimized.

Discussion and Future Work

SayTap demonstrates that contact patterns serve as an effective "lingua franca" between human language and robotic motion. By training the controller on a distribution of random patterns rather than specific gaits, the execution layer becomes agnostic to the specific command, focusing entirely on the physics of the requested timing.

However, the system has limitations. The Random Pattern Generator requires domain knowledge to ensure training patterns are physically achievable. Furthermore, the current interface only dictates when a foot touches the ground, not how high it lifts (foot clearance). Future iterations of SayTap could replace the binary matrix with continuous values representing desired clearance heights, further increasing the robot's expressive range.

Conclusion

SayTap provides a scalable framework for natural language-driven locomotion. By identifying foot contact patterns as the optimal level of abstraction, the researchers have enabled quadrupedal robots to move with a level of nuance and contextual awareness that was previously difficult to achieve through traditional programming or direct LLM-to-torque mapping.

Summary updated

BibTeX
@inproceedings{tang2023saytap,
  author = {Yujin Tang and Wenhao Yu and Jie Tan and Heiga Zen and Aleksandra Faust and Tatsuya Harada},
  title = {{SayTap: Language to Quadrupedal Locomotion}},
  booktitle = {Conference on Robot Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=7TYeO2XVqI},
}
Figure