Manuscript Offprint
arXiv:2611.02626Neural Integral Control Barrier Functions for Agile Collision Avoidance
Abstract
Control barrier functions (CBFs) are a standard way to keep a planner inside a safe set, but they assume control affine dynamics, a barrier function given in closed form, and a known nominal controller. Integral control barrier functions (ICBFs) remove the first assumption and absorb input constraints, yet they still assume a given nominal controller and a barrier function. In this work, we present an approach to learn all three from data, using neural ordinary differential equations (ODEs) for the dynamics, imitation for the nominal controller, and supervised regression for the barrier function. The learned dynamics, nominal controller, and the barrier function are used to build the ICBF filter constraint analytically. Furthermore, the barrier is trained on viability rather than geometry, meaning that a state counts as safe only if some emergency maneuver can still avoid the constraint under the actuator limits, a correction that geometric labels miss entirely and that grows with speed. Actuator limits then enter the online program as hard bounds while the learned barrier rows may be relaxed, which keeps the program solvable at every state and the actuator limits exact, and we bound how far the input it returns can drift from the one the true models would give. On agile racing with a 6-D dynamic bicycle, the filter removes all 12 unsafe episodes from 200 held out layouts at an unchanged success rate and above 100 Hz on one CPU core, holds the input constraint on every episode of a benchmark where a jointly trained baseline holds it on 53.38%, and keeps that advantage under large errors in the plant friction.
1. Introduction
Autonomous vehicles (Hussain and Zeadally, 2018), factory robots, and multi robot teams (Beltrame et al., 2018) must respect hard state and actuator constraints while a performance objective drives them toward the limits of the hardware (Wabersich et al., 2023). The prevailing architecture for this is the safety filter: a nominal planner proposes an input, and a small optimization problem projects that input onto the set of inputs that keep a barrier function nonnegative. With CBFs this projection is a quadratic program (QP) that can be solved at control rates (Ames et al., 2019).
The CBF-QP is normally stated under three assumptions. First, the dynamics must be control affine, since otherwise the filter becomes a sequence of nonlinear programs that are expensive to solve and difficult to analyze (Son and Nguyen, 2019; Seo et al., 2022; Agrawal and Sreenath, 2017). For example, a vehicle with saturating tire forces, a steering slew limit and motor lag is not control affine. Second, a valid barrier must be known in closed form. For an obstacle field it is usually taken to be a signed distance, but the set of states from which a collision can still be avoided is fixed by the dynamics and the actuator limits rather than by the geometry of the obstacles. Learned barriers such as Srinivasan et al. (2020) relax this requirement but remain restricted to control affine systems without input constraints. Third, a stabilizing feedback law for the full nonlinear model is assumed, which is meant to be similar to the original problem. Input constraints compound all three, since the QP need not stay feasible once is confined to a compact set. Feasibility (Zeng et al., 2021; Xiao et al., 2023a,b; Liu et al., 2023a) and input constraints (Agrawal and Panagou, 2021; Breeden and Panagou, 2021, 2023; Black and Panagou, 2023) have both been treated, but under the above three assumptions.
ICBFs (Ames et al., 2020) resolve the first difficulty together with the input constraint. The input is lifted into the state, driven by an integral law , and the QP solves for the auxiliary input . The construction applies to general nonlinear systems and encodes state and input constraints in one scalar function. Current ICBF theory, however, assumes that (assembled from a nominal controller), the dynamics, and the barrier are defined apriori. The open question is: can ICBF-based safety be ensured for systems with unknown dynamics, unknown ICBF formulation, and an unknown nominal controller?
This paper proposes a modular approach that learns all three from data while keeping the ICBF construction analytic. We learn the state transition dynamics with a Neural ODE (Chen et al., 2018), a nominal controller by imitation of an unconstrained planner, and a state barrier by supervised regression. Everything the filter needs is then differentiated out of those three networks, so the online cost is one small quadratic program per control step (Section 4), and no part of the safety requirement is learned as a penalty term. What decides whether such a filter is usable is not the learning itself but two choices inside the construction, which we study in detail.
At high speeds, a state outside an obstacle can also be unsafe, because braking distance and steering authority, not the shape of the obstacle, decide whether a collision is still avoidable. We therefore call a state safe only if at least one emergency maneuver, simulated through with the actuator limits in the loop, keeps the vehicle safe. Furthermore, actuator limits are physics and cannot be violated, and so, actuator range and rate limits become bounds on the decision variable.
- The online program is feasible and input invariant (Proposition 1). An error bound (Theorem 6) further shows that the input computed from the learned models approaches the one the same construction would produce from the true dynamics, controller, and barrier function, and identifies how much authority the input retains over the barrier as the quantity that governs the remaining gap.
We evaluate on a kinematic vehicle and a quadrotor carrying a suspended pendulum, against SABLAS (Qin et al., 2022) on its own double integrator benchmark, and on agile racing with a 6-D dynamic single track model with FITENTH parameters (O'Kelly et al., 2020). An analytical HOCBF-QP (Xiao and Belta, 2022) written for a kinematic model that the vehicle does not obey is unsafe on 29 to 35% of episodes, because the barrier it enforces is certified for dynamics other than the ones in force. Filtering an MPPI planner (Williams et al., 2016) with the learned ICBF at 4.0 m/s instead leaves 0 of 200 held out layouts unsafe against 12 for the planner alone (, paired exact McNemar test), at an unchanged success rate and with every parameter frozen before those layouts were generated.
2. Related work
Input constraints and ICBFs. Once is confined to a compact set, a CBF-QP can lose feasibility. Input constrained CBFs restrict the safe set to the part that bounded inputs can hold (Agrawal and Panagou, 2021), with extensions to high relative degree and robustness (Breeden and Panagou, 2021, 2023), online adaptation (Black and Panagou, 2023) and learned feasibility constraints (Xiao et al., 2023b), but all keep as the decision variable of a control affine model with a barrier in closed form. ICBFs (Ames et al., 2020) instead lift the input into the state through the integral law , so that state and input constraints become constraints on one augmented system, the dynamics need not be control affine, and the program is solved for . Later work made the construction robust to disturbances and extended it to higher relative degree through a disturbance observer (Zinage et al., 2023), and handled input delay through predictor feedback with a closed form feasibility condition for joint state and input constraints (Kiss et al., 2026). Throughout that line of work the dynamics, the barrier and the nominal controller inside are given in closed form, whereas we keep the ICBF construction unchanged and supply all three from data.
Neural ICBFs. Learning has entered ICBF based control only recently. Decentralized neural ICBFs for multi agent navigation (Zinage et al., 2024) learn jointly with a policy by penalizing violations of the ICBF condition in the training loss, recover safety with an embedded MPC based ICBF, and assume that the agent dynamics and a nominal controller defining (an LQR or PID law) are known a priori. Neural CBFs for input limited systems outside the integral formulation, trained against saturating counterexamples (Liu et al., 2023b) or as the value function of a nominal policy (So et al., 2024), likewise assume a known control affine model. Our work differs from these in assuming none of the dynamics, the barrier or the nominal controller, in training the barrier on viability through the learned dynamics rather than on geometry or on a penalized barrier condition, and in enforcing actuator limits as hard bounds of the online program while only the learned barrier rows may be relaxed.
Learned barriers, and what they are trained on. Model based synthesis (Ames et al., 2019; Zinage et al., 2023) requires the constraint set in closed form. Data driven alternatives replace it with a network trained from sampled states (Dawson et al., 2022; Taylor et al., 2020a; Zinage and Bakolas, 2023; Qin et al., 2021a; Ahmadi et al., 2019; Yu et al., 2023), from expert trajectories (Robey et al., 2020; Boffi et al., 2021), or jointly with a policy (Qin et al., 2021b; Meng et al., 2021; Wang et al., 2021). Across this literature the labels are geometric, so the learned set is a smoothed obstacle indicator rather than a set from which the constraint can still be met, and that distinction is what viability labeling addresses. Episodic CBF learning (Cheng et al., 2019; Wang et al., 2018; Taylor et al., 2020b), networks trained to emulate a CBF controller (Yaghoubi et al., 2020) and BarrierNet (Xiao et al., 2021) all start from a valid CBF, and the latter two from known dynamics.
Where safety is enforced. SABLAS (Qin et al., 2022) jointly learns black box dynamics and a control affine safety filter, with safety and input compliance expressed as penalty terms in the training loss, where the optimizer trades them against the task objective so that neither is met exactly. We keep the three learning problems separate and move safety into the online program, which makes each component independently verifiable, makes the error propagation of Theorem 6 tractable, and removes the trade off between tracking and constraint satisfaction, a choice whose cost as well as its benefit is quantified in Section 6.1. Imitation learning (Kostrikov et al., 2019; Dadashi et al., 2020; Zheng et al., 2022; Torabi et al., 2018; Karnan et al., 2022) supplies the nominal controller but cannot encode state or input constraints, which is why the filter is needed at all.
3. Preliminaries and Problem Statement
Consider the general nonlinear controlled system
where , , is continuously differentiable, and and are compact. Let satisfy on , on and on , where is the safe set.
Definition 1 A function as above is a Control Barrier Function (CBF) if there exists a function such that for every .
If (1) is control affine, , safe inputs follow from the CBF-QP subject to , with a stabilizing feedback controller. That program assumes control affine dynamics and a known , and need not remain feasible under input constraints, both of which restrictions the integral formulation below removes.
3.1. Integral Control Barrier Functions (ICBFs)
Consider the integral feedback law with , where is continuously differentiable. Combined with (1) this gives
Let for the augmented state and for a safety set covering both state and input constraints. Forward invariance of requires along every trajectory, which is enforced through an auxiliary input in (Ames et al., 2020).
Definition 2 Let be a class function. A continuously differentiable with is an Integral Control Barrier Function (ICBF) if, for every , whenever , where and .
Theorem 3 (Ames et al., 2020) Let be an integral feedback controller and let be defined by an ICBF in the sense of Definition 2. Modify the integral controller to , where
If the resulting closed loop admits a solution on the interval considered, then is forward invariant along it for every initial condition .
Following Ames et al. (2020), we do not learn a barrier over the joint state and input space. We learn a state barrier , form the extended barrier , and treat the actuator limits separately. The set is therefore not a Cartesian product : it couples and through the dynamics and depends on how a given input moves the state. We now state the overall objective of this paper:
Problem 1 Given that the dynamics of (1), a valid ICBF, and the nominal controller from which the integral law is assembled are all unknown a priori, design an integral feedback law that enforces safety for (1) together with satisfaction of the input constraint .
4. Proposed approach
We learn, in order, (i) the dynamics using neural ODE learning techniques, (ii) a nominal controller in place of using imitation learning, and (iii) a state barrier , and combine them into the safe controller (11), as summarized in Algorithm 1 in the appendix. More specifically, we learn the parameters for each module, and . The parameter sets are learned sequentially in this order as each learned parameter set is needed in the subsequent module. For instance, the barrier labels are generated by simulating backup maneuvers through the learned dynamics, which must therefore exist first. Throughout, we will denote as the collective parameter set. and always denote the corresponding module after training, frozen. Objects assembled from those modules inherit the subscript, so the integral law built from and is written and the extended barrier is written .
Remark 4 (on the sequential nature of the learning approach) Each component is verifiable on its own against a measurable criterion, the error each contributes propagates analytically (Theorem 6), and the training objectives do not compete, because safety is a constraint of the online program rather than a term inside a differentiable loss.
4.1. Nonlinear system identification
System identification refers to estimating or deriving, analytically or from data, a functional form for the given system such that it can be differentiated or placed inside an optimizer.
We use Neural ODEs (Chen et al., 2018) to learn in (1) from a dataset , where each trajectory is a sequence with . The dataset is produced by open loop excitation rather than by logging a controller: initial states are drawn uniformly, actuator values are drawn uniformly from an admissible set and held piecewise constant with small jitter, and the resulting short trajectories are recorded at the control period . Exciting the input box directly is what makes identifiable.
Our simulation studies read the labels from the plant directly, whereas on hardware they would be differenced from the recorded states or the first term of (4) dropped in exchange for the second, which needs only states sampled at . The recorded data form two sets, isolated transitions and short trajectories , and we fit by minimizing
(4) where with , diagonal normalizations and weight , where is the one step transition map obtained by integrating over with a fourth order Runge-Kutta scheme. The second term feeds the model its own predictions, so it penalizes drift accumulated over steps rather than one step error. The transition map is used twice in the paper, here and in Section 4.3, where it is the simulator through which backup maneuvers are rolled out to generate the barrier labels.
4.2. Imitation learning for the nominal controller
Several expert nominal controllers exist but most unfortunately are intractable to run in realtime. It is much easier to learn a lighter weight controller that serves a realistic copy of the expert.
We start by generating a dataset by rolling the expert out on an obstacle free instance of the task from randomized initial states, with a fixed fraction of the executed actions perturbed so that the recorded states leave the expert's own closed loop distribution. That perturbation matters here more than in ordinary behavior cloning, because the filter will itself drive the system off that distribution whenever it intervenes.
We then fit by minimizing , where is a per sample discrepancy between the predicted and the demonstrated action, in our case a squared error normalized by the actuator ranges. Cloning an unconstrained expert also avoids fitting the sharp corners of a saturated policy, which feedforward networks approximate poorly, and the filter would be required in unseen states in any case. The nominal controller is moreover consumed through its Jacobian rather than its output, since is what builds the integral law. Following Remark 3 of Ames et al. (2020) with in the role of , that law is
with gain , the Jacobian being evaluated by automatic differentiation through . Note that depends on two of the three blocks, through and through . An external planner may be substituted for , in which case , and Section 6.3 reports both.
Lemma 5 (Tracking error dynamics induced by ) Let and be continuously differentiable and consider the nominal flow under the unfiltered integral law of (5). Then satisfies , so . Under the filtered law the same cancellation leaves .
Proof , since the Jacobian terms cancel. The cancellation is exact under , which is the model (5) is built from, and holds for the true plant only up to the mismatch .
4.3. Viability labeled Neural ICBFs
We learn a state barrier and construct the extended barrier in its general, non affine form,
(6) which reduces to when the dynamics happen to be control affine. Both derivatives in (6) are taken by automatic differentiation through the learned models, so no closed form for or is required anywhere. The network is trained by regression on labeled states,
and everything turns on how is defined. A geometric label, outside the obstacles and inside, describes where the system is at an instant rather than whether the constraint can still be met, so we replace it with a viability label defined as follows. Fix a finite library of backup maneuvers and a horizon . Simulate each from through the learned dynamics with the actuator model in the loop, so that steering slew and motor lag are respected, and let be the minimum clearance to the constraint along that rollout. The label is
with scale . A state is safe exactly when some admissible maneuver keeps the system clear for seconds, which is a finite horizon, finite library inner approximation of the viability kernel. Two properties follow immediately and distinguish (8) from a worst case test over a single fixed policy. Enlarging can only increase the maximum, so the labeled safe set grows monotonically toward the true viability kernel and the statistic converges as grows, and a state inside the constraint has for every , so that no geometrically unsafe state is ever labeled safe. Both properties are verified empirically in Section 6.2, where they also serve to fix the horizon and the library size.
Enforcement margin. Because is fitted from finite data, we enforce for a margin rather than , and choose as the smallest value at which the measured false safe rate on held out labeled states is zero. Additive disturbances can be handled with the DO-ICBF of Zinage et al. (2023).
4.4. The Resultant Program
Let be the active state barriers, one per nearby constraint, and let be the corresponding ICBF row and right hand side built from (6). The safe input follows the integral law with
where stacks the rows , the values , weights the input channels by their physical rates, penalizes slack, and is the space of auxiliary inputs that keep every channel within both its rate limit and its actuator range, written out in (12).
In , each row, is a barrier gradient contracted with the input Jacobian of the dynamics, involving and . Substituting for in Definition 2 gives,
with a linear class gain on the extended barrier, distinct from the of (6) and from the actuator gain . It adds the drift of the extended barrier along the learned dynamics to the term , which is the only place where the nominal controller acts, since is assembled from by (5). The barrier and the nominal controller are therefore read through their derivatives alone, while the dynamics enter both directly, in the drift, and through the input Jacobian that makes the row nonzero.
What (9) returns is a rate rather than an input, because the ICBF construction lifted into the state of the augmented system (2). The command the actuators receive is obtained by integrating that rate across one control period,
and supplies an admissible starting input because its output layer is bounded and scaled to the actuator ranges.
5. Feasibility, Invariance, and Error Analysis
Forward invariance is enabled assuming an admissible start provided by . The construction also recovers from a start that is outside but not far outside it, as part (ii) of Proposition 1 makes precise.
Proposition 1 (Feasibility and input invariance) Let be the actuator gain and, for each channel , let be its rate limit and its range, so that the input constraints of (9) are carried by
whose second arguments are the ICBF conditions for the actuator range barriers . Write , and suppose the closed loop admits a solution on the interval considered. Then, for every , every and every finite set of barrier rows, the following three statements hold. (i) The set is nonempty, the feasible set of (9) is nonempty, and the minimizer is unique. (ii) The realized rate respects every actuator rate limit, , and renders both and forward invariant. On it returns every violating channel to its range, because forces . (iii) No input constraint is relaxed, because appears only in the barrier rows.
The full argument is given in Appendix A.1. Proposition 1 is what separates this filter from a soft penalty formulation: state safety is approximate, because is learned, but input feasibility is exact and is never purchased at the expense of a barrier row. Section 6.1 shows the empirical counterpart, and Section 6.3 reports that the program was feasible at all 74,590 control steps of the racing evaluation.
We now bound the gap between the input produced from and the input the same construction would produce from . Write for the sup norm errors of and of , for those of and , and for the induced errors in the ICBF row and right hand side.
Assumption 1 On a compact operating set the functions and are continuously differentiable and are twice continuously differentiable, so that and are continuously differentiable, with , and , the policy is Lipschitz, the class function of Definition 2 is Lipschitz, and the ICBF is regular in the sense that with .
Theorem 6 Let and be obtained by one Euler step of the integral law from the same , the first built from and the second from , with in each case the solution of the one row ICBF program (3). Under Assumption 1,
and the row errors obey and , where and are the sup norm gradient errors of and , and and the sup norm errors of and on .
The full proof is given in Appendix A.2. The theorem is stated for the one row program (3) of Theorem 3, which is the setting in which has its meaning. The deployed program (9) adds the input box, the slack variables and one row per nearby constraint, and although its solution map remains Lipschitz in the problem data because the objective is strongly convex, the governing constant is then a Hoffman constant of the active system rather than , and it is not uniform across changes of active set. We therefore do not claim the explicit constants of (13) for that program.
6. Results
We report four studies, beginning in Section 6.1 with two low dimensional systems and the comparison with SABLAS, continuing in Section 6.2 with viability labeling in isolation, and turning in Section 6.3 to the agile racing evaluation that the method targets and to its behaviour when the plant departs from the friction the models were trained on. All code is implemented in PyTorch and all filter timings are on a single CPU core.
6.1. On low dimensional systems
The same pipeline was first validated on two low dimensional systems, a control affine kinematic bicycle and a quadrotor carrying a suspended pendulum (Beard, 2008), each avoiding obstacles on the way to a goal under a nonlinear MPC expert. On both it stays within 1% of the nonlinear MPC cost at roughly a seventh of its runtime, because the program (9) deviates minimally from the unconstrained solution. The full comparison, together with two multi agent navigation methods included as runtime reference points, is given in the supplement. The remainder of this section concerns the choice that separates this framework from a jointly trained filter.
Table 1 compares against SABLAS (Qin et al., 2022) on its own double integrator environment and makes the cost of the two architectures explicit. SABLAS reaches the goal more often and at lower cost, which is what joint training of the policy and the certificate enables. It satisfies the input constraint on 53.38% of episodes, because that constraint is a penalty term competing with
| Method | Safety | Goal | Input compliance | Cost |
|---|---|---|---|---|
| Ours | 100% | 71% | 100% | 16758 |
| SABLAS | 98.49% | 89% | 53.38% | 11474 |
Table 1: Double integrator benchmark of Qin et al. (2022), 100 random test episodes. Input compliance is the fraction of episodes on which the actuator constraint held throughout.


Figure 1: What the viability labeled barrier represents. (left, middle) The learned obstacle barrier in the body frame at two speeds, with its zero level set and the geometric obstacle. At 1 m/s the two nearly coincide, whereas at 5 m/s the unsafe set extends roughly 1.5 m along the approach direction, covering states clear of the obstacle that can no longer avoid it under the actuator limits. (c) Fraction of geometrically safe states that viability relabels unsafe, by speed: the signature of a viability set rather than a smoothed obstacle indicator.
the task objective. Our filter satisfies it on every
episode, for the structural reason given in Proposition 1: the input constraint is a bound on the decision variable, not a term in an objective, so there is nothing for the optimizer to trade it against. However, it comes at a cost of reduction in goal rate while maintaining higher safety with input satisfaction.
6.2. Viability labeling
We sample 12,000 states around an obstacle, with heading, speed, slip and yaw rate drawn over the operating envelope, and compare the geometric label with the viability label (8) computed through with a library of backup maneuvers (three brake levels crossed with six steering policies, plus four full throttle swerves) over s.
Convergence of the labels. Both limits that define the label have converged at the deployed setting. Lengthening the horizon past 0.5 s does not change the labels. The relabeled fraction is 2.52% at 0.3 s and 2.60% from 0.5 s onward, because every backup maneuver has brought the vehicle to rest by then. Enlarging the library moves the fraction monotonically downward, from 6.53% with a single maneuver to 2.61% at eighteen, beyond which it stops changing, so the labeled safe set is stable well before the library is exhausted. No geometrically unsafe state was ever labeled safe, in agreement with the argument in Section 4.3. A worst case test over a single fixed policy has no such limit, since lengthening the horizon or widening the heading sample can only add unsafe states, so the fraction it reports is an artifact of where the sweep was truncated.
Size of the correction, and its dependence on speed. Over the whole sample, geometry marks 8.57% of states unsafe and viability marks 10.95%, so 2.60% of the geometrically safe states are already committed. Fig. 1(c) shows that this correction is concentrated at speed: it is 0.34% below 1 m/s, where the vehicle stops within its own footprint, and rises monotonically to 4.37% above 4 m/s, a factor of thirteen. A barrier trained on geometric labels is therefore not merely conservative at racing speed but wrong, and it is most wrong exactly where the consequences are worst.
Enforcement margin. We enforce and pick by the false safe rate on held out labeled states, the fraction of unsafe states the network scores above the threshold. That rate is 1.70%, 0.076% and 0.00% at , 0.1 and 0.2 for the obstacle barrier, and 1.81%, 0.038% and 0.00% for the wall, so we deploy , the smallest tested value at which no held out unsafe state is scored safe.
6.3. Agile racing with a 6-D dynamic bicycle
Setup. We apply the same pipeline to a non control-affine 6-D dynamic single track model with F1TENTH parameters (O'Kelly et al., 2020), and , with saturating lateral tire forces, a steering slew limit and first order motor lag ( s, RK4). The car races through a cluttered m 4 m track at 3.5 and 4.0 m/s with . Learned components. , trained with (4) over 10 step RK4 rollouts, has a median 1 s open loop position error of 8.5 cm, or 14.1 cm at the 95th percentile. More importantly for the filter, its input Jacobian has median cosine similarity 0.99998 to the true Jacobian and median relative error 8.4%. The expert is a GPU MPPI planner (Williams et al., 2016) on an empty track, and takes the target speed as an additional input. Separate barriers are learned for obstacles and for the wall, the opposite wall following by mirror symmetry, with the viability labels (8), reaching 99.7% and 99.4% sign accuracy. Filter. Program (9) carries one row per nearby obstacle and wall, a grip row on the lateral acceleration predicted by , treated as a state-input ICBF in the sense of Definition 2, together with the input box (12).
Baselines and protocol. We compare MPPI alone with samples, an analytical HOCBF-QP filter (Xiao and Belta, 2022) on MPPI, and the Neural ICBF with either or MPPI as nominal, on 200 layouts never used for tuning and with every parameter frozen beforehand. Unsafe means collision or leaving the track.
Results. Table 2 summarizes the outcomes. At 4.0 m/s MPPI alone is unsafe in 12 of 200 episodes, while the Neural ICBF is unsafe in 1 with as nominal and in 0 with MPPI as nominal, the latter at an unchanged success rate of 84.5% against 84.0%. At 3.5 m/s MPPI alone is already nearly crash free, 1 of 200, and the filter matches it. The analytical HOCBF-QP is unsafe in 29 to 35% of episodes because it enforces a barrier certified for a kinematic model, and the vehicle obeys a dynamic model with tire saturation and actuator lag, so the certificate it enforces is void under the dynamics actually in force. Our learned filter avoids this because its barrier rows are differentiated through , which was fitted to
| v(m/s) | Method | Success | Collision | Out ofbounds | Unsafe | Stall | Timeout |
|---|---|---|---|---|---|---|---|
| 3.5 | MPPI | 172 | 0 | 1 | 1 | 27 | 0 |
| HOCBF-QP | 122 | 58 | 0 | 58 | 14 | 6 | |
| Ours, | 162 | 3 | 0 | 3 | 35 | 0 | |
| Ours, MPPI | 166 | 0 | 0 | 0 | 34 | 0 | |
| 4.0 | MPPI | 168 | 7 | 5 | 12 | 20 | 0 |
| HOCBF-QP | 55 | 69 | 1 | 70 | 18 | 57 | |
| Ours, | 155 | 1 | 0 | 1 | 44 | 0 | |
| Ours, MPPI | 169 | 0 | 0 | 0 | 31 | 0 |
Table 2: Agile racing on 200 held out layouts, in episode counts, with every row summing to 200. MPPI is the planner alone, HOCBF-QP is the analytical filter of Xiao and Belta (2022) applied to it, and Ours is the Neural ICBF with either or MPPI as the nominal controller. Unsafe is the sum of the collision and out of bounds columns.
The filter runs in 7.2 to 7.9 ms per step on a single uncontended CPU core, or 8.7 to 9.2 ms at the 95th percentile, so it closes the loop above 100 Hz without a GPU even though every row is differentiated through two networks at run time. Across the 120 episodes and 74,590 control steps on which solver diagnostics were recorded, (9) was feasible at every step, consistent with Proposition 1.
Note that success is 3 to 6 points lower with as the nominal controller (due to the vehicle stalling), which is expected of a policy trained on an empty track and obstacle unaware by construction. The configuration we would deploy is therefore the filter on top of an obstacle aware planner (e.g. MPPI).
Scope. labeled states are still required, so the framework reduces rather than removes the prior safety knowledge needed, and state safety is enforced only up to the penalized slack in (9), in contrast to the input guarantee of Proposition 1. The method targets a sub limit regime in which MPPI requests more than 90% of the available grip on only 4 to 5% of steps. At 6 m/s the front tire saturates, the steering gradient of the wall barrier changes sign, the margin of Assumption 1 collapses as the term of Theorem 6 anticipates, and the one step program steers into the wall. Removing that failure calls for a predictive formulation rather than a larger library or a finer barrier.
7. Conclusion
We gave a complete learning based realization of the ICBF safety filter for systems whose dynamics, nominal controller and barrier are all unknown, resting on viability labeling through the learned dynamics and on an online program in which actuator limits are hard and learned barrier rows are relaxable. That program is feasible at every state and keeps the actuator set forward invariant, and the filter built on it removes every unsafe episode from an agile racing task at an unchanged success rate and above 100 Hz on one CPU core. The friction limit, deadlock in front of obstacles, and transfer to hardware remain open.
References
Ayush Agrawal and Koushil Sreenath. Discrete control barrier functions for safety-critical control of discrete systems with application to bipedal robot navigation. In Robotics: Science and Systems, volume 13, pages 1–10. Cambridge, MA, USA, 2017.
Devansh R Agrawal and Dimitra Panagou. Safe control synthesis via input constrained control barrier functions. In 2021 60th IEEE Conference on Decision and Control (CDC), pages 6113–6118. IEEE, 2021.
Mohamadreza Ahmadi, Andrew Singletary, Joel W Burdick, and Aaron D Ames. Safe policy synthesis in multi-agent pomdps via discrete-time barrier functions. In 2019 IEEE 58th Conference on Decision and Control (CDC), pages 4797–4803. IEEE, 2019.
Aaron D Ames, Samuel Coogan, Magnus Egerstedt, Gennaro Notomista, Koushil Sreenath, and Paulo Tabuada. Control barrier functions: Theory and applications. In 2019 18th European control conference (ECC), pages 3420–3431. IEEE, 2019.
Aaron D Ames, Gennaro Notomista, Yorai Wardi, and Magnus Egerstedt. Integral control barrier functions for dynamically defined control laws. IEEE control systems letters, 5(3):887–892, 2020.
Randal W Beard. Quadrotor dynamics and control. Brigham Young University, 19(3):46–56, 2008.
Giovanni Beltrame, Ettore Merlo, Jacopo Panerati, and Carlo Pinciroli. Engineering safety in swarm robotics. In Proceedings of the 1st International Workshop on Robotics Software Engineering, pages 36–39, 2018.
Mitchell Black and Dimitra Panagou. Consolidated control barrier functions: Synthesis and online verification via adaptation under input constraints. arXiv preprint arXiv:2304.01815, 2023.
Nicholas Boffi, Stephen Tu, Nikolai Matni, Jean-Jacques Slotine, and Vikas Sindhwani. Learning stability certificates from data. In Conference on Robot Learning, pages 1341–1350. PMLR, 2021.
Joseph Breeden and Dimitra Panagou. High relative degree control barrier functions under input constraints. In 2021 60th IEEE Conference on Decision and Control (CDC), pages 6119–6124. IEEE, 2021.
Joseph Breeden and Dimitra Panagou. Robust control barrier functions under high relative degree and input constraints for satellite trajectories. Automatica, 155:111109, 2023.
Ricky TQ Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. Advances in neural information processing systems, 31, 2018.
Yu Fan Chen, Miao Liu, Michael Everett, and Jonathan P How. Decentralized non-communicating multiagent collision avoidance with deep reinforcement learning. In 2017 IEEE international conference on robotics and automation (ICRA), pages 285–292. IEEE, 2017.
Richard Cheng, Gábor Orosz, Richard M Murray, and Joel W Burdick. End-to-end safe reinforcement learning through barrier functions for safety-critical continuous control tasks. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pages 3387–3395, 2019.
Rahman Dadashi, Loic Hussenot, Mathieu Geist, and Olivier Pietquin. Primal wasserstein imitation learning. CoRR, abs/2006.04678, 2020.
Charles Dawson, Zengyi Qin, Sicun Gao, and Chuchu Fan. Safe nonlinear control using robust neural lyapunov-barrier functions. In Conference on Robot Learning, pages 1724–1735. PMLR, 2022.
Stepan Dergachev and Konstantin Yakovlev. Distributed multi-agent navigation based on reciprocal collision avoidance and locally confined multi-agent path finding. In 2021 IEEE 17th International Conference on Automation Science and Engineering (CASE), pages 1489–1494. IEEE, 2021.
Rasheed Hussain and Sherali Zeadally. Autonomous cars: Research results, issues, and future challenges. IEEE Communications Surveys & Tutorials, 21(2):1275–1313, 2018.
Haresh Karnan, Faraz Torabi, Garrett Warnell, and Peter Stone. Adversarial imitation learning from video using a state observer. In 2022 International Conference on Robotics and Automation (ICRA), pages 2452–2458. IEEE, 2022.
Adam K. Kiss, Ersin Das, Tamas G. Molnar, and Aaron D. Ames. Integral control barrier functions with input delay: Prediction, feasibility, and robustness. arXiv preprint arXiv:2603.24566, 2026.
Ilya Kostrikov, Ofir Nachum, and Jonathan Tompson. Imitation learning via off-policy distribution matching, 2019.
Shuo Liu, Wei Xiao, and Calin A Belta. Feasibility-guaranteed safety critical control with applications to heterogeneous platoons. arXiv preprint arXiv:2310.00238, 2023a.
Simin Liu, Changliu Liu, and John Dolan. Safe control under input limits with neural control barrier functions. In Proceedings of The 6th Conference on Robot Learning, volume 205 of Proceedings of Machine Learning Research, pages 1970–1980. PMLR, 2023b.
Yue Meng, Zengyi Qin, and Chuchu Fan. Reactive and safe road user simulations using neural barrier certificates. In 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 6299–6306. IEEE, 2021.
Matthew O'Kelly, Hongrui Zheng, Dhruv Karthik, and Rahul Mangharam. F1TENTH: An open-source evaluation environment for continuous control and reinforcement learning. In NeurIPS 2019 Competition and Demonstration Track, pages 77–89. PMLR, 2020.
Zengyi Qin, Kaiqing Zhang, Yuxiao Chen, Jingkai Chen, and Chuchu Fan. Learning safe multi-agent control with decentralized neural barrier certificates. arXiv preprint arXiv:2101.05436, 2021a.
Zengyi Qin, Kaiqing Zhang, Yuxiao Chen, Jingkai Chen, and Chuchu Fan. Learning safe multi-agent control with decentralized neural barrier certificates. arXiv preprint arXiv:2101.05436, 2021b.
Zengyi Qin, Dawei Sun, and Chuchu Fan. Sablas: Learning safe control for black-box dynamical systems. IEEE Control Systems Letters, 6:2527–2532, 2022.
Alexander Robey, Haimin Hu, Lars Lindemann, Hanwen Zhang, Dimos V Dimarogonas, Stephen Tu, and Nikolai Matni. Learning control barrier functions from expert demonstrations. In 2020 59th IEEE Conference on Decision and Control (CDC), pages 3717–3724. IEEE, 2020.
Joohwan Seo, Joonho Lee, Eunkyu Baek, Roberto Horowitz, and Jongeun Choi. Safety-critical control with nonaffine control inputs via a relaxed control barrier function for an autonomous vehicle. IEEE Robotics and Automation Letters, 7(2):1944–1951, 2022.
Oswin So, Zachary Serlin, Makai Mann, Jake Gonzales, Kwesi Rutledge, Nicholas Roy, and Chuchu Fan. How to train your neural control barrier function: Learning safety filters for complex input-constrained systems. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pages 11532–11539. IEEE, 2024.
Tong Duy Son and Quan Nguyen. Safety-critical control for non-affine nonlinear systems with application on autonomous vehicle. In 2019 IEEE 58th Conference on Decision and Control (CDC), pages 7623–7628. IEEE, 2019.
Mohit Srinivasan, Amogh Dabholkar, Samuel Coogan, and Patricio A Vela. Synthesis of control barrier functions using a supervised machine learning approach. In 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 7139–7145. IEEE, 2020.
Andrew Taylor, Andrew Singletary, Yisong Yue, and Aaron Ames. Learning for safety-critical control with control barrier functions. In Learning for Dynamics and Control, pages 708–717. PMLR, 2020a.
Andrew J Taylor, Andrew Singletary, Yisong Yue, and Aaron D Ames. A control barrier perspective on episodic learning via projection-to-state safety. IEEE Control Systems Letters, 5(3):1019–1024, 2020b.
Faraz Torabi, Garrett Warnell, and Peter Stone. Behavioral cloning from observation. arXiv preprint arXiv:1805.01954, 2018.
Kim P Wabersich, Andrew J Taylor, Jason J Choi, Koushil Sreenath, Claire J Tomlin, Aaron D Ames, and Melanie N Zeilinger. Data-driven safety filters: Hamilton-jacobi reachability, control barrier functions, and predictive methods for uncertain systems. IEEE Control Systems Magazine, 43(5):137–177, 2023.
Chuanzheng Wang, Yiming Meng, Yinan Li, Stephen L Smith, and Jun Liu. Learning control barrier functions with high relative degree for safety-critical control. In 2021 European Control Conference (ECC), pages 1459–1464. IEEE, 2021.
Li Wang, Evangelos A Theodorou, and Magnus Egerstedt. Safe learning of quadrotor dynamics using barrier certificates. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pages 2460–2465. IEEE, 2018.
Grady Williams, Paul Drews, Brian Goldfain, James M Rehg, and Evangelos A Theodorou. Aggressive driving with model predictive path integral control. In 2016 IEEE International Conference on Robotics and Automation (ICRA), pages 1433–1440. IEEE, 2016.
Wei Xiao and Calin Belta. High-order control barrier functions. IEEE Transactions on Automatic Control, 67(7):3655–3662, 2022.
Wei Xiao, Ramin Hasani, Xiao Li, and Daniela Rus. Barriernet: A safety-guaranteed layer for neural networks. arXiv preprint arXiv:2111.11277, 2021.
Wei Xiao, Christos G Cassandras, and Calin Belta. Feasibility for cbf-based optimal control using machine learning. In Safe Autonomy with Control Barrier Functions, pages 53–72. Springer, 2023a.
Wei Xiao, Christos G Cassandras, and Calin A Belta. Learning feasibility constraints for control barrier functions. arXiv preprint arXiv:2303.09403, 2023b.
Shakiba Yaghoubi, Georgios Fainekos, and Sriram Sankaranarayanan. Training neural network controllers using control barrier functions in the presence of disturbances. In 2020 IEEE 23rd International Conference on Intelligent Transportation Systems (ITSC), pages 1–6. IEEE, 2020.
Chenning Yu, Hongzhan Yu, and Sicun Gao. Learning control admissibility models with graph neural networks for multi-agent navigation. In Conference on Robot Learning, pages 934–945. PMLR, 2023.
Jun Zeng, Zhongyu Li, and Koushil Sreenath. Enhancing feasibility and safety of nonlinear model predictive control with discrete-time control barrier functions. In 2021 60th IEEE Conference on Decision and Control (CDC), pages 6137–6144. IEEE, 2021.
Boyuan Zheng, Sunny Verma, Jianlong Zhou, Ivor W Tsang, and Fang Chen. Imitation learning: Progress, taxonomies and challenges. IEEE Transactions on Neural Networks and Learning Systems, (99):1–16, 2022.
Vrushabh Zinage and Efstathios Bakolas. Neural koopman control barrier functions for safety-critical control of unknown nonlinear systems. In 2023 American Control Conference (ACC), pages 3442–3447. IEEE, 2023.
Vrushabh Zinage, Rohan Chandra, and Efstathios Bakolas. Disturbance observer-based robust integral control barrier functions for nonlinear systems with high relative degree. arXiv preprint arXiv:2309.16945, 2023.
Vrushabh Zinage, Abhishek Jha, Rohan Chandra, and Efstathios Bakolas. Decentralized safe and scalable multi-agent control under limited actuation. arXiv preprint arXiv:2409.09573, 2024.
Appendix A. Supplementary material
A.1. Proof of Proposition 1
The three parts are proved in turn. Part (i) is a statement about the geometry of the box of (12) and about convexity of the program, part (ii) identifies the two bounds defining that box as rate limits and as barrier conditions for the actuator range, and part (iii) reads off the role of the slack variable. Throughout, indexes a single input channel, and all statements are made channel by channel because both and are products over .
Proof [Proof of Proposition 1]
Part (i), the box is nonempty exactly on . By (12) the channel bounds are
so the interval is nonempty if and only if . The term is common to both bounds and cancels, which leaves
For real numbers, holds if and only if for all four pairs, so the display above is equivalent to the following four inequalities, which we take one at a time.
(a) rate against rate:
(b) range against range:
(c) rate against range:
(d) range against rate:
Inequalities (a) and (b) hold for every , since and by hypothesis. The remaining two are the only ones that constrain , and together they say precisely that , which is membership of . Since each step above is an equivalence, the conclusion runs in both directions: is a nonempty box for every , and it is empty as soon as for some channel. Hence is not merely sufficient but is the largest set over which the claim can be made. The box is also bounded and closed, being a finite product of compact intervals, so it is compact.
Part (i) continued, the program is feasible with a unique minimizer. Feasibility of (9) needs a pair , not a alone. Take any , which part (i) has just supplied, and set
the positive part taken componentwise. Then by construction, and row by row either , in which case , or , in which case . Either way , so is feasible and the feasible set is nonempty. It is also closed and convex, being the intersection of a box with finitely many halfspaces.
For uniqueness, the objective is a quadratic form in the stacked variable with Hessian
Here gives , and gives , so the Hessian is positive definite and the objective is strictly convex. A strictly convex function on a nonempty closed convex set attains its minimum at exactly one point, which proves the claim. Note that nothing in this argument referred to or , so it is independent of how many barrier rows there are and of whether the learned barrier is accurate.
Part (ii), the realized rate respects the rate limits and keeps and invariant. The minimizer satisfies , that is . Adding throughout and using cancels the in the bounds and gives the two sided estimate
This single display carries both conclusions, obtained by keeping one entry of the max and of the min at a time.
Keeping the rate entries gives , which is the rate limit .
Keeping the range entries gives the barrier conditions. Write the two actuator range barriers as
so that and for every . Differentiating and substituting the range entries,
Both are the differential condition for a barrier function with the linear class function . The comparison lemma applied to yields , so forces for all in the interval considered. Applying this to for every gives forward invariance of .
For the same argument runs with the enlarged barriers , whose zero superlevel sets intersect to . Using and the range entry once more,
since , and symmetrically for . So is forward invariant as well.
Finally, suppose the input starts in , so that some channel has . The range entry of the upper bound then reads
strictly negative because and , so that channel decreases, and it continues to decrease until . The case is symmetric, with the lower bound giving . Every violating channel is therefore returned to its range, which is the recovery claim.
Part (iii), no input constraint is relaxed. The slack enters (9) in exactly two places, the barrier rows and its own sign constraint , together with the penalty in the objective. The input constraint is the separate requirement , in which does not appear. Consequently no value of , however large, can enlarge the set of admissible , and the bounds used in part (ii) hold for the minimizer whatever the barrier rows demand. Relaxation is available to the learned part of the problem and is unavailable to the physical part.
A.2. Proof of Theorem 6
The proof has four steps. Step 1 splits the deviation into a part caused by the integral law and a part caused by the quadratic program, so that the two sources of error can be bounded separately. Step 2 bounds the integral law part, Step 3 bounds the program part by exploiting the closed form of the one row program, and Step 4 traces the row errors and used in Step 3 back to the errors of the three networks. Every step uses the same elementary device, namely inserting a term that is a hybrid of the true and the learned object so that a difference of products becomes a sum of differences, each with one factor held fixed.
Proof [Proof of Theorem 6]
Step 1, splitting the deviation. Both inputs are produced from the same by one Euler step of the integral law, the learned one using and the true one using ,
The common u cancels on subtraction, and the triangle inequality separates the two sources,
The factor in front is the reason the statement is a one step result. It is also why both bracketed terms must be bounded by quantities that vanish with the model errors, which is what the next two steps establish.
Step 2, the integral law term. By (5) the two integral laws are the same expression evaluated on different objects,
The difficulty is the leading term, in which both factors differ. Inserting the hybrid , which uses the learned Jacobian against the true dynamics, turns that product difference into two terms each having one factor fixed,
Taking norms and applying Assumption 1 to each factor in turn, with because is Lipschitz and ,
which is the integral law group of (13). Each of its three terms is attributable to one learned object, so a reader can see which network is responsible for which part of the bound.
Step 3, the quadratic program term. The one row program (3) minimizes subject to the single constraint , and this problem can be solved in closed form. If the unconstrained minimizer is already feasible, and if the constraint is active and the minimum norm solution is the projection onto the constraint boundary along . The two cases combine into
and likewise with . The deviation is again a difference of products, so we insert the hybrid ,
It remains to bound the scalar multiplier gap . Splitting it so that the numerator and the denominator vary one at a time,
For the first term, is 1 Lipschitz, so , and by the regularity part of Assumption 1. For the second, and
where the numerator uses the reverse triangle inequality together with , and the denominator uses . Combining the two terms,
Substituting this into the earlier estimate, and using on the first term together with and on the second,
which is the QP solution map group of (13). Adding this to Step 2 and multiplying by proves (13). The two appearances of in the denominators arise from different places, one from inverting and one from differentiating that inverse, which is why the worst dependence is rather than .
Step 4, the row errors. Step 3 treated and as given. We now bound them by the network errors, so that the whole estimate rests on measurable quantities.
For the row, (6) gives , a product in which both factors are learned. Inserting the hybrid ,
Only Jacobian errors appear here, not prediction errors, which is the reason Section 6 validates directly rather than reporting rollout accuracy alone.
For the right hand side, Definition 2 applied to gives , and we bound the three terms separately.
-
The class term is Lipschitz by Assumption 1, so .
-
The drift term is a product in which both factors are learned. Inserting the hybrid ,
whose norm is at most by the bounds and .
- The nominal term is handled the same way, inserting the hybrid ,
whose norm is at most by and .
Summing the three contributions,
as claimed. The two barrier errors on the right are themselves controlled by the smoothness granted in Assumption 1, since is assembled from and by (6), so that is controlled by the error of together with the error of , and by those errors at one order higher, which is where the requirement on is used. Every term in (13) is therefore proportional to an error of one of the three networks, and the bound vanishes when all three are exact. ■
A.3. Low dimensional systems
The vehicle is a control affine kinematic bicycle, , and must reach a goal while avoiding circular obstacles, while the quadrotor with a suspended pendulum uses the dynamics of Beard (2008) with spherical obstacles. Expert trajectories come from nonlinear MPC solved with do-mpc. Table 3 reports the average time to reach the goal from 100 sampled initial states together with the average closed loop quadratic cost in state and input. Nonlinear MPC attains the lowest cost at the highest runtime, since it solves non convex programs online, whereas our filter stays within 1% of that optimum at a fraction of the runtime, because the program (9) deviates minimally from the unconstrained solution. ORCA-MAPF (Dergachev and Yakovlev, 2021) and CADRL (Chen et al., 2017) serve as runtime reference points only, since both were designed for reciprocal multi agent collision avoidance rather than as safety filters, so the cost column should not be read as a like for like comparison against them.
A.4. Ablations
Ablations. Table 4 isolates three choices on the held out layouts at 4.0 m/s on which MPPI alone is unsafe. Twelve layouts cannot separate outcome counts, so the discriminating quantities are
| Method | Vehicle | Quadrotor-pendulum | ||
|---|---|---|---|---|
| Time (s) | Cost | Time (s) | Cost | |
| NMPC | 5.562 | 4.583 | 10.242 | 15.232 |
| ORCA-MAPF | 1.373 | 6.839 | 2.328 | 21.281 |
| CADRL | 0.837 | 5.683 | 2.181 | 19.283 |
| Ours | 0.736 | 4.631 | 1.550 | 15.672 |
Table 3: Time to goal and average closed loop cost on the two low dimensional systems. ORCA-MAPF and CADRL are runtime reference points rather than safety filters, so the cost column is not a like for like comparison against them.
the clearance reached and the use made of the relaxation. Every configuration kept the program feasible at every step, including those that degrade safety, which is Proposition 1 at work: feasibility follows from the structure of (9) rather than from the quality of or the choice of gains. Of the three, the grip row matters most, since it is the only state-input row and without it the filter may command lateral accelerations the tires cannot deliver. The smallest obstacle barrier value reached falls from +0.29 to -0.05, so the vehicle leaves the learned safe set, and slack becomes active on 2.77% of steps against 0.16% with the row present. The filter stays feasible and still intervenes, but it is enforcing a barrier through a model of the input response that the plant no longer obeys. The margin and the gain act on that same clearance from opposite directions. Removing the margin, , reduces the smallest barrier value reached to +0.20, which is what the margin was introduced to buy and matches the open loop false safe rates of Section 6.2, while raising the gain from to halves it to +0.14, because a larger lets the extended barrier tolerate a faster approach while is still positive. Neither changes the outcome counts on these layouts.
| Configuration | Success | Unsafe | min | QP feasible | Slack active | Interventions |
|---|---|---|---|---|---|---|
| Default (, , grip row) | 8/12 | 0/12 | +0.29 | 100% | 0.16% | 44% |
| No enforcement margin () | 9/12 | 0/12 | +0.20 | 100% | 0.13% | 45% |
| Barrier gain | 9/12 | 0/12 | +0.14 | 100% | 0.15% | 45% |
| No grip row | 7/12 | 0/12 | -0.05 | 100% | 2.77% | 31% |
A.5. Behavior under plant mismatch
Behavior under plant mismatch. Every learned component assumes the friction its training data was generated at, , so lowering the friction of the plant alone probes the regime that the split in (9) was designed for. On 16 held out layouts at 4.0 m/s with all three models left unchanged, the planner alone is unsafe on 3 layouts at and on 7 at , against 0 and 1 for the filtered system, and it reaches the
Table 4: Ablations on the 12 held out layouts at 4.0 m/s on which MPPI alone is unsafe, with MPPI as the nominal controller. min is the smallest obstacle barrier value reached in closed loop, before the enforcement margin is subtracted, so a negative entry means the learned safe set was left. Interventions is the fraction of steps at which .
goal on 10 and 6 against 13 and 11. Both gaps widen as the plant departs from the models, because under mismatch it is the planner and not the filter that degrades, and at the safety difference approaches significance on 16 layouts alone (). The mechanism is visible in the solver: slack activity, 0.16% of steps at matched friction, rises by roughly an order of magnitude to 1.4% and 1.0%, while (9) stays feasible at every step and no actuator limit is ever relaxed. The relaxation absorbs the model error exactly where Proposition 1 says it must.
A.6. Algorithm
Input: expert , sampling distributions, backup library , horizon , gains , margin
Output: and the online filter
Stage 1 (dynamics). Excite the plant, collect , fit by (4) and report the error Stage 2 (nominal). Roll out on the unconstrained task, collect , fit Stage 3 (barrier). foreach sampled state do
end
Fit by (7), then pick as the smallest margin with zero false safe rate on held out states Online. while running do
assemble from (6) by automatic differentiation through and build from the actuator ranges and rates by (12) solve (9) for , then set and apply it
end
Algorithm 1: Neural ICBF safety filter: offline training and online use
A.7. Network architectures and training
is a three hidden layer network of width 256 with tanh activations, taking and returning , where smooth activations are required because the filter differentiates through it twice. is a four hidden layer network of width 256 with a tanh output scaled to the actuator ranges. Both barriers are three hidden layer networks of width 256 with a tanh output, taking the relative state and the obstacle radius. Training uses AdamW with cosine annealing from to . Unsafe states are weighted five times in (7).