Learning Neural Controllers with Optimality and Stability Guarantees Using Input-Output Dissipativity

Han Wang, Keyan Miao, Diego de S. Madeira, Antonis PapachristodoulouarXiv 2025 · DOI

Abstract

Deep learning controllers for complex nonlinear systems often lack formal safety and performance guarantees. This paper presents a framework for learning neural controllers that are both provably stable and optimal over an infinite horizon. By leveraging input-output dissipativity theory, the method learns neural storage and supply rate functions to analytically derive a controller. A Counterexample-Guided Inductive Synthesis (CEGIS) loop, combining neural network training with SMT verification, ensures the learned controller satisfies dissipativity constraints. Experimental results on benchmark systems like the inverted pendulum and rod-on-a-cart demonstrate significant performance improvements over standard Neural Lyapunov methods while maintaining formal stability guarantees.

Introduction

In safety-critical applications such as robotics or power systems, deploying neural network controllers without mathematical guarantees of stability is a significant risk. While recent advances in Neural Control Lyapunov Functions (NCLFs) provide formal stability guarantees, these methods are often "myopic." They ensure system safety but ignore infinite-horizon optimality, frequently resulting in inefficient control actions, excessive energy consumption, or poor transient performance.

This research addresses the challenge of designing neural controllers for general nonlinear systems that are both provably stable and mathematically optimal over an infinite horizon.

Methodology

To bridge the gap between stability and optimality, the framework utilizes input-output dissipativity theory, a generalization of Lyapunov theory that connects directly to optimal control.

Overview of the proposed framework featuring the Learner-Verifier CEGIS loop.

1. Learning Energy Functions

The framework employs neural networks to learn a storage function $V(x)$, representing stored energy, and a supply rate function $w(x,u)$, representing energy added to or dissipated from the system.

2. Analytical Controller Derivation

The supply rate is parameterized in a specific quadratic form (QSR-form). This parameterization allows the optimal, stabilizing control law $\pi(x)$ to be derived analytically from the learned supply rate networks: $$\pi(x) = -R(x)^{-1}S(x)^\top x$$

3. Dimensionality Reduction

Dissipativity is typically an input-output property requiring sampling across both state and input spaces. To avoid the curse of dimensionality in highly actuated systems, the authors reformulate the dissipativity condition to depend solely on the state space, significantly reducing the required sampling space.

4. Verification-Guided Training

The system is trained using a Counterexample-Guided Inductive Synthesis (CEGIS) loop. A Learner trains the networks using Projected Gradient Descent (PGD) to identify adversarial states that violate stability. A Verifier then employs Satisfiability Modulo Theories (SMT) solvers (e.g., dReal) to formally prove that the learned functions satisfy all dissipativity constraints.

Experimental Results

The framework was evaluated on several simulated benchmark control environments:

  • Electrical Circuit: A linear system used to compare against the theoretical optimal Linear Quadratic Regulator (LQR). The method matched the LQR cost of 19.5 while guaranteeing stability.
  • Inverted Pendulum: A classic nonlinear benchmark. The proposed method achieved a cumulative cost of 37.8 (static) and 15.1 (dynamic), significantly outperforming the NCLF baseline (119.7 and 125.7, respectively).
  • Rod on a Cart: A complex nonlinear system where transient performance is critical. The method achieved a cost of 361.3, nearly a 10x improvement over the NCLF baseline (3191.2), highlighting the benefits of incorporating optimality.

Discussion and Key Insights

  • Dissipativity = Stability + Optimality: By satisfying dissipativity conditions, the derived controller is proven to be the optimal solution to an infinite-horizon control problem, providing stability and performance simultaneously.
  • Cost Shaping: The introduction of a "cost shaping" loss function allows users to align the network's inherent optimality with specific objectives, such as balancing control effort against state deviation.
  • Dynamic Control Extension: The framework extends naturally to dynamic controllers (e.g., nonlinear PI control) by augmenting the state space with auxiliary variables.

Limitations and Future Work

The primary bottleneck is the computational intensity of SMT solvers, which scale poorly with system dimensionality. Future research may explore direct parameterization of robust neural networks (e.g., Lipschitz-bounded networks) to enforce dissipativity constraints by design, potentially bypassing the need for post-hoc symbolic verification.

Summary updated

BibTeX
@misc{wang2025learning,
  author = {Han Wang and Keyan Miao and Diego de S. Madeira and Antonis Papachristodoulou},
  title = {{Learning Neural Controllers with Optimality and Stability Guarantees Using Input-Output Dissipativity}},
  year = {2025},
  eprint = {2506.06564},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.06564},
}
Figure