[Paper Review] Lyapunov Design for Robust and Efficient Robotic Reinforcement Learning
This paper proposes a Lyapunov-based cost-shaping method that integrates Control Lyapunov Functions (CLFs) into reinforcement learning (RL) objectives to enable data-efficient, robust learning of stabilizing controllers for robotics. By adding a CLF-driven term to standard cost functions, the method ensures that even suboptimal policies stabilize the system, allowing RL algorithms to converge to stabilizing controllers using orders of magnitude less data—demonstrated on a cartpole and A1 quadruped with seconds and minutes of real-world fine-tuning data, respectively.
Recent advances in the reinforcement learning (RL) literature have enabled roboticists to automatically train complex policies in simulated environments. However, due to the poor sample complexity of these methods, solving RL problems using real-world data remains a challenging problem. This paper introduces a novel cost-shaping method which aims to reduce the number of samples needed to learn a stabilizing controller. The method adds a term involving a Control Lyapunov Function (CLF) -- an `energy-like' function from the model-based control literature -- to typical cost formulations. Theoretical results demonstrate the new costs lead to stabilizing controllers when smaller discount factors are used, which is well-known to reduce sample complexity. Moreover, the addition of the CLF term `robustifies' the search for a stabilizing controller by ensuring that even highly sub-optimal polices will stabilize the system. We demonstrate our approach with two hardware examples where we learn stabilizing controllers for a cartpole and an A1 quadruped with only seconds and a few minutes of fine-tuning data, respectively. Furthermore, simulation benchmark studies show that obtaining stabilizing policies by optimizing our proposed costs requires orders of magnitude less data compared to standard cost designs.
Motivation & Objective
- To address the poor sample complexity of reinforcement learning in real-world robotic control, especially for stabilizing complex systems.
- To reduce the number of real-world data samples required to learn stabilizing controllers by embedding system structure into the learning objective.
- To improve robustness of RL policy search by ensuring that even suboptimal policies stabilize the system through CLF supervision.
- To enable efficient fine-tuning of simulation-derived controllers using small amounts of real-world data.
- To extend the applicability of CLF-based control design to uncertain, real-world systems via learned or approximate CLFs.
Proposed method
- Introduce a modified cost function that adds a term based on a Control Lyapunov Function (CLF), incentivizing policies that decrease the CLF value over time.
- Use an approximate CLF derived from a simplified or learned dynamics model to guide RL optimization, even when the true CLF is unknown.
- Apply the soft actor-critic (SAC) algorithm with a reshaped reward: $ r_k = -[W(F(x_k,u_k)) - W(x_k)] - \|x_k\|_2^2 - 0.1\|u_k\|_2^2 $, where $ W $ is the approximate CLF.
- Leverage the value function from a pre-trained simulation-based RL policy as an approximate CLF for real-world fine-tuning.
- Use small discount factors ($ \gamma $) in RL to accelerate learning, as theoretical analysis shows that CLF terms make small $ \gamma $ effective for stabilization.
- Perform hyperparameter sweeps over discount factors to identify the smallest $ \gamma $ that yields a stabilizing policy, ensuring data efficiency.
Experimental results
Research questions
- RQ1Can a CLF-based cost shaping technique significantly reduce the number of real-world data samples needed to learn a stabilizing controller?
- RQ2Does incorporating a CLF term into the RL objective improve the robustness of policy search, such that even highly suboptimal policies stabilize the system?
- RQ3Can a value function from a simulation-based RL policy serve as a viable approximate CLF for fine-tuning on real hardware?
- RQ4How does the quality of the approximate CLF affect the data efficiency and convergence speed of the RL algorithm?
- RQ5Can small discount factors be effectively used for stabilization when combined with CLF supervision, contrary to standard RL practice?
Key findings
- The proposed method learned a stabilizing controller for the Quanser cartpole using only 10 seconds of real-world data, achieving performance comparable to a baseline that required 1.2 million steps in simulation.
- For the Unitree A1 quadruped, a stabilizing controller was learned in just 5 minutes of real-world data, using a hand-designed CLF from a simplified linearized model.
- In the inverted pendulum experiment, the CLF-augmented cost reduced the number of training iterations needed to achieve stabilization from 389 to 198 when input constraints were tight ($|u| \leq 4$), representing a 48% reduction in samples.
- With less restrictive inputs ($|u| \leq 20$), the method achieved stabilization in 5 iterations compared to 92 for the baseline, reducing required samples by 94.6%.
- The smallest discount factor that led to a stabilizing policy was also the one that enabled the fastest learning, confirming that small $ \gamma $ is viable when CLF supervision is present.
- Even when the approximate CLF was not a true global CLF, the method still ensured stabilization, demonstrating robustness to model inaccuracies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.