Not Only Rewards But Also Constraints: Applications on Legged Robot Locomotion
Yunho Kim, Hyunsik Oh, Jeonghyun Lee, Jinhyeok Choi, Gwanghyeon Ji, Moonkyu Jung, Donghoon Youm, Jemin Hwangbo
TL;DR
This work tackles the laborious reward engineering burden in reinforcement learning for legged locomotion by introducing a constrained reinforcement learning framework grounded in Constrained Markov Decision Processes (CMDPs). It combines a small set of rewards with interpretable probabilistic and average constraints, optimized via an adaptive interior-point method with a multi-head cost value function to scale to many constraints. The approach is validated across diverse legged robots, including six quadrupeds and one biped, in both simulation and zero-shot real-world deployment, demonstrating strong constraint satisfaction and robust performance with minimal reward terms and domain randomization. The results indicate substantial engineering advantages: constraints generalize across morphologies, reduce tuning complexity, and enable programmable behavior changes (e.g., gait or obstacle negotiation) without extensive reward design. Overall, the framework offers a scalable, generalizable pathway to high-performance legged locomotion with reduced engineering effort and reliable sim-to-real transfer.
Abstract
Several earlier studies have shown impressive control performance in complex robotic systems by designing the controller using a neural network and training it with model-free reinforcement learning. However, these outstanding controllers with natural motion style and high task performance are developed through extensive reward engineering, which is a highly laborious and time-consuming process of designing numerous reward terms and determining suitable reward coefficients. In this work, we propose a novel reinforcement learning framework for training neural network controllers for complex robotic systems consisting of both rewards and constraints. To let the engineers appropriately reflect their intent to constraints and handle them with minimal computation overhead, two constraint types and an efficient policy optimization algorithm are suggested. The learning framework is applied to train locomotion controllers for several legged robots with different morphology and physical attributes to traverse challenging terrains. Extensive simulation and real-world experiments demonstrate that performant controllers can be trained with significantly less reward engineering, by tuning only a single reward coefficient. Furthermore, a more straightforward and intuitive engineering process can be utilized, thanks to the interpretability and generalizability of constraints. The summary video is available at https://youtu.be/KAlm3yskhvM.
