Introduction
Reinforcement Learning (RL) has emerged as a powerful tool for legged locomotion, capable of mastering complex, non-linear dynamics that are difficult to model traditionally. However, RL often suffers from a significant "reward engineering" hurdle. Designers frequently spend weeks hand-tuning dozens of heuristic reward terms to achieve stable gaits. Poorly shaped rewards can lead to "glitchy" behaviors that fail during real-world deployment.
Conversely, classical model-based control, such as Hybrid Zero Dynamics (HZD), provides rigorous mathematical stability guarantees but is often computationally prohibitive or overly sensitive to modeling errors. Researchers from Caltech have introduced CLF-RL, a framework that bridges these two worlds. By embedding Control Lyapunov Functions (CLFs) directly into the RL reward structure, they provide a principled mathematical guide for stable locomotion while retaining the robustness and speed of RL.
Methodology: CLF-Guided Reward Shaping
The core innovation of this work is the use of CLFs to guide reward shaping. The process is structured into three primary stages:
1. Reference Generation
The system utilizes model-based planners to generate "ideal" walking trajectories. Two types of references were evaluated:
- H-LIP (Hybrid Linear Inverted Pendulum): A simplified model used for fast, online planning.
- HZD (Hybrid Zero Dynamics): A full-order library for high-fidelity motion.
2. The CLF Reward
Instead of standard tracking rewards that simply penalize distance from a reference, the authors employ a Control Lyapunov Function. A CLF is an "energy" function $V$ that is zero at the target state and positive elsewhere. The reward consists of:
- Tracking Reward: Penalizes the current energy (error) level.
- Decay Reward: This is the critical component. It rewards the agent when the Lyapunov function decreases at a desired rate ($\dot{V} \leq -\lambda V$). This explicitly encourages the robot to actively correct errors rather than just minimizing them statically.
3. Training and Deployment
The policy is trained in the NVIDIA IsaacLab simulation environment using Proximal Policy Optimization (PPO). Crucially, the complex model-based references and CLF rewards are only required during the training phase. At deployment, the robot runs a lightweight neural network policy that operates in real-time without needing the underlying models.
Experimental Setup
The framework was validated using both simulation and physical hardware:
- Simulation: Training was conducted using a 29-Degree-of-Freedom (DoF) model of the Unitree G1 humanoid.
- Hardware: Real-world validation was performed on the physical Unitree G1 robot.
- Benchmarks: CLF-RL was compared against the Unitree open-source baseline and a "Custom" baseline featuring a heavily hand-tuned heuristic reward function.
Key Results and Insights
The CLF-RL approach demonstrated significant improvements in both stability and tracking performance.
Superior Robustness and Tracking
In simulations with randomized center-of-mass shifts, CLF-RL exhibited much lower performance variance than hand-tuned baselines. Quantitative analysis showed that including the "CLF Decay" term improved velocity tracking by an average of 10%, and up to 25% in specific coordinates.
Payload and Real-World Performance
The robustness of the learned policy was further tested by adding an 8kg payload to the compact G1 robot. While the baseline struggled, the CLF-RL policy maintained speed and stability. Furthermore, the robot successfully completed a 0.25-mile outdoor walk across varied terrains, including concrete, tiles, and mild slopes, without a single failure.
Discussion and Future Work
The authors highlight that by using a CLF, they collapsed complex tracking requirements into a single, mathematically grounded term, reducing the need for "alphabet soup" heuristic rewards. However, some limitations remain. The current training focuses on steady-state walking; future work could incorporate transient references to improve agility during starts and stops. Additionally, while CLFs provide guidance during training, the final neural network policy does not yet have a formal runtime stability guarantee—a gap the authors aim to bridge in future research.
Summary updated