cs.ROFeb 26, 2026

Refining Almost-Safe Value Functions on the Fly

Authors: Sander Tonkens, Sosuke Kojima, Chenhao Liu, Judy Masri, Sylvia Herbert

Organizations: University of California, San Diego

Abstract

Control Barrier Functions (CBFs) are a powerful tool for ensuring robotic safety, but designing or learning valid CBFs for complex systems is a significant challenge. While Hamilton-Jacobi Reachability provides a formal method for synthesizing safe value functions, it scales poorly and is typically performed offline, limiting its applicability in dynamic environments. This paper bridges the gap between offline synthesis and online adaptation. We introduce refineCBF for refining an approximate CBF - whether analytically derived, learned, or even unsafe - via warm-started HJ reachability. We then present its computationally efficient successor, HJ-Patch, which accelerates this process through localized updates. Both methods guarantee the recovery of a safe value function and can ensure monotonic safety improvements during adaptation. Our experiments validate our framework's primary contribution: in-the-loop, real-time adaptation, in simulation (with detailed value function analysis) and on physical hardware. Our experiments on ground vehicles and quadcopters show that our framework can successfully adapt to sudden environmental changes, such as new obstacles and unmodeled wind disturbances, providing a practical path toward deploying formally guaranteed safety in real-world settings.

Figures & tables

Explore similar work

CardsList
  1. VertexCBF: Improving Neural Control Barrier Functions via Vertex-Restricted Control Search

    Sep 11, 2026Bojan Derajić, Sebastian Bernhard, Wolfgang HönigControl Barrier FunctionsSafe Robot Navigation

  2. CN-CBF: Composite Neural Control Barrier Function for Robot Navigation in Dynamic Environments

    Mar 6, 2026Bojan Derajić, Sebastian Bernhard, Wolfgang HönigControl Barrier FunctionsSafe Robot Navigation