Stabilizing reinforcement learning control: A modular framework for optimizing over all stable behavior

Nathan P. Lawrence, Philip D. Loewen, Shuyuan Wang, Michael G. Forbes, R. Bhushan Gopaluni

TL;DR

This paper introduces a modular framework that guarantees closed-loop stability for reinforcement learning (RL) controllers by leveraging the Youla-Kučera (YK) parameterization. By using data-driven internal models based on behavioral systems theory, the authors enable RL agents to optimize performance across the entire space of stable behaviors without the risk of catastrophic system failure during training.

What Problem Does This Paper Address?

Reinforcement learning has shown immense promise in optimizing complex control tasks, but it has a major "Achilles' heel": stability. Standard deep RL algorithms are often "stability-agnostic." During the trial-and-error process of training, an agent might explore a policy that destabilizes the system, leading to physical damage or system crashes.

In traditional control theory, stability is a hard requirement. However, bridging the gap between rigorous control guarantees and the flexible, model-free optimization of deep RL is difficult. The authors aim to provide a way for RL agents to "play" as much as they want to improve performance, while mathematically ensuring they can never pick a controller that makes the system unstable.

Methods

The authors combine three sophisticated tools to build their framework:

  1. Youla-Kučera (YK) Parameterization: This is a classic control theory result that characterizes all stabilizing controllers for a given plant using a single stable "parameter" (or operator) called $Q$. By making $Q$ the thing the RL agent learns, the search space is restricted only to controllers that are guaranteed to be stable.
  2. Data-Driven Internal Models (Willems' Fundamental Lemma): Instead of requiring a precise physics-based model (like differential equations), the framework uses a Hankel matrix of raw input-output data. This acts as a "behavioral" model of the system, allowing the YK framework to function in a model-free, data-driven regime.
  3. Stable Neural Operators: To allow RL to handle nonlinearities, the authors design specific neural network architectures for the $Q$ parameter. These networks use Lyapunov-based constraints (specifically, a trainable Lyapunov function embedded in the architecture) to ensure that the neural network itself remains a stable operator, regardless of its weights.

The paper also provides a probabilistic analysis of how noise in the training data affects the stability of these Hankel-based models, proving they remain reliable as more data is collected.

Datasets

The framework was evaluated using two primary simulation environments:

  • Industrial Water Tank System: A nonlinear simulation of a two-tank apparatus (based on a real-world hardware platform from an industrial partner). The task involved controlling water levels using a combination of fixed PID controllers and the proposed RL-tuned YK corrections.
  • Linear Time-Invariant (LTI) Benchmark: A specific third-order plant ($P(s) = \frac{1-s}{(s+1)^3}$) used to test Proportional-Integral (PI) tuning. This served as a baseline to compare the stabilizing framework against standard, unconstrained RL.

Key Insights and Ideas

  • Unconstrained Optimization over a Constrained Space: The YK parameterization effectively "flattens" the stability constraint. The RL agent can use any standard gradient-based update on the weights of the $Q$ operator without needing to check for stability at every step—the stability is "baked into" the math of the parameterization.
  • Stability During Exploration: As shown in Figure 1, standard RL (the "Unconstrained" agent) frequently crashes the system, leading to low rewards and erratic learning. The "Stabilizing" agent maintains high rewards because it is physically incapable of choosing a destabilizing action.
  • Modularity: The framework decouples the algorithm (e.g., TD3), the function approximator (the neural network), and the dynamic model (the Hankel matrix). This means as RL algorithms improve, they can be dropped into this framework to gain stability guarantees for free.
Figure 1: Comparison of stabilizing vs. unconstrained RL. The stabilizing agent avoids the low-reward regions caused by system instability.

Key Results

  • Reliable Convergence: In the industrial tank example, the stabilizing RL agent showed consistent convergence across 20 different training sessions, reaching a plateau in performance after roughly 40 episodes.
  • Safety vs. Performance: In the PI tuning task, the stabilizing framework avoided "dangerous" parameter regions entirely. Figure 5 in the paper (a heatmap of parameters) shows how the framework projects proposed RL updates back into the stable region, preventing the agent from ever crossing the stability boundary.
  • Robustness to Noise: The authors demonstrated that even with noisy input-output data, the spectral radius of the data-driven model remains near 1, ensuring the internal model doesn't "blow up" during long-term predictions.

Limitations and Future Work

  • Open-Loop Stability Assumption: The current YK derivation used in the paper assumes the underlying plant is already open-loop stable. While the authors mention that extensions to unstable systems are possible using different parameterizations (like those by Furieri et al.), this adds complexity.
  • SISO Focus: Most of the detailed analysis and examples focus on Single-Input Single-Output (SISO) systems. While the theory extends to Multiple-Input Multiple-Output (MIMO) systems, the practical implementation and data requirements for large-scale MIMO systems remain an area for future exploration.
  • Persistence of Excitation: The data-driven model relies on "persistently exciting" data. Balancing the need for this excitation (which can be noisy) with steady-state operations in a real factory is a practical challenge the authors identify for future research.

Summary updated

BibTeX
@article{lawrence2024stabilizing,
  author = {Nathan P. Lawrence and Philip D. Loewen and Shuyuan Wang and Michael G. Forbes and R. Bhushan Gopaluni},
  title = {{Stabilizing reinforcement learning control: A modular framework for optimizing over all stable behavior}},
  journal = {Automatica},
  year = {2024},
  doi = {10.1016/j.automatica.2024.111642},
}
Figure