In deterministic control theory, ensuring safety is often framed as finding a Control Barrier Function (CBF). Think of a CBF as a mathematical shield: it defines a safe region of the state space and ensures that as the system approaches the boundary, the control inputs apply a "counter-force" to keep the system inside.
However, real-world systems operate under stochastic uncertainty—such as wind gusts acting on a drone, sensor noise, or wireless communication drops. As noted by Ashish Kapoor et al. in Sample-efficient Safe Learning for Online Nonlinear Control with Control Barrier Functions, when disturbances are modeled as random variables (like Gaussian noise), the worst-case disturbance is theoretically unbounded. A deterministic "hard" boundary becomes impossible to maintain because a rare, massive noise spike could always push the system into an unsafe state.
To deploy autonomous systems safely in random environments, we must shift our objective from absolute safety to probabilistic safety: guaranteeing that the system remains safe over a given time horizon with a user-defined high probability (e.g., $>99.9\%$).
The Supermartingale Bridge
How do we calculate a rigorous bound on the probability of failure without running millions of expensive brute-force simulations? The core insight of this research direction is to view safety barrier functions through the lens of martingale theory.
Instead of requiring the barrier function $B(x)$ to strictly decrease at every single step, we look at its expected change at the next time step. If we design $B(x)$ such that its expected value decreases or remains bounded over time, $B(x)$ becomes a supermartingale (a stochastic process that, on average, drifts downward).
As Ryan Kazuo Cosner et al. demonstrate in Robust Safety under Stochastic Uncertainty with Discrete-Time Control Barrier Functions, treating barrier functions as non-negative supermartingales unlocks powerful concentration inequalities, such as Doob's maximal inequality. Doob's inequality states that for a non-negative supermartingale $B(x_t)$, the probability that it ever exceeds a critical threshold $\lambda$ over an entire time horizon is bounded by its initial value divided by $\lambda$:
$$P\left(\sup_{t \ge 0} B(x_t) \ge \lambda\right) \le \frac{B(x_0)}{\lambda}$$
This equation acts as a bridge. By constructing a function $B(x)$ where safe states have a low value and unsafe states have a high value ($\ge \lambda$), we can translate a local, one-step expectation condition into a global, long-term guarantee on the maximum probability of crashing.
This approach provides a discretization-free verification method. As highlighted by Pushpak Jagtap et al. in Temporal Logic Verification of Stochastic Systems Using Barrier Certificates, using scalar barrier certificates allows engineers to verify complex stochastic systems without gridding or discretizing the continuous state space, bypassing the computational curse of dimensionality.
Refining Bounds via Quadratic Variation
Standard martingale bounds can sometimes be overly conservative because they only account for the expected drift of the system, ignoring the actual volatility or structure of the noise.
To achieve tighter, more practical safety bounds, the authors of Bounding Stochastic Safety: Leveraging Freedman's Inequality with Discrete-Time Control Barrier Functions introduced the use of Freedman's inequality. This concentration inequality incorporates the predictable quadratic variation of the stochastic process—effectively tracking how much the system's variance accumulates over time. By accounting for the predictable variance of environmental noise, this mechanism yields significantly tighter safety probabilities. Crucially, it removes the traditional requirement that the barrier function must be globally upper-bounded, allowing practitioners to directly use standard geometric signed distance functions for obstacle avoidance.
Preventing Long-Term Probability Decay
A major challenge in stochastic verification is the problem of long horizons. Because small risks accumulate over time, the probability of remaining safe can slowly decay toward zero as the time horizon approaches infinity.
To resolve this, Haoming Jing et al. in Myopically Verifiable Probabilistic Certificate for Long-term Safety proposed shifting the focus from the physical state space to the probability space. Instead of bounding the physical state directly, they use stochastic calculus tools like Itô’s Lemma to analyze and regulate the infinitesimal change of the system's safety probability itself. By enforcing forward invariance directly on the probability distribution, a short-sighted (myopic) controller can prevent the long-term decay of safety, maintaining a constant, guaranteed safety level indefinitely.
Synthesizing and Learning Certificates
To apply this framework to real systems, we must be able to automatically find or learn these barrier functions.
For polynomial systems, optimization techniques like Sum-of-Squares (SOS) programming are widely used to search for quadratic barrier certificates, as shown by Omid Akbarzadeh et al. in Safety Barrier Certificates for Stochastic Control Systems with Wireless Communication Networks. Alternative polynomial representations, such as Bernstein polynomials, have also been explored by Morteza Lahijanian et al. in On Polynomial Stochastic Barrier Functions: Bernstein Versus Sum-of-Squares to cast the search as a linear program, though SOS remains highly effective in higher dimensions.
When the exact system dynamics or noise models are unknown, researchers leverage data-driven methods. For instance, Yiming Meng et al. in Data-Driven Learning of Safety-Critical Control with Stochastic Control Barrier Functions demonstrated that neural networks can successfully learn approximations of stochastic control barrier functions from data, matching the safety performance of known analytical models.
Finally, this framework extends beyond simple collision avoidance to complex temporal tasks. By training neural networks to act as Reach-Avoid Supermartingales, the authors of Learning Control Policies for Stochastic Systems with Reach-Avoid Guarantees demonstrated that controllers can be certified to simultaneously reach a target region and avoid unsafe zones over an infinite time horizon.
Key Foundational Work
A Framework for Worst-Case and Stochastic Safety Verification Using Barrier Certificates (2007) — contributed 1 concept elements to this direction.