Skip to content
Robotics.world

Research

Sim2CBF: From Forward Simulations to Implicit Control Barrier Function Safety Filtering without Model Derivatives

Robots that interact physically with their environment (pushing a cereal box, carrying a cup) can fail in ways that are hard to encode with simple proxies like collision distance or speed limits.

arXiv
2611.22954 · Preprint · not peer-reviewed
Published
2026-11-17
Authors
Luzia Knoedler, Yihan Liu, Shaohang Han, Yifei Dong, Jana Tumova

In plain words

Robots that interact physically with their environment (pushing a cereal box, carrying a cup) can fail in ways that are hard to encode with simple proxies like collision distance or speed limits. Control barrier functions offer formal safety guarantees, but building one requires a model that captures how actions affect the failure variable — and enforcing it usually requires differentiating through that model.

AI summary

Overview

Research area: Safe robot control — control barrier functions (CBFs), safety filters (SFs), and model-based failure avoidance in contact-rich and learned-dynamics settings.

Technical level: Advanced. The paper assumes familiarity with control barrier functions, policy CBFs, quadratic programs, and world models.

Scope (one sentence): The paper proposes Sim2CBF, a framework that solves a CBF-based safety-filter optimization using only forward rollouts of a predictive model — with no derivatives of that model — by combining finite differences, local linear interpolation over sampled control inputs, and a blending rule that preserves failure-avoidance guarantees, demonstrated on a double integrator, simulated and hardware box toppling, and a vision-based Dubins car task.

What This Paper Is About

Robots that interact physically with their environment (pushing a cereal box, carrying a cup) can fail in ways that are hard to encode with simple proxies like collision distance or speed limits. Control barrier functions offer formal safety guarantees, but building one requires a model that captures how actions affect the failure variable — and enforcing it usually requires differentiating through that model. For physics simulators and learned world models, those derivatives may be unavailable, unreliable, or expensive.

Sim2CBF's goal is to enforce an implicit, rollout-based CBF — specifically a Robust Policy Control Barrier Function (RPCBF) — using only forward model evaluations. The safety-filter optimization is replaced by an approximate convex quadratic program whose coefficients come from sampled rollouts, and the resulting input is blended with a backup policy so that failure avoidance is still guaranteed.

Key Contributions

  1. A rollout-based safety filter that needs no model derivatives. The CBF Lie derivative is replaced by a finite-difference quotient of the CBF value over one prediction step, and the resulting nonlinear constraint is approximated by linear interpolation over the convex hull of sampled control inputs, yielding a convex QP in interpolation weights.
  2. Failure-avoidance guarantees for implicit CBFs built from a backup policy. The authors blend the optimized input with the backup input using a state-dependent weight β(V) = 1 − exp(ξV) with β(0) = 0, and formalize the resulting guarantee (Lemma 1) for the undisturbed case.
  3. The Sim2CBF framework. An RPCBF-based failure-avoidance framework that accepts physics-based simulators or learned world models as the predictive model, and that accommodates changes in the predictive model, input constraints, or failure specification without retraining the CBF.
  4. Empirical validation across model complexity. Experiments escalate from a low-dimensional double integrator, to simulated and hardware box toppling with a manipulator, to a Dubins car controlled in the latent space of a learned world model from RGB observations.

Main Findings

  • Derivative-free filtering is competitive on a double integrator. All methods used N = 50; the interpolation approach used M = 3 candidate controls, requiring (M+1)N = 200 MJWarp worlds, while Sample-and-Select used 20 grid samples over the control set, requiring 1050 worlds. Timings were measured on an NVIDIA GeForce RTX 4060 GPU.
  • Automatic differentiation slows substantially with contact. The paper reports that automatic differentiation becomes substantially slower when contact dynamics are simulated, and MJWarp had lower computation time when modeling contacts, so MJWarp was used for all subsequent simulator-based predictive models.
  • Naive blending alone is unsafe in the 2D double integrator comparison. Analytical, Sample-and-Select, and Interpolation with Blending successfully avoided collisions and progressed toward the goal, while Blending alone became unsafe and got stuck behind the obstacle. The authors attribute this to conservatism of reverting toward the backup policy and to zero-order-hold implementation allowing violations between control updates.
  • Simulated box toppling: 0.92 safety rate. On a joint-torque-controlled 7-DoF Franka Panda with box mass unknown but bounded in [1.3, 1.7] kg, the RPCBF was constructed from rollouts at the minimum and maximum admissible masses, achieving a safety rate of 0.92 over 50 trials with Interpolation and Blending.
  • Hardware box toppling runs in real time. On a velocity-controlled UFACTORY xArm 7 with AprilTags pose estimation and known box dimensions and weight, using N = 50, M = 9, H = 100, the mean and maximum safety-filter solve times were 45.02 ms and 66.41 ms.
  • Simulators capture non-end-effector contacts. The hardware experiments include an "elbow"-pushing case, which the authors contrast with many vision-based world-model approaches that focus mainly on end-effector observations.
  • Dubins car in world-model latent space (100 initial–goal pairs). Safe success rate / mean control deviation ‖u − u_nom‖: Nominal (No SF) 0.45 / 0.00 ± 0.00; Direct Blending 0.86 / 0.50 ± 0.80; Interpolation without Blending 0.78 / 0.27 ± 0.52; Interpolation with Blending 0.95 / 0.67 ± 0.79; Sample and Select 0.82 / 0.49 ± 0.75; Neural CBF + Sample and Select 1.00 / 0.17 ± 0.52. Safety rate is omitted in the table because it equals safe success for all methods.
  • The neural CBF baseline wins on success rate, but for a reason the authors identify. The neural CBF achieved the highest safe success rate, likely due to stochastic sampling of the world model during training, whereas RPCBF accounted for uncertainty with only N = 50 rollouts. Its smaller average correction is attributed to its diffusion-based backup policy already producing comparatively safe actions, while the RPCBF's less capable backup policy yields a more conservative filter that corrects earlier.
  • Adaptability claim. The paper states (in the text introducing Table II) that the RPCBF readily adapts to updated world models or safety constraints while neural CBFs generally require retraining. The full contents of Table II are cut off in the provided text, so the specific adaptability results are not reported here.

Methodology in Plain English

The starting point is a "backup policy" — a fallback controller the robot can always run. To know whether the current situation is safe, the method simulates forward: it runs the backup policy for H prediction steps, under N sampled disturbance realizations, and records the worst (largest) value of a failure function h along those rollouts. That worst-case value is the barrier function value V. It is implicit — you get it by simulation, not by a formula.

To pick a control input, the method does not differentiate anything. Instead:

  1. Finite differences replace derivatives. The continuous-time CBF condition is rewritten using the change in V over one prediction step divided by Δt. This is equivalent to a discrete-time CBF condition with γ(r) = Δt·α(r), guaranteeing safety at prediction instants (but not necessarily between them).
  2. Sampling builds a local model. M candidate control inputs are chosen — the nominal input, the backup input (which by construction satisfies the constraint), and small perturbations in task space. Each candidate is applied for one step, and V is re-evaluated at the resulting state via N rollouts, costing (M+1)N rollouts total. Each candidate yields a scalar constraint value c(m).
  3. Interpolation turns it into a QP. Treating any control in the convex hull of the candidates as a weighted combination with weights λ on the simplex, the objective becomes ‖Uᵀλ − u_nom‖² and the constraint becomes cᵀλ − s ≤ 0 with slack s. This is a convex QP in λ with analytically available derivatives with respect to λ — no differentiation through the dynamics or the rollout.
  4. Blending restores the guarantee. The recovered input u* is blended with the backup input: u_safe = β(V)·u* + (1 − β(V))·u_b, with β(V) = 1 − exp(ξV) and β(0) = 0, so on the boundary of the safe set the backup input is applied fully.

The authors are explicit about the limits: the interpolated constraint only approximates the true one, and the implication cᵀλ ≤ 0 ⇒ c(Uᵀλ) ≤ 0 holds only if c is convex over the sampled hull (exact if affine). Rather than deriving a Lipschitz bound for black-box dynamics, they lean on the blending argument for safety. Lemma 1 states that if V ≤ 0, the backup-policy rollout avoids the failure set at each sampled time kΔt for k = 0, …, H−1; violations between samples are not guaranteed, and a cubic spline fit (as in prior work) is suggested as a mitigation.

Why This Matters

Impact on research. The work removes a practical bottleneck in CBF-based safety: the need to differentiate through the predictive model. It connects rollout-based implicit CBFs to expressive, non-differentiable models — a combination the authors state had not previously been demonstrated — and it shows implicit CBFs can live in the latent space of learned world models without retraining when the model or failure specification changes.

Real-world applications:

  • Household manipulation where the failure is object-level, such as toppling a cereal box on a shelf or spilling a cup of tea.
  • Manipulation on hardware with contact-rich interactions where analytical gradients are unreliable, demonstrated here on an xArm 7.
  • Vision-based navigation and control where the only available model is a learned world model operating on RGB observations, demonstrated on a Dubins car.
  • Deployment on systems where the predictive model is swapped or updated — for example moving from one simulator or world model to another — without relearning a safety certificate.

Industry relevance. Robot vendors and integrators increasingly have high-fidelity simulators (MuJoCo, MJWarp) rather than clean analytical models. A safety filter that consumes such simulators as black boxes, solves in tens of milliseconds on real hardware (45.02 ms mean, 66.41 ms max in the reported hardware trials), and does not require retraining when the model changes lowers the barrier to deploying formal safety layers on real robots.

Future Directions

  • Continuous-time safety between samples. The guarantee holds at discrete prediction instants and at control updates under zero-order hold; the authors note that a cubic spline fit could better estimate inter-step violations, but continuous-time safety remains an open requirement.
  • Quantifying interpolation error. A rigorous bound would need a Lipschitz constant for the constraint c(u), which the authors say is difficult to obtain for black-box dynamics; deriving practical bounds would strengthen the guarantees beyond the blending argument.
  • Reducing conservatism from perception and backup-policy quality. The hardware RPCBF is described as conservative because of perception errors, and the Dubins car comparison attributes a larger correction to a less capable backup policy — better perception and stronger backup policies are natural next steps.
  • Scaling beyond the demonstrated settings. The reported evaluation covers a double integrator, a 7-DoF box-toppling task, and a Dubins car; behaviour in higher-dimensional control spaces and the sample-efficiency of the approach as M and control dimension grow are open questions. The paper's conclusions section is not included in the provided text.

Target Audience

Researchers and graduate students in robot safety, control theory, and learning-based control who work with CBFs, safety filters, or world models; robotics engineers who have a simulator or learned model but no reliable gradients and want a deployable safety layer; and practitioners interested in failure avoidance defined directly on task-relevant quantities (tilt angles, latent states) rather than hand-tuned proxies. A working knowledge of CBFs, QPs, and rollout-based control is needed to follow the derivations.

Authors’ abstract

Failure avoidance in complex robot-environment interactions is challenging because the underlying dynamics are difficult to model accurately, and available predictive models may not provide reliable derivatives. We present Sim2CBF, a failure-avoidance framework that solves the Control Barrier Function (CBF)-Safety Filter (SF) optimization problem using only forward-model evaluations, thereby avoiding differentiation of the predictive model. Specifically, we approximate the…

The full abstract on arXiv
Read the original paper

Related papers