Learning to stabilize high-dimensional unknown systems using Lyapunov-guided exploration

Songyuan Zhang, Chuchu Fan

Abstract

Designing stabilizing controllers is a fundamental challenge in autonomous systems, particularly for high-dimensional, nonlinear systems that can hardly be accurately modeled with differential equations. The Lyapunov theory offers a solution for stabilizing control systems, still, current methods relying on Lyapunov functions require access to complete dynamics or samples of system executions throughout the entire state space. Consequently, they are impractical for high-dimensional systems. This paper introduces a novel framework, LYapunov-Guided Exploration (LYGE), for learning stabilizing controllers tailored to high-dimensional, unknown systems. LYGE employs Lyapunov theory to iteratively guide the search for samples during exploration while simultaneously learning the local system dynamics, control policy, and Lyapunov functions. We demonstrate its scalability on highly complex systems, including a high-fidelity F-16 jet model featuring a 16D state space and a 4D input space. Experiments indicate that, compared to prior works in reinforcement learning, imitation learning, and neural certificates, LYGE reduces the distance to the goal by 50% while requiring only 5% to 32% of the samples. Furthermore, we demonstrate that our algorithm can be extended to learn controllers guided by other certificate functions for unknown systems.

Introduction

In control theory, "stabilizing" a system involves designing a controller that steers the system toward a desired goal state—such as a drone achieving a stable hover or a jet leveling its flight—and maintains it there. Traditionally, this is achieved using Lyapunov functions, which act as mathematical "energy" functions that monotonically decrease as the system approaches its target.

However, modern autonomous systems present two significant challenges:

  1. The Curse of Dimensionality: In high-dimensional spaces, such as the 16D state space of an F-16 jet, sampling the entire state space to learn a controller is computationally prohibitive.
  2. Model Opacity: Real-world systems are often "black boxes" defined by complex code and lookup tables rather than simple differential equations, rendering traditional analytical methods ineffective.

Existing learning-based approaches, such as Reinforcement Learning (RL), often suffer from poor sample efficiency and lack formal stability guarantees. This research introduces LYapunov-Guided Exploration (LYGE) to address these issues by focusing exploration only on the regions of the state space necessary for stabilization.

The LYGE Framework

LYGE is an iterative framework that jointly learns three components: a local dynamics model, a control policy, and a Control Lyapunov Function (CLF). The core of the approach is the "Trusted Tunnel" method.

The Trusted Tunnel Approach

Instead of attempting to model the entire global state space, LYGE focuses on a "trusted tunnel" around known trajectories. The process begins with initialization using imperfect or potentially unstable demonstrations (e.g., from a human operator or a basic PID controller).

Within this tunnel, the framework fits a neural network to the local dynamics and solves an optimization problem to find a controller and a CLF that satisfy stability conditions. The learned CLF then serves as a guide for exploration: it directs the agent toward states with lower energy values, effectively pushing the exploration toward the goal and expanding the trusted tunnel iteration by iteration.

The iterative evolution of the Lyapunov function and system trajectories. As iterations progress, the learned CLF guides exploration more effectively toward the goal state.

By using the mathematical structure of Lyapunov theory to decide where to sample next, LYGE avoids the trial-and-error inefficiencies of standard RL.

Experimental Evaluation

The researchers evaluated LYGE across six environments of increasing complexity, ranging from classic benchmarks like the Inverted Pendulum to high-fidelity simulations like the Neural Lander (a 6D drone landing simulation) and an F-16 Jet Model. The F-16 model is particularly challenging as its 16D state-space dynamics are defined by C programs and lookup tables, making it a true "unknown" system for the algorithm.

Key Results

LYGE demonstrated significant improvements in both stability and efficiency compared to baselines like Proximal Policy Optimization (PPO), Adversarial Imitative Reinforcement Learning (AIRL), and other neural certificate methods.

Performance comparison showing distance to goal over time steps across various environments. LYGE (red line) consistently achieves lower distance to goal with higher stability than baselines.
  • Superior Stability: LYGE reduced the distance to the goal by 50% compared to the best-performing baselines. While baselines often failed in high-dimensional environments (resulting in oscillations or crashes), LYGE successfully converged to stable controllers.
  • Massive Sample Efficiency: In the F-16 tracking task, LYGE required only 560k samples, compared to 10,000k for baselines—a reduction of approximately 95%. Across all tests, it utilized only 5% to 32% of the samples required by competing algorithms.

Discussion and Conclusion

The success of LYGE stems from its ability to treat Lyapunov functions as "search engines" rather than just verification tools. By focusing on the "useful subset" of the state space, it bypasses the exponential complexity inherent in high-dimensional control.

While the method currently relies on initial demonstration data and assumes relatively smooth system dynamics, it represents a significant step toward practical stabilization of complex, unknown systems. Future research will explore extending this guided exploration logic to other certificate functions, such as Control Barrier Functions, to incorporate safety and obstacle avoidance constraints.

Summary updated

BibTeX
@inproceedings{zhang2024learning,
  author = {Songyuan Zhang and Chuchu Fan},
  title = {{Learning to stabilize high-dimensional unknown systems using Lyapunov-guided exploration}},
  booktitle = {L4DC},
  year = {2024},
  url = {https://openreview.net/forum?id=VXvvEMircy},
}
Figure