A Framework for Safe Probabilistic Invariance Verification of Stochastic Dynamical Systems

Taoran Wu, Yiqing Yu, Bican Xia, Ji Wang, Bai XuearXiv 2024 · DOI

Introduction

In the design of autonomous systems and robotics, safety is traditionally framed as robust invariance—a guarantee that a system will never exit a predefined safe region, regardless of the disturbances it encounters. However, in real-world environments, systems are subject to stochastic uncertainties such as sensor noise, wind gusts, and unpredictable terrain. Treating these as worst-case scenarios often leads to extreme conservatism, where a robot might fail to perform its task because of a negligible probability of failure.

This paper, published in August 2024, introduces a rigorous mathematical framework for safe probabilistic invariance. Instead of absolute guarantees, this approach calculates the probability that a system will remain safe over an infinite time horizon. The authors provide a computational method to determine both lower and upper bounds for these "liveness probabilities," offering a more nuanced and practical safety certification for nonlinear stochastic systems.

The Challenge of Infinite Horizons

Calculating the probability that a stochastic system stays within a safe set forever is a notoriously difficult problem, particularly for nonlinear systems. While existing methods often provide lower bounds (e.g., "the system is at least 95% safe"), they frequently fail to provide upper bounds. Without an upper bound, engineers cannot determine how much "slack" remains in their estimate or identify when a system is definitively risky.

The complexity arises because the exact equations governing these probabilities—known as reach-avoid equations—are generally impossible to solve analytically for complex dynamics. To address this, the authors propose a framework that transforms these intractable equations into a solvable optimization problem.

Methodology: Equation Relaxation and SOS Programming

The core innovation of this work is a technique called Equation Relaxation. The authors take the complex reach-avoid equations and relax them into a series of inequalities. This approach is supported by two primary pillars:

  1. Doob’s Nonnegative Supermartingale Inequality: A staple of stochastic analysis, this is used to construct "barrier certificates"—mathematical functions that act as a boundary or "fence" around the safe region.
  2. Sum-of-Squares (SOS) Programming: To make the relaxed inequalities computationally tractable, the authors employ SOS programming. This technique translates calculus-heavy problems into Semi-Definite Programming (SDP), which can be solved efficiently using modern numerical solvers like Mosek.

One of the paper's significant theoretical contributions is the proof that for calculating lower bounds, this new Equation Relaxation method is mathematically equivalent to classical methods based on Doob’s Inequality. However, the new framework is uniquely superior in its ability to generate tight upper bounds, which were previously difficult to obtain.

Experimental Validation

The framework was evaluated using several classic benchmark models in dynamical systems, comparing the calculated bounds against ground-truth data generated by extensive Monte Carlo simulations (10,000+ trials).

  • Van der Pol Oscillators: Tested in both 2D and 3D, these models demonstrated that as the degree of the polynomials ($d$) used in the SOS program increases, the gap between the lower and upper bounds shrinks, converging toward the true probability.
  • Lotka-Volterra Model: In this discrete-time predator-prey model, the framework significantly outperformed previous baseline methods (referred to as "Op0"). While previous methods produced overly conservative lower bounds near zero, this framework provided a tight lower bound of approximately 0.226, closely matching the simulation result of 0.365.
  • 1D Nonlinear Systems: In a controlled 1D experiment with a polynomial degree of 26, the framework successfully sandwiched the Monte Carlo result of 0.8312 between a lower bound of 0.7647 and an upper bound of 0.8771.

Insights and Future Directions

The ability to compute upper bounds represents a "missing link" in safety verification. It allows designers to quantify the exact level of uncertainty in their safety estimates. The research also demonstrates that infinite-time problems can be effectively managed by using "stopped processes," treating the infinite horizon as a limit of finite-time reachability.

Despite these advances, challenges remain regarding computational complexity. The size of the SDP problems grows rapidly with the number of system variables and the degree of the polynomials, which may limit the method's current applicability to very high-dimensional systems, such as complex humanoid robots. Future work may explore "k-inductive" barrier certificates to further tighten bounds or improve computational efficiency for large-scale engineering applications.

Conclusion

This framework provides a robust mathematical foundation for certifying the safety of stochastic systems. By bridging the gap between theoretical probability and practical optimization, it moves the field closer to deploying autonomous systems that are both high-performing and verifiably safe in uncertain environments.

Summary updated

BibTeX
@misc{wu2024framework,
  author = {Taoran Wu and Yiqing Yu and Bican Xia and Ji Wang and Bai Xue},
  title = {{A Framework for Safe Probabilistic Invariance Verification of Stochastic Dynamical Systems}},
  year = {2024},
  eprint = {2404.09007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.09007},
}
Figure