Skip to content
Robotics.world

Research

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

Hamilton–Jacobi reachability produces formally guaranteed "backward reachable tubes" (BRTs) — the exact set of states from which a robot cannot avoid a failure — but the level-set computation that…

The paper’s first page · arXiv:2611.04096
arXiv
2611.04096 · Preprint · not peer-reviewed
Published
2026-11-03
Authors
Kevin Weekly, Alexandre M. Bayen

In plain words

Hamilton–Jacobi reachability produces formally guaranteed "backward reachable tubes" (BRTs) — the exact set of states from which a robot cannot avoid a failure — but the level-set computation that produces them is expensive and grows exponentially with state dimension, so BRTs are almost always computed once, offline, and reused as a fixed lookup.

AI summary

Overview

Research area: Robotics safety and control — Hamilton–Jacobi (HJ) reachability analysis, level-set numerical methods, and GPU-accelerated real-time control. Technical level: Advanced (assumes familiarity with PDE-based reachability, level-set schemes, and GPU programming concepts, though the framing is readable for adjacent researchers). Scope (one sentence): The paper presents and benchmarks a CUDA implementation of a standard fifth-order level-set HJ solver that is fast enough to recompute backward reachable tubes inside a robot's control loop, verified against the Stanford ASL JAX reference hj_reachability and demonstrated on a simulated multi-drone wildfire-response dispatch problem.

What This Paper Is About

Hamilton–Jacobi reachability produces formally guaranteed "backward reachable tubes" (BRTs) — the exact set of states from which a robot cannot avoid a failure — but the level-set computation that produces them is expensive and grows exponentially with state dimension, so BRTs are almost always computed once, offline, and reused as a fixed lookup. That is a problem when the disturbance model, obstacles, or dynamics change during operation, because a stale BRT is a stale safety guarantee. The authors build a GPU solver for 2D, 3D, and 4D dynamics that recomputes the BRT on the order of milliseconds, and they verify its numerical fidelity against an established reference while measuring how fast it runs on both a workstation GPU and an embedded robotics GPU.

Key Contributions

  1. A real-time CUDA level-set HJI solver. The authors implement the canonical recipe — WENO5 spatial reconstruction, TVD-RK3 time integration, and a Lax–Friedrichs numerical Hamiltonian — for 2D, 3D, and 4D dynamics, with one fused kernel per RK3 stage so that reconstruction, Hamiltonian evaluation, stage combination, and the BRT clamp all happen in-register without round-tripping through global memory.
  2. A verified FP64 path plus a practical FP32 mode. In 64-bit arithmetic the solver matches hj_reachability across eight benchmark cases (2D/3D/4D), reproduces Mitchell's Air3D BRT to within 0.04% of the reference cell count at N = 51, and runs 2.0–4.6× faster; in FP32 it reaches control-loop rates.
  3. A measured real-time operating envelope on two hardware classes. Data are reported for a workstation NVIDIA RTX 4000 Ada and for an embedded NVIDIA Jetson AGX Thor, including the grid sizes achievable within 100 Hz, 30 Hz, 10 Hz, 5 Hz, and 1 Hz control budgets.
  4. An in-kernel label-propagation extension for multi-agent dispatch. A single combined HJ solve recovers the K-agent capture-basin Voronoi tessellation with cost independent of fleet size (99.5% label agreement with a per-agent argmin reference), demonstrated at 4.0 ms per tick in a closed-loop wildfire-response simulation of six quadcopters under time-varying, non-uniform wind.

Main Findings

  • Air3D runs at 112 Hz in FP32. On the RTX 4000 Ada, the 3D Mitchell Air3D BRT at N = 51 takes 8.91 ms (112 Hz), versus 52.3 ms for JAX hj_reachability and 50.0 ms for the authors' torch.compile reimplementation of the identical scheme.
  • 4D pursuit–evasion runs at 61 Hz. The 4D case at N = 31 (about 10^6 cells) takes 16.4 ms, versus 150 ms for JAX and 27.6 ms for torch.compile.
  • 2D drifter cases run at 74–147 Hz. At N = 200 the constant-wind drifter takes 6.82 ms (147 Hz) and the spatially-varying-wind drifter 13.6 ms (74 Hz), against 86.4 ms and 159 ms for JAX.
  • Speedups are 5.9–17.5× over JAX and 1.7–16× over torch.compile at FP32. At FP64 the margins are 2.0–4.6× over JAX and 1.3–1.4× over torch.compile.
  • Equal accuracy is reached 3.1–4.9× sooner. At the smallest grid where pointwise L∞ disagreement falls below a per-case target ε, the solver is faster than JAX-GPU on every one of the seven listed cases.
  • Air3D reproduction matches to a handful of cells. At t = 2 s with v_a = v_b = 5 m/s, ωmax = 1 rad/s and a 5 m collision cylinder, the solver and hj_reachability agree on BRT cell count to four cells out of approximately 11,200 (0.04%).
  • The 4D cross-library gap is a scheme difference, not a precision effect. With default settings the 4D BRT is 7.1–7.5% smaller than the reference at N = 31–51; switching the reference to linear extrapolation shrinks its BRT by 5.6%, and switching the kernel to the global Lax–Friedrichs coefficient grows the authors' by 2.1–2.3%. With both aligned, cell counts agree to within 0.6%, 0.4%, and 0.3% at N = 31, 41, and 51.
  • FP32 costs almost nothing in set fidelity. The FP32 BRT is set-identical to the FP64 BRT on 2D and 3D cases and within 0.1% of cells on 4D cases; the realized FP32 speedup over the solver's own FP64 path is 21–33×.
  • The embedded GPU result is viable for a robot. On the Jetson AGX Thor, Air3D runs at 66 Hz (N = 41) and the 2D drifter at 54 Hz, 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.
  • Fleet dispatch costs 4.0 ms per tick. In the six-quadcopter wildfire simulation over a 20 × 20 km region with cruise speed a = 20 m/s and three fires, the Voronoi tessellation refreshes at every 10 Hz outer-loop tick using a fused first-order kernel on a 200² grid.

Methodology in Plain English

The value function that defines the reachable tube is a solution to a Hamilton–Jacobi–Isaacs partial differential equation. The authors solve it on a regular grid, stepping backward in time, using the same well-established numerical ingredients the reference JAX library uses: a high-order (WENO5) way of estimating spatial gradients from a six-cell stencil, a third-order Runge–Kutta time step, and Lax–Friedrichs numerical dissipation, with the time step held below a CFL limit (Δt·αmax/Δx ≤ 0.75). After each step the value is clamped so it never increases, which is what turns the value function into a reachable tube.

The engineering work is about removing overhead rather than changing the mathematics. Each Runge–Kutta stage becomes a single fused GPU kernel, so intermediate values never leave registers. Values are fetched straight from global memory instead of through shared-memory tiles, because at the grid sizes of interest the whole field fits in L2 cache — the authors report that a shared-memory-tiled 3D stencil pays 5.4× halo load amplification and runs at roughly one third the throughput of the direct-fetch kernel. The WENO5 weight normalization is algebraically rearranged so a reconstruction costs one floating-point divide instead of thirteen, which matters because FP64 division runs at a 1:64 ALU ratio on the RTX 4000 Ada. The CFL step size is computed once on the host rather than every step on the device, and the 3D solver captures its whole step in a replayed CUDA graph.

Verification is done against hj_reachability on eight benchmark cases defined in shared JSON specifications, at three to five grid resolutions per backend, both at FP64 on the same hardware, comparing pointwise L∞ and L2 differences in the value function and cell-by-cell differences in the time-to-reach field. A PyTorch reimplementation of the identical scheme compiled with torch.compile serves as a tensor-compiler baseline, so the comparison is compiled-against-compiled.

Why This Matters

The paper's argument is structural: modern autonomy stacks — ADAS/AV, humanoids, and vision–language–action policies — are built on learned, probabilistic models whose worst-case behavior cannot be certified by inspection, so a deterministic model-based safety layer with formal guarantees is what makes the upstream black-box policy trustworthy in safety-critical deployment. 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. Making the BRT recomputable every tick means the guarantee tracks the actual current disturbance model and environment instead of a precomputed approximation of them.

Real-world applications:

  • Automotive safety filters: an online BRT refreshed each control tick downstream of a learned ADAS/AV planner, rather than a BRT fixed for an entire mission.
  • Emergency fleet dispatch: the wildfire demonstration assigns six quadcopters to three fires under shifting, spatially non-uniform wind, recomputing the capture-basin Voronoi partition from live drone positions — including drones already in transit — every 10 Hz tick.
  • Embedded robotics safety layers: the Jetson AGX Thor results indicate that a full 3D BRT solve fits inside a robot's power and compute budget at tens of hertz.
  • Underactuated vehicles in flow fields: the drifter cases, continuing the authors' prior HJ navigation work on vehicles under spatially varying flow, compute a fresh reachable tube 74–147 times per second in 2D.

Industry relevance: the solver is a drop-in numerical replacement, not a new formulation — it uses the same scheme as the widely used Stanford ASL hj_reachability and matches it numerically — so practitioners already using offline BRT lookups can move that computation online on commodity GPU hardware, including embedded developer kits.

Future Directions

  • Pushing past the dimensional ceiling. The paper is explicit that level-set computation scales exponentially in state dimension and that this work covers 2D, 3D, and 4D; extending to the higher-dimensional settings implied by humanoid and VLA stacks is the open question, and Section VIII is listed as discussing the dimensional ceiling but its content is not included in the provided text.
  • Establishing an FP32 fidelity floor. The authors state FP32 is the practical regime for closed-loop robotics and aim to characterize its fidelity limits more rigorously; the provided content reports set-level agreement (identical on 2D/3D, within 0.1% of cells on 4D) but the planned discussion of an FP32 fidelity floor is in the truncated portion.
  • Validating online recomputation on physical robots. The multi-agent wildfire demonstration is a simulation; the Jetson AGX Thor measurements establish that the computation fits on embedded hardware, but the paper's provided content does not report a physical flight or driving deployment.
  • Exploiting the recomputation capability in applications the offline paradigm could not serve. The authors position their contribution as upstream of work like DualGuard MPPI: because the precompute step can be replaced with an online recompute, constraints can track shifts in the disturbance model or robot dynamics during operation.

Target Audience

Robotics and control researchers working on safety-critical autonomy, safety filters, and reachability analysis; practitioners building deterministic safety layers beneath learned planners in ADAS/AV, humanoid, or VLA systems; GPU and embedded-systems engineers interested in real-time PDE solvers and kernel-level optimization for robotics; and multi-agent dispatch researchers interested in time-varying, spatially non-uniform Voronoi-style coverage formulations.


Note on sourcing: the provided paper text is truncated partway through Section VII-B. Sections VIII (discussion) and IX (conclusion) are not included, so their contents — including the stated dimensional ceiling, the FP32 fidelity floor analysis, and the authors' own listed future work — are not reported here beyond the topics named in the introduction.

Authors’ 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…

The full abstract on arXiv
Read the original paper

Related papers