Abstract
We consider the problem of learning control policies in discrete-time stochastic systems which guarantee that the system stabilizes within some specified stabilization region with probability 1. Our approach is based on the novel notion of stabilizing ranking supermartingales (sRSMs) that we introduce in this work. Our sRSMs overcome the limitation of methods proposed in previous works whose applicability is restricted to systems in which the stabilizing region cannot be left once entered under any control policy. We present a learning procedure that learns a control policy together with an sRSM that formally certifies probability 1 stability, both learned as neural networks. We show that this procedure can also be adapted to formally verifying that, under a given Lipschitz continuous control policy, the stochastic system stabilizes within some stabilizing region with probability 1. Our experimental evaluation shows that our learning procedure can successfully learn provably stabilizing policies in practice.
Introduction: The Challenge of Stochastic Stability
In control theory, stability is the fundamental requirement for safety. While deterministic systems often use Lyapunov functions to prove stability, real-world systems are stochastic, subject to random disturbances. A significant gap in existing research on "almost-sure asymptotic stability" is the assumption that the target stabilization region is "closed"—meaning once an agent enters, it can never leave.
This assumption is often unrealistic. For instance, an inverted pendulum might be pushed out of its upright position by a sudden gust of wind. If a stability proof requires the system to never leave the goal zone, it fails in the presence of such noise. This work introduces a framework for proving persistence: ensuring a system reaches and eventually stays within a target region, even if it is temporarily displaced multiple times.
Stabilizing Ranking Supermartingales (sRSMs)
The core contribution of this work is the Stabilizing Ranking Supermartingale (sRSM), a mathematical certificate of stability. Unlike standard martingales, an sRSM $V(x)$ must satisfy specific conditions to guarantee probability-1 stabilization:
- Non-negativity: $V(x) \ge 0$ for all states.
- Expected Decrease: Outside a "safe" subset, the expected value of $V$ must decrease at each time step.
- Lower Bound: The value of $V$ outside the target region must be strictly greater than its value inside the safe subset.
By satisfying these conditions, sRSMs prove that the probability of leaving the target region $N$ times approaches zero as $N$ goes to infinity. Furthermore, they provide a quantitative bound on the expected number of time steps the system spends outside the stabilization set.
The Learner-Verifier Framework
To implement this theory, the authors propose a dual-network approach:
- The Learner: Simultaneously trains a control policy ($\pi_\theta$) and an sRSM candidate ($V_\nu$) using a loss function that penalizes violations of the sRSM conditions.
- The Verifier: Employs Interval Arithmetic (IA-AI) and Lipschitz continuity to formally verify the learned $V_\nu$ across the state space. If violations are found, they are returned as counterexamples to the learner for further refinement.
Experimental Evaluation
The method was tested on two benchmarks where the stabilization region is explicitly not closed:
- 2D Linear System: Featuring non-linear control bounds and triangular noise.
- Inverted Pendulum: A classic environment modified with non-polynomial dynamics and stochastic disturbances.
The learner-verifier loop demonstrated high efficiency, typically converging in 4 to 5 iterations. For the Inverted Pendulum, a valid sRSM was found in approximately 43 minutes. Notably, even when the probability of temporarily leaving the target region was high (e.g., $p \approx 0.97$ for the pendulum), the sRSM successfully proved stabilization with probability 1.
Conclusion and Future Work
This work provides a robust method for teaching neural networks to handle stochasticity with formal guarantees. While currently limited by the "curse of dimensionality" in the verification step (relying on grid discretization), future research into non-uniform grids or more advanced decomposition strategies could scale this approach to high-dimensional systems like humanoid robotics.
Summary updated