From LLM-Generated Specifications to Learned Quadruped Locomotion
Merve Atasever, Keyan Azbijari, Cagan Bakirci, Alfredo Reina Corona, Tolga Izdas, Richard Yang, Erdem Biyik, Jyotirmoy V. Deshmukh
Abstract
Quadruped robot locomotion policies are often trained using reinforcement learning, which in turn relies heavily on hand-crafted reward functions. Designing reward functions requires substantial manual engineering, and it is often unclear which local rewards will induce the desired global behavior. Shaped rewards from formal specifications in languages like Signal Temporal Logic (STL) can make rewards more interpretable, but writing STL specifications itself still requires domain expertise. We study whether large language models (LLMs) can fill this gap by generating Parametric Signal Temporal Logic (PSTL) specifications that are subsequently used for policy learning. Given a natural language locomotion objective and a constrained specification grammar, GPT-5.5 and Qwen 3.6 independently propose STL templates for command tracking, safety, and gait structure. We instantiate the parameters of the generated PSTL templates using expert trajectories and retain only specifications that are consistent with demonstrated expert behavior. The resulting specifications are then transformed into smooth, finite-history reward functions and used to train a quadruped locomotion policy with Proximal Policy Optimization (PPO) in MuJoCo XLA (MJX). We evaluate both \emph{gait-aware} and \emph{gait-agnostic} settings. The former specifies walking-trot, trot, and bound regimes, while the latter allows contact patterns to emerge from the task objective. We compare against hand-engineered rewards, Text2Reward-style LLM-generated reward code, and an expert-switching oracle. Gait-aware Qwen 3.6 specifications achieved 100\% survival and command success across all tested speeds (0.3--2.1 m/s) and matched the target gait at high speeds, whereas Text2Reward achieved 0\% for both metrics at m/s. Videos: https://stl-locomotion.github.io/
Create a lesson
Metadata
- Categories
- cs.RO, cs.AI
Related papers
Diagnosing and Characterizing Actuator Latency and Estimation Mismatch in Low-Cost Servo-Actuated Quadruped Locomotion
Shared title terminologycs.ROChaitanya Parate, Akash Kumar, Jagadeesh Kadiyam
Gait-Dependent Effects on Quadruped Locomotion for Load-Carrying using Passive Mechanism
Shared title terminologycs.ROGiovanni B. Dessy, Claudio Semini, Victor Barasuol
SplatSlopes: A Real2Sim2Real RGB-D Test-Time Training Framework for Humanoid Locomotion on Challenging Terrain
Shared title terminologycs.ROAneesh Chavan, Claudia Castagna, Rohan Chandra
Persistent Belief Filtering for Proprioceptive Humanoid Locomotion over Structured Terrain
Shared title terminologycs.ROLee Seokju, Lim Jeonghyeok, Lee Jeongtae et al.
RoboEscape: Generating Verifiable Escape Rooms for Long-Horizon Robot-Use Agents
Shared title terminologycs.ROKaining Ying, Lihong Lin, Haonan Han et al.
From Demonstrations to Symbolic Planning: Robotic Scene Graph Generation via Symbolic-Consistent Temporal Abstraction
Shared title terminologycs.ROHaoyi Zheng, Daniel Sliwowski, Dongheui Lee