How to Train Your Latent Control Barrier Function: Smooth Safety Filtering Under Hard-to-Model Constraints
cs.RO, cs.LG
Submitted: 2025-11-23
Updated: 2026-10-12
Comments: 6 figures, 10 tables, 24 pages
Code: https://github.com/NM512/dreamerv3-torch
Project page: https://cmu-intentlab.github.io/latent_cbf
License: http://creativecommons.org/licenses/by/4.0/
The gist: Latent safety filters extend Hamilton-Jacobi (HJ) reachability to operate on latent state representations and dynamics learned directly from high-dimensional observations, enabling safe visuomotor
Terminology
Abstract
Latent safety filters extend Hamilton-Jacobi (HJ) reachability to operate on latent state representations and dynamics learned directly from high-dimensional observations, enabling safe visuomotor control under hard-to-model constraints. However, existing methods implement "least-restrictive" filtering that discretely switch between nominal and safety policies, potentially undermining the task performance that makes modern visuomotor policies valuable. While reachability value functions can, in principle, be adapted to be control barrier functions (CBFs) for smooth optimization-based filtering, we theoretically and empirically show that current latent-space learning methods produce fundamentally incompatible value functions. We identify two sources of incompatibility: First, in HJ reachability, failures are encoded via a "margin function" in latent space, whose sign indicates whether or not a latent is in the constraint set. However, representing the margin function as a classifier yields saturated value functions that exhibit discontinuous jumps. We prove that the value function's Lipschitz constant scales linearly with the margin function's Lipschitz constant, revealing that smooth CBFs require smooth margins. Second, reinforcement learning (RL) approximations trained solely on safety policy data yield inaccurate value estimates for nominal policy actions, precisely where CBF filtering needs them. We propose the LatentCBF, which addresses both challenges through gradient penalties that lead to smooth margin functions without additional labeling, and a value-training procedure that mixes data from both nominal and safety policy distributions. Experiments on simulated benchmarks and hardware with a vision-based manipulation policy demonstrate that LatentCBF enables smooth safety filtering while doubling the task-completion rate over prior switching methods.
Sources
- Safety Certification in the Latent space using Control Barrier Functions and World Models
- DeepReach: A Deep Learning Approach to High-Dimensional Reachability
- Safe Autonomous Racing via Approximate Reachability on Ego-vision
- ISAACS: Iterative Soft Adversarial Actor-Critic for Safety
- $\pi_{0.5}$: a Vision-Language-Action Model with Open-World Generalization
- Reachability Barrier Networks: Learning Hamilton-Jacobi Solutions for Smooth and Flexible Control Barrier Functions
- One Filter to Deploy Them All: Robust Safety for Quadrupedal Navigation in Unknown Environments
- Latent Representations for Control Design with Provable Stability and Safety Guarantees
- Generalizing Safety Beyond Collision-Avoidance via Latent-Space Reachability Analysis
- Latent Policy Barrier: Learning Robust Visuomotor Policies by Staying In-Distribution
- DINO-WM: World Models on Pre-trained Visual Features enable Zero-shot Planning
Related papers
- FMT x: An Efficient and Asymptotically Optimal Extension of the Fast Marching Tree for Dynamic Replanning
- MPCFormer: A physics-informed data-driven approach for explainable socially-aware autonomous driving
- RoboLab: A High-Fidelity Simulation Benchmark for Analysis of Task Generalist Policies
- ARC: A Reasoning Recipe for Robot Foundation Models
- HRDexDB: A 4D Dexterous Grasping Dataset Across Human and Multiple Robot Embodiments
- APT: Action Expert Pretraining Improves Instruction Generalization of Vision-Language-Action Policies