Recurrent Neural Network Controllers Synthesis with Stability Guarantees for Partially Observed Systems

Fangda Gu, He Yin, Laurent El Ghaoui, Murat Arcak, Peter J. Seiler, Ming Jin

Introduction

In safety-critical domains such as aerospace and power grid management, controller stability is non-negotiable. A controller must reliably guide a system toward a target state without inducing oscillations or divergence. While Deep Reinforcement Learning (DRL) offers powerful tools for complex control tasks, standard neural network policies are often "black boxes" lacking formal stability guarantees.

This challenge is intensified in real-world scenarios characterized by partial observability, where the full state of the system is not directly measurable. In such cases, controllers require memory to estimate hidden states, making Recurrent Neural Networks (RNNs) the preferred architecture. However, the non-convex nature of the stable parameter space for RNNs makes enforcing safety during training notoriously difficult.

Methodology: Bridging RL and Robust Control

The authors propose a framework that integrates RNNs with robust control theory—specifically Integral Quadratic Constraints (IQCs)—to ensure stability throughout the learning process.

RNN Parameterization and Structure

The RNN controller is modeled as an interconnection between a Linear Time-Invariant (LTI) system $P_\pi$ and a static nonlinearity $\phi$ (e.g., $tanh$ or ReLU). This structure allows the application of classical control tools to neural architectures.

Structure of the RNN controller as an interconnection of a linear system and nonlinearity.

Loop Transformation

To simplify the stability conditions, the researchers employ a "loop transformation." This mathematical shift re-centers the nonlinearities within a specific sector, enabling the use of more tractable stability certificates during the optimization process.

Loop transformation applied to the RNN to re-center nonlinearities for simplified stability analysis.

Projected Policy Gradient

The core of the training algorithm is a "projected policy gradient" method. At each iteration:

  1. Policy Gradient Step: A standard RL update is performed to maximize the expected reward.
  2. Projection Step: If the updated parameters violate stability constraints, they are projected back into a convex "inner approximation" of the stable parameter space using a Semidefinite Program (SDP).

This ensures that the controller remains stable at every epoch, not just at the end of training.

Key Insights

  • Stability as a Regularizer: Enforcing stability constraints actually accelerates learning. By restricting the search space to stable configurations, the agent avoids wasting samples on catastrophic trajectories.
  • The Necessity of Memory: For partially observed systems, RNNs significantly outperform static networks by reconstructing missing state information from historical data.
  • Robustness via IQCs: The framework naturally extends to systems with modeling uncertainties or nonlinearities by wrapping these elements into the IQC-based stability proof.

Results and Performance

The method was validated across six benchmarks, including the Pendubot and a Power System Frequency Regulation task. Key findings include:

  • Superior Convergence: The proposed method achieved higher rewards and converged faster than standard policy gradient algorithms in all tests.
  • 100% Reliability: While standard RL often produced unstable controllers, the projected policy gradient maintained stability throughout the entire training process once convergence began.
  • Efficiency: Despite the computational cost of solving an SDP during the projection step, the overall training time remained competitive due to the significantly improved sample efficiency.

Conclusion and Future Work

This work demonstrates that formal stability guarantees can be successfully integrated into the DRL pipeline for RNNs. By leveraging robust control theory, the authors provide a path toward deploying neural controllers in high-stakes, safety-critical environments. Future research will focus on extending these guarantees to purely model-free settings and scaling the optimization techniques to even larger neural architectures.

Summary updated

BibTeX
@inproceedings{gu2022recurrent,
  author = {Fangda Gu and He Yin and Laurent El Ghaoui and Murat Arcak and Peter J. Seiler and Ming Jin},
  title = {{Recurrent Neural Network Controllers Synthesis with Stability Guarantees for Partially Observed Systems}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i5.20476},
}
Figure