CLF-RL: Control Lyapunov Function Guided Reinforcement Learning
Kejun Li, Zachary Olkin, Yisong Yue, Aaron D. Ames
TL;DR
This work tackles reward design challenges in reinforcement learning for bipedal locomotion by introducing a principled CLF-based reward that leverages model-based reference trajectories. The framework (CLF-RL) integrates two reference generators—the online, reduced-order H-LIP and the offline full-order HZD gait library—to produce desirable targets and a Lyapunov-based objective $V(oldsymbol{ ilde{y}})=oldsymbol{ ilde{y}}^ op P oldsymbol{ ilde{y}}$ that enforces stability through a CLF decrease condition. The method yields a final training signal $R = r_v + r_{ ext{dot}v} + r_{ ext{hol}} + r_{ ext{reg}}$, enabling stable, robust learning and sim-to-real transfer for a 29-DoF humanoid on the Unitree G1, with extensive hardware validation including outdoor tests. By combining model-based references with CLF-guided rewards, the approach reduces manual reward tuning, improves robustness to perturbations and payloads, and provides a modular path to leveraging either reduced- or full-order planners for reliable legged locomotion policies.
Abstract
Reinforcement learning (RL) has shown promise in generating robust locomotion policies for bipedal robots, but often suffers from tedious reward design and sensitivity to poorly shaped objectives. In this work, we propose a structured reward shaping framework that leverages model-based trajectory generation and control Lyapunov functions (CLFs) to guide policy learning. We explore two model-based planners for generating reference trajectories: a reduced-order linear inverted pendulum (LIP) model for velocity-conditioned motion planning, and a precomputed gait library based on hybrid zero dynamics (HZD) using full-order dynamics. These planners define desired end-effector and joint trajectories, which are used to construct CLF-based rewards that penalize tracking error and encourage rapid convergence. This formulation provides meaningful intermediate rewards, and is straightforward to implement once a reference is available. Both the reference trajectories and CLF shaping are used only during training, resulting in a lightweight policy at deployment. We validate our method both in simulation and through extensive real-world experiments on a Unitree G1 robot. CLF-RL demonstrates significantly improved robustness relative to the baseline RL policy and better performance than a classic tracking reward RL formulation.
