Deep QP Safety Filter: Model-free Learning for Reachability-based Safety Filter
Byeongjun Kim, H. Jin Kim
TL;DR
This work tackles safety in black-box dynamical systems by learning a time-discounted Hamilton–Jacobi reachability safety filter directly from transition data. It trains neural nets to approximate the discounted safety value $V^λ(x)$ and its derivative using contraction-based Bellman operators, and enforces safety through a QP with an aggressiveness parameter $α$, including an LP fallback. In the exact setting, the critic converges to the viscosity solution of the HJ PDE, and empirically remains robust when the true value is non-smooth, extending to hybrid systems. The learned safety filter reduces pre-convergence failures in RL and transfers across tasks via a single scalar $α$, delivering a practical, scalable model-free safety layer for control. Overall, the method combines principled reachability with data-driven learning to provide safe, efficient, and adaptable control for black-box systems.
Abstract
We introduce Deep QP Safety Filter, a fully data-driven safety layer for black-box dynamical systems. Our method learns a Quadratic-Program (QP) safety filter without model knowledge by combining Hamilton-Jacobi (HJ) reachability with model-free learning. We construct contraction-based losses for both the safety value and its derivatives, and train two neural networks accordingly. In the exact setting, the learned critic converges to the viscosity solution (and its derivative), even for non-smooth values. Across diverse dynamical systems -- even including a hybrid system -- and multiple RL tasks, Deep QP Safety Filter substantially reduces pre-convergence failures while accelerating learning toward higher returns than strong baselines, offering a principled and practical route to safe, model-free control.
