Piecewise Stochastic CBFs
- Piecewise stochastic control barrier functions are safety certificates that enforce region-specific constraints to maintain probabilistic invariance in stochastic systems.
- They leverage various formulations, including piecewise-constant, piecewise-affine, and neural network approaches, to decompose the safe set and simplify synthesis.
- Optimization strategies such as LP, MIQP, and SOCP are employed to efficiently synthesize controllers that meet chance-constrained safety objectives.
Searching arXiv for the cited papers and closely related work on piecewise stochastic control barrier functions. I’ll look up the specified arXiv IDs and related terms to ground the article in the most relevant preprints. Piecewise stochastic control barrier functions are safety certificates for stochastic control systems in which the barrier condition is represented, enforced, or synthesized regionwise rather than through a single globally smooth template. In the recent literature, this piecewise structure appears in several technically distinct forms: piecewise-constant barriers over partitions of the safe set, piecewise-affine probabilistic control barrier functions defined by polyhedral complements, mode-dependent residual corrections for switching systems, and neural barrier functions that are affine on ReLU activation regions. Across these variants, the central objective is the same: construct a controller or safety filter that certifies probabilistic invariance over a finite horizon, either through expectation inequalities, chance constraints, or infinitesimal-generator conditions (Mazouz et al., 23 Jul 2025).
1. Formal definitions and safety semantics
For discrete-time nonlinear stochastic systems with additive noise,
a stochastic control barrier function (s-CBF) is formulated in terms of a safe set , initial set , unsafe set , a feedback law , and scalars . The defining conditions are nonnegativity , unsafe-set separation on , initial-set over-approximation on 0, and the stochastic decrease condition
1
Under these conditions, the closed-loop safety probability satisfies
2
where 3 is the infimum, over 4, of the probability that the trajectory remains in 5 for 6 (Mazouz et al., 23 Jul 2025).
A complementary formulation uses one-step chance constraints. For the discrete-time stochastic system
7
with i.i.d. disturbance 8, a function 9 is a 0-probabilistic C-BF if, for fixed 1 and 2,
3
When
4
enforcing the one-step condition with violation 5 guarantees the 6-step exit probability bound 7 (Teuwen et al., 3 Dec 2025).
In continuous time, the stochastic control barrier framework is posed for the Itô SDE
8
A stochastic zeroing control barrier function is a 9 certificate 0 on a domain 1 satisfying positivity on 2, negativity outside 3, and
4
where the Itô infinitesimal generator is
5
Under a linear 6, Proposition 1 gives the bound
7
with 8 (Zhang et al., 26 Jun 2025).
2. Piecewise representations of the barrier certificate
One widely used construction partitions the safe set itself: 9 and defines a piecewise-constant barrier
0
For control synthesis, a constant control 1 is associated with each cell 2, and the expectation inequality reduces to linear constraints in the constants 3, the transition probabilities, and the per-cell slack 4. In the barrier-only precursor, the more general piecewise template
5
specializes to piecewise-constant stochastic barrier functions (PWC-SBFs), for which synthesis becomes a minimax program (Mazouz et al., 2024).
A second construction places the partition on the complement of the safe set. The complement is decomposed into open polyhedra
6
with 7 having rows 8. The piecewise-affine barrier is
9
and the safe set is
0
equivalently 1. This min–max representation directly supports irregular polygonal safety geometry and chance-constrained filtering (Teuwen et al., 3 Dec 2025).
A third representation is induced by the parameterization itself. For ReLU stochastic neural control barrier functions, the network defines finitely many polyhedral regions determined by activation patterns 2. On each region,
3
and the region is
4
Because the network is affine on each 5, safety verification can be reduced to regional NLP, LP, or QP subproblems rather than a single global nonlinear verification task (Zhang et al., 26 Jun 2025).
This suggests that “piecewise” is not a single canonical ansatz. In the current literature it denotes a family of constructions in which stochastic safety conditions become tractable after decomposing state space, unsafe geometry, switching surfaces, or activation regions.
3. Synthesis and optimization formulations
For piecewise-constant s-CBFs, the joint synthesis of the barrier and controller is posed as a minimax problem over cell values 6, controls 7, and safety parameters 8: 9 subject to 0, 1 on cells intersecting 2, and
3
Here 4 is the feasible simplex of transition probabilities. The method in (Mazouz et al., 23 Jul 2025) shows that this minimax problem is equivalent to a single linear program with zero duality gap, so the controller and barrier certificate are synthesized within one LP.
For piecewise-affine probabilistic safety filters, exact online evaluation at state 5, given a nominal input 6, solves
7
subject to
8
where
9
Introducing binary variables 0 to select the active facet yields an MIQP when 1 is affine in 2 and 3 is polyhedral, and a MINLP in the general case. The same paper proposes a heuristic alternative: choose an index assignment 4, solve the small QP
5
and enumerate assignments in a heuristic order until one QP is feasible (Teuwen et al., 3 Dec 2025).
For switching systems with uncertain nominal models, piecewise residuals are introduced into the CLF/CBF constraints: 6 After modeling these residuals by a structured multi-output Gaussian process, the chance-constrained CLF/CBF conditions are converted into second-order cone constraints. The resulting controller is obtained from a convex SOCP of the form
7
with 8 (Aali et al., 2024).
| Construction | Optimization | Characteristic |
|---|---|---|
| Piecewise-constant s-CBF | Dual linear program with zero gap | Joint synthesis of barrier and controller |
| Piecewise-affine probabilistic CBF | MIQP or MINLP; heuristic QPs or NLPs | Safety filter with quantile tightening |
| Switching residual CBF/CLF | Convex SOCP | Chance constraints in SOC form |
A plausible implication is that piecewise stochastic CBFs are valued not only for expressivity but for the way regionalization exposes exact or nearly exact convex substructure.
4. Learning, unknown disturbances, and neural variants
When the disturbance law is unknown, the quantile-based piecewise-affine framework replaces the true quantile 9 with an empirical quantile 0 computed from samples 1. By a binomial-tail argument, if
2
then with probability at least 3 the empirical quantile lower-bounds the true quantile. Enforcing the resulting tightened linear constraints yields a 4-PCBF and therefore 5 with confidence at least 6. The same framework explicitly allows arbitrary (data-driven) quantile estimators and was tested under Laplace and Student-7 noise, where heavy-tailed tests confirm asymptotic coverage (Teuwen et al., 3 Dec 2025).
For switching systems, uncertainty enters the barrier constraints through mode-dependent residuals relative to a nominal model,
8
and similarly for 9. A dataset 0 is collected in each region 1, and the stacked residual 2 is modeled by an independent MOGP with kernel
3
With RKHS-norm bound assumptions, the paper establishes
4
with probability at least 5, which is then embedded into probabilistic CLF/CBF constraints (Aali et al., 2024).
Neural SNCBFs introduce another form of piecewise structure. For smooth networks with 6 activations such as tanh or softplus, one can directly evaluate 7, 8, and 9; the paper proposes a verification-free synthesis framework that replaces infinitely many constraints by a finite scenario program and certifies them globally using Lipschitz bounds obtained through LMIs. For ReLU networks, the framework becomes verification-in-the-loop: synthesis alternates with systematic enumeration of activation patterns reachable from an initial point, and each region is checked for correctness and control-feasibility counterexamples. The reported implementation exploits the fact that on each linear region the drift condition reduces to an affine function in 00, so verification is regional and local rather than global (Zhang et al., 26 Jun 2025).
5. Guarantees, feasibility, and compositional extensions
The piecewise-affine probabilistic formulation derives its guarantees from a facetwise union bound. For any polyhedron 01,
02
and summing over 03 yields a total one-step violation bounded by 04. Combined with
05
this gives the 06-step exit-probability guarantee 07 whenever the one-step condition is enforced at each step (Teuwen et al., 3 Dec 2025).
For switching systems with GP residuals, feasibility of the CBF chance constraint is analyzed exactly at the SOC level. For a given mode 08, the regional constraint
09
is feasible if and only if there exists 10 satisfying
11
and
12
with 13 defined from 14. Corollary 2 gives a necessary feasibility condition, and Corollary 3 gives a sufficient one: if 15, then the SOC is feasible (Aali et al., 2024).
In continuous-time stochastic hybrid systems, piecewise or subsystem-wise structure appears through control pseudo-barrier functions 16 attached to subsystems and modes. Under small-gain conditions expressed through matrices 17 and 18, and a weighting vector 19 such that
20
the global barrier
21
is a valid control barrier for the interconnected system. The associated finite-time probability bound in Theorem 3.5 upper-bounds the probability of reaching the unsafe set over 22 in terms of 23, 24, 25, and 26 (Nejati et al., 2020).
A common misconception is that piecewise stochastic barrier methods are merely heuristic approximations. The cited results show stronger statements: zero-gap LP reformulations, necessary and sufficient SOC feasibility conditions, and explicit finite-horizon probability bounds are available in several nontrivial subclasses.
6. Benchmarks, comparative behavior, and limitations
The piecewise-affine probabilistic CBF framework was evaluated on quadruped corridor navigation, unknown-distribution safety filtering, and large-scale path planning. In corridor navigation, with 27, horizon 28, 29, and safe set 30 modeled by 31, the method was compared against Cosner et al. and Fushimi et al. At 32, start at origin, and target exit probabilities 33, the reported empirical values over 5000 trials were 34, closer to target than the alternatives. In the unknown-distribution setting, over 500 runs, conformal prediction was “very tight but computation explodes as 35 (up to seconds per step),” the scenario approach had “moderate conservatism, computation linear in 36 (hundreds of ms),” and the empirical-quantile method had “moderate conservatism, computation 37 ms independent of 38.” In 2D path planning with 13 irregular polygonal obstacles, 39, 40, and 41, the heuristic QP sequence achieved average solve time 42 ms versus 43 ms for the full MIQP, and maximum 44 ms versus 45 ms, with negligible suboptimality in 46 of cases (Teuwen et al., 3 Dec 2025).
The LP-based piecewise stochastic control barrier synthesis of (Mazouz et al., 23 Jul 2025) reported four benchmarks with horizon 47 and safety target 48. For a 2D linear unstable system with 49, the method gave 50, 51, the bound 52, and synthesis time 53 s; Monte-Carlo over 500 trials gave 54 empirical safety. For a 2D linear nonconvex safe set, 55 gave 56, 57, 58, and time 59 s, with 6 violations in 500 trials. For the 3D thermal-regulation model, 60 gave 61, 62, 63, and time 64 s. For the 4D nonlinear unicycle, 65 gave 66, 67, 68, and time 69 s, with zero safety violations in 500 simulations (Mazouz et al., 23 Jul 2025).
The broader PWC-SBF literature emphasizes scalability and comparative performance. The barrier-only synthesis in (Mazouz et al., 2024) reduces to minimax optimization and offers three algorithms: dual LP, iterative counter-example guided synthesis, and gradient descent. The benchmarks report that PWC-SBFs “outperform state-of-the-art methods, namely sum-of-squares and neural barrier functions,” and “can scale to eight dimensional systems.” The data also makes the principal limitations explicit: “curse of dimensionality still looms; partition design is art not science; non-smooth loss requires careful tuning of step-sizes and stopping criteria” (Mazouz et al., 2024).
For neural SNCBFs, the reported trade-off is between expressive coverage and verification efficiency. The smooth 20-neuron softplus inverted pendulum example converged to 70, with full safety ensured by Theorem 2; the CARLA unicycle achieved coverage 71 of the true safe set in 64 min training. In the ReLU verification-in-the-loop regime, a 72-ReLU Darboux network passed verification in 86 epochs and covered 73 of the safe set, while the 3-state unicycle with 74-ReLU required 95 epochs and achieved 75 coverage. The paper summarizes the contrast as a trade-off between “expressivity/coverage (higher for smooth networks)” and “verification efficiency (much faster per step for ReLU piecewise linear nets)” (Zhang et al., 26 Jun 2025).
Taken together, these results position piecewise stochastic control barrier functions as a broad research program rather than a single algorithmic recipe. The unifying pattern is regionalization: once safety is decomposed across cells, facets, modes, or activation regions, stochastic guarantees can be enforced by LP, SOCP, MIQP, MINLP, QP, NLP, scenario programs, or verification-in-the-loop counterexample refinement, depending on the disturbance model and the chosen barrier parameterization.