Piecewise Stochastic Barrier Functions

Rayan Mazouz, Frederik Baymler Mathiesen, Luca Laurenti, Morteza Lahijanian · DOI

Abstract

This paper introduces Piecewise-Constant Stochastic Barrier Functions (PWC-SBFs), a scalable framework for certifying the safety of complex stochastic systems. By partitioning the state space and utilizing simple constant values for each piece, the authors transform the difficult verification problem into a manageable minimax optimization. This approach outperforms state-of-the-art neural and polynomial methods in both computational speed and the ability to handle high-dimensional systems.

Introduction

Ensuring the safety of autonomous systems, such as drones or self-driving cars, is a significant challenge when operating in noisy, uncertain environments. Stochastic Barrier Functions (SBFs) serve as mathematical tools to provide safety certificates—lower bounds on the probability that a system remains within a safe region over a specified time horizon.

However, existing synthesis methods face significant bottlenecks. Sum-of-Squares (SOS) methods rely on polynomials but suffer from the "curse of dimensionality" and struggle with non-convex safe sets (e.g., regions with obstacles). Neural Barrier Functions (NBFs) are highly expressive but are difficult to formally verify and computationally expensive to train for rigorous safety guarantees. This work bridges the gap by proposing a method that is flexible enough for non-convex geometries and efficient enough to scale to high-dimensional systems.

Methodology

The core innovation is the use of Piecewise (PW) functions. Rather than seeking a single complex global function, the authors partition the safe set into $K$ smaller regions. Specifically, they focus on Piecewise-Constant (PWC) functions, where the barrier value is constant within each region. This simplicity eliminates the need to solve complex integrals and function compositions typically required for SBF synthesis.

PWC-SBF Synthesis

The authors prove that finding the optimal PWC-SBF reduces to a minimax optimization problem. To solve this, they propose three distinct algorithms:

  1. Dual Linear Programming (LP): Uses duality to find an exact solution, though it is limited in scalability regarding the number of regions.
  2. Counter-Example Guided Synthesis (CEGS): An iterative approach that solves two smaller LPs—one to find a candidate barrier and another to identify "counter-examples" (worst-case transitions) to refine the candidate.
  3. Projected Gradient Descent (GD): The most scalable approach, utilizing a smooth $L_p$-norm approximation of the minimax objective to allow for efficient gradient-based optimization.
Comparison of barrier function synthesis methods on a 2D non-convex safe set. (a) Problem setup with obstacles. (b-d) Visualization of the barrier functions generated by SOS, NBF, and the proposed PWC-SBF.

Experimental Evaluation

The framework was evaluated on seven benchmark problems, ranging from 2D linear systems to 8D quadrotor models.

Key Results

  • Efficiency: In a 2D non-convex benchmark, the PWC-SBF achieved the same safety bound (0.93) as an NBF but was 50x faster to compute (69 seconds vs. 3600 seconds).
  • High-Dimensional Scalability: Using the GD algorithm, the PWC-SBF successfully certified an 8D quadrotor system. In contrast, SOS and NBF methods either timed out or exceeded memory limits on systems beyond 4 or 6 dimensions.
  • Robustness to Non-Convexity: For a 4D unicycle model, SOS failed to provide any safety guarantee ($P_s = 0$), while the PWC-SBF certified a safety probability of 0.998.

Discussion and Future Work

The PWC-SBF framework demonstrates that simplicity in function choice can lead to significant gains in scalability and expressivity. By assigning different constant values to different regions, the method naturally handles complex geometries that challenge polynomial methods.

Future research directions include adaptive refinement—splitting regions only where the safety certificate is "tight" to reduce computational overhead—and exploring higher-order pieces (e.g., piecewise linear or polynomial) to potentially provide even tighter safety bounds with fewer regions.

Summary updated

BibTeX
@misc{mazouz2024piecewise,
  author = {Rayan Mazouz and Frederik Baymler Mathiesen and Luca Laurenti and Morteza Lahijanian},
  title = {{Piecewise Stochastic Barrier Functions}},
  year = {2024},
  eprint = {2404.16986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.16986},
}
Figure