Neural Lyapunov Differentiable Predictive Control

Sayak Mukherjee, Ján Drgona, Aaron Tuor, Mahantesh Halappanavar, Draguna L. Vrabie · DOI

Introduction

Modern control systems face a persistent tension between performance and safety. Model Predictive Control (MPC) has long been the industry standard for managing complex systems with strict constraints. However, MPC's reliance on solving optimization problems in real-time makes it computationally prohibitive for high-frequency applications like drone flight. Conversely, deep learning offers high-speed neural network controllers, but these often operate as "black boxes," lacking the rigorous stability guarantees required for safety-critical missions.

Researchers at the Pacific Northwest National Laboratory (PNNL) have introduced Neural Lyapunov Differentiable Predictive Control (NLDPC) to resolve this conflict. NLDPC is a framework that jointly learns a neural network control policy and a formal proof of stability—a Lyapunov function—using differentiable programming. By shifting the computational burden to an offline training phase, NLDPC provides the execution speed of neural networks with the mathematical rigor of traditional control theory.

Methodology

The NLDPC framework treats the entire control loop as a single differentiable program, allowing for end-to-end optimization of both the controller and the stability certificate.

Differentiable Predictive Control (DPC)

Instead of solving an optimization problem at every time step during deployment, NLDPC uses a neural network to represent the control policy. During training, the system dynamics are "unrolled" over a future horizon. Using automatic differentiation, the framework backpropagates through the dynamics to update the policy parameters. This offline optimization allows the controller to learn how to satisfy constraints and minimize costs before it is ever deployed.

Neural Lyapunov Functions

To provide stability guarantees, the framework jointly learns a Lyapunov function. In control theory, a Lyapunov function acts as an "energy" function for the system; if one can prove that this energy consistently decreases toward a goal state, the system is guaranteed to be stable. NLDPC utilizes Input-Convex Neural Networks (ICNNs) to parameterize this function. ICNNs are specifically chosen because their structure ensures necessary mathematical properties, such as convexity and positive definiteness, which are required for a valid stability proof.

Constraint Integration and Statistical Certificates

Safety boundaries and actuator limits are incorporated into the training process as differentiable "soft" penalties within the loss function. To bridge the gap between empirical training and formal guarantees, the authors apply Hoeffding’s Inequality. This statistical approach provides a "safety certificate," allowing researchers to calculate a lower bound on the probability that a system will remain stable and satisfy constraints when starting from a given set of initial conditions.

Experimental Evaluation

The researchers evaluated NLDPC on two simulated dynamic benchmarks to test its scalability and robustness.

  1. Double Integrator: This classic benchmark represents a fundamentally unstable system. NLDPC successfully learned to stabilize the system while strictly adhering to state and input constraints.
  2. PVTOL (Planar Vertical Take-Off and Landing) Aircraft: To test higher-dimensional performance, the framework was applied to a 6D state-space model of a drone. The training utilized 9,000 normally distributed initial conditions.

Key Findings

  • Flexibility over Conservatism: Traditional control methods often rely on simple quadratic Lyapunov functions ($x^T P x$). These are often too rigid, marking safe regions of operation as potentially unstable. The learned Neural Lyapunov functions proved to be significantly more flexible, justifying a much larger "safe" operating region for the PVTOL aircraft.
  • Computational Efficiency: Because the stability proof and policy optimization occur offline, the online deployment requires only a simple neural network forward pass. This makes NLDPC orders of magnitude faster than standard online MPC.
  • Quantifiable Reliability: The framework allowed the authors to provide rigorous statistical bounds, such as asserting with 99% confidence that at least 95% of trajectories would remain stable.

Discussion and Future Work

While NLDPC represents a significant step forward in provably stable neural control, it currently relies on the assumption that system dynamics are known or accurately identified. If there is a significant mismatch between the model and the physical plant, the stability guarantees may not hold.

Future research directions include expanding the framework to handle time-varying goals and "Economic MPC," where the objective is to optimize specific performance metrics like fuel efficiency rather than just maintaining stability. Additionally, the researchers aim to incorporate dissipative system conditions to better manage real-world challenges such as sensor noise and model uncertainty.

Summary updated

BibTeX
@inproceedings{mukherjee2022neural,
  author = {Sayak Mukherjee and Ján Drgona and Aaron Tuor and Mahantesh Halappanavar and Draguna L. Vrabie},
  title = {{Neural Lyapunov Differentiable Predictive Control}},
  booktitle = {CDC},
  year = {2022},
  doi = {10.1109/cdc51059.2022.9992386},
}
Figure