Synthesizing Neural Network Controllers with Closed-Loop Dissipativity Guarantees

Neelay Junnarkar, Murat Arcak, Peter J. SeilerarXiv 2024 · DOI

Abstract

Neural networks (NNs) have demonstrated remarkable success in learning complex control policies, yet their deployment in safety-critical systems is hindered by a lack of formal performance and stability guarantees. This paper introduces a novel framework that bridges the gap between the high expressiveness of neural networks and the rigorous safety of robust control. By leveraging Integral Quadratic Constraints (IQCs) and Implicit Neural Networks (INNs), the authors derive a convex synthesis method that ensures the closed-loop system is dissipative. This property guarantees stability and performance metrics, such as bounded $L_2$ gain, even in the presence of plant uncertainties. The proposed projection-based reinforcement learning algorithm consistently produces controllers that outperform traditional linear methods while maintaining strict adherence to safety constraints.

Introduction

The application of deep learning to control systems has enabled robots to perform intricate tasks like balancing an inverted pendulum or navigating complex terrains. However, these neural network controllers often operate as "black boxes," providing no mathematical assurance that they will remain stable under real-world conditions or unmodeled dynamics. In safety-critical domains, such as aerospace or medical robotics, a single failure can be catastrophic.

Traditional robust control theory provides a solution for simpler, linear controllers by using mathematical frameworks to guarantee stability and performance. However, these linear time-invariant (LTI) controllers often lack the "expressiveness" required to optimize performance in highly nonlinear environments. The central challenge addressed in this research is: How can we synthesize a high-performing neural network controller that is mathematically guaranteed to be safe and robust when connected to a specific physical plant?

Block diagram of the closed-loop system featuring a plant with uncertainty $\Delta_p$ and a controller $K$.

The authors propose a framework where the controller is not just a standard feedforward network, but a structured component within a closed-loop system designed to satisfy formal dissipativity requirements.

Methodology

The proposed approach integrates three core technical components to ensure safety without sacrificing the learning capabilities of neural networks.

1. Implicit Neural Networks (INNs)

Instead of using standard feedforward layers, the authors utilize Implicit Neural Networks. In an INN, the output is defined as the solution to an algebraic equation. This representation is more general and expressive than standard networks and naturally mimics the structure of many physical dynamical systems, making it an ideal candidate for control applications.

2. Integral Quadratic Constraints (IQCs)

IQCs are a powerful tool from robust control used to characterize "difficult" system components. In this framework, IQCs are used to describe both the nonlinear activation functions of the neural network and the uncertainties within the physical plant (e.g., unmodeled dynamics or parameter variations) in a unified mathematical language.

3. Convex Synthesis via Linear Matrix Inequalities (LMIs)

The primary technical breakthrough is the derivation of a Linear Matrix Inequality (LMI) that characterizes the dissipativity of the closed-loop system. While finding "safe" parameters for a neural network is typically a non-convex and difficult problem, the authors apply a change of variables to transform this into a convex feasibility problem.

Algorithm for training neural network controllers with a dissipativity-enforcing projection step.

As shown in Algorithm 1, this LMI is integrated into a projection-based training algorithm. During the reinforcement learning process, if a gradient update moves the controller parameters into an "unsafe" region (where dissipativity is no longer guaranteed), the algorithm projects the parameters back onto the set of controllers that satisfy the LMI.

Evaluation and Benchmarks

The framework was rigorously tested on two classic control benchmarks, each modified to include nonlinearities and uncertainties:

  • Nonlinear Inverted Pendulum: The objective was to "swing up" and balance the pendulum. The primary safety requirement was global asymptotic stability.
  • Flexible Rod on a Cart: This system involves a non-rigid rod, introducing complex dynamics. The goal was to enforce an $L_2$ gain bound, ensuring that external disturbances have a strictly limited impact on the system's state.

Results and Discussion

The experimental results highlight the "best of both worlds" nature of the proposed Dissipative Recurrent Implicit Neural Network (RINN).

  • Performance vs. Safety: In the inverted pendulum task, the Dissipative RINN achieved high rewards (low control effort) while maintaining a 100% success rate in stabilization. Standard NNs, while occasionally achieving higher peak rewards, frequently failed to stabilize the system in the presence of uncertainty. Traditional LTI controllers were safe but significantly less effective at the swing-up task due to their limited expressiveness.
  • Strict Constraint Adherence: For the flexible rod system, the authors enforced an $L_2$ gain bound of 0.99. The Dissipative RINN strictly adhered to this bound throughout training and testing, whereas standard NNs often violated the safety threshold.
  • Efficiency: The implicit structure proved to be more parameter-efficient than standard recurrent architectures, achieving better results with fewer neurons.

A key insight of this work is treating dissipativity as a "super-property." By targeting dissipativity rather than just stability, engineers can specify a wide range of performance metrics, such as noise sensitivity or energy dissipation, within the same optimization framework.

Conclusion

This research provides a robust pathway for deploying neural networks in safety-critical control systems. By embedding formal guarantees directly into the training loop, the authors demonstrate that safety does not have to come at the cost of performance.

However, some challenges remain. The use of IQCs can be conservative; the "envelopes" used to bound nonlinearities might restrict the controller more than strictly necessary, potentially capping performance in some scenarios. Additionally, solving LMIs is computationally intensive, posing scalability challenges for high-dimensional systems like humanoid robots. Future research will focus on reducing this conservatism and exploring more efficient optimization techniques, such as barrier functions, to scale the framework to even more complex real-world applications.

Summary updated

BibTeX
@misc{junnarkar2024synthesizing,
  author = {Neelay Junnarkar and Murat Arcak and Peter J. Seiler},
  title = {{Synthesizing Neural Network Controllers with Closed-Loop Dissipativity Guarantees}},
  year = {2024},
  eprint = {2404.07373},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.07373},
}
Figure