Manuscript Offprint
arXiv:2611.04957Safeguarding Multi-Agent Reinforcement Learning for Connected and Automated Vehicles with Recursively Feasible Control Barrier Functions
Jianye Xu , Student Member, IEEE, Yousef Sayed , Bassam Alrifaee , Senior Member, IEEE
Abstract—Multi-Agent Reinforcement Learning (MARL) shows promise in coordinating connected and automated vehicles but offers no safety guarantee. Although Control Barrier Functions (CBFs) can add this guarantee, their optimization problem can become infeasible in practice due to control bounds. Moreover, they often overapproximate vehicle and road geometry, which makes them conservative. This paper proposes the Backup-Horizon CBF (BH-CBF), which evaluates safety along a horizon until all vehicles stop. BH-CBF is recursively feasible under control bounds, and it considers the exact vehicle and road geometry. Based on BH-CBF, we derive a fully decentralized safety filter that only needs a single broadcast of vehicle states and routes per step and stays real-time in dense traffic. We use BH-CBF to safeguard a MARL policy over its life cycle: as a reward during pre-training, as a run-time filter at deployment, and as a filter in the training loop that keeps fine-tuning on unseen maps collision-free. In simulations on real-world maps of a roundabout and an intersection, BH-CBF avoids all collisions of unsafe MARL policies and keeps its safety guarantee at every step. Existing filters either collide, lose the guarantee, or fall back to full braking far more often. In recorded roundabout traffic with 1264 human-driven vehicles over 115 km, our safeguarded policies shorten the median travel time by 14% compared with the human drivers, without any collision.
Index Terms—Connected and autonomous vehicles, control barrier functions, methods for safety, multi-agent reinforcement learning, optimization and control
I. INTRODUCTION
Multi-Agent Reinforcement Learning (MARL) policies have become a promising approach to coordinating Connected and Automated Vehicles (CAVs) in interactive traffic such as merges, lane changes, intersections, and roundabouts [1]–[4]. Such policies are fast at run time and scale with the number of vehicles, and they can learn cooperative behavior from interaction instead of relying on hand-designed coordination rules [1]. However, a learned policy offers no safety guarantee since it is trained to maximize a reward that scores its behavior. Collision penalties reduce collisions but do not exclude them, and the behavior of the policy degrades in scenarios that differ from training, such as unseen road layouts [5] or the transfer from simulation to real vehicles [6]. Therefore, safety-critical deployment requires a safeguard for the learned policy that does not depend on how well the policy generalizes.

(a) A roundabout.
(b) An intersection.
Fig. 1: An unsafe MARL policy safeguarded by our BH-CBF. Light trails: predictions of braking to a standstill along the route. Red: standstill distance of a vehicle pair.
Safeguards for learned policies can be classified by how they modify the action proposed by the policy [7], which we call the nominal action. Action masking restricts the action space to verified actions, action replacement substitutes a verified action, as in shields [8], and action projection moves the action to the closest safe one. We focus on action projection, which keeps interventions small. Control Barrier Function (CBF) safety filters are among the most prominent projection methods, where a Quadratic Program (QP) modifies the nominal action minimally so that a barrier condition holds [7]. The barrier condition bounds how fast a safety margin (e.g., the distance to the nearest vehicle) may shrink in the next step. It thereby keeps the system in a safe set of states at all future times, i.e., it renders the safe set forward invariant [9], [10]. Since CBF filters work with any nominal planner, they suit learned policies [11]. Learned graph CBFs even scale to more than a thousand agents, although their learned barriers are not verified [12]. For CAVs, MARL policies have been safeguarded by replacing unsafe merging actions with those of a priority-based supervisor [2] and by testing discrete lane-change actions for the feasibility of a CBF-QP [3]. However, two shortcomings of existing CBF filters limit their use for CAVs in dense urban traffic.
First, existing CBF filters often overapproximate the vehicle and road geometry. Multi-robot CBFs commonly model agents as disks [13]. Lane-keeping CBFs bound the lateral offset of a reference point from the lane center [9], [14] or shrink the admissible lateral offsets and yaw angles of a rectangle on a straight lane to an inscribed ellipse [15]. Such approximations remove the lateral space a rectangular vehicle has in a narrow lane, which makes the filter conservative, lowers throughput, or even causes deadlocks. Optimization inside the filter can
Department of Computer Science, RWTH Aachen University, Germany, xu@embedded.rwth-aachen.de
Department of Aerospace Engineering, University of the Bundeswehr Munich, Germany, yousef.sayed@tum.de, bassam.alrifaee@unibw.de
This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.
compute exact distances between convex shapes, but these methods solve one centralized QP over all robots [16] or address a single robot [17]. Moreover, the distance is zero for overlapping shapes, so it gives no direction to recover from a collision. The largest gap along the edge normals of two polygons is a closed-form lower bound of their signed distance that is negative when they overlap [18]. However, its smoothed version is proven to be a conservative continuous-time CBF only for two single integrators with unbounded inputs [19].
Second, existing CBF filters lack recursive feasibility, i.e., the guarantee that the filter finds an admissible control that satisfies the barrier condition at every future step. This lack is the most consequential limitation for safeguarding MARL policies. A function whose nonnegative values define the safe set is only a candidate CBF. It is a valid CBF if such a control exists at every safe state, and only then does the filter remain feasible and keep the safe set forward invariant [20], [21]. Under control bounds, no general method yields a valid CBF, so candidate CBFs are often used in practice without this guarantee [22], [23]. This is because the barrier condition is myopic: it constrains only the next step, whether a continuous-time condition is enforced at the sampling instants [14], [15], [19] or a discrete-time condition is imposed on a one-step prediction [24]. Some constraints are affected by the control indirectly. For example, an acceleration command changes the distance between two vehicles only through their speeds. The High-Order CBF handles such constraints by chaining a set of class K functions [22], whereas the Truncated Taylor CBF (TTCBF) of our prior work imposes the condition on a truncated Taylor prediction with a single class K function [25], [26]. In dense traffic, vehicles approach each other quickly when merging or entering a roundabout and come close to each other or to a lane boundary. Then no control within control bounds satisfies the condition, the QP becomes infeasible, and the safety guarantee is lost. CBF-based merging of CAVs [27] and a CBF shield for MARL-based CAV planning [3] share this limitation: both guarantees assume that the QP is feasible at every step. The shield falls back to an emergency stop without a safety guarantee when the QP is infeasible.
Several families of filters look beyond one step and preserve the ability of a fallback maneuver to keep the system safe [28]. Hamilton-Jacobi reachability analysis yields the least restrictive filter, but its computational cost grows exponentially with the state dimension, so it cannot be applied to many CAVs [28]. Predictive safety filters plan a whole input sequence that ends in a set known to be safe [29]. Most methods use a fixed backup policy, which is a fallback maneuver such as emergency braking, and require that the backup keeps the system safe from the state that the applied control reaches. Model predictive shielding [8], [30], gatekeeper [31], and fail-safe trajectories [32] use action replacement: they substitute the backup control for an unsafe nominal action, so an intervention can jump from the nominal action to full braking. Backup CBFs impose continuous-time conditions along the backup over a fixed horizon that must end in a known safe set [33], [34]. The smallest safety margin along a fixed policy is itself a discrete-time CBF [35]. It has been learned without verification [35], evaluated by finite rollouts in continuous time
[36], and derived for a single controlled vehicle on a straight road [37]. A related reach-avoid value has been approximated online by differential dynamic programming [38]. For CAVs, these backup-based filters either switch abruptly to the backup, require a fixed horizon ending in a synthesized terminal set, or are limited to one vehicle or to barriers without a guarantee.
Many interacting CAVs further require decentralized computation, because each vehicle must determine its own control from what it observes or receives. The core difficulty is to ensure that the control one vehicle optimizes does not conflict with the controls that the other vehicles optimize at the same time [39]. For a CBF, a pair condition couples the controls of two vehicles, so it must be split into one part per vehicle such that the two parts together imply it. Barrier certificates for multiple robots split each pair condition between the two robots in proportion to their acceleration limits [13]. In the decentralized backup CBF, each robot covers half of the allowed decrease of a smooth pair barrier [40]. This split is exact only in continuous time, where the rate of change of the barrier is the sum of one term per robot. Over a finite sampling step, the motions of the two robots interact, so the two halves no longer imply the pair condition. Other methods split the space instead of the condition and keep the planning problems recursively feasible. They separate the agents by hyperplanes between communicated trajectories [41] or by planes that bisect the braking positions of spherical agents, which needs no communication [42]. None of these splits a pair condition so that it remains valid over a finite step for rectangular vehicles whose heading changes.
Safeguarding a MARL policy also takes more than filtering its actions. A filter alone leaves the policy unchanged, so a policy that relies on it keeps proposing unsafe actions. A CBF can also make the policy itself safer. Its condition can serve as a reward that penalizes violations during training, as in our prior work [43]. The policy can also be trained with the filter in the loop [7], [11]. Both uses inherit the myopia of the one-step condition. The reward penalizes an unsafe action only when a violation is imminent, and an infeasible filter cannot avoid collisions with guarantees.
In summary, a decentralized CBF that is recursively feasible under control bounds and considers the exact vehicle and road geometry is still missing. Nor does any CBF for CAVs look far enough ahead to serve as a reward or as a filter in the training loop of a MARL policy. This paper closes both gaps with the Backup-Horizon CBF (BH-CBF). Our contributions are:
-
We propose BH-CBF, which evaluates the safety margins along a backup policy that brakes every vehicle to a standstill along its route (light trails in Fig. 1). This horizon makes BH-CBF recursively feasible under control bounds, i.e., a valid CBF, and its margin considers the exact vehicle and road geometry.
-
We derive a fully decentralized safety filter from BH-CBF. Each vehicle computes its own control from one broadcast of vehicle states and routes per step, and the computation time stays real-time in dense traffic.
-
We show how BH-CBF safeguards a MARL policy over its life cycle: as a reward in pre-training, as a run-time filter at deployment, and as a filter in the training loop that keeps fine-tuning on unseen maps collision-free.
We evaluate BH-CBF on real-world maps of a roundabout and an intersection against state-of-the-art one-step CBF filters, the backup CBF, and model predictive shielding. In recorded roundabout traffic with 1264 human-driven vehicles, we demonstrate that our safeguarded policies shorten the median travel time of the human drivers by 14% without any collision. Video demonstrations and the code that reproduces our results are available at https://bassamlab.github.io/BH-CBF.
This paper extends our prior work. Our filter for polyline lane boundaries [44] covered the vehicle with circles and used a smoothed pseudo-distance, but it is limited to a single vehicle. Our learned pair barrier [45] approximated the separation of two rectangles by a neural network. BH-CBF uses the exact vehicle geometry instead and handles many vehicles. In [26], we suggested extending TTCBF to a longer look-ahead with the input held constant but left its theory open, which BH-CBF settles with an exact prediction along a backup policy. Our one-step CBF reward [43] used the TTCBF condition with circular footprints, and BH-CBF replaces both.
The rest of the paper is organized as follows. Section II states the problem. Section III presents BH-CBF with its guarantees, and Sec. IV describes how it safeguards MARL policies. Section V reports the evaluation, and Sec. VI concludes.
Throughout the paper, vectors, matrices, and vector-valued functions are bold, e.g., and ; sets are calligraphic. A superscript or refers to vehicle or to the pair ; other indices, such as the time step , are subscripts. A prediction made at step for step carries the subscript , e.g., . Joint quantities of all vehicles are written without the vehicle superscript, e.g., . The Euclidean inner product and norm are and , and is the ceiling.
Each CAV is modeled by the kinematic bicycle model [47] (Fig. 2). Vehicle has the state , with position , heading , speed , and steering angle . Its control contains acceleration , , and steering rate . The rear-axle distance and the wheelbase define the slip angle . The dynamics of vehicle are with given by (we sometimes drop the superscript where only one vehicle is involved)

Fig. 2: Kinematic bicycle model. : position; : heading; : speed; : slip angle; : steering angle; : rear-axle distance; : wheelbase.
The controller runs at the sampling period , and the vehicles evolve according to the explicit-Euler discretization
The admissible controls are those that keep the next speed and steering angle within their limits. We denote the joint state , the joint control , the joint admissible set , and the joint dynamics , .
Safety depends on the area that each vehicle occupies, which is determined by its pose. The pose of vehicle is , with , where is the unit circle of headings. At pose , vehicle occupies the rectangle with its half-length and half-width . We denote for the pose at step and for the joint pose.
The nominal controls come from a MARL policy. At step , vehicle receives a local observation from the observation space , and is the joint observation. The policy with parameters maps to a nominal action, which consists of a reference speed and a reference steering angle . This action is converted to the nominal control , saturated to , so that the next speed and steering angle approach the references as closely as one step allows.
For safety, each vehicle must keep a Euclidean clearance of at least from the left and right boundaries of its route and of at least from every other vehicle. We call each of these requirements a safety constraint , where is the set of all constraints. A constraint is either a lane constraint for one boundary side (left, right) of one vehicle , or a vehicle constraint for a pair of vehicles. We denote by the left-side, right-side, and vehicle constraints that involve vehicle . Each constraint is encoded by a safety margin , and a nonnegative margin implies the required clearance. The safe set is thus the set of joint states at which all safety margins are nonnegative,
The goal is to design a safety filter that maps the nominal controls of the MARL policy to admissible controls such that the joint state stays in the safe set,

(a)
(b)
Fig. 3: Margin geometry. (a) Facet margin , whose minimum over all facets is the lane margin. : position; , : body axes; : corner; , : half-length, half-width; : facet of the left boundary (); : inward normal; red: clearance . (b) Pair margin . Red: clearance ; : separating normal; dashed: separating line.
for all under the assumptions below. The filtered controls should deviate minimally from the nominal ones and never lead to a state from which a collision is unavoidable, so that the filter always finds a safe control (recursive feasibility). Safety and recursive feasibility should also hold under fully decentralized control, where each vehicle computes its own control from local information only. In addition, the filter should help train and fine-tune the MARL policy, so that the policy itself becomes safer and the filter intervenes less.
We make the following assumptions.
(A1) The vehicles evolve according to (1), and all guarantees refer to this model at the sampling instants.
(A2) The joint initial state is in the safe set S, and collisions are still avoidable from it. Any vehicle that appears later preserves this property of the joint state.
(A3) All CAVs are cooperative and can share their states, routes, and vehicle parameters via reliable, delay-free vehicle-to-everything communication.
III. BACKUP-HORIZON CONTROL BARRIER FUNCTIONS
This section presents our BH-CBF and the fully decentralized safety filter built on it. Section III-A defines the safety margins on the exact geometry of rectangular vehicles and polyline lane boundaries. Section III-B shows that the standard one-step CBF condition on these margins can become infeasible under control bounds. To restore recursive feasibility, Sec. III-C introduces our backup policy, which brakes every vehicle to a standstill along its route. We predict the poses along this policy until all vehicles have stopped. Section III-D defines the backup value as the smallest margin along this prediction and imposes the CBF condition on it. This condition is stated for the joint system of all vehicles. Section III-E derives our decentralized filter by splitting the pair condition between the two vehicles, and Sec. III-F solves the resulting nonconvex filter problems by QPs whose output is certified by an exact check.
A. Margins With Exact Vehicle and Road Geometry
This section defines the lane margin of a vehicle to each boundary of its route and the pair margin of two vehicles. Both are built from the corners of the vehicle rectangles.
For a pose , let and be the body axes and , , the corners of , one for each of the four sign combinations in (see , , and in Fig. 3a). The lane margin measures how far a vehicle stays from the boundaries of its route. The route of vehicle has a left and a right boundary, indexed by the boundary side . The boundary of side is a polyline whose line segments, also called facets, are indexed by (left boundary in Fig. 3a, with facet in blue). Each facet is the segment between the consecutive vertices and has the unit normal pointing into the lane. Let and , so that points from the vehicle toward the boundary of side . For each facet, we check four separating directions: the facet normal and the three body directions , , and . Along each direction, we take the gap between the projections of the rectangle and the facet, minus , with the facet endpoints : (i) facet normal : ; (ii) front : ; (iii) rear : ; and (iv) boundary side : . The largest of (i)-(iv) is a separating-axis bound, which we take as the facet margin . The lane margin of side is the smallest facet margin,
A projection gap never exceeds the distance between two sets. Hence, the facet margin is a lower bound on the Euclidean distance between the rectangle and the facet , minus . Thus, implies a clearance of at least to every facet of side .
The pair margin builds on the signed distance between two rectangles. Consider two rectangles and with corners and , . As for the lane margin, their gap along a unit vector is the gap between their projections onto , . Their signed distance is the largest gap over all directions,
We call the unit vector that attains the maximum in (2) the separating normal. It points from to ( in Fig. 3b, orthogonal to the dashed separating line). For disjoint rectangles, sd is their Euclidean distance and the separating normal is unique; for overlapping ones, sd is minus their penetration depth. Both sd and the separating normal have a closed form. With the signed distance, the margin of a pair of vehicles is , , so holds if and only if the rectangles keep a Euclidean clearance of at least . In contrast, the CBF for polygons in [19] smooths a lower bound on the signed distance. For example, for two rectangles, this bound restricts the maximum in sd to the eight signed body axes and underestimates a positive clearance. For two aligned rectangles offset diagonally by 1 m along both axes, it gives 1 m instead of 1.41 m.
The margin of constraint evaluates at for boundary side of vehicle , and at for a pair. These margins are not differentiable everywhere. Our discrete-time conditions do not need derivatives because they compare margin values at predicted poses.
B. Exact Euler Prediction and the One-Step Condition
The Euler step (1) updates the pose with the current speed and steering angle. Hence the predicted pose at does not depend on the current control . The predicted pose at for a candidate control depends on only through the speed and steering angle of each vehicle, and not on the control at . Both are closed-form functions of . The current control thus first affects the pose two steps ahead. Applying the standard discrete-time CBF condition [24] to the margin of the next pose as a function of gives the one-step condition
with decay rate . The TTCBF [25], [26] imposes this condition on a second-order Taylor prediction over , in which the acceleration moves the pose by . Our exact Euler prediction moves it by , since changes the speed by , which acts on the pose for one step.
If condition (3) holds at every step, it keeps the margins nonnegative by induction [24], since . However, satisfying it at step does not ensure that it can be satisfied at step . The condition looks only two steps ahead and allows the margin to shrink by the fraction per step, regardless of the speed. A vehicle with bounded deceleration, in contrast, needs a stopping distance that grows quadratically with its speed. Consider a vehicle that approaches a stopped vehicle. While the margin is large, (3) lets the vehicle keep its speed, because the allowed shrinkage exceeds the distance it covers in one step. The condition starts to demand braking only when the margin has become small, and then the stopping distance may already exceed the margin. In this case, (3) still holds at step with mild braking, but even maximum braking violates it at step , and the QP becomes infeasible. Hence is only a candidate safe set for (3) because it contains states from which no admissible control keeps the margins nonnegative. We restore recursive feasibility by looking ahead until the vehicles can stop safely, using the backup policy defined in the next section.
C. Backup Policy
To look beyond the next step, we predict the vehicles along a backup policy that is always admissible.
Definition 1 (Backup Policy). The backup policy of vehicle applies maximum braking until standstill while steering along its route centerline. It accelerates with and steers by pure pursuit toward a look-ahead point on the centerline, within the steering-rate and steering-angle limits. The joint backup policy is , .

(a)

(b)

(c)
Fig. 4: Prediction of vehicle at step over (schematic). Blue: candidate prediction for a control that accelerates and steers away from the route; gray: backup prediction , which tracks the route centerline (dashed). (a) Poses; is the same for both predictions. (b) Speed. (c) Margin of the right lane constraint; (7) keeps the blue curve above from on.
For short, we also call the backup. Our backup steers toward the centerline so that a braking vehicle stays clear of the lane boundaries and of vehicles in other lanes. It has the following three properties:
(K1) The backup is admissible: .
(K2) The backup is decoupled and memoryless: the backup control of vehicle i depends only on its own current state and route, not on the states of other vehicles or on past states.
(K3) The backup stops: the speed reaches zero after finitely many steps and stays zero.
The backup rollout maps a state to the state after steps of the backup, with . By (K2), it decomposes into the single-vehicle rollouts , and backup steps from lead to .
With the backup, we predict future poses at step k if a candidate control u is applied now and every vehicle follows the backup afterwards:
with for the given . We call the candidate prediction. By (K2), the component of vehicle depends only on and . The control gives the backup prediction , in which every vehicle follows the backup from step on (gray in Fig. 4). Since the backup stops every vehicle (K3), a finite stopping horizon covers both predictions.
Lemma 1 (Stopping Horizon). Let satisfy . Then every vehicle stands still from step on in the candidate prediction of every admissible , so for all . The same holds for the backup prediction.
Proof. The first control raises the speed of vehicle to at most because (Sec. II). Hence the backup from reaches zero speed after at most steps, i.e., at step at the latest; the last step only sets the speed to zero (last blue segment in Fig. 4b), after which the pose is constant by (K3) and (1). The backup prediction brakes from one step earlier and thus stops no later.
The stopping horizon replaces the fixed horizon and the terminal constraint of standard backup CBFs [33], [34]. After N steps, every vehicle has stopped, and the standstill states in S form the terminal invariant set. This set needs no synthesis because the backup reaches it within a known number of steps.
The prediction depends on only through the speed and steering angle at which the backup starts, because does not depend on (black outline in Fig. 4a). For example, a control that accelerates raises the speed at which the backup starts, so the vehicle travels farther before it stops (blue above gray in Fig. 4b). A control that steers away from the route starts the backup with an outward steering angle, so the predicted path swings outward before the backup returns it to the centerline (blue in Fig. 4a). A condition on this prediction thus constrains only the present control. It needs no optimization over future controls, which keeps the filter computationally efficient.
D. Backup Value and the Centralized Condition
For a constraint , the backup value is the smallest margin it attains along the backup prediction from (minimum of the gray curve in Fig. 4c):
where the second equality follows from Lemma 1. Since the minimum starts at the next pose, does not imply that the current pose is safe. We call recoverable if , . The certified set contains the recoverable states whose current pose is also safe:
Every state of is safe now and stays safe forever under the backup . By Lemma 1,
so the backup value one step ahead is a finite minimum over poses that the current control determines: once is applied, the backup prediction made at step coincides with the candidate prediction made at step , for . Moreover, , since .
The centralized BH-CBF condition requires
for every constraint . By (6), (7) is equivalent to : a discrete-time CBF condition with decay rate on the backup value (circled in Fig. 4c: the minimum of the blue curve over must stay above the red line).
Definition 2 (Centralized BH-CBF Filter). The centralized BH-CBF filter maps the joint state and the nominal controls at step to an admissible control closest to that satisfies (7) for every constraint:
where is the norm weighted by a positive definite matrix .
We call (8) the centralized filter problem, and Theorem 1 states its guarantees.
Theorem 1 (Centralized Safety). Assume (A1). Then:
(i) if , the joint backup control is feasible for (8);
(ii) if at an initial step and the applied control is feasible for (8) at every step , then for all , so by (i) a feasible control exists at every step. Hence no lane-boundary or inter-vehicle collision occurs at any sampling instant .
Proof. (i) , so by (K2) , and because . (ii) Let , and let the applied control be feasible for (8). By (6), the next state satisfies , . Moreover, , so , and (8) is feasible at step by (i). Induction over gives for all , and nonnegative margins guarantee the clearances (Sec. III-A).
Theorem 1(i) states that every is a valid discrete-time CBF under the control bounds. Moreover, the backup satisfies the conditions of all constraints at once, so they never conflict.
Remark 1 (Relation to Shielding). For , (7) reduces to , so the next state must be recoverable. Model predictive shielding checks the same condition with the same model and backup [8], [30]. It replaces a candidate that fails the check by the backup, whereas our filter (8) moves it to the closest control that satisfies (7). For , our filter also limits how fast the backup value decreases.
Two properties of the centralized filter problem shape the rest of this section. First, it needs the joint state and couples the controls of all vehicles in one problem, so its computation time grows with the number of vehicles (addressed in Sec. III-E). Second, it is nonconvex because the margins are nonconvex in the controls (addressed in Sec. III-F).
E. Fully Decentralized Filter
To design a fully decentralized filter, we must split each pair inequality of (7) into one inequality per vehicle, because it couples the controls of both vehicles. Each vehicle then takes responsibility for a share of the allowed decrease of the

(a)

(b)
Fig. 5: Candidate predictions of vehicles (blue) and (green) and their backup predictions (gray) at step over (schematic). (a) Poses at a crossing; the backup predictions come closest at . (b) Pair margin of the backup predictions (gray) and of the candidate predictions (black). The budget between the gray curve and is split into the shares of (blue fill) and (green fill).

Fig. 6: Decentralized corner inequalities (10) at step for one prediction step (schematic), drawn with the separating normal . Candidate predictions of vehicles (blue) and (green) and their backup predictions (gray). Blue and green fills: shares of and , as in Fig. 5. Gray dot: closest corner of along ; blue dot: a corner of that uses the full share of the budget.
pair margin. The decentralized backup CBF [40] uses a half split, in which each vehicle covers half of the allowed decrease of a smooth pair barrier. This split is exact in continuous time by the chain rule. Over a finite step, the change of the pair margin when both vehicles deviate from their backup predictions differs from the sum of the one-sided changes by a mixed term. This term is caused by the nonlinearity of the distance and by the separating directions of rectangles, which turn with the headings. The mixed term can be negative, so the two one-sided conditions do not imply the pair condition.
Therefore, we measure both deviations along a direction fixed in advance. Consider a pair of vehicles and . Each of them computes both backup predictions (its own and that of the other vehicle), and , from the states and routes that both broadcast at every step ((A3), (K2)). Let , and let be their signed distance and their separating normal. The backup value of the pair is in (4) for the pair constraint, . Each term is the pair margin of the backup predictions, (gray curve in Fig. 5b; marks its minimum). Let
0 denote the responsibility shares of and . The shares can be chosen freely as long as . We use the heuristic split
where is how far j lies ahead of i and the offset splits evenly when neither vehicle lies ahead of the other. Responsibility thus lies with the vehicle that approaches the other, like the rear vehicle in car following (in Fig. 5, j approaches the route of i and receives the larger share, see green fill). A half split would instead waste half of the budget on a vehicle that moves away and cannot use it. For each of its corners and , vehicle i replaces the pair inequalities of the centralized condition (7) by the decentralized condition
Let and be the candidate rectangles of vehicles i and j. The left side of (10) measures how far corner c of lies beyond the closest corner of , along the direction away from j; the right side is its share of the displacement budget (Fig. 6: every corner of the blue rectangle of i stays at most below the gray dot). Only the side of the rectangle that faces j matters, so corners on the far side may move as long as they stay behind that closest corner, and (10) does not lock the heading (the blue rectangle of i in Fig. 6 has turned). Vehicle j imposes the mirrored inequalities with its own separating normal , the same budget (all vehicles use the same decay rate ), and its share . Together, the inequalities of both vehicles keep the red band in Fig. 6 free: of the gap between the backup predictions, each vehicle uses at most its share of the budget, and remains. We call this split of the budget over the corners of both vehicles the corner budgets. The budget varies along the prediction. At the step where the backup predictions come closest, , so the budget shrinks to (t = 3 in Fig. 5b, where the blue and green fills are thinnest). At all other steps, it is larger, and the vehicles may deviate further from their backup predictions. Lane constraints involve only the ego vehicle and keep the form (7). The centralized and the decentralized filter use the same margins, so they share the safe set S and the certified set C in (5).
Each vehicle needs to coordinate only with the vehicles that it can reach before both have stopped. Under any admissible first control, the center of vehicle with speed travels at most along the prediction , where bounds the speed after one step and the last two terms bound the Euler braking distance from . We call the reach of vehicle . The neighbor set of vehicle contains every vehicle with , where is the circumradius of the rectangle of vehicle . For every other pair, the triangle inequality keeps the predicted rectangles farther apart than for all admissible controls, so holds without any inequality. The neighbor relation is symmetric, so both vehicles of a pair agree on whether to impose (10).
Definition 3 (Decentralized BH-CBF Filter). Our decentralized BH-CBF filter of vehicle maps the joint state and the nominal control of vehicle at step to an admissible control closest to . This control satisfies the lane inequalities (7) of vehicle and its corner inequalities (10) with every neighbor :
where is a positive definite weight matrix.
We call (11) the filter problem of vehicle i, and Theorem 2 states its guarantees.
Theorem 2 (Decentralized Safety). Assume (A1) and (A3). Then:
(i) if , the backup control of each vehicle is feasible for its filter problem (11), which involves no control of another vehicle;
(ii) if at an initial step and every vehicle applies a feasible control of its filter problem at every step , then for all , so by (i) every filter problem is feasible at every step. Hence no lane-boundary or inter-vehicle collision occurs at any sampling instant .
Proof. Let . For each pair with , both vehicles compute every quantity in (10) from the same broadcast states, so they agree on it. Since , the backup predictions are disjoint , so the separating normal is unique, and vehicle obtains exactly . Any horizon that satisfies Lemma 1 for both vehicles gives the same values. Hence the inequalities of are those of mirrored, with the separating normal and the same budget. Since the minimum in includes every , , hence . (i) With its own backup, , so the left side of (10) is , and the lane inequalities hold as in Theorem 1(i). (ii) Let every vehicle apply a feasible control of its filter problem at step . Taking the minimum over the corners in the inequalities of gives , and the inequalities of with give . Subtracting gives by (2) at the separating normal. Then by (2). By (6) with and by (K2), the minimum over equals ,
so . Pairs outside the neighbor sets keep by the choice of , and the lane inequalities give as in the proof of Theorem 1(ii). At , every pair satisfies , and every lane constraint satisfies , so . With the bounds on and above, , and all filter problems are feasible at step by (i). Induction over gives for all , and nonnegative margins guarantee the clearances (Sec. III-A).
Theorem 2(i) is a decentralized validity: the inequalities of vehicle are valid with respect to its own control alone, whatever the other vehicles apply. Each step needs one broadcast of states and routes ((A3)) and no exchange of controls, since every quantity in (10) is fixed by . The theorem holds for any shares with , so the split (9) affects only how much each vehicle may deviate from its backup, not safety.
The proof of Theorem 2(ii) shows that if both vehicles of a neighbor pair satisfy (10), the pair satisfies (7). The converse does not hold, since (10) fixes the direction and the split of the budget. The decentralized filter thus rejects joint controls in which one vehicle uses more than its share while the other uses less, which is the price of exchanging no controls.
Remark 2 (Relation to Contingency Model-Based Control). For identical disks with the closest point in place of the closest corner, , and , the inequalities (10) reduce to the constraint of contingency model-based control [42]. This constraint keeps each spherical agent behind the plane that bisects the braking positions of both agents. Our corner budgets extend it to rectangular vehicles whose heading changes, to a budget that decays with , and to arbitrary complementary shares.
F. Certified Solution of the Filter Problems
A solver for the nonconvex problems (8) and (11) may return no solution or a control that violates their inequalities. However, by Theorems 1 and 2, any feasible control keeps the guarantees, so it suffices to find a candidate control close to the nominal one and to certify it exactly. Our filter therefore computes the candidate by a QP and accepts it only if it satisfies every inequality of the filter problem exactly. If no candidate passes this exact check, the filter falls back to the backup, which always passes. We call the result the certified filter.
The QP keeps the objective of the filter problem and replaces each inequality by its linearization at the nominal controls, computed by finite differences (step ). Linearization errors can make this QP infeasible even where the filter problem is feasible. Therefore, we relax the linearized inequalities of each constraint by a slack variable that is penalized in the objective. The slacks affect only the candidate, since the exact check uses no slack. If the check fails, the filter repairs the candidate: it adds the violated inequalities, linearized at the candidate, and solves the QP again. It repeats this at most three times. If the QP has no solution or the check still fails, the filter switches the vehicles of violated constraints.
to their backup until the check passes. The centralized filter switches them jointly, and in the decentralized filter, each vehicle can switch only itself. In contrast to an emergency stop that is applied without a guarantee when the QP is infeasible [3], our fallback is certified (Proposition 1).
Proposition 1 (Filter Guarantees). Let . Then the filter terminates after at most one pass of the fallback per vehicle and returns controls that are feasible for the exact filter problem (8) or (11). Hence the closed loop satisfies the hypotheses of Theorems 1 and 2.
Proof. Each pass of the fallback switches at least one vehicle that was not switched before, so there is at most one pass per vehicle. A pair or lane constraint depends only on the controls of its at most two vehicles, by (K2). Once all of them are switched, its inequalities hold by Theorem 1(i) or Theorem 2(i), so the fallback ends without a violated inequality. For the decentralized filter, every quantity in (10) is fixed by , and the fallback changes only its own control, so each vehicle certifies its control independently.
IV. SAFEGUARDING MULTI-AGENT REINFORCEMENT LEARNING
Our BH-CBF safeguards a MARL policy over its life cycle: as a reward during pre-training, as a run-time filter at deployment, and as a filter in the training loop that keeps fine-tuning collision-free, also on unseen maps. Figure 7 shows how these uses connect. At run time (solid arrows), the policy maps the joint observation to nominal controls . The certified filter of Sec. III-F turns them into the applied controls and runs fully decentralized (blue box). During training (dashed arrows), two signals enter the update of the policy parameters : a BH-CBF-informed reward on the nominal controls in pre-training and a penalty on the interventions of the filter in fine-tuning. The filter needs only the nominal controls, so it also applies to planners other than MARL policies. By Theorems 1 and 2 and Proposition 1, the filtered system is collision-free at the sampling instants from states in regardless of the policy, also on maps that the policy has never seen. The policy determines only the efficiency: how often the filter intervenes, how often vehicles fall back to braking, and how quickly they reach their goals.
During pre-training, the policy learns from the margin by which its own action violates the BH-CBF condition (7). Following our prior work [43], we evaluate the condition at the nominal controls of all vehicles and convert its violation into a reward, without solving a QP. By (6), the of the nominal action for constraint is
For , is the height of the lowest point of the blue curve for above the red line in Fig. 4c, with the blue curve taken for the nominal controls. Then if and only if the nominal controls satisfy (7) for , although the stricter decentralized inequalities (10) and

Fig. 7: BH-CBF pipeline. Solid: run-time safety filter. Dashed: training signals.
the QP of Sec. III-F may still modify the action. Unfiltered training also reaches unrecoverable states. At such states, , so the penalty persists as long as the next state remains unrecoverable and decreases as the action raises the backup value. The positive part prevents a reward for merely reducing a negative value by the factor . The safety reward of vehicle has one channel per constraint type (left side, right side, and vehicle pairs),
where the constraint sets are those of Sec. II, so a pair violation is charged to both vehicles. Each channel thus penalizes the worst violation, scaled by a normalizer , and saturates at -1. The total reward is , where the task reward scores progress, goal reaching, and collisions. Unlike the one-step CBF reward of [43], (12) penalizes an action as soon as the backup can no longer keep the vehicles safe after it. It needs only the prediction along the backup and adds little cost to training. We train the policy with Multi-Agent Proximal Policy Optimization (MAPPO) [48], which follows centralized training with decentralized execution. We therefore compute the reward from the joint state and action during training, and the trained policy runs decentralized without it.
Fine-tuning adapts a pre-trained policy to a new map. Conventional fine-tuning runs without a filter, so the policy learns to avoid collisions only by colliding. Therefore, we run BH-CBF inside the data collector of MAPPO. The environment executes the filtered control, so the training trajectories are collision-free from states in C, while MAPPO stores the policy's sampled action and its log-probability. The filter is a deterministic function of the state and the action, so this is ordinary on-policy learning in a modified environment whose transition applies the filter before the vehicle dynamics [7], [11]. However, two problems remain: the filter flattens the policy gradient wherever it maps many actions to the same control, and the policy is trained with the filter but may be deployed without it. An intervention penalty addresses both problems. It reduces the reward of vehicle i at step k in proportion to how much the filter changes its next speed and

Fig. 8: The evaluation stages along a MARL policy's life cycle.
steering angle:
where is the saturated nominal control of Sec. II, is the applied one, and the weight sets the strength of the penalty. The penalty teaches the policy to propose actions that the filter accepts, so that the fine-tuned policy is safer without the filter and needs fewer interventions with it.
V. EVALUATION
We evaluate our BH-CBF along the life cycle of a MARL policy in four stages outlined in Fig. 8 (arrows: policies passed on to the next stage). Stage 1 in Sec. V-B shows how much safer MARL policies become when pre-trained with our BH-CBF-informed reward instead of a heuristic reward or the one-step CBF reward. Stage 2 in Sec. V-C deploys unsafe pre-trained policies with different run-time filters zero-shot, i.e., without further training. It shows which filters avoid all collisions, also on unseen maps. Stage 3 in Sec. V-D shows how much safer fine-tuning with a filter in the loop makes these policies and how many collisions occur during fine-tuning. Stage 4 in Sec. V-E compares the fine-tuned, filtered policies with human drivers in recorded traffic. Stages 2 and 3 compare our BH-CBF with state-of-the-art CBF filters and with ablations. Section V-F then measures how the computation time of BH-CBF grows with the number of vehicles. We first describe the setup that all stages share in Sec. V-A.
A. Setup
We simulate in SigmaRL [4] with the kinematic bicycle model of Sec. II, integrated by explicit Euler with s. In Stages 1 to 3, all vehicles have a full-scale footprint of 4.6 m 2.0 m, a rear-axle distance m, and a wheelbase m. Their accelerations, steering rates, and steering angles are bounded by m/s , rad/s, and . Stage 4 uses the actual footprints of the recorded vehicles. The speed limit is 50 km/h. We use two maps of drone datasets with recorded human trajectories, both in Aachen, Germany: a roundabout in Neuweiler from roundD [49] (location ID 0) and an unsignalized intersection at Neuköllner Straße from inD [50] (location ID 4). They require different driving skills: merging into and leaving a ring versus crossing and turning in narrow lanes. We call the map on which a policy was trained its own map and the other map its unseen map. Stages 1 to 3 use 16 vehicles on the roundabout
and 12 on the intersection, and Stage 4 uses the recorded traffic. In Stages 1 to 3, each vehicle follows a route from an entry to an exit of the map, drawn uniformly at random. It spawns at a random point of its route where the joint state satisfies (A2). A vehicle reaches its goal when it arrives at the exit of its route and then respawns on a new random route. In Stages 1 and 2, we deploy every policy on its own and its unseen map with three seeds of one simulated minute each.
We use clearances cm and cm. Our exact check accepts an inequality up to a tolerance mm, which lowers the guaranteed bound of to , or for a pair in the decentralized filter. All evaluated filters use , so the clearances cover this term (at most 4 mm and 8 mm). In our corner budgets, we set the offset in (9) to the vehicle length, m. The backup steers toward a centerline point m + s) ahead of the vehicle's projection onto the centerline, with a steering rate of 4/s times the steering-angle error. The QP weights the acceleration in and the steering rate in rad/s by for every vehicle, which the centralized filter stacks into a block-diagonal . Hence a deviation of m/s costs as much as one of rad/s rad/s. Each constraint has a nonnegative slack with a heavy quadratic penalty (weight ), so the QP uses it only when the linearized inequalities are infeasible.
We report five metrics: (i) collisions: inter-vehicle and lane-boundary collisions per km driven by all vehicles (an inter-vehicle collision counts twice, and a colliding vehicle respawns); (ii) throughput: the number of vehicles reaching their goals per second; (iii) runs that leave the certified set in (5): runs with at least one step with some , evaluated with our margins for every filter (the backup prediction from such a step would violate a margin, so the filter has lost its guarantee); (iv) fallbacks: the number of vehicles switched to their backup per 1000 agent-steps; and (v) computation time per step: for the fully decentralized filters, a parallelized estimate with one computation unit per vehicle, given by the shared per-step preparation plus the longest time any vehicle needs to solve its filter's optimization problem. We time all filters on the same hardware, an Apple M2 Max running ten simulations in parallel on one CPU core each. Unless stated otherwise, we report means over policies. Values after are standard errors over policies.
B. Stage 1: Pre-Training With Safety Rewards
For each of three safety rewards, we pre-train ten policies (five random seeds on each map) and deploy them zero-shot, both without a filter. We use MAPPO in our SigmaRL framework [4] for 500 iterations of 128 steps in 32 parallel environments. The actor and the centralized critic are multi-layer perceptrons with three hidden layers of 256 tanh units, and all vehicles share the actor. We use a discount factor of 0.99, generalized advantage estimation with parameter 0.9, a clip ratio of 0.15, an entropy coefficient of 0.005, and five epochs with minibatches of 512 per iteration. The learning rate decays linearly from to . All policies share the task reward of SigmaRL (progress along the route, a goal reward, and penalties for collisions and deadlocks) and differ
https://www.openstreetmap.org/#map=19/50.890500/6.174700&layers=V
https://www.openstreetmap.org/#map=19/50.785200/6.131100&layers=V

Fig. 9: Stage 1: training rollouts over pre-training by safety reward, smoothed over ten iterations, mean and standard error over five training seeds.
in the safety reward: (i) the Time-To-Collision (TTC) reward, a commonly used heuristic [51], which penalizes a vehicle whose TTC with another vehicle falls below a threshold (computed under constant velocities) and a vehicle that comes close to a lane boundary; (ii) the one-step CBF reward of our prior work [43], which has the form of (12) but measures how far the nominal controls violate the one-step condition (3) instead of the backup-horizon condition (7); and (iii) our BH-CBF-informed reward (12). The two CBF rewards share the margins and and differ only in the condition. We use for a lane side and for a pair as normalizers in (12), scaling each violation by the most a margin can shrink in one step.
Figure 9 shows the training rollouts over pre-training: our BH-CBF-informed reward lowers collisions rapidly within the first 80 iterations and keeps them low (blue in the top row). At iteration 500, its policies collide 0.38–0.64 times per km on the two maps, against 1.12–1.41 with the other rewards. They drive at 38–40 % of the speed limit, whereas the policies of the other rewards drive at 47–51 % (bottom row).
Table I shows the pre-trained policies (at iteration 500) deployed without a filter: our BH-CBF-informed reward trains the safest policies. Unlike in training, the deployed policies no longer vary their actions randomly to explore new behavior, which lowers their collisions. On their own map, they collide times per km, against and for the TTC and the one-step CBF reward, at a similar throughput. The one-step CBF reward hardly improves on the TTC heuristic, so the gain comes from our backup horizon. On the unseen map, every policy collides, also ours. Therefore, learning alone does not transfer safety to new maps, which motivates the run-time filter.
C. Stage 2: Zero-Shot Deployment With Run-Time Filters
We deploy unsafe pre-trained policies zero-shot with our decentralized BH-CBF filter, with ablations of our design, and with CBF filters from the literature. To challenge the filters, we use the ten TTC-reward policies of pre-training iteration 100
TABLE I: Stage 1: the 30 pre-trained policies (ten per safety reward, iteration 500) deployed without a filter.
| Own map | Unseen map | |||
|---|---|---|---|---|
| Reward method | Collisions [1/km] | Throughput [veh/s] | Collisions [1/km] | Throughput [veh/s] |
| TTC | 0.86 | 1.08 | 1.27 | 0.92 |
| One-Step CBF | 0.71 | 1.03 | 1.61 | 0.80 |
| BH-CBF (ours) | 0.05 | 1.05 | 0.59 | 0.91 |
TABLE II: Compared safety filters; gray: as in BH-CBF.
| Filter | Geometry | Condition | Split |
|---|---|---|---|
| BH-CBF (ours) | exact | backup horizon | corner budgets |
| A-Geometry | capsules | backup horizon | corner budgets |
| A-Condition | exact | one step | corner budgets |
| A-Split | exact | backup horizon | half split |
| A-Centralized | exact | backup horizon | centralized |
| B-SAT [19] | smoothed SAT | one step | half split |
| B-Frenet [15], [37] | Frenet lanes | one step | our shares |
| B-Disk [13] | disk pairs | one step | half split |
| B-Dual [16], [17] | exact (convex) | one step | half split |
| B-Backup [34], [40] | exact | fixed horizon | half split |
| B-MPS [8], [30] | exact | accept or fall back | - |
as source policies. They drive fast and collide often (arrows to the dashed black lines in Fig. 9: 2.2–2.8 collisions per km on the two maps). Stage 3 fine-tunes the same source policies.
For a fair comparison, all filters share the nominal controls, the QP solver, and the fallback to the backup. Table II shows how they differ: only in their margins (column Geometry), their CBF condition, and their decentralized split. All filters except A-Centralized run fully decentralized. The prefix “A” marks an ablation and “B” a baseline. Each of our four ablations changes one of these components of BH-CBF: (i) A-Geometry replaces our exact vehicle geometry with a tight convex capsule and applies the corner budgets to the end points of the capsule axis; (ii) A-Condition replaces our backup-horizon condition (7) with the standard one-step CBF condition (3); (iii) A-Split replaces our corner budgets (10) with the half split of the decentralized backup CBF [40], in which each vehicle keeps its candidate prediction away from the backup prediction of the other and covers half of the allowed decrease of ; and (iv) A-Centralized solves the centralized filter problem (8) for all vehicles jointly. The first four baselines use the one-step condition (3) with the barrier functions of state-of-the-art CBF filters instead of our margins. The last two are backup-based safeguards with our margins: (i) B-SAT [19], named after the Separating Axis Theorem (SAT), replaces both the lane and the pair inequalities and splits each pair in half; (ii) B-Frenet [15], [37] replaces only the lane inequalities, keeps our pair margins, and splits each pair with our shares (9); (iii) B-Disk [13] replaces only the pair inequalities, keeps our lane inequalities, and splits each pair in half; (iv) B-Dual [16], [17] replaces both the lane and the pair inequalities and uses the same half split; (v) B-Backup is the finite-step backup CBF [34], [40] with a fixed horizon and its

(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
Fig. 10: Unsafe policies on the roundabout (a)–(d) and the intersection (e)–(h), without (top) and with (bottom) our BH-CBF filter. Blue: yielding vehicle 1; green: vehicle 2; red: collisions; gray: others (last footprint only); footprint interval: 1.0 s.
TABLE III: Stage 2: the ten unsafe source policies (TTC reward, iteration 100) deployed with fully decentralized filters, except A-Centralized; 60 runs (own and unseen map, three seeds each) per row. Runs : runs that leave the certified set; time: computation time per step.
| Filter | Collisions [1/km] | Runs | Fallbacks [1/1000] | Throughput [veh/s] | Time [ms] |
|---|---|---|---|---|---|
| Unfiltered | 1.39 | 60/60 | - | 0.87 | - |
| B-Frenet | 1.22 | 60/60 | - | 0.75 | 4.7 |
| A-Condition | 0.61 | 60/60 | - | 0.91 | 8.0 |
| B-Disk | 0.47 | 60/60 | - | 1.04 | 7.1 |
| B-SAT | 0.38 | 60/60 | - | 0.91 | 11.3 |
| B-Dual | 0.25 | 60/60 | - | 1.12 | 15.8 |
| B-Backup | 0 | 14/60 | 3.3 | 1.19 | 15.5 |
| A-Split | 0 | 4/60 | 4.7 | 1.21 | 14.2 |
| B-MPS | 0 | 0/60 | 65.7 | 1.18 | 12.3 |
| A-Centralized | 0 | 0/60 | 7.4 | 1.21 | 80.6 |
| A-Geometry | 0 | 0/60 | 6.9 | 1.20 | 9.0 |
| BH-CBF (ours) | 0 | 0/60 | 3.3 | 1.20 | 12.6 |
half split; and (vi) B-MPS is model predictive shielding [8], [30] with our backup, which replaces a nominal control that fails the check of Remark 1 by the backup. We tune the decay rate and the method-specific parameters of every filter, such as the smoothing parameter of B-SAT. Among the parameter values that are nearly as safe as the safest, we choose those with the best throughput.
Table III shows the source policies deployed with each decentralized filter: only the backup-based filters avoid all collisions, both on their own and on the unseen map. The one-step filters collide mostly at the lane boundaries (B-Dual mostly between vehicles). Every one of these collisions follows a step with an infeasible QP, and these filters need slack in 18–59 % of the steps. The ablations show that the one-step condition causes these collisions, not the approximated vehicle geometry: A-Condition collides although it uses our exact margins, whereas A-Geometry is collision-free although it approximates the vehicle geometry. Without collisions, more vehicles reach their exits, which raises the throughput from 0.87 to 1.18–1.21 veh/s. Among the collision-free filters, our
BH-CBF is the only one that keeps the guarantee with few fallbacks and without overapproximating the vehicle geometry. B-Backup and A-Split leave the certified set in 14 and 4 of 60 runs (smallest backup values down to -1.21 m). In these runs, the backup loses its safety guarantee, although no collision followed. A-Split differs from BH-CBF only in how the pair condition is split between the two vehicles. Its half split bounds each vehicle against the backup prediction of the other, which does not bound their distance when both deviate. Our corner budgets bound both vehicles along a common separating normal, so their deviations add up to at most the budget for any complementary shares (Theorem 2). A centralized filter brings no advantage: A-Centralized is equally safe and reaches the same throughput, but it falls back more often (7.4 against 3.3 times per 1000 agent-steps). When a pair inequality fails the exact check, its fallback switches both vehicles of the pair to their backup, whereas in our decentralized filter each vehicle switches only itself (Sec. III-F). B-MPS stays certified by falling back 65.7 times per 1000 agent-steps, against 3.3 for BH-CBF. A-Geometry also stays certified but overapproximates the vehicle geometry. At the same throughput, it thus falls back twice as often. The decentralized BH-CBF needs 12.6 ms per step, far below the sampling period ms. The decay rate regulates how early our BH-CBF intervenes, but safety does not hinge on it: with , it stays collision-free and certified, and only lowers the throughput (1.02 against 1.20 veh/s for the tuned ).
Figure 10 shows representative collisions of the unsafe source policies. In each panel, the top row shows the unfiltered policies and the bottom row the policies filtered by our BH-CBF, both from the same initial joint state. Without the filter, the vehicles collide (red). With the filter, one vehicle yields by braking or by merging into a gap (blue vehicle 1), and no collision occurs.
D. Stage 3: Fine-Tuning With Filters in the Loop
A policy that collides on a new map should improve there, but collisions during training are not acceptable in real-world operation. Therefore, we fine-tune the unsafe source policies of Stage 2 with a filter in the loop and the intervention penalty

(a) Training rollouts, smoothed over ten iterations.

(b) Deployed without a filter.
Fig. 11: Collisions of the TTC-reward policies over pre-training and fine-tuning, mean over runs (20 fine-tuning runs per setting, own and unseen map taken together) with standard deviation in (a) and standard error in (b).
(13) with . Each policy is fine-tuned on its own and on its unseen map for 100 iterations of 128 steps in 16 parallel environments. We compare our BH-CBF with the three fully decentralized baselines that collided least in Stage 2: B-Backup, B-MPS, and B-Dual. As ablations, we fine-tune without a filter, once with the TTC reward of the pre-training and once with our BH-CBF-informed reward. Each setting has 20 runs (ten source policies, two target maps). During fine-tuning, we deploy the policies every 20 iterations (from iteration 0) for eight simulated minutes without a filter and with the filter of their fine-tuning.
Figure 11a shows the collisions of the training rollouts: only the backup-based filters keep fine-tuning collision-free in all 20 runs (BH-CBF, B-Backup, and B-MPS in blue, purple, and magenta at zero after iteration 100). Without a filter, the policies collide on average over fine-tuning 2.29 times per km with the TTC reward (dashed black line) and 0.96 times per km with our BH-CBF-informed reward, which teaches them to avoid collisions only gradually (dashed light blue line). B-Dual collides 0.05 times per km (green line). However, B-Backup leaves in 19 of its 20 runs, since it does not certify the joint backup.
Figure 11b shows the fine-tuned policies deployed without a filter: fine-tuning with BH-CBF in the loop makes the policy itself safe (blue line). Its collisions drop by 95 %, from to per km, most of it within 40 iterations. Fine-tuning without a filter and with the TTC reward only reaches (dashed black line). The intervention penalty thus turns the filter's corrections into a learning signal that lowers collisions as much as our BH-CBF-informed reward (dashed light blue line), but without the collisions that this reward needs during training. The other filters end at 0.04
TABLE IV: Stage 4: Human-comparison results over 115 km of 1264 recorded human-driven vehicles. Stops: stop before the ring entry; gap: 5th percentile of the minimum gap.
| Controlled by | Travel time median [s] | Stops [%] | Gap [m] | RMS jerk median [m/s] |
|---|---|---|---|---|
| Humans | 12.0 | 13.8 | 1.40 | 0.94 |
| BH-CBF (ours) | 10.3 | 2.0 | 1.22 | 3.66 |

(a)
(b)
Fig. 12: Stage 4: two roundabout scenarios over 7 s. Filled: our BH-CBF-filtered policies; unfilled: recorded humans (time stamps with dashed lines). Other vehicles not shown.
(B-MPS), 0.07 (B-Backup), and 0.18 (B-Dual). The policy does not become safe by stopping: its throughput rises from 0.86 to 1.02 veh/s. Deployed with the BH-CBF filter, the fine-tuned policy also needs fewer interventions than the source policy: the filter changes 6.1 % of its actions instead of 13.7 %. Fallbacks become rare as well: 0.23 instead of 3.1 per 1000 agent-steps.
E. Stage 4: Comparison With Human Drivers
Stage 4 compares our BH-CBF with human drivers. We take the ten policies of Stage 3 that are fine-tuned with our BH-CBF filter on the roundabout: five pre-trained on the roundabout and five on the intersection. We deploy them with our decentralized BH-CBF filter on the roundabout and compare them with the human drivers recorded on the same roundabout in roundD [49]. We extract the time windows of roundD in which only cars and vans are present. This excludes road users that we cannot control, such as pedestrians. The 112 windows contain 1264 vehicles (1213 cars and 51 vans), which drive 115 km in 4.4 vehicle-hours in total.
Every human-driven vehicle of a window is replaced by a controlled vehicle that enters at the recorded time and state and follows the human's route to the human's last recorded position. Unlike in Stages 1 to 3, the vehicles are heterogeneous, and the filter certifies safety under individual vehicle geometries and acceleration bounds. Each vehicle has its recorded footprint. Since the dataset provides no control bounds or axle positions, we use the acceleration bounds m/s for cars and m/s for vans. We scale the rear-axle distance and the wheelbase with the vehicle length, using the ratios of the nominal 4.6 m vehicle of Sec. V-A.

(a) Merge point (schematic).
(b) Approach speed of the humans.
(c) Gap acceptance.
Fig. 13: Stage 4: entering the ring. (b) Median and 25–75 % band. (c) Probability of entering the ring before the circulating vehicle (dots: share per time-to-arrival bin with 95 % confidence intervals; thick curves: logistic fits with 95 % confidence bands; thin blue curves: logistic fits of the ten single policies).
Table IV presents the comparison results. With our BH-CBF-filtered policies, no vehicle collides or touches a lane boundary, every vehicle reaches its goal, and the joint state stays in at every step. Overall, our policies reduce the median travel time by 14 %, from 12.0 s to 10.3 s. The policies save this time mainly at the entry of the ring: they stop before the entry in 2.0 % of the cases, against 13.8 % for the humans. They also keep smaller minimum gaps between vehicles than the humans and thus use the road space more efficiently. One drawback of the policies is lower comfort: their median Root-Mean-Square (RMS) jerk is about four times that of the humans, since neither the reward nor the filter penalizes jerk. The filter needs about 14 ms per step, far below the sampling period ms.
Figure 12 shows two typical scenarios in which the human (unfilled footprints) stops and the BH-CBF-filtered policy (filled footprints) does not. In Fig. 12a, vehicle 1 in blue approaches at 10 m/s and keeps its speed into the ring ahead of vehicle 2. The human instead brakes to a standstill and waits 3 s for vehicle 2. In Fig. 12b, the policy enters ahead of a close circulating vehicle 2. Vehicle 2 then brakes briefly from 8.8 m/s to about 3 m/s and loses a small amount of time, whereas the human driver of vehicle 1 waits 5.4 s for vehicle 2 and two further circulating vehicles (not shown). The policy can take this gap because the filter does not encode the right of way that humans follow and admits every entry that it certifies as safe. In this scenario, a short delay of the circulating vehicle spares the entering vehicle a much longer wait.
To further analyze how the BH-CBF-filtered policies and the humans enter the ring, we estimate the probability that an entering vehicle enters the ring before the next circulating vehicle. We use the 115 km of driving data of both the policies and the humans. This probability depends on the time to

(a) Centralized.

(b) Decentralized.
Fig. 14: Computation time of the BH-CBF filter per step on the roundabout, mean over 500 steps per bar; sampling period ms.
arrival, which is the time that the circulating vehicle needs to reach the merge point of the entering vehicle. We construct this merge point in three steps, as depicted in Fig. 13a. First, we take the outer centerline (dash-dotted) and the centerline (dashed) of the ring. Second, the point where the reference route of the entering vehicle crosses the outer centerline defines a ray from the ring center (dotted). Third, the merge point is the intersection of this ray with the centerline (star). The time to arrival is the arc distance of the circulating vehicle to the merge point along the centerline (green dashed) divided by its speed averaged over the last second. It remains to determine the distance to the merge point at which the entering vehicle judges the time to arrival. We derive this distance from the approach speed of the humans shown in Fig. 13b, since humans slow down while they judge the gap and speed up once they have decided to enter. Their median speed is lowest 11.3 m before the merge point (dot), so we evaluate the time to arrival at this distance. Figure 13c shows the probability of entering first over the time to arrival. We fit this probability by a logistic regression in the logarithm of the time to arrival. The fit reaches 0.5 at 3.89 s for the humans (black) and at 1.39 s for the policies (blue). Hence, the policies are likely to enter ahead of a circulating vehicle that arrives in more than 1.39 s, whereas the humans give way to it until its time to arrival exceeds 3.89 s. The policies enter whenever the BH-CBF filter certifies safety instead of waiting, even if the circulating vehicle has to brake (as in Fig. 12b). This reduces the overall travel time by 14 % as shown in Table IV. Among all vehicles, from their initial position to the merge point, the policies need 2.59 s on average instead of the humans' 4.50 s, whereas the time from the merge point to the goal remains similar (8.80 s against 9.04 s). Hence, about 90 % of the saved time is gained before the merge point. Connectivity contributes to this gain: each CAV knows the states and routes of the circulating vehicles ((A3)) and can thus certify a small gap as safe. Without knowing their intentions, a human driver instead waits for a large time gap so as not to hinder the circulating vehicles, which have the right of way.
F. Computation Time
To determine how the computation time of our decentralized BH-CBF filter grows with the number of vehicles, we measure it on the roundabout with 2 to 50 vehicles, from free flow to congested traffic. For comparison, we also measure the centralized BH-CBF filter. The nominal controls come from the five unsafe TTC-reward source policies of Stage 1 that were pre-trained on the roundabout, which the filter must correct often. For each vehicle count, we run each of the five policies for 100 steps, which gives 500 measured steps per vehicle count.
Figure 14 shows the computation time per step: the decentralized filter scales well to dense traffic, whereas the centralized filter does not. Each bar splits the time into the QP solves, the exact check, the fallback, and the construction of the QP, i.e., the backup predictions, the linearization of the QP inequalities, and the assembly of the constraint rows. The centralized filter solves one QP for all vehicles, and its time grows superlinearly as in Fig. 14a. From 20 vehicles on, it exceeds the sampling period . Figure 14b depicts the computation time of our decentralized filter, which solves one small QP per vehicle with the neighbors within its reach: the mean computation time grows only slowly, from 3.3 ms to 8.0 ms. Its 95th percentile saturates: from 18 vehicles on, it stays between 12 ms and 13.8 ms, far below the sampling period . Nearly all of this time is the QP construction and the exact check, which grow only with the number of neighbors. This number saturates, because vehicles in dense traffic drive slower and thus reach less far: from 30 to 50 vehicles, the most constrained vehicle has 9 to 12 neighbors. The QP solves take at most 0.2 ms and the fallback at most 0.4 ms. Decentralization also costs little performance in dense traffic. Both filters avoid all collisions at every vehicle count, and the mean speed under our decentralized filter stays within 1% of the centralized one up to 20 vehicles and at most 5% below it beyond.
VI. CONCLUSION
We proposed BH-CBF, a recursively feasible CBF for CAVs that considers the exact vehicle and road geometry, and a fully decentralized safety filter based on it. Our results lead to four conclusions. First, a CBF filter must be recursively feasible, since recursive feasibility decides whether it can avoid collisions with a strict guarantee. Second, one barrier function can safeguard the whole learning life cycle. As a reward, BH-CBF trains policies that are nearly collision-free on their own map; as a run-time filter, it guarantees safety for any policy, so learning can focus on efficiency; during fine-tuning with the filter in the loop, its corrections become a learning signal that makes the policy itself safe, without a single collision during training. Third, centralization brings no benefit in our experiments. A centralized BH-CBF filter is as safe as our decentralized filter and reaches the same throughput, but it is no longer real-time from 20 vehicles on. Our decentralized filter stays real-time as the number of vehicles grows, since it needs a single broadcast per step and its computation time depends mainly on the number of neighbors. Fourth, connectivity makes safe driving also efficient. Since each vehicle knows the states and routes of its neighbors, our decentralized BH-CBF filter can certify small
gaps as safe that human drivers leave unused. In recorded traffic of a roundabout in Germany, our BH-CBF-filtered policies shortened the median travel time by 14% compared with the human drivers, without any collision.
The comparison with human drivers covers only part of real traffic. The recorded windows contain cars and vans but no vulnerable road users, such as pedestrians and cyclists, who do not cooperate with the filter. All vehicles are assumed to be CAVs. Moreover, the filtered motion is jerkier than human driving. Future work will address vulnerable road users, mixed traffic with human drivers, and the comfort of the filtered motion, and will validate the method experimentally in our lab.
ACKNOWLEDGMENT
Computations were performed with computing resources granted by RWTH Aachen University under project rwth1763.
REFERENCES
[1] J. Dinneweth, A. Boubezoul, R. Mandiau, and S. Espié, “Multi-agent reinforcement learning for autonomous vehicles: A survey,” Autonomous Intelligent Systems, vol. 2, no. 1, p. 27, 2022.
[2] D. Chen, M. R. Hajidavalloo, Z. Li, K. Chen, Y. Wang, L. Jiang, and Y. Wang, “Deep multi-agent reinforcement learning for highway on-ramp merging in mixed traffic,” IEEE Transactions on Intelligent Transportation Systems, vol. 24, no. 11, pp. 11623–11638, 2023.
[3] S. Han, S. Zhou, J. Wang, L. Pepin, C. Ding, J. Fu, and F. Miao, “A multi-agent reinforcement learning approach for safe and efficient behavior planning of connected autonomous vehicles,” IEEE Transactions on Intelligent Transportation Systems, vol. 25, no. 5, pp. 3654–3670, 2024.
[4] J. Xu, P. Hu, and B. Alrifaae, “SigmaRL: A sample-efficient and generalizable multi-agent reinforcement learning framework for motion planning,” in 2024 IEEE 27th International Conference on Intelligent Transportation Systems (ITSC). Edmonton, AB, Canada: IEEE, 2024, pp. 768–775.
[5] R. Kirk, A. Zhang, E. Grefenstette, and T. Rocktäschel, “A survey of zero-shot generalisation in deep reinforcement learning,” Journal of Artificial Intelligence Research, vol. 76, pp. 201–264, 2023.
[6] J. Beerwerth, J. Xu, S. Schäfer, F. Belderink, and B. Alrifaae, “Zero-shot MARL benchmark in the Cyber-Physical Mobility Lab,” at - Automatisierungstechnik, vol. 74, no. 5, pp. 376–385, 2026.
[7] H. Krasowski, J. Thumm, M. Müller, L. Schäfer, X. Wang, and M. Althoff, “Provably safe reinforcement learning: Conceptual analysis, survey, and benchmarking,” Transactions on Machine Learning Research, 2023.
[8] O. Bastani, “Safe reinforcement learning with nonlinear dynamics via model predictive shielding,” in 2021 American Control Conference (ACC). New Orleans, LA, USA: IEEE, 2021, pp. 3488–3494.
[9] A. D. Ames, X. Xu, J. W. Grizzle, and P. Tabuada, “Control barrier function based quadratic programs for safety critical systems,” IEEE Transactions on Automatic Control, vol. 62, no. 8, pp. 3861–3876, 2017.
[10] A. D. Ames, S. Coogan, M. Egerstedt, G. Notomista, K. Sreenath, and P. Tabuada, “Control barrier functions: Theory and applications,” in 2019 18th European Control Conference (ECC). Naples, Italy: IEEE, 2019, pp. 3420–3431.
[11] R. Cheng, G. Orosz, R. M. Murray, and J. W. Burdick, “End-to-end safe reinforcement learning through barrier functions for safety-critical continuous control tasks,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, no. 01, pp. 3387–3395, 2019.
[12] S. Zhang, O. So, K. Garg, and C. Fan, “GCBF+: A neural graph control barrier function framework for distributed safe multiagent control,” IEEE Transactions on Robotics, vol. 41, pp. 1533–1552, 2025.
[13] L. Wang, A. D. Ames, and M. Egerstedt, “Safety barrier certificates for collisions-free multirobot systems,” IEEE Transactions on Robotics, vol. 33, no. 3, pp. 661–674, 2017.
[14] D. Kalaria, Q. Lin, and J. M. Dolan, “Towards safety assured end-to-end vision-based control for autonomous racing,” IFAC-PapersOnLine, vol. 56, no. 2, pp. 2767–2773, 2023.
[15] I. Vörös, X. Li, I. Kolmanovsky, J. Talbot, J. Dallas, M. Suminaka, J. Subosits, and G. Orosz, "Lane-keeping guardian with safety filter: Experimental validation," in 2025 IEEE Intelligent Vehicles Symposium (IV). Cluj-Napoca, Romania: IEEE, 2025, pp. 1490–1495.
[16] A. Thirugnanam, J. Zeng, and K. Sreenath, “Duality-based convex optimization for real-time obstacle avoidance between polytopes with control barrier functions,” in 2022 American Control Conference (ACC). Atlanta, GA, USA: IEEE, 2022, pp. 2239–2246.
[17] —, “Safety-critical control and planning for obstacle avoidance between polytopes with control barrier functions,” in 2022 International Conference on Robotics and Automation (ICRA). Philadelphia, PA, USA: IEEE Press, 2022, pp. 286–292.
[18] Z. Han, Y. Wu, T. Li, L. Zhang, L. Pei, L. Xu, C. Li, C. Ma, C. Xu, S. Shen, and F. Gao, “An efficient spatial-temporal trajectory planner for autonomous vehicles in unstructured environments,” IEEE Transactions on Intelligent Transportation Systems, vol. 25, no. 2, pp. 1797–1814, 2024.
[19] S. Wu, Y. Fang, N. Sun, B. Lu, X. Liang, and Y. Zhao, “Optimization-free smooth control barrier function for polygonal collision avoidance,” IEEE Transactions on Cybernetics, vol. 55, no. 9, pp. 4257–4269, 2025.
[20] L. Lindemann and D. V. Dimarogonas, “Control barrier functions for signal temporal logic tasks,” IEEE Control Systems Letters, vol. 3, no. 1, pp. 96–101, 2019.
[21] —, “Decentralized control barrier functions for coupled multi-agent systems under signal temporal logic tasks,” in 2019 18th European Control Conference (ECC), 2019, pp. 89–94.
[22] W. Xiao and C. Belta, “High-order control barrier functions,” IEEE Transactions on Automatic Control, vol. 67, no. 7, pp. 3655–3662, 2022.
[23] O. So, Z. Serlin, M. Mann, J. Gonzales, K. Rutledge, N. Roy, and C. 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). Yokohama, Japan: IEEE, 2024, pp. 11532–11539.
[24] A. Agrawal and K. Sreenath, “Discrete control barrier functions for safety-critical control of discrete systems with application to bipedal robot navigation,” in Robotics: Science and Systems XIII. Robotics: Science and Systems Foundation, 2017.
[25] J. Xu and B. Alrifaee, “High-order control barrier functions: Insights and a truncated Taylor-based formulation,” arXiv preprint arXiv:2503.15014, 2025.
[26] —, “TTCBF: A truncated Taylor control barrier function for high-order safety constraints,” arXiv preprint arXiv:2601.15196, 2026.
[27] W. Xiao, C. G. Cassandras, and C. A. Belta, “Bridging the gap between optimal trajectory planning and safety-critical control with applications to autonomous vehicles,” Automatica, vol. 129, p. 109592, 2021.
[28] K.-C. Hsu, H. Hu, and J. F. Fisac, “The safety filter: A unified view of safety-critical control in autonomous systems,” Annual Review of Control, Robotics, and Autonomous Systems, vol. 7, no. 1, pp. 47–72, 2024.
[29] K. P. Wabersich and M. N. Zeilinger, “A predictive safety filter for learning-based control of constrained nonlinear dynamical systems,” Automatica, vol. 129, p. 109597, 2021.
[30] W. Zhang, O. Bastani, and V. Kumar, “MAMPS: Safe multi-agent reinforcement learning via model predictive shielding,” arXiv preprint arXiv:1910.12639, 2019.
[31] D. R. Agrawal, R. Chen, and D. Panagou, “Gatekeeper: Online safety verification and control for nonlinear systems in dynamic environments,” IEEE Transactions on Robotics, vol. 40, pp. 4358–4375, 2024.
[32] C. Pek and M. Althoff, “Fail-safe motion planning for online verification of autonomous vehicles using convex optimization,” IEEE Transactions on Robotics, vol. 37, no. 3, pp. 798–814, 2021.
[33] T. Gurriet, M. Mote, A. Singletary, P. Nilsson, E. Feron, and A. D. Ames, “A scalable safety critical control framework for nonlinear systems,” IEEE Access, vol. 8, pp. 187 249–187 275, 2020.
[34] Y. Chen, M. Jankovic, M. Santillo, and A. D. Ames, “Backup control barrier functions: Formulation and comparative study,” in 2021 60th IEEE Conference on Decision and Control (CDC). Austin, TX, USA: IEEE, 2021, pp. 6835–6841.
[35] J. Yin, O. So, E. Yu, C. Fan, and P. Tsiotras, “Safe beyond the horizon: Efficient sampling-based MPC with neural control barrier functions,” in Robotics: Science and Systems XXI. Robotics: Science and Systems Foundation, 2025.
[36] L. Knoedler, O. So, J. Yin, M. Black, Z. Serlin, P. Tsiotras, J. Alonso-Mora, and C. Fan, “Safety on the fly: Constructing robust safety filters via policy control barrier functions at runtime,” IEEE Robotics and Automation Letters, vol. 10, no. 10, pp. 10058–10065, 2025.
[37] E. Squires, P. Odom, and Z. Kira, “Barrier function overrides for non-convex fixed wing flight control and self-driving cars,” arXiv preprint arXiv:2505.05548, 2025.
[38] A. Ramesh Kumar, K.-C. Hsu, P. J. Ramadge, and J. F. Fisac, “Fast, smooth, and safe: Implicit control barrier functions through reach-avoid differential dynamic programming,” IEEE Control Systems Letters, vol. 7, pp. 2994–2999, 2023.
[39] B. Alrifaee, F.-J. Heßler, and D. Abel, “Coordinated non-cooperative distributed model predictive control for decoupled systems using graphs,” IFAC-PapersOnLine, vol. 49, no. 22, pp. 216–221, 2016.
[40] Y. Chen, A. Singletary, and A. D. Ames, “Guaranteed obstacle avoidance for multi-robot operations with limited actuation: A control barrier function approach,” IEEE Control Systems Letters, vol. 5, no. 1, pp. 127–132, 2021.
[41] J. Park, D. Kim, G. C. Kim, D. Oh, and H. J. Kim, “Online distributed trajectory planning for quadrotor swarm with feasibility guarantee using linear safe corridor,” IEEE Robotics and Automation Letters, vol. 7, no. 2, pp. 4869–4876, 2022.
[42] G. Schildbach, “Confingency model-based control (CMC) for communicationless cooperative collision avoidance in robot swarms,” Automatica, vol. 194, p. 113265, 2026.
[43] J. Xu and B. Alrifaee, “Beyond safety filtering: Control barrier function-informed reinforcement learning for connected and automated vehicles,” in 2026 IEEE 29th International Conference on Intelligent Transportation Systems (ITSC), in Press, 2026.
[44] J. Xu, C. Che, and B. Alrifaee, “A real-time control barrier function-based safety filter for motion planning with arbitrary road boundary constraints,” in 2025 IEEE 28th International Conference on Intelligent Transportation Systems (ITSC). Gold Coast, Australia: IEEE, 2025, pp. 2818–2825.
[45] J. Xu and B. Alrifaee, “A learning-based control barrier function for car-like robots: Toward less conservative collision avoidance,” in 2025 European Control Conference (ECC). Thessaloniki, Greece: IEEE, 2025, pp. 988–995.
[46] M. Haklay and P. Weber, “OpenStreetMap: User-generated street maps,” IEEE Pervasive Computing, vol. 7, no. 4, pp. 12–18, 2008.
[47] R. Rajamani, Vehicle Dynamics and Control, ser. Mechanical Engineering Series. New York: Springer Science, 2006.
[48] C. Yu, A. Velu, E. Vinitsky, J. Gao, Y. Wang, A. Bayen, and Y. Wu, “The surprising effectiveness of PPO in cooperative multi-agent games,” in Advances in Neural Information Processing Systems 35, ser. NIPS '22. New Orleans, Louisiana, USA: Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2022, pp. 24611–24624.
[49] R. Krajewski, T. Moers, J. Bock, L. Vater, and L. Eckstein, “The roundD dataset: A drone dataset of road user trajectories at roundabouts in Germany,” in 2020 IEEE 23rd International Conference on Intelligent Transportation Systems (ITSC). Rhodes, Greece: IEEE, 2020, pp. 1–6.
[50] J. Bock, R. Krajewski, T. Moers, S. Runde, L. Vater, and L. Eckstein, “The inD dataset: A drone dataset of naturalistic road user trajectories at German intersections,” in 2020 IEEE Intelligent Vehicles Symposium (IV). Las Vegas, NV, USA: IEEE, 2020, pp. 1929–1934.
[51] J. C. Hayward, “Near-miss determination through use of a scale of danger,” in Highway Research Record, no. 384, 1972.