TL;DR
This paper introduces a model-free reinforcement learning (RL) framework that enables agents to "self-learn" stability. By training a neural Almost Lyapunov Critic alongside a control policy, the method provides formal stability certificates (like estimating the Region of Attraction) for complex nonlinear systems—such as quadrotors and autonomous vehicles—without requiring prior knowledge of the system's dynamics.
What Problem Does This Paper Address?
While Deep RL has shown impressive performance in robotics, it lacks the stability guarantees required for safety-critical applications. In classical control theory, stability is often proven using Lyapunov functions—mathematical "landscapes" where the system's energy constantly decreases toward an equilibrium.
However, applying Lyapunov theory to neural networks is hard for three reasons:
- Manual Design: Traditional Lyapunov functions are hand-crafted or restricted to simple mathematical forms (like polynomials) that can't capture the complexity of neural controllers.
- Reward Dependency: Most RL methods tie stability to the reward function, but rewards are often designed for performance (speed, distance), not mathematical stability.
- Model Dependency: Proving stability usually requires an exact analytical model of the physics, which is often unavailable in real-world RL scenarios.
The authors aim to bridge this gap by creating a model-free way to learn these stability landscapes through self-supervision.
Methods
The authors propose POLYC (Policy Optimization with Self-Learned Almost Lyapunov Critics). The key components are:
- Self-Supervised Lyapunov Critic ($V_\theta$): Instead of using a value function tied to rewards, the agent trains a separate neural network to satisfy Lyapunov conditions (it must be zero at the origin, positive elsewhere, and decrease over time).
- Lyapunov Risk: The critic is trained by minimizing a "Lyapunov Risk" loss function. Since the dynamics are unknown, the authors approximate the Lie derivative (the rate of change of the Lyapunov function) using finite differences from sampled trajectories.
- Modified Advantage Estimation: In the policy optimization step (based on PPO), the standard advantage function is augmented with a penalty term. If an action causes the Lyapunov value to increase (indicating instability), that action is penalized, even if it yields a high environment reward.
- Almost Lyapunov Certification: To provide formal guarantees, the authors use "Almost Lyapunov" theory. This allows the neural network to have small "violations" (areas where it doesn't perfectly decrease), provided these areas are small and sparse. This makes the method practical for the "messy" landscapes of neural networks.
Datasets
The method was evaluated on several standard and custom robotics benchmarks:
- Inverted Pendulum: The classic "pole balancing" task from OpenAI Gym.
- 6-DOF Quadrotor Control: A complex 12-state variable system requiring stable flight and tracking.
- Automobile Path-Tracking: A vehicle following a target path using a nonlinear bicycle model.
- MuJoCo Locomotion: High-dimensional "Hopper" and "Walker" environments to test scalability.
Key Insights and Ideas
- Stability $\neq$ Reward: By decoupling the Lyapunov critic from the environment reward, the agent can focus on staying stable while still pursuing complex goals. This prevents "reward hacking" from leading to unstable behaviors.
- Neural Expressiveness: Neural networks can represent much more complex Lyapunov landscapes than traditional Sum-of-Squares (SOS) polynomials, allowing them to stabilize systems that classical methods might find "un-provable."
- Generalization through Stability: A major "aha" moment in the paper is that stability leads to better generalization. In the automobile task, the Lyapunov-stabilized controller performed significantly better on unseen, curvy paths compared to standard PPO, because it had learned a robust "Region of Attraction" rather than just memorizing the training path.
Key Results
- Quadrotor Stability: The proposed method (LY) successfully learned a stable tracking controller for a quadrotor, whereas previous Lyapunov-based actor-critic (LAC) methods failed to converge.
- Formal Certification: The authors successfully mapped the Region of Attraction (RoA) for the inverted pendulum and quadrotor. They showed that their self-learned critic satisfies "Almost Lyapunov" conditions, providing a mathematical certificate of stability that standard PPO or SAC cannot offer.
- Performance vs. Stability: In MuJoCo tasks (Hopper/Walker), the LY method achieved rewards comparable to state-of-the-art SAC and PPO but maintained much more stable, upright poses and smoother gaits.
Limitations and Future Work
- Sample Efficiency: The current algorithm is on-policy, meaning it requires a large number of samples to learn both the critic and the policy. The authors suggest that moving to an off-policy version using importance sampling is a necessary next step.
- Computational Cost of Validation: While learning the critic is fast, validating the Almost Lyapunov conditions currently requires a sample-based grid search (an $\epsilon$-net), which becomes computationally expensive as the number of state dimensions increases.
- Equilibrium Assumptions: The current work assumes the system has a known equilibrium point (e.g., the origin). Extending this to dynamic moving targets or more complex "limit cycles" remains an open challenge.
Summary updated