Manuscript Offprint
arXiv:2610.29149SAFTER: Safety-Aware Filtering Through Explicit Recoverability for Robust Reinforcement Learning under Distribution Shift
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Learning safe policies that generalize to unseen environments is difficult under bounded actuation, where an unsafe decision may become unrecoverable. Conventional control barrier function (CBF) filters enforce only instantaneous safety and ignore future recoverability. We propose SAFTER (Safety-Aware Filtering Through Explicit Recoverability), which embeds a differentiable, closed-form backup-CBF filter into Soft Actor-Critic training. SAFTER unifies current safety, finite-horizon backup safety, terminal recoverability, and input admissibility into a single differentiable certificate. Its CBF condition yields an exact minimum-intervention projection without iterative online optimization. In quadruped navigation, SAFTER reaches 90% training success with 30.6% fewer transitions than Vanilla SAC and 34.1–35.1% fewer than current-state CBF-filtered SAC baselines. Across unseen simulated environments, SAFTER improves success by up to 42.4 and 61.4 percentage points over the state-of-the-art methods CBF–RL and SEA–Nav, respectively, and achieves 73.3% and 76.7% success on two real-world navigation maps. Ablations identify accurate differentiation through the safety filter as a key contributor to robustness, in which replacing the projection Jacobian with the identity approximation reduces success rate in a High-Shift environment from 61.4% to 6.2%. These results show that recoverability-aware filtering serves as both a runtime safety mechanism and a learning mechanism for sample-efficient, robust policies.
1 INTRODUCTION
Reinforcement learning (RL) can produce adaptive navigation policies directly from interaction and local sensory observations, but trial-and-error exploration can generate unsafe actions during both training and deployment (Brunke et al., 2022; Guerrier et al., 2024; Xu et al., 2023). Reward penalties can discourage collisions or constraint violations, yet they provide only an indirect learning signal and do not ensure that each executed action satisfies a prescribed safety condition (Krasowski et al., 2023). For safety-critical robotic navigation, a useful learning architecture should therefore protect the system during interaction while still allowing the policy to improve from the intervention it receives.
Control barrier functions (CBFs) provide a principled way to enforce state constraints by minimally modifying a nominal control input so that a safe set remains forward invariant (Ames et al., 2019). This reactive view, however, is incomplete under bounded actuation. A system can satisfy all instantaneous geometric constraints and still enter a state from which the available control authority is no longer sufficient to prevent a future violation. Backup CBFs (bCBFs) address this distinction by asking a stronger question: if the nominal behavior becomes unsafe, does a prescribed recovery maneuver remain feasible over a finite horizon and reach a terminal safe set? (Gurriet et al., 2018; Chen et al., 2021). This notion of future recoverability is particularly relevant to learning-based navigation because the policy should ideally avoid actions that are safe only momentarily but eliminate subsequent braking or avoidance authority.
The challenge is to make this predictive notion of safety practical inside RL training. A sampled bCBF introduces many simultaneous conditions: current-state safety, safety at multiple future backup states, terminal recoverability, and bounded-input constraints. Direct enforcement therefore leads to a multi-constraint online optimization that must be solved at every environment interaction. Existing work has separately developed smooth CBF composition, closed-form CBF filters, backup-based safe sets, and differentiable safety layers (Rabiee & Hoagg, 2025; Wang et al., 2025; van Wijk et al., 2026; Yun et al., 2026). What remains important for learning is a formulation that preserves finite-horizon backup recoverability, handles bounded commands, collapses the resulting constraint collection to an analytical minimum-intervention map, and exposes the exact filter Jacobian to the task policy during training.
We introduce SAFTER, a recoverability-aware safety-filtered RL framework built around this objective. Figure 1 summarizes the central idea. The actor proposes a task-oriented nominal action. SAFTER predicts a prescribed backup maneuver, composes current, future, terminal, and input-admissibility conditions into a single differentiable certificate, and projects the nominal command through an exact closed-form safety map. During training, the filtered action is the action actually executed and evaluated by the critic, while the actor differentiates through the analytical safety correction. During deployment, the actor is frozen and the same filter remains active. Thus, the safety layer is used not only to shield the robot but also to shape what the policy learns.
Our contributions are threefold. First, we construct a recoverability-aware composite certificate that combines current-state HOCBF conditions, sampled backup-horizon safety, terminal recoverability, and bounded-input admissibility after control-input augmentation. The construction reduces the sampled predictive-safety conditions to one affine CBF constraint whose exact minimum-intervention solution is available in closed form. Second, we embed this analytical filter directly into SAC so that the critic learns from executed filtered actions and the actor receives gradients through the exact recoverability-aware filter mapping. Third, controlled quadruped experiments separate learning efficiency, policy internalization, distribution-shift robustness, and filter-gradient effects. The results show faster transition-based convergence in a matched moderate-speed study and substantially improved navigation success in unseen, geometrically shifted environments; ablations identify the analytical filter Jacobian as an important learning mechanism.
Backup CBFs and predictive safety. Backup CBFs characterize recoverability through the flow of a prescribed backup controller, beginning with active-set invariance formulations (Gurriet et al., 2018) and later extensions using time-varying backups (Singletary et al., 2022). RLBUS learns a neural backup policy to enlarge the finite-time safe backward image (Rabiee & Safari, 2025); PS2-RL couples task-policy learning with a differentiable backup-CBF projection and considers both learned and analytical backup constructions (Yun et al., 2026). Backup-CBF filtering has also been developed for bounded-input and higher-order systems (van Wijk et al., 2026; Lin & Wu, 2026). SAFTER instead combines an augmented composite backup certificate with an explicit projection in surrogate-control space and differentiates through this map during off-policy task-policy learning.
Composite and explicit safety filters. LSE composition has been used to combine multiple current-state CBF constraints and obtain a closed-form safety filter for end-to-end RL (Wang et al., 2025). CBF-based quadruped navigation has also used smooth LiDAR-derived safety functions with online QP filtering (Unlu et al., 2024). For backup barriers, smooth minimum/maximum constructions aggregate finite-horizon conditions while retaining optimization-based control synthesis (Rabiee & Hoagg, 2025). van Wijk et al. (2026) derive a closed-form bounded-input bCBF controller by interpolating between nominal and backup controls, restricting the correction to that interpolation direction. SAFTER instead constructs a single composite affine constraint in an augmented surrogate-input space and applies the exact minimum-Euclidean correction in the full surrogate control space. The differentiable mapping is then used directly in the SAC actor update.
3 RECOVERABILITY-AWARE SAFE RL: PROBLEM FORMULATION
Safety-filtered Soft Actor-Critic RL. We consider continuous-action reinforcement learning with environment state , policy observation , and physical command . The task policy is trained using Soft Actor-Critic (SAC) (Haarnoja et al., 2018). At policy step , the actor proposes a nominal command , which is transformed before execution by , where contains the state and sensing information required by the filter and denotes its fixed design parameters. Because the executed command generates the environment transition, it is the action stored in replay and evaluated by the SAC critics. During the actor update, SAFTER also differentiates through , allowing the nominal policy to adapt to the safety intervention it experiences.
The safety filter doesn’t need the complete RL environment. We use for the continuous state required by the safety model and for its physical command, with local dynamics . Thus, is the RL environment state, is the actor observation, and is the reduced state used to evaluate safety.
From current-state safety to backup recoverability. Let denote the prescribed safe set. For a differentiable relative-degree-one barrier , a standard minimum-intervention CBF filter solves
(1)
where and are the Lie derivatives of , and regulates approach to the safety boundary. Under the usual regularity and feasibility assumptions, the CBF constraint renders the corresponding safe set forward invariant (Ames et al., 2019); the objective leaves the nominal command unchanged whenever it already satisfies the input and CBF constraints.
A conventional CBF constrains the instantaneous safety-margin dynamics, but with bounded actuation this need not preserve future recoverability. Let be a prescribed backup controller, its flow, and a terminal set invariant under (Gurriet et al., 2018; Chen et al., 2021). Finite-horizon recoverability requires
The backup trajectory must therefore remain safe while reaching a terminal state from which safety can subsequently be maintained. Evaluating the trajectory at produces future safety conditions in addition to current and terminal conditions. Direct enforcement therefore leads to the sampled multi-constraint bCBF–QP described in Appendix B.1: recoverability provides predictive safety information unavailable to an instantaneous CBF, but substantially enlarges the online safety problem.
Quadruped-navigation example. In our experiments, contains the full MuJoCo state, while the SAC actor observes local LiDAR, goal information, measured body velocity, and command history. The safety model uses the scan-fixed planar pose and high-level command . Each valid LiDAR return defines an obstacle point and barrier . A command can satisfy all current clearance constraints yet leave too little distance to stop before collision.

Figure 1: Overview of SAFTER. A task policy proposes a nominal command; a prescribed backup rollout evaluates finite-horizon recoverability; current, future, terminal, and input-admissibility conditions are combined into one differentiable certificate; and an analytical minimum-intervention projection determines the safety correction before execution. During training, the critic evaluates the executed action and the actor differentiates through the same safety map.
The prescribed backup therefore drives the commanded motion toward rest and tests whether this stopping maneuver remains collision-free over the horizon. With rays and positive-time samples, the filter evaluates 2400 future geometric barriers before terminal and input-admissibility conditions are included. Appendix C gives the full construction.
Problem 3.1 (Recoverability-aware differentiable safe RL). Given , the safety model , safe set , bounded input set , backup controller , and terminal set , construct such that the executed command: (i) satisfies the encoded current, sampled backup, terminal, and input conditions whenever feasible; (ii) minimally modifies the nominal task command; and (iii) can be evaluated efficiently and differentiated during SAC training.
Direct sampled bCBF enforcement satisfies the predictive requirement but retains a multi-constraint optimization inside every RL interaction. Section 4 develops SAFTER to remove this bottleneck by combining bounded-command augmentation, finite-horizon backup prediction, a single composite certificate, and an analytical minimum-intervention projection whose local Jacobian can be used directly in policy optimization.
4 RECOVERABILITY-AWARE DIFFERENTIABLE SAFETY FILTERING
SAFTER realizes Problem 3.1 through the analytical pipeline in Figure 1. It augments the bounded physical command with first-order dynamics, evaluates finite-horizon backup recoverability in the augmented model, and combines the resulting current, future, terminal, and input-admissibility margins into one differentiable certificate. The CBF condition of this certificate is a single affine constraint in a surrogate input, yielding an exact minimum-intervention projection and an exact local Jacobian wherever the filter is differentiable.
The central technical contribution is this reduction from sampled multi-constraint backup-CBF enforcement to a single analytical projection after the constituent safety margins have been evaluated. Thus, the number of backup samples and primitive barriers no longer determines the number of constraints in the online optimization, while the same recoverability-aware action map can be differentiated through during SAC training.
Bounded-command augmentation and current safety. Section 3 uses the safety model with bounded physical command . Following the control-dynamics construction of Rabiee & Hoagg (2024), we introduce a surrogate input through , where . Treating the applied command as part of the state gives and
For the component-wise bounds , define and , . Their nonnegativity represents the physical command bounds as state constraints. Because depends on but not directly on the command state , . We therefore use the lifted current-safety margin
with . Hence, has relative degree one with respect to wherever and can be combined with the predictive and input-admissibility conditions below. Appendix B.3 gives the relative-degree calculation, while Appendix D describes the finite-rate command update and the post-projection enforcement of the physical command limits.
Predictive backup recoverability. Because SAFTER acts through , the backup maneuver from Section 3 is represented in the augmented dynamics by a prescribed surrogate backup input . Let denote the corresponding flow of . With , the sampled future margins are . After augmentation, terminal recoverability may also depend on the applied command state. We therefore lift the terminal set to and define . The future margins test sampled safety along the recovery trajectory, while the terminal margins test whether the predicted backup state reaches . Their gradients require the sensitivity of the backup flow to the current augmented state; Appendix B.3.1 gives the corresponding variational dynamics.
For the quadruped specialization, , so the first-order command dynamics drive the applied translational and yaw-rate commands toward zero. The backup test therefore asks whether sufficient obstacle clearance remains to dissipate the current commanded motion.
Composite recoverability certificate. The backup construction above yields the current margins , sampled future margins , terminal margins , and input-admissibility margins . After fixed positive rescaling, denoted by an overbar, SAFTER combines them using the LSE smooth minimum (Molnar & Ames, 2023; Rabiee & Hoagg, 2025),
where controls the approximation sharpness. Thus, implies nonnegativity of every constituent in . We aggregate recoverability and input admissibility separately,
The complete certificate is . Hence, implies all encoded current, sampled backup, terminal, and input-admissibility conditions. The individual margins must still be evaluated, but their enforcement is reduced to one differentiable scalar certificate.
Analytical minimum-intervention projection. The composite certificate now plays the role of the barrier function in the CBF condition introduced in equation 1. Applied to the augmented dynamics equation 2, this condition becomes
where is the composite CBF gain. Defining and , equation 4 is simply : a single half-space in the surrogate input. Thus, the many sampled recoverability conditions composed above no longer appear as separate constraints in the online projection. The actor, however, proposes the physical command rather than the surrogate input . To recover this nominal command when the safety constraint is inactive, we use
which makes the applied command u exponentially track under the augmented dynamics. The derivation is given in Appendix D.1. The safety filter therefore solves
Let denote the composite constraint margin of the nominal surrogate, and denote the squared constraint-normal magnitude.
Proposition 4.1 (Closed-form safety projection). If , the unique solution of equation 6 is
If , the nominal surrogate already satisfies the composite condition and is unchanged; otherwise, equation 7 applies the minimum-Euclidean correction along the certificate normal. The projection is exact for the resulting half-space, and approximation enters only through finite backup sampling and the LSE construction preceding it. The detailed proof of Proposition 4.1 is included in Appendix B.4.
Theorem 4.2 (Continuous-time safety and recoverability). Under Assumption B.1, suppose and the composite CBF condition equation 4 is enforced continuously. Then is forward invariant for the continuous augmented model. Consequently, the safety-model state remains in the original safe set , the applied command remains within its prescribed bounds, and the backup trajectory satisfies the encoded safety conditions at the sampled future times and reaches the terminal recovery set at the end of the horizon.
The result applies to the continuous safety model and to backup safety at the selected horizon samples. The finite-rate implementation, inter-sample backup behavior, sensing updates, and reduced-model assumptions are discussed in Appendices D.2 and D.3.
SAFTER–SAC integration. As illustrated in Figure 1, SAFTER places the recoverability-aware safety map between the SAC actor and the environment. At each step, the actor proposes , the safety map produces the executed command , and the environment transition is generated by this filtered action. Accordingly, is stored in replay and evaluated by the critics, so value learning is based on the action that actually generated the transition. The same filtering is applied to next actions when constructing SAC targets.
During the actor update, the critic evaluates , and gradients propagate through the same finite-rate map used during execution: nominal-surrogate construction, analytical half-space projection, command update, and component-wise clipping. This map is differentiable away from projection and clipping switching boundaries, allowing actor up-
Training Success Rate

Figure 2: Training success rates of Vanilla SAC, CBF-QP/CBF-CF, bCBF-LSE-QP, and SAFTER under the same training environments.
dates to account for how safety interventions modify nominal commands. Target filtering uses the same forward map without gradient propagation, while the SAC entropy term remains defined on the nominal policy. The full SAC implementation details are reported in Appendix E.

(a) Real-world evaluation maps.
(b) Trajectory sample and LiDAR readings of the real robot experiments.
Figure 3: Real-world map with two different obstacle configurations, and trajectory sample and LiDAR readings taken from the Unitree Go2 on-board state estimator and LiDAR.
Table 1: Performance on the training-map distribution with each method's runtime safety filter disabled or enabled. SR, TR, and FR denote success, timeout, and failure rates, respectively. Values are mean ± standard deviation over evaluation seeds and maps.
| Method | Filter disabled | Filter enabled | ||||
|---|---|---|---|---|---|---|
| SR ↑ | TR ↓ | FR ↓ | SR ↑ | TR ↓ | FR ↓ | |
| SEA-Nav | 89.7±2.4 | 0.0±0.0 | 10.3±2.4 | 91.2±2.9 | 0.0±0.0 | 8.8±2.9 |
| CBF-RL | 84.3±8.2 | 5.9±5.2 | 9.8±7.1 | 84.8±7.4 | 5.9±5.2 | 9.3±6.6 |
| CBF-CF | 76.6±13.8 | 2.7±6.3 | 20.7±15.8 | 90.1±8.2 | 1.9±4.5 | 8.0±8.5 |
| SAFTER | 95.1±7.1 | 0.0±0.0 | 4.9±7.1 | 99.7±1.2 | 0.0±0.0 | 0.3±1.2 |
Refs.: (Chen et al., 2026); (Yang et al., 2025); (Rabiee & Hoagg, 2024); Ours.
5 EXPERIMENTS AND ANALYSIS
The experiments are organized to test the three mechanisms isolated in the problem formulation. RQ1 asks whether finite-horizon backup recoverability, rather than current-state filtering alone, improves transition-based learning efficiency, and whether its analytical realization reduces safety-filter latency relative to QP-based synthesis. RQ2 asks whether the resulting policy–filter system remains effective as obstacle geometry shifts away from the training maps. RQ3 asks whether learning through the exact analytical projection Jacobian matters when the forward safety-filter mapping is unchanged.
The baselines and SAFTER are evaluated in MuJoCo 3.3.6 using a Unitree Go2 with a frozen 50 Hz low-level locomotion policy. The high-level policy operates at 10 Hz using local LiDAR, goal, measured-velocity, and command-history observations. SAC-based methods use 256 parallel environments, five independent training seeds, and a maximum budget of 20.48M transitions per seed. In both training and evaluation, failure denotes episode termination caused by obstacle collision, falling, or contact with the environment boundary wall. The bCBF-LSE-QP baseline uses the same composite half-space, backup model, terminal set, command dynamics, and finite-rate realization as SAFTER.
RQ1: Learning Efficiency and Policy Internalization. For the controlled convergence study, sample efficiency is measured by the first attainment of 90% training success for each seed, using a 20-sample trailing rolling mean; the threshold is counted at its first crossing and is not required to persist. As shown in Figure 2, the two backup-recoverability methods converge earliest: SAFTER reaches the threshold after M transitions and bCBF-LSE-QP after M. SAFTER therefore requires 30.6% fewer transitions than Vanilla SAC and 34.1%–35.1% fewer than the current-state CBF baselines. The similar convergence of SAFTER and bCBF–
Table 2: Safety-filter runtime comparison. Total latency includes certificate construction and synthesis, and speedup is measured relative to the direct bCBF–QP. Values are mean ± standard deviation over 300 timed repetitions.
| Method | Batch = 1 | Batch = 100 | ||||
|---|---|---|---|---|---|---|
| Total (ms) | Synthesis (ms) | Speedup (×) | Total (ms) | Synthesis (ms) | Speedup (×) | |
| bCBF-QP | 30.546±0.324 | 28.369±0.194 | 1.00 | 2504.789±22.463 | 2487.383±16.949 | 1.00 |
| bCBF-LSE-QP | 5.732±0.456 | 3.342±0.405 | 5.33 | 7.084±0.569 | 4.588±0.481 | 353.58 |
| SAFTER | 2.495±0.312 | 0.102±0.011 | 12.24 | 2.529±0.283 | 0.106±0.014 | 990.43 |

Figure 4: Representative trajectories in the simulated Medium-Shift environment. Purple and yellow regions denote the initial and goal regions, squares mark initial positions, stars successful terminations, crosses collision terminations, and faint circles indicate the robot footprint.
LSE–QP indicates that the sample-efficiency gain is primarily associated with predictive backup recoverability rather than the analytical realization alone.
Recoverability-aware training also appears to shape the learned nominal policy rather than relying solely on runtime filtering. To examine this effect, we evaluate the trained policies on the training-map distribution with their runtime safety filters enabled and disabled. Among the methods reported in Table 1, SAFTER achieves 95.1% success without the runtime filter and 99.7% with it. The strong filter-disabled performance suggests that recoverability-aware training promotes nominal behavior compatible with the prescribed backup strategy.
To evaluate computational efficiency, Table 2 compares SAFTER with the matched bCBF–LSE–QP and the direct unaggregated bCBF–QP. All methods are evaluated on identical fixed filter inputs using 30 warm-up calls and 300 timed repetitions on an NVIDIA RTX 4090 GPU with CUDA synchronization around each timed region. SAFTER achieves the lowest total latency at both batch sizes, providing and lower latency than the direct bCBF–QP at batch sizes 1 and 100, respectively. Relative to the matched bCBF–LSE–QP, SAFTER is and faster.
RQ2: Robustness under Geometric Distribution Shift. Predictive backup recoverability supports robust navigation under geometric shift in simulation and real-world deployment. Each fixed checkpoint is evaluated over 500 episodes per unseen simulation environment and 30 trials per real-world map. Trajectories in Figures 4 and 3b illustrate navigation behavior in simulation and real-world ex-
Table 3: Navigation performance in simulation and real-world experiments. SR, TR, and FR denote success, timeout, and failure rates (%), respectively. Simulation values are mean ± standard deviation across 25 evaluation-seed rates. Real-world success rates are measured over 30 trials per map. Dashes indicate methods not evaluated on hardware.
| Method | Simulation | Real world | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Low-Shift | Medium-Shift | High-Shift | Map 1 | Map 2 | |||||||
| SR ↑ | TR ↓ | FR ↓ | SR ↑ | TR ↓ | FR ↓ | SR ↑ | TR ↓ | FR ↓ | SR ↑ | SR ↑ | |
| SEA-Nav | 93.8±6.7 | 0.0±0.0 | 6.2±6.7 | 50.6±10.9 | 0.0±0.0 | 49.4±10.9 | 0.0±0.0 | 0.0±0.0 | 100.0±0.0 | 56.7 | 13.3 |
| CBF-RL | 61.2±10.7 | 13.6±6.7 | 25.2±9.8 | 46.2±11.6 | 17.2±7.6 | 36.6±9.2 | 31.0±10.0 | 15.4±8.9 | 53.6±12.2 | 63.3 | 0.0 |
| Vanilla SAC | 34.2±10.1 | 0.0±0.0 | 65.8±10.1 | 20.8±6.9 | 0.0±0.0 | 79.2±6.9 | 17.4±8.3 | 0.0±0.0 | 82.6±8.3 | 10.0 | 0.0 |
| CBF-QP | 58.8±9.4 | 0.2±1.0 | 41.0±9.2 | 43.2±11.0 | 0.0±0.0 | 56.8±11.0 | 18.0±6.9 | 0.0±0.0 | 82.0±6.9 | - | - |
| CBF-CF | 69.0±11.5 | 0.0±0.0 | 31.0±11.5 | 48.4±8.4 | 0.0±0.0 | 51.6±8.4 | 33.8±12.2 | 0.0±0.0 | 66.2±12.2 | 56.7 | 16.7 |
| bCBF-LSE-QP | 99.4±1.7 | 0.0±0.0 | 0.6±1.7 | 75.0±9.7 | 0.0±0.0 | 25.0±9.7 | 67.4±11.7 | 0.0±0.0 | 32.6±11.7 | - | - |
| SAFTER | 98.8±2.2 | 0.0±0.0 | 1.2±2.2 | 88.6±7.3 | 0.0±0.0 | 11.4±7.3 | 61.4±10.2 | 0.0±0.0 | 38.6±10.2 | 73.3 | 76.7 |
Refs.: (Chen et al., 2026); (Yang et al., 2025); (Haarnoja et al., 2018); (Rabiee & Hoagg, 2024); Ours.
periments. The real-world and simulated examples show SAFTER taking wider detours with greater obstacle clearance, consistent with preserving room for backup recovery. The control actions generated by SAFTER produce a safer navigation in an environment under distribution shift, as shown by the overall results reported in Table 3, where SAFTER achieves 98.8%, 88.6%, and 61.4% success on Low-, Medium-, and High-Shift, outperforming the baseline methods. On the two real-world layouts in Figure 3a, SAFTER achieves 73.3% and 76.7% success, exceeding the strongest evaluated baselines by 10.0 and 60.0 percentage points, respectively. Moreover, additional experimental details and results are reported in Appendix A.
RQ3: Why Does SAFTER Learn Differently? Accurate differentiation through the analytical projection has a substantially larger and more consistent effect on robustness than discouraging filter intervention. As shown in Table 4, replacing the Exact projection Jacobian with the Identity approximation reduces success by up to 85.4 percentage points across the evaluated distribution shifts. In contrast, removing the correction reward has a mixed effect: the Exact-Jacobian policy improves from 88.6% to 94.4% on Medium-Shift and from 61.4% to 76.2% on High-Shift, while decreasing from 98.8% to 95.6% on Low-Shift. Because the forward safety-filter map is unchanged within each Exact/Identity pair, these results provide evidence that propagating the analytical projection Jacobian materially improves robustness, whereas minimizing filter intervention is not uniformly beneficial under larger geometric shifts.
Table 4: Ablation of the projection Jacobian and correction reward on unseen environments. Exact and Identity use the same forward safety-filter map and differ only in the backward differentiation through the analytical projection. Values are mean ± standard deviation across 25 evaluation-seed rates.
| Ablation Setting | Low-Shift | Medium-Shift | High-Shift | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Projection Jacobian | Correction Reward | SR↑ | TR↓ | FR↓ | SR↑ | TR↓ | FR↓ | SR↑ | TR↓ | FR↓ |
| Exact | On | 98.8±2.2 | 0.0±0.0 | 1.2±2.2 | 88.6±7.3 | 0.0±0.0 | 11.4±7.3 | 61.4±10.2 | 0.0±0.0 | 38.6±10.2 |
| Identity | On | 89.8±6.0 | 0.0±0.0 | 10.2±6.0 | 41.6±9.3 | 0.0±0.0 | 58.4±9.3 | 6.2±4.4 | 0.0±0.0 | 93.8±4.4 |
| Exact | Off | 95.6±4.9 | 4.2±4.9 | 0.2±1.0 | 94.4±4.4 | 3.8±3.9 | 1.8±3.5 | 76.2±9.2 | 3.2±3.8 | 20.6±8.3 |
| Identity | Off | 76.8±7.1 | 0.0±0.0 | 23.2±7.1 | 9.0±6.1 | 0.0±0.0 | 91.0±6.1 | 2.0±3.5 | 0.0±0.0 | 98.0±3.5 |
6 CONCLUSION
We introduced SAFTER, a recoverability-aware safe-RL framework that combines command-state augmentation, hierarchical LSE composition, and an exact minimum-Euclidean projection into a differentiable training map. Experiments show improved transition-based sample efficiency and strong performance under geometric distribution shift in both simulated and real-world environments, while the Jacobian ablation highlights the importance of differentiating through the analytical safety-filter map. Future work will consider uneven terrain and dynamic obstacles.
ACKNOWLEDGEMENTS
This work was supported by the NVIDIA Academic Grant Program.
REFERENCES
Aaron D Ames, Samuel Coogan, Magnus Egerstedt, Gennaro Notomista, Koushil Sreenath, and Paulo Tabuada. Control barrier functions: Theory and applications. In Proc. 18th European Control Conf., pp. 3420–3431, 2019.
Federico Pizarro Bejarano, Lukas Brunke, and Angela P. Schoellig. Safety filtering while training: Improving the performance and sample efficiency of reinforcement learning agents. IEEE Robotics and Automation Letters, 10(1):788–795, 2025. doi: 10.1109/LRA.2024.3512374.
Lukas Brunke, Melissa Greeff, Adam W Hall, Zhaocong Yuan, Siqi Zhou, Jacopo Panerati, and Angela P Schoellig. Safe learning in robotics: From learning-based control to safe reinforcement learning. Annual Review of Control, Robotics, and Autonomous Systems, 5(1):411–444, 2022.
Shiyi Chen, Mingye Yang, Haiyan Mao, Jiaqi Zhang, Haiyi Liu, Shuheng He, Debing Zhang, Zihao Qiu, and Chun Zhang. Sea-nav: Efficient policy learning for safe and agile quadruped navigation in cluttered environments. arXiv preprint arXiv:2603.09460, 2026.
Yuxiao Chen, Mrdjan Jankovic, Mario Santillo, and Aaron D. Ames. Backup control barrier functions: Formulation and comparative study. In 2021 60th IEEE Conference on Decision and Control (CDC), pp. 6835–6841. IEEE, 2021. doi: 10.1109/CDC45484.2021.9683111.
Yinlam Chow, Ofir Nachum, Aleksandra Faust, Edgar Dueñez-Guzman, and Mohammad Ghavamzadeh. Safe policy learning for continuous control. In Proceedings of the 2020 Conference on Robot Learning, volume 155 of Proceedings of Machine Learning Research, pp. 801–821. PMLR, 2021.
Maeva Guerrier, Hassan Fouad, and Giovanni Beltrame. Learning control barrier functions and their application in reinforcement learning: A survey. arXiv preprint arXiv:2404.16879, 2024.
Thomas Gurriet, Mark Mote, Aaron D Ames, and Eric Feron. An online approach to active set invariance. In 2018 IEEE Conference on Decision and Control (CDC), pp. 3592–3599. IEEE, 2018.
Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, et al. Soft actor-critic algorithms and applications. arXiv preprint arXiv:1812.05905, 2018.
Tairan He, Chong Zhang, Wenli Xiao, Guanqi He, Changliu Liu, and Guanya Shi. Agile but safe: Learning collision-free high-speed legged locomotion. In Proceedings of Robotics: Science and Systems, 2024. doi: 10.15607/RSS.2024.XX.059.
Kai-Chieh Hsu, Duy Phuong Nguyen, and Jaime Fernández Fisac. ISAACS: Iterative soft adversarial actor-critic for safety. In Proceedings of the 5th Annual Learning for Dynamics and Control Conference, volume 211 of Proceedings of Machine Learning Research, pp. 90–103. PMLR, 2023.
Yunho Kim, Hyunsik Oh, Jeonghyun Lee, Jinhyeok Choi, Gwanghyeon Ji, Moonkyu Jung, Donghoon Youm, and Jemin Hwangbo. Not only rewards but also constraints: Applications on legged robot locomotion. IEEE Transactions on Robotics, 40:2984–3003, 2024. doi:10.1109/TRO.2024.3400935.
Hanna Krasowski, Jakob Thumm, Marlon Müller, Lukas Schäfer, Xiao Wang, and Matthias Althoff. Provably safe reinforcement learning: Conceptual analysis, survey, and benchmarking. Transactions on Machine Learning Research, 2023.
Albert Lin, Shuang Peng, and Somil Bansal. One filter to deploy them all: Robust safety for quadrupedal navigation in unknown environments. IEEE Transactions on Robotics, 42:545–560, 2026. doi: 10.1109/TRO.2025.3644957.
Zijie Lin and Baolin Wu. Safety-critical control for multiple spacecraft close-proximity inspection. Aerospace Science and Technology, 168:110938, 2026.
Tamas G Molnar and Aaron D Ames. Composing control barrier functions for complex safety specifications. IEEE Control Systems Letters, 7:3615–3620, 2023.
Nilaksh, Abhishek Ranjan, Shreenabh Agrawal, Aayush Jain, Pushpak Jagtap, and Shishir Kolathaya. Barrier functions inspired reward shaping for reinforcement learning. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pp. 10807–10813, 2024. doi:10.1109/ICRA57147.2024.10610391.
Pedram Rabiee and Jesse B Hoagg. A closed-form control for safety under input constraints using a composition of control barrier functions. arXiv preprint arXiv:2406.16874, 2024.
Pedram Rabiee and Jesse B Hoagg. Soft-minimum and soft-maximum barrier functions for safety with actuation constraints. Automatica, 171:111921, 2025.
Pedram Rabiee and Amirsaeid Safari. Safe exploration in reinforcement learning: Training backup control barrier functions with zero training-time safety violations. In Proceedings of the 7th Annual Learning for Dynamics & Control Conference, volume 283 of Proceedings of Machine Learning Research, pp. 1326–1337, 2025.
Andrew Singletary, Aiden Swann, Ivan Dario Jimenez Rodriguez, and Aaron D Ames. Safe drone flight with time-varying backup controllers. In 2022 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 4577–4584. IEEE, 2022.
Halil Utku Unlu, Vinicius Mariano Gonçalves, Dimitris Chaikalis, Anthony Tzes, and Farshad Khorrami. A control barrier function-based motion planning scheme for a quadruped robot. In 2024 IEEE international Conference on Robotics and Automation (ICRA), pp. 12172–12178. IEEE, 2024.
David Van Wijk, Kyle Dunlap, Manoranjan Majji, and Kerianne Hobbs. Safe spacecraft inspection via deep reinforcement learning and discrete control barrier functions. Journal of Aerospace Information Systems, 21(12):996–1013, 2024.
David EJ van Wijk, Ersin Daş, Tamas G Molnar, Aaron D Ames, and Joel W Burdick. Safety-critical control with bounded inputs: A closed-form solution for backup control barrier functions. In 2026 American Control Conference (ACC), pp. 1215–1222. IEEE, 2026.
Chenggang Wang, Xinyi Wang, Yutong Dong, Lei Song, and Xinping Guan. Multi-constraint safe reinforcement learning via closed-form solution for log-sum-exp approximation of control barrier functions. In Proceedings of the 7th Annual Learning for Dynamics & Control Conference, volume 283 of Proceedings of Machine Learning Research, pp. 698–710, 2025.
Zifan Xu, Bo Liu, Xuesu Xiao, Anirudh Nair, and Peter Stone. Benchmarking reinforcement learning techniques for autonomous navigation. In 2023 IEEE International Conference on Robotics and Automation (ICRA), pp. 9224–9230, 2023. doi: 10.1109/ICRA48891.2023.10160583.
Lizhi Yang, Blake Werner, Massimiliano de Sa, and Aaron D Ames. Cbf-rl: Safety filtering reinforcement learning in training with control barrier functions. arXiv preprint arXiv:2510.14959, 2025.
Qisong Yang, Thiago D. Simão, Simon H. Tindemans, and Matthijs T. J. Spaan. Safety-constrained reinforcement learning with a distributional safety critic. Machine Learning, 112:859–887, 2023. doi: 10.1007/s10994-022-06187-8.
Kai S Yun, Zeyang Li, and Navid Azizan. Provably safe, yet scalable reinforcement learning. arXiv preprint arXiv:2606.14536, 2026.
A EXPERIMENTAL PROTOCOLS AND ADDITIONAL RESULTS
A.1 TRAINING AND EVALUATION MAPS
The simulated quadruped experiments use a fixed workspace. The training bank comprises five hand-crafted maps with cylindrical obstacles of radius 0.6 m and 200 predefined initial-goal scenarios per map (Figure 5), varying obstacle arrangements and start-goal orientations. The policy observes local planar LiDAR with a maximum range of 5 m, requiring navigation decisions as previously unseen geometry enters the sensing region. The three unseen environments in Figure 6 introduce progressively larger geometric shifts: Low-Shift preserves the training maps' row-based structure while increasing obstacle count and reversing the initial and goal regions; Medium-Shift retains a similar obstacle count but narrows the passages between rows; and High-Shift introduces different obstacle radii, a square obstacle, and tighter inter-obstacle clearances than Medium-Shift. All evaluation maps retain the protocol's minimum wall clearance for admissible initial and goal regions.

(a) Training Map 1

(b) Training Map 2

(c) Training Map 3

(d) Training Map 4

(e) Training Map 5
Figure 5: Five hand-crafted training maps with fixed obstacle configurations and predefined initial and goal regions. Green and yellow regions indicate the initial and goal regions, respectively, while obstacles are shown in red.
A.2 PATH LENGTH AND NAVIGATION TIME OF FILTER-ENABLED EVALUATIONS ON UNSEEN ENVIRONMENTS
Table 5 reports path length and navigation time only over successful episodes for the filter-enabled unseen-environment evaluations. Path lengths are broadly comparable across the SAC/CBF methods, while SAFTER generally requires more navigation time than the current-state baselines and less than bCBF–LSE–QP or CBF-RL. Thus the success-rate gains under geometric shift should not be interpreted as uniformly shorter or faster successful trajectories. Because PL and NT are conditioned on success, they should be interpreted together with the success rates in Table 3.

(a) Low-Shift
(b) Medium-Shift
(c) High-Shift
Figure 6: Static unseen environments used for distribution-shift evaluation. Green and yellow regions indicate the admissible initial and goal regions, respectively, while obstacles are shown in red. The environments introduce increasingly different obstacle configurations relative to the handcrafted training maps.
Table 5: Navigation efficiency on the unseen static environments with the runtime safety filters enabled. Path Length (PL) and Navigation Time (NT) are computed over successful episodes and reported as mean standard deviation. Dashes indicate that no successful episodes were available for computing PL and NT.
| Method | Low-Shift | Medium-Shift | High-Shift | |||
|---|---|---|---|---|---|---|
| PL (m) ↓ | NT (s) ↓ | PL (m) ↓ | NT (s) ↓ | PL (m) ↓ | NT (s) ↓ | |
| SEA-Nav | 11.57±0.17 | 13.70±0.17 | 10.95±0.30 | 14.21±0.27 | -- | -- |
| CBF-RL | 14.86±0.78 | 32.02±4.02 | 14.93±0.76 | 34.93±4.3 | 15.72±1.19 | 38.99±8.45 |
| Vanilla SAC | 12.76±0.41 | 26.75±1.54 | 12.38±0.68 | 26.31±2.13 | 12.20±0.70 | 25.97±1.77 |
| CBF-QP | 12.05±0.38 | 25.08±1.34 | 11.50±0.45 | 23.77±1.55 | 11.82±1.11 | 25.42±4.02 |
| CBF-CF | 12.26±0.36 | 26.85±1.06 | 11.72±0.42 | 24.84±1.22 | 11.72±0.35 | 25.93±2.06 |
| bCBF-LSE-QP | 13.06±0.37 | 32.74±1.11 | 12.20±0.45 | 29.50±1.67 | 12.33±0.54 | 29.91±2.07 |
| SAFTER | 12.73±0.32 | 30.66±1.18 | 11.87±0.38 | 28.10±1.40 | 12.03±0.32 | 29.43±1.34 |
Refs.: (Chen et al., 2026); (Yang et al., 2025); (Haarnoja et al., 2018); (Rabiee & Hoagg, 2024); Ours.
B THEORETICAL FOUNDATIONS AND PROOFS
B.1 DIRECT SAMPLED BCBF PROJECTION
The bCBF–QP runtime reference is defined in the same augmented surrogate-control coordinates as SAFTER. In particular, it uses the augmented state , surrogate input , prescribed surrogate backup , backup flow , lifted current-time margins , positive-time backup margins , terminal margins , and physical input-admissibility margins introduced in Section 4. Instead of composing these quantities with the hierarchical LSE certificate, the direct baseline enforces their CBF conditions separately:
s.t.
Here, , , , and denote the class- functions associated with the respective CBF conditions.
The Lie derivatives of the future and terminal terms include the sensitivity of to its initial augmented state, as derived in Appendix B.3.1. At finite policy rate, the experimental bCBF–QP baseline uses the same command-state dynamics, command limits, backup horizon, and terminal set as SAFTER. Its synthesis difference is that the sampled safety conditions remain separate QP constraints, whereas SAFTER first composes them into a single affine condition. Consequently, bCBF–QP and SAFTER use the same command-state augmentation, backup maneuver, horizon samples, terminal set, and physical command limits. Their control-synthesis difference is that bCBF–QP retains one affine constraint per constituent, whereas SAFTER first composes the constituents and projects onto a single composite half-space. Sampling the backup horizon does not, by itself, certify safety between adjacent . The finite-rate and inter-sample limitations are discussed in Appendix D.3.
B.2 LSE PROPERTIES
For the set-based smooth minimum in equation 3, enumerate . Its gradient is
so and . Hence every constituent contributes to the gradient of the single composite certificate.
Proof of the LSE bound in equation 3. Let . Since
taking gives the stated bound. Differentiating the same expression gives equation 8. ☐
B.3 RELATIVE DEGREE AND BACKUP-FLOW SENSITIVITY
Because depends on but not on the command state , under equation 2. For
we have
Thus has relative degree one with respect to wherever . Moreover, together with implies for the continuous augmented model.
B.3.1 BACKUP-FLOW SENSITIVITY
Let
The sensitivity
satisfies
For ,
The terminal gradients follow by the same chain rule. These sensitivities are what allow the future and terminal margins to contribute to .
B.4 CLOSED-FORM PROJECTION: KKT DERIVATION
Consider equation 6 and define only for this derivation
With multiplier , the Lagrangian is
Stationarity gives . If , complementary slackness yields
which recovers equation 7. If , the surrogate input has no local authority over the certificate: makes every feasible, whereas is locally infeasible.
B.5 CONTINUOUS SAFETY ASSUMPTIONS AND PROOF
Assumption B.1 (Continuous composite-CBF conditions). On the domain where Theorem 4.2 is invoked: (i) the augmented dynamics, backup-flow terms, terminal functions, and are continuously differentiable; (ii) the augmented model represents the continuous high-level safety model; (iii) the terminal backup set is forward invariant under the prescribed surrogate backup and satisfies ; (iv) for every primitive barrier and ; and (v) the composite affine CBF condition is feasible whenever it is enforced.
Proof of Theorem 4.2. The projected surrogate satisfies equation 4, which is the standard CBF condition for under the augmented dynamics. Continuous enforcement therefore makes forward invariant.
Because the LSE smooth minimum under-approximates the ordinary minimum, implies nonnegativity of every normalized constituent, and each fixed positive normalization preserves sign. In particular, and imply
so the reduced safety-model state remains in . The positive-time backup margins are nonnegative at every selected , and the terminal margins place the predicted backup state in at . By Assumption B.1(iii), continuing the prescribed backup from that terminal state remains in and therefore in the original safe set after projection through . Finally, the input-admissibility constituents remain nonnegative, so the continuous command state remains within its prescribed component-wise bounds. These are the safety and sampled-horizon recoverability consequences stated in the theorem. Inter-sample and finite-rate limitations are separated explicitly in Appendix D.3.
C QUADRUPED NAVIGATION SPECIALIZATION
C.1 POLICY OBSERVATION, ACTION, AND SAFETY-FILTER INPUTS
The high-level actor observation is
Here, is the body-frame goal displacement and is its normalized form with in the implementation. The vector contains measured body-frame translational and yaw velocities for the actor observation; it is not the augmented control-input state used by the safety-filter model. The quantities are the previous executed and nominal physical control inputs, respectively, and is the LiDAR scan normalized by the configured maximum range. The flag indicates whether the previous nominal control input is valid for the finite-difference derivative in Appendix D.1. For the
360° configuration, and therefore . The high-level actor does not observe the full quadruped proprioceptive state because full-body stabilization and low-level tracking are handled by the frozen locomotion policy.
The normalized actor output is mapped to the physical nominal command according to
For the experiments, we used and . At policy step , define as the applied command state entering the first-order augmentation. Thus the augmented filter state uses , while the measured velocity is used only by the actor observation. The policy observation and safety-filter input therefore contain related but nonidentical information. In particular, the filter does not use the goal displacement or measured body velocity when evaluating the analytical safety projection; it uses the current LiDAR scan and the command history required by the local augmented model.
C.2 LiDAR SAFETY CONSTRUCTION
C.2.1 SCAN-FIXED LOCAL GEOMETRY
At each high-level safety-filter update, the generic SAFTER plant state x is specialized to the reduced planar navigation state
where is planar position and is yaw. The applied high-level command is , giving
with
Thus the generic augmented state becomes for the navigation certificate.
A temporary scan-fixed frame is initialized at every filter update with and . Each valid LiDAR return is converted into an obstacle-boundary point
where and are the measured range and ray angle, and is the LiDAR offset from the robot-body origin. The points are held fixed during one safety-filter computation. As the robot evolves relative to this fixed scan, remains fixed while its body-frame coordinate is the derived quantity
C.2.2 ELIPTICAL SAFETY BARRIER
The robot footprint and safety clearance are conservatively represented by a body-aligned ellipse with longitudinal and lateral semi-axes and . The semi-axes account for the physical robot dimensions, LiDAR offset, and configured safety clearance; for the verified Go2 configuration, m and m. Define
For obstacle point in the instantaneous body frame, the geometric barrier is
Thus, requires the observed obstacle point to lie outside the inflated body-aligned ellipse. The elliptical footprint permits yaw to influence the barrier whenever . Let
Differentiating equation 9 gives and hence
For the directly applied high-level control input , the corresponding CBF row is
The yaw coefficient is generally nonzero for an anisotropic ellipse and vanishes in the circular special case .
C.2.3 CURRENT-TIME HOCBF CONDITION
Under the augmented control-input dynamics, the primitive barrier has no first-order dependence on the surrogate control input . The current-time lifted constituent is therefore
At the beginning of each scan-fixed computation, and , so in the temporary local frame. To avoid overloading the plant input matrix or the KKT multiplier , define the two point-gradient components
The complete gradient with respect to is
Its last three entries give , so multiplication by the control-state input block recovers as stated in Section 4. The first three entries account for the dependence of the scan-fixed point coordinate on robot translation and yaw. Together, these expressions provide the code-aligned current-time gradient used in the hierarchical certificate.
C.2.4 BACKUP ROLLOUT AND POSITIVE-TIME BARRIER
The quadruped specialization uses the zero surrogate backup . Along this backup flow, the applied control-input state decays as
The corresponding yaw trajectory and planar position are
These equations define the exact continuous augmented backup flow used in the theoretical construction. The implementation evaluates the planar integral with fixed eight-point
Gauss–Legendre quadrature and differentiates that fixed quadrature map analytically. Thus the implemented rollout is a smooth numerical approximation of the exact flow; it does not use sequential Euler integration or finite-difference flow sensitivities. All requested horizon states and their implementation-level sensitivities are therefore evaluated as smooth functions of the same initial augmented state.
The implementation used a total of 21 rollout nodes, including the current-time node at , along the trajectory generated by the backup controller. Because the raw zero-time geometric barrier is replaced by the lifted constituent , the LSE receives positive-time samples,
For each positive-time sample, the backup safety value is
Let
denote the augmented backup-flow sensitivity. At a future state, the primitive barrier gradient is
The flow-composed gradient with respect to the current augmented state is
This chain rule is the quantity used when the positive-time barriers contribute to the LSE gradient and its Lie derivatives.
C.2.5 FORWARD-INVARIANT ELIPTICAL TERMINAL BACKUP SET
The terminal construction uses a fixed enlarged ellipse together with a separate residual-motion condition, rather than embedding a smoothed stopping distance directly into the ellipse semi-axes. Define
where is the additional terminal margin. For terminal obstacle coordinate , define
Thus, is equivalent to and selects the exterior of the fixed terminal ellipse. The logarithmic coordinate is dimensionless and is well defined on the evaluation domain .
To quantify residual motion under the zero-surrogate backup, define
and let denote the lowest value of the diagonal matrix . The quantity has units of inverse time squared and measures normalized residual translation together with a bound on the yaw contribution induced by ellipse anisotropy. Under , the components satisfy , , and . Consequently,
For each valid LiDAR point, we define two terminal backup-set constituents: for geometric clearance and for recoverability under the residual commanded motion.
The per-ray set is and the complete augmented terminal set is . The generic terminal index in Section 4 therefore ranges over these two terminal constituents for all LiDAR rays. Neither constituent is claimed to be forward invariant independently; the invariant object is their intersection. Equivalently, inside the geometric branch the recoverability condition requires . At zero residual motion, the set reduces to the exterior of the fixed enlarged terminal ellipse.
Proposition C.1 (Forward invariance of the terminal backup set). For the fixed-scan local model in Appendix C.2.1, is forward invariant under the continuous zero-surrogate backup controller . Moreover, because and .
Proof. Let
Because , we have . Using gives . The symmetric part of has spectral norm , so . Therefore, on the geometric branch , where ,
Consider a boundary point with and . Then , and equation 10-equation 13 give
Hence, the backup vector field does not point outward through the recoverability boundary. If instead while , the recoverability condition implies and therefore . Consequently , so the vector field is tangent to the geometric boundary. The Nagumo boundary condition holds on every active boundary of , and the intersection over all valid fixed-scan LiDAR points is forward invariant under the same backup vector field. Finally, the terminal ellipse strictly contains the ordinary safety ellipse because and ; being outside the terminal ellipse therefore implies being outside the ordinary ellipse, yielding .
For the experimental geometry, , , and . Therefore , , and to the reported precision. With , the residual-motion decay rate is . These values match the implementation summary in Appendix C.2.7. Proposition C.1 verifies the terminal-set condition in Assumption B.1(iii) for this specialization.
For implementation, define , so . The terminal-state gradient of the logarithmic clearance can then be written without introducing an additional helper symbol as
The residual-motion gradient is
Hence and
The gradients with respect to the current augmented state are obtained through the same terminal backup-flow sensitivity used for the rollout constituents,
This preserves one common sensitivity pipeline for both terminal constituents and introduces no additional finite-difference approximation.
C.2.6 IMPLEMENTATION-SPECIFIC LSE SCALING
The implementation applies only fixed, code-defined scaling before hierarchical LSE aggregation. The current-time HOCBF constituent has units of inverse time and is normalized as
The positive-time geometric barriers are dimensionless and are inserted directly, so with no separate rollout-scale hyperparameter. The two terminal constituents are likewise dimensionless and use the fixed scales , so their numerical values are unchanged by normalization. Thus, no independent tunable rollout or terminal normalization is hidden from the parameter table.
The control-input margins are made dimensionless using fixed positive per-axis reference scales. Each control-input component is defined as . The normalized input constituents are
The input bounds used in this work are and , which gives . Accordingly, the longitudinal, lateral, and yaw-rate margins are normalized by , , and , respectively. Because each scale is strictly positive, the normalization preserves the sign of the corresponding input-admissibility constituent while only affecting its numerical weighting within the LSE aggregation.
C.2.7 SAFETY-FILTER AND IMPLEMENTATION PARAMETERS
Table 6 summarizes the principal parameters used by the high-level safety-filter configuration. The high-level policy and safety filter operate at , while the frozen low-level locomotion controller operates at . The backup flow uses the zero-surrogate controller with the same first-order control-input dynamics as the safety filter and evaluates its planar displacement with fixed eight-point Gauss–Legendre quadrature. The rollout-count notation distinguishes the 21 total nodes stored by the implementation parameter from the 20 strictly positive-time samples that actually enter the LSE certificate.
Table 6: Safety-filter and local-navigation parameters used by the verified implementation.
| Parameter | Symbol | Value |
|---|---|---|
| Control and sensing | ||
| LiDAR update rate | - | |
| Low-level control rate | - | |
| LiDAR field of view | - | |
| Number of LiDAR rays | ||
| LiDAR range limits | ||
| LiDAR body offset | ||
| Robot length | ||
| Robot width | ||
| Configured safety distance | ||
| Effective footprint clearance | ||
| Longitudinal CBF semi-axis | ||
| Lateral CBF semi-axis | ||
| Control-input augmentation | ||
| Control-dynamics gain | ||
| Nominal tracking gain | ||
| Current HOCBF gain | ||
| Composite CBF gain | ||
| Longitudinal speed command limits | ||
| Lateral speed command limits | ||
| Yaw-rate command limits | ||
| Backup prediction and terminal set | ||
| Backup surrogate input | ||
| Backup horizon | ||
| Total rollout nodes | ||
| Positive-time LSE samples | ||
| Positive sample times | ||
| Fixed terminal margin | ||
| Terminal longitudinal semi-axis | ||
| Terminal lateral semi-axis | ||
| Yaw anisotropy coefficient | ||
| Residual-motion decay rate | ||
| LSE aggregation | ||
| Recoverability LSE sharpness | ||
| Input LSE sharpness | ||
| Outer LSE sharpness | ||
| HOCBF normalization scale | ||
| Terminal geometric scale | ||
| Terminal recoverability scale | ||
D FINITE-RATE REALIZATION AND GUARANTEE SCOPE
D.1 NOMINAL SURROGATE TRACKING
Let denote the nominal physical command. Substituting equation 5 into the augmented command dynamics gives
Hence the applied command exponentially tracks the nominal command whenever the safety projection is inactive. In the 10 Hz implementation,
where when no valid previous nominal command is available and 1 otherwise.
D.2 FINITE-RATE EXPERIMENTAL REALIZATION
The reported experiments evaluate the safety filter at the high-level control interval s. The analytical projection in equation 7 is first applied in surrogate-control space to obtain . During each high-level interval, is held constant under the first-order command dynamics
Because A is diagonal, the corresponding command-state update is evaluated exactly as
The physical command executed by the environment is then obtained through the component-wise command limits,
At the next filter evaluation, this executed command is used as the current control-input state of the augmented model.
Thus, the reported implementation uses the single-half-space analytical projection of equation 7 followed by the exact finite-rate propagation in equation 14 and physical command clipping in equation 15. The same command limits are included in the composite safety certificate. In the finite-rate implementation, a final component-wise clipping operation also enforces these limits on the executed command. The continuous-time guarantee of Theorem 4.2 therefore remains scoped to the continuous augmented model.
D.3 GUARANTEE SCOPE
Theorem 4.2 is a continuous-time result for the reduced safety model. Two sampling gaps remain outside that theorem: (i) the backup trajectory is checked only at the selected , and (ii) the safety filter is recomputed only at the 10 Hz high-level updates. In the reported finite-rate implementation, the same physical command limits included in the composite certificate are also enforced by a final component-wise clipping operation. This ensures that the executed command remains within its prescribed bounds, but the continuous-time theorem does not guarantee that the clipped command satisfies the composite CBF condition between high-level updates.
The LiDAR certificate is also local to the current scan. During one filter computation, observed endpoints are fixed while the reduced pose and command states evolve relative to them. The result therefore assumes that this local model and the zero-surrogate backup adequately represent the high-level motion over the prediction horizon. It does not certify full-body tracking error, unobserved or occluded geometry, moving obstacles absent from the model, or arbitrary LiDAR noise. Consequently, the formal guarantee applies to the stated reduced safety model and measured scan-defined obstacles, not to every full quadruped state.
Assumption D.1 (Finite-rate experimental realization). Over each high-level interval, the reduced pose and first-order command dynamics are assumed to remain representative of the high-level closed-loop motion, and the frozen 50 Hz locomotion controller is assumed to track the resulting high-level command sufficiently well for that reduced model to remain applicable.
E SAFTER–SAC TRAINING DETAILS
E.1 CRITIC AND ACTOR UPDATES
The actor uses a reparameterized tanh-Gaussian policy in normalized action coordinates . The corresponding physical nominal command is as defined in
Appendix C.1. The complete finite-rate safety map consists of the nominal-surrogate construction, the analytical half-space projection in equation 7, the finite-rate command update in equation 14, and the final component-wise clipping in equation 15. It produces , which is mapped back to normalized critic coordinates as .
For replay sample , where is the true-termination indicator, the next nominal action is filtered with the same forward map without gradient propagation to obtain . With twin critics and target networks , the SAC target is
and the critics minimize
Thus the critics evaluate the action that actually generated the transition.
For the actor update, the critic parameters are fixed and
Gradients propagate through , where is the analytical half-space projection and is the finite-rate command before clipping.
Holding the current filter state and command history fixed, define the local projection Jacobian
Away from the switching boundary,
Thus, the analytical projection removes the component of the actor gradient normal to the active safety half-space.
For the implemented finite-rate map, the corresponding local physical-action Jacobian is
where and denotes the local derivative of the component-wise clipping operation. The surrounding mappings between normalized and physical action coordinates are handled by automatic differentiation.
The Identity-Jacobian ablation preserves the same numerical forward action but replaces only by during the actor backward pass. All other mappings in the safety-filter chain retain their ordinary derivatives.
E.2 ENTROPY TEMPERATURE AND CRITIC PARAMETERIZATION
Entropy regularization remains defined on the nominal stochastic policy, because its tanh-Gaussian log-density is tractable whereas the deterministic filtered action does not generally have a tractable induced density. The implementation uses automatic entropy tuning with and
using for the three-dimensional command. The log-probability is detached in this temperature update.
The critics are parameterized as . Because the correction reward depends on both the nominal and projected surrogate commands, distinct nominal actions can produce the same executed action while incurring different correction costs. Moreover, nominal-command history is included in the subsequent observation. The critic can therefore alias such nominal-action choices and should be viewed as a practical observation-conditioned approximation rather than an exact Markov action-value representation. Accordingly, “exact” in the Jacobian discussion refers to the local analytical projection derivative, not to an exact policy gradient for the complete objective.
E.3 TIME-LIMIT TRUNCATION
The Bellman mask uses for true task termination and for time-limit truncation. For a truncation, replay stores the final observation before reset as , so the SAC target continues to bootstrap through the artificial time limit.
E.4 HIGH-LEVEL REWARD FUNCTION
At each 10 Hz policy step, the reward is the weighted sum of the components in Table 7. All SAC-based methods in our framework use the same task terms, with the correction term disabled for Vanilla SAC and the correction-reward-off ablations.
Table 7: High-level reward components and signed weights. The correction weight is -0.05 by default and zero for Vanilla SAC and correction-reward-off ablations.
| Component | Definition | Weight |
|---|---|---|
| Goal progress | +4.00 | |
| Goal reached | +30.00 | |
| Time | -0.01 | |
| Timeout | -5.00 | |
| Forward alignment | +0.20 | |
| Reverse motion | -0.50 | |
| Yaw tracking | -0.05 | |
| Command smoothness | -0.01 | |
| Filter correction | -0.05/0 | |
| Unsafe termination | -20.00 |
Here, is the Euclidean distance to the goal, , and is the signed body-frame goal bearing. The measured forward velocity and yaw rate are and . Their command limits are and . The reference yaw rate is , with . The indicator equals one when its condition holds, and . The event denotes termination due to obstacle collision, boundary-wall contact, or falling. The event denotes time-limit truncation without prior goal or unsafe termination. For SAFTER, we used , while for other filtered variants it denotes the corresponding filter output. The positive vector contains componentwise correction-normalization scales, and denotes elementwise division.
E.5 SAC NETWORK ARCHITECTURE AND OPTIMIZATION
All SAC-based methods in our framework share hidden layers of 512, 256, and 128 units with ELU activations. The actor is a reparameterized tanh-squashed diagonal Gaussian policy outputting three means and three log-standard deviations, the latter clamped to . Twin Q-networks use separate Polyak-averaged targets with . The actor, critics, and entropy temperature use Adam with learning rate . Training uses discount , target entropy -3, a replay capacity of transitions, and minibatches of 1024. Updates begin after 20,000 environment transitions, with one update per environment step.