NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stochastic Reinforcement Learning with Stability Guarantees for Control of Unknown Nonlinear Systems

Thanin Quartz, Ruikun Zhou, Hans De Sterck, Jun Liu · DOI

Abstract

Designing a stabilizing controller for nonlinear systems is a challenging task, especially for high-dimensional problems with unknown dynamics. Traditional reinforcement learning algorithms applied to stabilization tasks tend to drive the system close to the equilibrium point. However, these approaches often fall short of achieving true stabilization and result in persistent oscillations around the equilibrium point. In this work, we propose a reinforcement learning algorithm that stabilizes the system by learning a local linear representation of the dynamics. The main component of the algorithm is integrating the learned gain matrix directly into the neural policy. We demonstrate the effectiveness of our algorithm on several challenging high-dimensional dynamical systems. In these simulations, our algorithm outperforms popular reinforcement learning algorithms, such as soft actor-critic (SAC) and proximal policy optimization (PPO), and successfully stabilizes the system. To support the numerical results, we provide a theoretical analysis of the feasibility of the learned algorithm for both deterministic and stochastic reinforcement learning settings, along with a convergence analysis of the proposed learning algorithm. Furthermore, we verify that the learned control policies indeed provide asymptotic stability for the nonlinear systems.

Introduction

In control systems, stability is a mathematical guarantee that a system will return to and remain at an equilibrium point. While standard Reinforcement Learning (RL) algorithms like Soft Actor-Critic (SAC) and Proximal Policy Optimization (PPO) excel at finding policies for complex tasks, they often struggle with precise stabilization. Because neural networks lack inherent mathematical structure to guarantee convergence, they frequently result in persistent oscillations around the target state.

Conversely, classical control theory, such as Linear Quadratic Regulator (LQR), provides robust stability guarantees but typically requires an accurate mathematical model of the system's physics. This research bridges the gap by developing a framework that learns to stabilize complex, high-dimensional systems without prior knowledge of the underlying physics.

Methodology: Bridging RL and Classical Control

The proposed algorithm integrates local linear modeling into the SAC framework to achieve asymptotic stability. The process follows a cyclical update loop as illustrated in the flowchart below.

Overview of the proposed reinforcement learning algorithm with stability guarantees.

The method consists of four primary components:

  1. Local Dynamics Learning: As the agent explores, it collects state-action pairs $(s_t, s_{t+1}, a_t)$ specifically when near the equilibrium point. This data is used to estimate a local linear representation (matrices $\hat{A}$ and $\hat{B}$) via least squares.
  2. LQR Integration: Using the estimated linear model, the algorithm solves the Discrete Algebraic Riccati Equation (DARE) to derive an optimal LQR gain matrix $\hat{K}$.
  3. Stability-Augmented Loss: The actor's loss function is modified to include a regularization term. The neural network is penalized if its Jacobian (local derivative) at the equilibrium point deviates from the LQR gain matrix $\hat{K}$. This "Jacobian matching" forces the neural policy to behave like a stable linear controller in the vicinity of the origin.
  4. Policy Shifting: The final policy is shifted to ensure $\pi(0) = 0$, mathematically guaranteeing that the origin is a fixed equilibrium point.

Experimental Results

The algorithm was evaluated on four benchmark dynamical environments: Inverted Pendulum, Cartpole, 2D Quadrotor, and a high-dimensional 3D Quadrotor (12 state variables, 4 control inputs).

Accumulated cost over time across four benchmark environments. The proposed method (red) achieves significantly lower cost and stabilizes faster than standard RL baselines.

As shown in the results, the proposed method consistently achieves lower accumulated costs compared to both deterministic and stochastic versions of SAC and PPO. While baseline agents often reach the target but continue to oscillate (resulting in a steady increase in accumulated cost over time), the proposed algorithm drives the system to a complete stop at the equilibrium point, leading to a flat cost curve.

Furthermore, for lower-dimensional systems like the Inverted Pendulum, the authors utilized SMT (Satisfiability Modulo Theories) solvers to formally verify the Region of Attraction (ROA), providing mathematical proof of the learned policy's stability.

Conclusion and Future Work

This work demonstrates that embedding classical control principles into deep reinforcement learning can overcome the "practical stability" limitations of standard neural policies. By regularizing the policy's gradient to match a learned LQR gain, the framework achieves true asymptotic stability.

Future research will focus on scaling formal verification tools to higher-dimensional systems and testing these controllers on real-world, safety-critical hardware where precise stabilization is paramount.

Summary updated

BibTeX
@misc{quartz2024stochastic,
  author = {Thanin Quartz and Ruikun Zhou and Hans De Sterck and Jun Liu},
  title = {{Stochastic Reinforcement Learning with Stability Guarantees for Control of Unknown Nonlinear Systems}},
  year = {2024},
  eprint = {2409.08382},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.08382},
}
Figure