arXiv:2611.04096cs.RONov 2026

Manuscript Offprint

arXiv:2611.04096

Online Hamilton-Jacobi Reachability Onboard the Robot Control Loop: A Real-Time GPU Solver for Safety-Critical Autonomy

Kevin Weekly, Alexandre M. Bayen

Kevin Weekly

Mirror AI

kevin.weekly@mirrorai.dev

Alexandre M. Bayen

University of California, Berkeley

bayen@berkeley.edu

Abstract—Hamilton–Jacobi (HJ) reachability provides certified backward reachable tubes (BRTs) for safety-critical robotic systems, but the level-set computation scales exponentially in the state dimension and has historically been performed offline. As autonomy stacks (ADAS/AV, humanoid robotics, and vision-language-action models) increasingly rely on black-box, probabilistic policies, a deterministic safety layer with formal guarantees is an essential complement. We present a CUDA implementation of the canonical WENO5 + TVD-RK3 + Lax-Friedrichs level-set Hamilton–Jacobi–Isaacs solver for 2D, 3D, and 4D dynamics that is fast enough to run inside a robot's control loop. In 32-bit floating point (FP32) on a single workstation GPU (NVIDIA RTX 4000 Ada), it computes the 3D Air3D BRT at 112 Hz, a 4D pursuit-evasion BRT at 61 Hz, and a 2D wind-affected drifter BRT at 74–147 Hz, 5.9–17.5× faster than the JAX reference hj_reachability at matched precision and 1.7–16× faster than a torch.compile reimplementation of the same scheme. In 64-bit floating point (FP64) it agrees with hj_reachability on eight benchmark cases, reproduces Mitchell's Air3D BRT to within 0.04% of the reference cell count, and runs 2.0–4.6× faster. On an embedded NVIDIA Jetson AGX Thor it computes Air3D at 66 Hz (N=41) and the 2D drifter at 54 Hz, 3.8–8.9× faster than hj_reachability on the same device. As a multi-agent application, an in-kernel label-propagation extension recovers the K-agent capture-basin Voronoi tessellation from a single combined HJ solve, independent of fleet size; it runs at 4.0 ms per tick in a closed-loop wildfire-response simulation of six quadcopters under time-varying, non-uniform wind.

Index Terms—Hamilton–Jacobi reachability, backward reachable tubes, level-set methods, real-time GPU computing, safety-critical control, deterministic safety layer, safety filter, ADAS and autonomous vehicles, humanoid robotics, vision-language-action policies, embedded GPU autonomy, multi-agent fleet dispatch, capture-basin Voronoi tessellation, in-kernel label propagation, wildfire response, time-varying wind fields, pursuit-evasion differential games.

I. INTRODUCTION

The next generation of autonomous robotics — advanced driver-assistance and self-driving vehicles (ADAS/AV), humanoid platforms, and vision-language-action (VLA) policies — pushes decision-making into large, learned, fundamentally probabilistically determined models whose worst-case behavior is case-dependent and whose safety properties cannot be certified by inspection. A deterministic, model-based safety layer with formal guarantees is therefore not optional but a structural enabler of these stacks: it is the mechanism by which a black-box upstream policy can be trusted in safety-critical deployment, and the only available complement that gives the overall system the worst-case behavior the upstream model cannot. Hamilton–Jacobi (HJ) reachability is the strongest available primitive for that role. The backward reachable tube (BRT) is the exact set of states from which a constraint violation cannot be avoided against the worst-case disturbance [1]–[3]. Three properties of the BRT make it the right object for safety, and keeping them distinct avoids a common confusion. First, depending on how it is computed, the BRT—or, more precisely, its boundary—delimits the set of states from which, regardless of the control, the worst-case disturbance can force the system into the target set (here, the unsafe set). Second, from any state outside the tube there always exists a control that keeps the system safe over the horizon. Third, on the boundary of the tube at least one control must be applied to stay safe: absent it, the disturbance can drive the system into the tube and ultimately into the unsafe set. A robot whose current state lies inside the BRT must either accept a failure outcome or apply the value-function-derived optimal control to escape, and so the BRT answers the most fundamental question a safety-critical autonomy stack can ask [4], [5]. A BRT-based safety filter can sit downstream of a learned planner and either certify its proposed action or override it with a provably safe one [4], [5], giving the deployed ADAS/AV, humanoid, or VLA stack a deterministic floor of behaviour that the upstream learned policy is not by itself required to provide.

The well-known drawback is that the level-set computation that delivers a guaranteed-fidelity BRT scales exponentially in the state dimension. The historical response has been to compute the BRT once offline and then use it as a fixed lookup in the control loop [6]–[8]. This is a critical limitation for next-generation autonomy: in any setting where the disturbance model, the obstacle set, or the dynamics are not known a priori — the operating regime of every real ADAS stack, every legged platform on unmodeled terrain, and every VLA policy in an unfamiliar environment — a stale offline BRT is a stale safety guarantee.

With the implementation presented in this article, we demonstrate that the boundary between offline and online BRT computation has moved. On a single workstation GPU (NVIDIA RTX 4000 Ada), the canonical Mitchell Air3D 3D pursuit-evasion BRT [2] solves in 9ms at 32-bit floating point (FP32) with the same numerical scheme used by the Stanford Autonomous Systems Laboratory (ASL) JAX reference hj_reachability [8], a 4D pursuit-evasion BRT at 314≈10631^4 \approx 10^6 cells solves in 16ms, and the 2D drift-affected vehicle BRT solves at 74–147 Hz at WENO5 fidelity. These rates place the level-set solver inside the inner control loop of a robot, and shift the design question from how to live with a single BRT precomputed for an entire mission to how to use a BRT that is recomputed at every control tick.

Concretely, our solver implements the standard level-set HJI recipe on CUDA—fifth-order WENO (WENO5) reconstruction of the spatial gradient, total-variation-diminishing third-order Runge–Kutta (TVD-RK3) time integration, and a Lax–Friedrichs numerical Hamiltonian—with one fused kernel per RK3 stage (reconstruction, Hamiltonian, stage combine, and BRT clamp in-register), a division-lean WENO5 reconstruction, a host-static CFL step, and an FP32 precision mode that is the relevant regime for embedded robotic deployment. At matched 64-bit floating point (FP64) arithmetic (the academic-standard precision for verification studies) our solver agrees with hj_reachability on eight canonical benchmarking cases at 2.0–4.6× the speed on matched hardware, reproduces Mitchell’s Air3D BRT [2] to within 0.04% of the reference cell count at N=51, and is 1.3–1.4× faster than a torch.compile [9] reimplementation of the identical scheme, a maximally-tuned tensor-compiler baseline. In FP32 mode the solver is 21–33× faster than its own FP64 path with sub-grid BRT-set deviation, and 5.9–17.5× faster than the JAX reference at matched FP32 on the same hardware. To verify that these rates are not specific to a desktop-class GPU, we re-run the solver on an NVIDIA Jetson AGX Thor embedded developer kit and measure 27–66 Hz on the 3D Air3D and 2D drifter cases (3.8–8.9× faster than hj_reachability on the same device), with the closed-loop fleet solve drawing approximately 31 W of total system input power. As a multi-agent application we extend the 2D solver with an in-kernel label-propagation kernel, in the spirit of competitive fast marching [10], that recovers the K-agent capture-basin Voronoi tessellation from a single combined HJ solve whose cost is independent of fleet size, with 99.5% label agreement with a per-agent argmin reference. We demonstrate the latter on a closed-loop wildfire-response fleet of six quadcopters defending a 20×20 km region under time-varying, non-uniform wind.

The rest of this article is organized as follows. Section II reviews the HJ reachability formulation and the level-set discretization recipe we use. Section III positions our solver against the classical-fidelity offline tools and the learned-value online approximators at the two ends of the existing literature. Section IV describes the CUDA implementation, the FP32 precision mode, and the boundary and obstacle postprocessors. Section V describes the verification protocol against hj_reachability, and Section VI reports cross-library agreement, the equi-accuracy comparison, and the FP32 real-time envelope. Section VII presents the multi-agent wildfire-response Voronoi demonstration. Section VIII discusses the dimensional ceiling, the FP32 fidelity floor, embedded-platform performance on Jetson AGX Thor, and future work. Section IX concludes.

References (50)