🧮 HJ-Gauss

Monte-Carlo Hamilton-Jacobi Reachability

Full Exposition: From TVD-RK Levelsets to Monte Carlo Sampling for BRTs.




Lekan Molu · Amazon IRG

Amazon Robotics · August 18, 2026

with V. Renganathan (Cranfield) and N. Cho (Seoul National University)

🎯 BLUF (Bottom Line Up Front) - (1/2)

Grid-resolved Hamilton-Jacobi (HJ) BRTs yield certified safety sets at a O(Mn)O(M^n) memory cost.

  • 🧱 Background: LevelSetPy resolves backward reachable sets/tubes by discretizing the HJ PDE (upwinding + Lax-Friedrichs + TVD-RK) on a grid — certified, but exponential in state dimension nn.

  • 🌊 Idea: a Cole-Hopf transformation turns the viscous HJ PDE into a linear heat equation; Feynman-Kac evaluates it as a Gaussian expectation. No grid.

HJ-Gauss replaces the grid with Gaussian Monte-Carlo, dropping the footprint to O(Nn)O(N\cdot n).

🎯 BLUF (Bottom Line Up Front) - (2/2)

HJ-Gauss replaces the grid with Gaussian Monte-Carlo, dropping the footprint to O(Nn)O(N\cdot n).

  • 🔁 Generality: a frozen-coefficient Picard iteration handles the nonconvex, state-dependent Hamiltonians of reachability.

  • 📐 Rigor: O(N1/2)O(N^{-1/2}) concentration, contraction convergence, a linearization residual bound, and a conservative safety certificate.

  • 🤖 For this room: the windowed reachable tube is a dynamics-aware conflict predicate for MAPF; the value gradient is a score for diffusion planners.

This Gaussian kernel is the diffusion kernel, the bridge to learning-based planners.

🧭 Roadmap — Main Talk (Parts 1-5)

Part Theme
1 The wall: curse of dimensionality & prior grid-free work
2 HJ-Gauss core theory: Cole-Hopf → heat → Feynman-Kac → Picard
3 Importance sampling & variance control
4 Guarantees: concentration, contraction, residual, certificate
5 Experiments (rockets, Dubins, 45D, 10510^5 birds)

▶️ Continue: Parts 6-9 on the next slide.

🧭 Roadmap — Main Talk (Parts 6-9) & Appendix

Part Theme
6 Application: multi-agent path finding (AMFS)
7 The diffusion connection
8 Dirty Laundry: limits & boundaries
9 Conclusions, future work, references
📚 A–C Appendix: HJ/viscosity theory (A) · reachability foundations (B) · LevelSetPy grid pipeline (C)

Background — notation plus HJ PDE & viscosity theory (Part A), reachability foundations (Part B), and the LevelSetPy grid pipeline (Part C) — is collected in the Appendix after the closing slide.

Part 1

🧱 The Wall

Curse of dimensionality, and who has tried to climb it.

🧱 The Curse of Dimensionality, Quantified

Grid memory is O(Mn)O(M^n) with MM points per dimension:

State dim nn M=100M=100 cells Feasibility (double array)
2 10410^{4} ✅ trivial
3 10610^{6} ✅ easy
4 10810^{8} ⚠️ ~0.8 GB, heavy
5 101010^{10} ❌ ~80 GB
6 101210^{12} ❌ ~8 TB
45 (our multi-agent game) 109010^{90} ❌ exceeds atoms in the observable universe
  • GPU acceleration lowers wall-clock, not the exponent.

Reachability's most valuable regime — many interacting agents, rich dynamics — is where grids are impossible.

🧱 Attempt 1: PINN Reachability (DeepReach)

  • DeepReach trains a neural network to minimize the HJ PDE residual directly (physics-informed loss), no reference grid.

  • **Pro:**Trades grid storage for network weights; sidesteps O(Mn)O(M^n) memory.

  • Con: Scales only to moderate dimensiond (reported ~9-10D);

    • And accuracy degrades as nn grows; training is a nonconvex optimization with no viscosity-solution guarantee.

Catch-22: Learning-based solvers help, but do not deliver a certified, dimension-robust representation.
HJ-Gauss keeps the viscosity-solution semantics.

🧱 Attempt 2: Convex-Duality Formulas (Hopf / Lax-Oleinik)

HJ-Gauss trades their exactness for generality, at the quantified price of a linearization residual bound (Part 4).

  • Hopf and Lax-Oleinik formulas1 evaluate the value pointwise via convex optimization — grid-free at a point.

  • Limitation: they require a convex (or state-independent) Hamiltonian.

  • Reachability's H(x,p)=maxuminwp,fH(x,p)=\max_u\min_w\langle p,f\rangle is state-dependent and nonconvex → outside this class.

It handles the nonconvex, state-dependent Hamiltonian head-on.

1 Darbon-Osher 2016; Chow-Darbon-Osher-Yin 2017; Kirchner 2018

🧱 Attempts 3-4: Decomposition, Path Integral, Sampling

Family Idea Boundary
System decomposition1 Remove dimension by splitting self-contained subsystems Only when coupling structure permits; HJ-Gauss is indifferent to coupling and complements it
Stochastic PDE / path integral2 Log-substitution linearizes the stochastic HJB under noise-control duality Diffusion comes from process noise; ours is a deterministic worst-case game, δ\delta an analysis parameter
Sample-based stochastic reachability3 Certify probabilistic reach-avoid We certify adversarial worst-case reachability — a different, stronger guarantee

The open gap: a grid-free, storage-light scheme for nonconvex, state-dependent, adversarial Hamiltonians. That is HJ-Gauss.

1 Chen-Herbert · 2 Kappen; Theodorou · 3 Summers-Lygeros; Lesser-Oishi

🧱 Where HJ-Gauss Sits

  • Keeps the viscosity-solution semantics (unlike PINN heuristics).

  • Handles nonconvex, state-dependent HH (unlike Hopf/Lax-Oleinik).

  • Indifferent to coupling structure (complements decomposition).

  • Certifies adversarial worst-case safety (unlike probabilistic sampling).

  • Memory O(Nn)O(N\cdot n), grid- and discretization-free.

The rest is how: a Cole-Hopf transformation, a Feynman-Kac expectation, and a frozen-coefficient Picard iteration.

Part 2

🌊 HJ-Gauss Core Theory

Cole-Hopf Transformation → Linear Heat Equation

→ Feynman-Kac Formula → Picard Iteration.

🌊 The Theoretical Roadmap of the Method

  1. Start from the viscous HJ PDE (Part A).
  2. Apply a generalized Cole-Hopf transform ω=ecv\omega=e^{-cv} → a Linear heat equation.
  3. Solve the heat equation by its Gaussian heat kernel → a Feynman-Kac expectation.
  4. Recover value (log-sum-exp) and gradient from that expectation.
  5. Because cc depends on the unknown DvDv, iterate: freeze, solve, update (Picard) = Algorithm 1.
  6. Analyze exactness (quadratic case) vs the quasi-linearization residual (general case).

Each arrow is a theorem or proposition in the paper; we walk them one by one.

🌊 The Transformation, and the Closed-Form/Approximate Split

For a general HH, define the spatially-varying coefficient

c(t;x)=2δHδDvδ2,Hδ:=H(t;x,Dvδ),c(t;x)=\frac{2}{\delta}\cdot\frac{H^\delta}{|Dv^\delta|^2},\qquad H^\delta:=H(t;x,Dv^\delta),

and set ωδ:=exp(cvδ)\omega^\delta:=\exp(-c\,v^\delta).

  • Quadratic case H=12p2H=\tfrac12|p|^2: c=1/δc=1/\delta constant, ωδ\omega^\delta solves the homogeneous heat equation with zero residual — a genuine Cole-Hopf identity.

  • General HH: the transform induces a residual R=Ralg+RderR=R_{\mathrm{alg}}+R_{\mathrm{der}};

    • cc's choice eliminates the algebraic part RalgR_{\mathrm{alg}}, leaving the derivative part RderR_{\mathrm{der}}.

No freezing of cc's values removes its derivatives. Hence for nonlinear HH this is a quasi-linearization, not an identity — and the leftover RderR_{\mathrm{der}} is the residual we will bound.

🌊 Picard Quasi-Linearization: The Surrogate View

  • At iteration kk, freeze c(k)c^{(k)} at the current iterate and solve the linear heat equation in closed form.

  • Equivalently: replace the true Hamiltonian by the locally-matched quadratic surrogate

H~(k)(p)=δ2c(k)p2,\tilde H^{(k)}(p)=\tfrac{\delta}{2}\,c^{(k)}\,|p|^2,

solve the resulting viscous HJ equation in closed form, obtain v(k+1)v^{(k+1)}, update Dv(k+1)Dv^{(k+1)} and c(k+1)c^{(k+1)}.

  • The iteration's limit is the fixed point of the surrogate solve map — equal to the viscous solution only when Rder0R_{\mathrm{der}}\equiv 0 (the quadratic case).

"Successive quadratic matching": each step is a locally closed-form quadratic-Hamiltonian solve, refined by re-estimating the co-state.

🌊 Reduction to the Heat Equation (Proposition)

With c(k)c^{(k)} frozen, ωδ\omega^\delta solves the heat initial-value problem

ωtδδ2Δωδ=0  in Rn×(0,T],ωδ(0,x)=exp(cg(x)).\omega_t^\delta-\tfrac{\delta}{2}\Delta\omega^\delta=0\ \text{ in }\mathbb{R}^n\times(0,T],\qquad \omega^\delta(0,x)=\exp(-c\,g(x)).

  • When H=12p2, c=1/δH=\tfrac12|p|^2,\ c=1/\delta: closed-form, no residual.

  • For general HH: discards the derivative residual (Lemma, appendix) — the quasi-linearization.

A nonlinear, nonconvex, state-dependent HJ PDE has become the heat equation — the most classical linear parabolic PDE, with an explicit Gaussian solution.

🌊 The Gaussian Heat Kernel & Feynman-Kac

The heat IVP has the unique bounded Green's-convolution solution

ωδ(t,x)=1(2πδt)nRnexy22δtecg(y)dy,\omega^\delta(t,x)=\frac{1}{(\sqrt{2\pi\delta t})^{n}}\int_{\mathbb{R}^n} e^{-\frac{|x-y|^2}{2\delta t}}\,e^{-c\,g(y)}\,dy,

which, by Feynman-Kac, is a Gaussian expectation:

ωδ(t,x)=EyN(x,δtIn)[ecg(y)].\omega^\delta(t,x)=\mathbb{E}_{y\sim\mathcal N(x,\,\delta t I_n)}\big[e^{-c\,g(y)}\big].

  • The free-space kernel integrates to one over Rn\mathbb{R}^n (and no proper subset) — every estimator is posed on all of Rn\mathbb{R}^n.

  • Sampling yN(x,δtIn)y\sim\mathcal N(x,\delta t I_n) and averaging ecg(y)e^{-cg(y)} is an unbiased estimator of ωδ\omega^\delta.

The solution is a Gaussian roll-out average of the terminal cost. This is the entire computational payload — no grid, no marching.

🌊 Recovering the Value (Lemma)

Invert the transform:

vδ(t,x)=1c(k)logEyN(x,δtIn)[ec(k)g(y)].v^\delta(t,x)=-\frac{1}{c^{(k)}}\log\,\mathbb{E}_{y\sim\mathcal N(x,\delta t I_n)}\big[e^{-c^{(k)} g(y)}\big].

  • A log-sum-exp of Gaussian-sampled terminal costs.

  • Numerically evaluated in a log-domain-stable form (log-mean-exp) to avoid overflow/underflow.

  • MM arbitrary evaluation states x1,,xMx_1,\dots,x_M — laid on a grid or scattered — each with its own fresh NN samples.

The value at a query point is a scalar reduction over NN samples. Embarrassingly parallel across both MM states and NN samples.

🌊 Recovering the Gradient (Corollary)

The spatial gradient (co-state) has a closed Gaussian-expectation form:

Dvδ=1tδc(k)(xEyN(x,δtIn) ⁣[yec(k)g(y)]EyN(x,δtIn) ⁣[ec(k)g(y)]).Dv^\delta=\frac{1}{t\,\delta\,c^{(k)}}\left(x-\frac{\mathbb{E}_{y\sim\mathcal N(x,\delta t I_n)}\!\big[y\,e^{-c^{(k)} g(y)}\big]}{\mathbb{E}_{y\sim\mathcal N(x,\delta t I_n)}\!\big[e^{-c^{(k)} g(y)}\big]}\right).

  • A weighted-mean shift: the gradient points from xx toward the exponentially-weighted centroid of the samples.

  • No finite differencing, no stored field — the co-state is a byproduct of the same samples.

This gradient is (up to constants) a score function logω\nabla\log\omega. Hold that: it is the entire bridge to diffusion in Part 7.

🌊 Admissible Data & Unbiasedness (Recap as a Guarantee)

  • Datum ωδ(0,)=ecg\omega^\delta(0,\cdot)=e^{-cg} is continuous, strictly positive, bounded above by ecgmine^{-c g_{\min}}, decaying at infinity.

  • ⇒ the heat solution is the unique bounded one; the integral converges absolutely; the Gaussian expectation is genuine and unbiased.

  • Only ggming\ge g_{\min} is required (bounded target); no upper bound on gg.

The estimator drawing yN(x,δtIn)y\sim\mathcal N(x,\delta t I_n) over all of Rn\mathbb{R}^n is unbiased for the quantity inside the logarithm — the foundation for the concentration bound of Part 4.

🌊 Sign and the Removable Zero of the Coefficient

  • cCH/(δDvδ)c\sim C_H/(\delta|Dv^\delta|): it grows without bound in flat regions and vanishes and flips sign where optimal dynamics run tangent to the level set (the barrier).

  • The zero of cc is a removable singularity of the estimator: as c0c\to 0,

1clogE[ecg]  E[g],-\tfrac{1}{c}\log\mathbb{E}[e^{-c g}]\ \to\ \mathbb{E}[g],

i.e. the log-sum-exp gracefully degenerates to the Gaussian mean of the terminal data — the correct pure-diffusion limit (H0H\to0 reduces the PDE to the heat equation).

  • In implementation: evaluate in a log1p-stable form and clip c|c| to [cmin,cmax][c_{\min},c_{\max}].

The coefficient's pathologies are analytically understood and numerically tamed — clipping is itself a bounded, priced perturbation (next slide).

🌊 Coefficient Regularization (Lemma)

Run Algorithm 1 with the regularized coefficient

cη(t;x)=2δHδDvδ2+η,c_\eta(t;x)=\frac{2}{\delta}\cdot\frac{H^\delta}{|Dv^\delta|^2+\eta},

equivalent to running it unregularized for the perturbed Hamiltonian Hη=HDvδ2/(Dvδ2+η)H_\eta=H\,|Dv^\delta|^2/(|Dv^\delta|^2+\eta), which satisfies a uniform bound

HηHCHη2,\|H_\eta-H\|_\infty\le \frac{C_H\sqrt\eta}{2},

so the induced value-function perturbation is at most TCHη/2T C_H\sqrt\eta/2.

Regularization cures the flat-interior blow-up at a quantified, uniform price — no hidden instability.

🌊 Algorithm 1: Quasi-Linearization (Cole-Hopf)

Fix ε>0,v(0)(t,x)=g(x),c(0)=2H(t,x,Dg)δDg2.\text{Fix } \varepsilon>0,\qquad v^{(0)}(t,x)=g(x),\qquad c^{(0)}=\dfrac{2\,H(t,x,Dg)}{\delta\,\lvert Dg\rvert^{2}}.

for  k=0,1,2,:(1) freeze c(k) at the current iterate;(2) solve  ωt=δ2Δω,  ω(k)(0,x)=ec(k)g(x); ω(k+1)(t,x)=EyN(x,δtI) ⁣[ec(k)g(y)]  (Monte-Carlo);(3) recover  v(k+1)=1c(k)logω(k+1);(4) update Dv(k+1),  c(k+1)=2H(t,x,Dv(k+1))δDv(k+1)2  clip to [cmin,cmax];(5) stop when  v(k+1)v(k)/v(k)<ε.\begin{aligned} &\textbf{for }\ k=0,1,2,\dots\text{:}\\[1pt] &\quad\text{(1) freeze }c^{(k)}\text{ at the current iterate;}\\[1pt] &\quad\text{(2) solve }\ \omega_t=\tfrac{\delta}{2}\Delta\omega,\ \ \omega^{(k)}(0,x)=e^{-c^{(k)}g(x)};\\[1pt] &\qquad\quad\Rightarrow\ \omega^{(k+1)}(t,x)=\mathbb{E}_{y\sim\mathcal N(x,\delta t I)}\!\big[e^{-c^{(k)}g(y)}\big]\ \ (\text{Monte-Carlo});\\[1pt] &\quad\text{(3) recover }\ v^{(k+1)}=-\tfrac{1}{c^{(k)}}\log\omega^{(k+1)};\\[1pt] &\quad\text{(4) update }Dv^{(k+1)},\ \ c^{(k+1)}=\dfrac{2\,H(t,x,Dv^{(k+1)})}{\delta\,\lvert Dv^{(k+1)}\rvert^{2}}\ \ \text{clip to }[c_{\min},c_{\max}];\\[1pt] &\quad\text{(5) stop when }\ \lVert v^{(k+1)}-v^{(k)}\rVert/\lVert v^{(k)}\rVert<\varepsilon. \end{aligned}

  • Steps (2)-(4) are all Gaussian-expectation reductions over NN samples.

  • Convergence typically in ≤ 20 iterations (empirically 12-15).

Every line is grid-free. The only state carried between iterations is the coefficient field c(k)c^{(k)} at the MM evaluation states.

🌊 Evaluation States vs Monte-Carlo Samples (Remark)

  • NN = i.i.d. Gaussian draws y1,,yNN(x,δtIn)y_1,\dots,y_N\sim\mathcal N(x,\delta t I_n) used independently at each evaluation state xx to form the estimators.

  • Resampled fresh at every evaluation state and every Picard iteration.

  • MM = the evaluation states x1,,xMx_1,\dots,x_M where vv is queried — carry no randomness, may be a uniform grid or scattered arbitrarily.

  • Total randomness per iteration: M×NM\times N draws.

  • The zero level set is recovered by evaluating vδv^\delta at the MM states and isocontouring at level zero (marching cubes) — a deterministic post-process consuming no further samples.

The solve is grid-free; the grids that appear in results are evaluation windows for visualization and error measurement, not sampling constraints.

🌊 Memory: O(Nn)O(N\cdot n) vs O(Mn)O(M^n)

Grid level sets HJ-Gauss
Representation Stored field on MnM^n grid NN Gaussian samples per query, nn-vectors
Memory O(Mn)O(M^n) O(Nn)O(N\cdot n)
Discretization Cartesian grid + marching cubes to solve None (grid-free solve)
Query states Tied to grid Arbitrary / scattered
Parallelism Grid array ops Over MM states and NN samples
  • Example: N=14,000, n=3N=14{,}000,\ n=3 → ≈ 0.6 MB/iteration; n=45n=45 → ≈ 7.2 MB/iteration (vs 109010^{90} grid cells).

Memory now scales with sample budget and dimension, not with a grid raised to the dimension. This is the whole contribution in one line.

Part 3

🎯 Importance Sampling & Variance Control

Making the Gaussian estimator work in high dimensions.

🎯 The Weight-Degeneracy Problem

  • The estimators are a ratio of exponential-weight expectations, e.g. the gradient's numerator/denominator both carry ecge^{-cg}.

  • In high dimensions (or small δ\delta), cgc\,g is large over the kernel support, so the denominator E[ecg]\mathbb{E}[e^{-cg}] is carried by a rare event.

  • The weights collapse onto a few samples → the ratio's variance explodes; the effective sample size crashes.

Naive Gaussian sampling is unbiased but can be catastrophically high-variance right where we need it (high nn, small δ\delta). We fix it with importance sampling.

🎯 Tilted Proposal & Density-Ratio Reweighting

  • Replace yN(x,σ2In)y\sim\mathcal N(x,\sigma^2 I_n) (σ2=δt\sigma^2=\delta t) by a shifted proposal qθ=N(x+θ,σ2In)q_\theta=\mathcal N(x+\theta,\sigma^2 I_n).

  • Reweight by the density ratio

wθ(y)=exp ⁣(θ22yx,θ2σ2),w_\theta(y)=\exp\!\Big(\tfrac{|\theta|^2-2\langle y-x,\theta\rangle}{2\sigma^2}\Big),

which leaves every expectation unbiased.

We move the samples to where the integrand has mass, then correct via the ratio. Bias is untouched; variance can collapse by orders of magnitude.

🎯 The Zero-Variance Shift Is One Gradient Step

  • The zero-variance proposal is proportional to the integrand φx(y)ecg(y)\varphi_x(y)\,e^{-cg(y)} itself.

  • Its first-order Laplace / Gaussian approximation gives the shift

θ=σ2c(k)Dv(k)(t,x).\theta^\star=-\sigma^2\,c^{(k)}\,Dv^{(k)}(t,x).

  • That is, samples are pushed one preconditioned gradient step along the descent direction of the running value iterate.

The previous Picard iterate hands the sampler its drift for free. Reachability and importance sampling become the same computation — the value gradient is the optimal sampling direction.

🎯 Effective Sample Size as a Self-Diagnostic

  • Monitor the effective sample size of the self-normalized weights w~i=wθ(yi)ecg(yi)\tilde w_i=w_\theta(y_i)e^{-cg(y_i)}:

ESS=(iw~i)2iw~i2[1,N].\mathrm{ESS}=\frac{(\sum_i \tilde w_i)^2}{\sum_i \tilde w_i^2}\in[1,N].

  • ESSN\mathrm{ESS}\approx N: weights well-spread → estimate certified.

  • ESS1\mathrm{ESS}\to 1: weight degeneracy → flag, increase NN, raise δ\delta, or re-tilt.

ESS is a free, per-query health check: it tells you when to trust the estimate and why it failed when it does.

Part 4

📐 Guarantees

Concentration · Contraction · Residual · Total Error · Certificate · Robustness.

📐 Four Error Sources, One Budget

The distance from the computed field v^K,N,δ\hat v^{K,N,\delta} to the true inviscid viscosity solution vv decomposes into four independently-controlled sources:

Source Controlled by Scaling
Iteration (Picard truncation at KK) More iterations C1ρKC_1\rho^K
Monte-Carlo (finite NN) More samples C2N1/2log(1/δp)C_2 N^{-1/2}\sqrt{\log(1/\delta_p)}
Quasi-linearization residual Eql\mathcal E_{\mathrm{ql}} Surrogate fidelity (not effort) Floor
Viscosity (finite δ\delta) Smaller δ\delta C3δC_3\sqrt\delta

Three of four shrink with computational effort; the residual is a property of the surrogate and sets the floor. We now bound each.

📐 Finite-Sample Concentration (Theorem)

Fix phase (t,x)(t,x) and frozen c>0c>0; assume gminggmaxg_{\min}\le g\le g_{\max} on the sampling support. With Z=ecg(ζ)Z=e^{-cg(\zeta)}, μ=E[Z]\mu=\mathbb E[Z], vc=1clogμv_c=-\tfrac1c\log\mu, α=ecgmax\alpha=e^{-c g_{\max}}, β=ecgmin\beta=e^{-c g_{\min}}, and v^c,N=1clogZˉN\hat v_{c,N}=-\tfrac1c\log\bar Z_N:

P ⁣(v^c,Nvcε)  2exp ⁣(2Nμ2(1ecε)2(βα)2).\mathbb P\!\left(|\hat v_{c,N}-v_c|\ge\varepsilon\right)\ \le\ 2\exp\!\left(-\frac{2N\mu^2(1-e^{-c\varepsilon})^2}{(\beta-\alpha)^2}\right).

  • Bounded weights αZiβ\alpha\le Z_i\le\beta ⇒ Hoeffding.

  • Rate is the standard O(N1/2)O(N^{-1/2}), independent of state dimension nn — the crux of the scalability claim.

Dimension enters the cost per sample, not the number of samples for a target accuracy. That is how we beat O(Mn)O(M^n).

📐 Explicit Sample Size, and Its Worst Case (Corollary + Remark)

  • Since μα\mu\ge\alpha, it suffices to take

N  (βα)22α2(1ecε)2log2αN\ \ge\ \frac{(\beta-\alpha)^2}{2\alpha^2(1-e^{-c\varepsilon})^2}\log\frac{2}{\alpha}

to guarantee error ε\ge\varepsilon with probability α\le\alpha.

  • Worst-case caveat: with c=1/δc=1/\delta, β/α=e(gmaxgmin)/δ\beta/\alpha=e^{(g_{\max}-g_{\min})/\delta}, so this bound grows like e2(gmaxgmin)/δe^{2(g_{\max}-g_{\min})/\delta}exponential in 1/δ1/\delta, while viscosity error is only O(δ)O(\sqrt\delta).

The accuracy gain from shrinking δ\delta and the sample cost pull in opposite directions. This Hoeffding bound is loose; the next slide tightens it, and experiments sit far below it.

📐 Tightening: Bernstein & Jensen

  • Bernstein: when Var(Z)(βα)2/4\mathrm{Var}(Z)\ll(\beta-\alpha)^2/4, a variance-aware tail bound gives strictly tighter concentration than Hoeffding.

  • Jensen: the loose lower bound μα=ecgmax\mu\ge\alpha=e^{-c g_{\max}} can be replaced by μecE[g(ζ)]\mu\ge e^{-c\,\mathbb E[g(\zeta)]}, substantially reducing the required NN.

  • Importance sampling (Part 3) attacks the same variance directly.

The pessimistic e1/δe^{1/\delta} is a worst-case artifact of Hoeffding + crude μ\mu bound. In practice N[14k,20k]N\in[14\text{k},20\text{k}] suffices at δ[0.08,0.1]\delta\in[0.08,0.1].

📐 The Iteration Operator (Contraction Setup)

  • Fix evaluation states x1,,xMx_1,\dots,x_M and time tt; let G\mathcal G be a stable gradient-reconstruction operator, pm(v)=(Gv)mp_m(v)=(\mathcal G v)_m.

  • Coefficient-update map: (Γ(v))m=2H(t,xm,pm(v))/(δpm(v)2)(\Gamma(v))_m=2H(t,x_m,p_m(v))/(\delta|p_m(v)|^2).

  • Frozen-coefficient heat-kernel map:

(Φ(c))m=1cmlogEζN(xm,δtIn)[ecmg(ζ)].(\Phi(c))_m=-\tfrac{1}{c_m}\log\mathbb E_{\zeta\sim\mathcal N(x_m,\delta t I_n)}\big[e^{-c_m g(\zeta)}\big].

  • Algorithm 1 is the iteration v(k+1)=Λ(v(k))v^{(k+1)}=\Lambda(v^{(k)}), Λ=ΦΓ\Lambda=\Phi\circ\Gamma.

The whole method is a fixed-point iteration of a composed map on RM\mathbb R^M with the sup-norm. Contraction ⇒ convergence.

📐 Assumptions for Contraction (Assumption A)

On a closed admissible set A\mathcal A (sup-norm), assume:

  1. gG|g|\le G;
  2. non-degenerate gradient & bounded coefficient: m0pmPm_0\le|p_m|\le P_*, cmin(Γv)mcmaxc_{\min}\le(\Gamma v)_m\le c_{\max};
  3. Hamiltonian Lipschitz in co-state: HH|H|\le H_*, H(,p)H(,q)LHpq|H(\cdot,p)-H(\cdot,q)|\le L_H|p-q|;
  4. reconstruction Lipschitz: GvGwLDvw\|\mathcal G v-\mathcal G w\|_\infty\le L_D\|v-w\|_\infty;
  5. invariance + contraction constant

q=2Gcmin2LDδ(LHm02+2HPm04)<1.q=\frac{2G}{c_{\min}}\cdot\frac{2L_D}{\delta}\Big(\frac{L_H}{m_0^2}+\frac{2H_*P_*}{m_0^4}\Big)<1.

Non-degeneracy (item 2) holds on the tube band {vδη}\{|v^\delta|\le\eta\} where the gradient is bounded away from zero — where the barrier lives. Outside, use the regularized coefficient.

📐 Contraction Convergence (Theorem)

Λ\Lambda is a contraction on A\mathcal A ⇒ unique fixed point vv^\star, and for any v(0)Av^{(0)}\in\mathcal A:

v(k+1)vqv(k)vqk+1v(0)v,\|v^{(k+1)}-v^\star\|_\infty\le q\,\|v^{(k)}-v^\star\|_\infty\le q^{\,k+1}\|v^{(0)}-v^\star\|_\infty,

with the a posteriori estimate

v(k)vq1qv(k)v(k1).\|v^{(k)}-v^\star\|_\infty\le \frac{q}{1-q}\,\|v^{(k)}-v^{(k-1)}\|_\infty.

  • Iteration count for tolerance ε\varepsilon: K=O(log(1/ε))K=O(\log(1/\varepsilon))geometric convergence.

The residual you watch (successive-iterate change) bounds the error you cannot see (distance to vv^\star). That is the a posteriori estimate — a runtime stopping certificate.

📐 Scope of the Contraction (Remark)

  • The theorem is about the frozen-coefficient numerical map, not the original nonlinear PDE.

  • The fixed point vv^\star solves the viscous HJ equation with HH replaced by its quadratic surrogate at vv^\star.

  • v=vδv^\star=v^\delta iff H=12p2H=\tfrac12|p|^2 (then c1/δc\equiv1/\delta, Rder0R_{\mathrm{der}}\equiv0).

  • For general HH, the two differ by the quasi-linearization residual Eql=vvδ\mathcal E_{\mathrm{ql}}=\|v^\star-v^\delta\|_\infty.

We do not claim unconditional global convergence to the true HJ solution. We claim geometric convergence to a surrogate fixed point, plus a bound on the gap — next.

📐 The Quasi-Linearization Residual (Theorem, via Duhamel)

With converged coefficient cc^\star, coefficient-variation bound LcL_c, value bound GvG_v:

Eql=vvδ  Tcmine2cmaxGv(Rˉalg+Rˉder),\mathcal E_{\mathrm{ql}}=\|v^\star-v^\delta\|_\infty\ \le\ \frac{T}{c_{\min}}\,e^{2c_{\max}G_v}\big(\bar R_{\mathrm{alg}}+\bar R_{\mathrm{der}}\big),

  • Rˉalgcmax(LH+2HP/m02)DvδDv\bar R_{\mathrm{alg}}\le c_{\max}(L_H+2H_*P_*/m_0^2)\,\|Dv^\delta-Dv^\star\|_\inftycontracts as the surrogate gradient tracks the true one.

  • RˉderLcGv(1+δ2)+δ2Lc2Gv2+δ(1+cmaxGv)LcP\bar R_{\mathrm{der}}\le L_c G_v(1+\tfrac\delta2)+\tfrac\delta2 L_c^2 G_v^2+\delta(1+c_{\max}G_v)L_c P_* — governed by coefficient variation LcL_c.

Proof idea: ω~=ecvδ\tilde\omega=e^{-c^\star v^\delta} solves the heat equation with a source ωB\omega B (Lemma); Duhamel + heat-semigroup LL^\infty-contraction bounds ω~ω\|\tilde\omega-\omega^\star\|; mean-value theorem for log\log converts back to vv.

The bound vanishes in the quadratic case (Lc=0L_c=0, Dv=DvδDv^\star=Dv^\delta) and is largest where H/Dv2H/|Dv|^2 turns over sharply — the usable-part boundary.

📐 Reading the Residual

  • Vanishes when H=12p2H=\tfrac12|p|^2: recovers the closed-form Cole-Hopf.

  • Governed by LcL_c, the variation rate of the converged coefficient — largest near the barrier where the Hamiltonian-to-gradient ratio shocks.

  • Algebraic part DvδDv\propto\|Dv^\delta-Dv^\star\|: the residual contracts as the Picard iteration refines the co-state.

  • Certifies smallness where cc^\star is slowly varying; offers no reprieve where it is not.

This is why experimental errors concentrate at the zero-level-set boundary — the theory predicts the location of the worst error.

📐 The Total Error Bound (Theorem) & Bias-Variance

Chaining all four sources by the triangle inequality:

v^K,N,δv  C1ρK+C2Nlog(1/δp)+Eql+C3δ.\|\hat v^{K,N,\delta}-v\|_\infty\ \le\ C_1\rho^K+\frac{C_2}{\sqrt N}\sqrt{\log(1/\delta_p)}+\mathcal E_{\mathrm{ql}}+C_3\sqrt\delta.

  • Bias-variance tradeoff in δ\delta: viscosity bias \downarrow as δ\delta\downarrow, but MC variance \uparrow.

  • Balancing the two nontrivial δ\delta-dependent terms yields the optimal

δN1/3  overall rate O(N1/6),\delta\sim N^{-1/3}\ \Rightarrow\ \text{overall rate}\ O(N^{-1/6}),

slower than plain MC O(N1/2)O(N^{-1/2}) but dimension-robust and scalable.

A single decomposition tells you how to spend budget: iterate to kill ρK\rho^K, sample to kill N1/2N^{-1/2}, choose δN1/3\delta\sim N^{-1/3}, and accept the residual floor.

📐 The Conservative Safety Certificate (Corollary)

Let EE be the total error budget. Declare state xx:

  • SAFE only if v^K,N,δ(x)>E\hat v^{K,N,\delta}(x)>E;

  • UNSAFE only if v^K,N,δ(x)<E\hat v^{K,N,\delta}(x)<-E;

  • UNDETERMINED otherwise (v^E|\hat v|\le E).

With probability 1δp\ge 1-\delta_p: no unsafe state is certified safe and no safe state is certified unsafe; all classification error is confined to a declared band of width 2E2E about the boundary.

  • The certificate errs on refusal, never on admission.

  • This is the accuracy quotation: worst-case sign-correctness with an explicit abstention band, not an L2L^2 average that flatters the interior.

📐 Robustness to Model Uncertainty

  • The scheme is stable under small perturbations of the Hamiltonian and terminal cost (robustness theorems, appendix): perturb HH by ΔH\Delta H in sup-norm ⇒ value perturbed by TΔH\le T\|\Delta H\|_\infty (Duhamel/comparison).

  • Consequence: perfectly known dynamics and terminal costs are not required — real-world models with bounded error still yield certified-with-margin sets.

  • The coefficient-clipping and regularization perturbations are of this priced form.

The method degrades gracefully and quantifiably under model error — a prerequisite for deployment on real robots with imperfect models.

Part 5

🧪 Experiments (from the Paper)

Rockets, Dubins, a 45D game, and 10510^5 birds.

🧪 Experimental Setup & Statistics BLUF - (1/2)

  • Hardware: single CPU (Intel i7-14700K, 20 cores, 31 GiB RAM, Ubuntu 22.04); JAX on CPU backend

    — Consistent with the memory-frugality claim.

  • Replication: Each experiment re-solved with 30 independent Monte-Carlo seeds;

    • Evaluation points and the LevelSetPy reference held fixed - only sampler randomness varies. Tables report mean ± 1 s.d.

Figures show one representative seed for clarity; tables report full 30-seed statistics. Multiplicity-controlled reporting throughout.

🧪 Experimental Setup & Statistics BLUF - (2/2)

  • Significance: Three families of Holm-Bonferroni-corrected tests at α=0.05\alpha=0.05:
    • (a) paired Wilcoxon of 30-seed-averaged MC field vs grid reference;

    • (b) one-sided tt-test that per-seed Lrel2L^2_{\mathrm{rel}} lies below the Crandall-Lions bound δ\sqrt\delta;

    • (c) cross-condition Mann-Whitney (Rockets vs Dubins; speed regimes).

Figures show one representative seed for clarity; tables report full 30-seed statistics. Multiplicity-controlled reporting throughout.

🧪 Benchmark 1: Two-Vehicle Pursuit-Evasion Games

  • Rockets launch game1: two identical rockets — pursuer PP, evader EE — on the xx-zz plane, thrusts (up,ue)(u_p,u_e), relative orientation θ=upue\theta=u_p-u_e. Capture when PE<r\|PE\|<r.

  • Dubins two-car game (Merz): relative (x1,x2,θ)(x_1,x_2,\theta), symmetric turn-rate bound.

  • Both are 3D relative-state games; the BRT is a 3D tube, visualized as 2D (x,z)(x,z) slices at fixed θ\theta.

  • Target: 2\ell_2-ball of capture radius r=1.5r=1.5; horizon (0,1](0,1]; δ=0.08\delta=0.08; N=14,000N=14{,}000 (rockets) / 20,00020{,}000 (Dubins) samples per iteration.

These are the canonical HJ-Isaacs benchmarks — and the Dubins game is the pairwise MAPF conflict of Part 6.

1 Dreyfus 1966

🧪 The Two-Rockets Problem (Schematic)

Relative geometry: evader EE fixed at the origin (accel. aea_e, control ueu_e, gravity gg); pursuer PP at relative orientation θ=upue\theta=u_p-u_e on the (x,z)(x,z) plane. — HJ-Gauss (Molu et al., 2026).

🧪 The Dubins Air3D Problem (Schematic)

Air3D relative coordinates with the evader fixed at the origin: relative position (x1,x2)(x_1,x_2) and relative heading ψ\psi; turn-rate-bounded pursuer vs evader. — LevelSetPy (Molu, ACM TOMS 2025 / IEEE CDC 2024).

🧪 Rockets Pursuit-Evasion BRT

(x,z)(x,z) slices at θ{90,0,90}\theta\in\{-90^\circ,0,90^\circ\}: LevelSetPy grid (top) · HJ-Gauss MC (middle) · pointwise error (bottom). — HJ-Gauss (Molu et al., 2026).

🧪 Dubins Two-Car BRT

LevelSetPy grid (top) · HJ-Gauss MC (middle) · error (bottom). — HJ-Gauss (Molu et al., 2026); LevelSetPy (Molu, TOMS 2025 / CDC 2024).

🧪 Benchmark 1: Quantitative Results

System θ\theta (rad) LL^\infty Lrel2L^2_{\mathrm{rel}} MC time (s) Iters
Rockets π/2-\pi/2 0.855±0.0470.855\pm0.047 0.098±0.0020.098\pm0.002 13.513.5 12
Rockets 00 1.034±0.0671.034\pm0.067 0.101±0.0010.101\pm0.001 13.513.5 12
Rockets π/2\pi/2 0.895±0.1090.895\pm0.109 0.090±0.0020.090\pm0.002 13.613.6 12
Dubins π/2-\pi/2 1.352±0.0021.352\pm0.002 0.131±0.0030.131\pm0.003 23.623.6 15
Dubins 00 0.701±0.1440.701\pm0.144 0.024±0.0010.024\pm0.001 23.723.7 15
Dubins π/2\pi/2 1.352±0.0021.352\pm0.002 0.132±0.0030.132\pm0.003 23.723.7 15
  • Reference: LevelSetPy 45345^3 grid interpolated to a 40×4040\times40 evaluation grid.

  • Holm-Bonferroni one-sided tt-test rejects Lrel2δ=0.283L^2_{\mathrm{rel}}\ge\sqrt\delta=0.283 at pholm<1050p_{\mathrm{holm}}<10^{-50} in every condition.

Sampling-plus-iteration error is statistically well inside the viscosity budget — not merely numerically.

🧪 Interpreting the Errors: Different Currencies

  • The Crandall-Lions O(δ)0.283O(\sqrt\delta)\approx0.283 bounds the inviscid-vs-viscous sup-distance; the table measures MC-vs-grid in L2/LL^2/L^\inftydifferent currencies, compared with care.

  • Averaging does not equal agreement: a paired Wilcoxon of the 30-seed-averaged MC field vs the grid rejects equality at pholm<108p_{\mathrm{holm}}<10^{-8} everywhere — a systematic quasi-linearization residual remains (Theorem, Part 4).

  • θ=0\theta=0 Dubins reaches Lrel2=0.024L^2_{\mathrm{rel}}=0.024 (smooth interior); θ=±π/2\theta=\pm\pi/2 and rockets sit ~0.090.09-0.130.13 (share of grid near the coefficient-turnover boundary).

  • L0.7L^\infty\sim0.7-1.41.4 driven by the zero-level-set boundary where Dvδ|Dv^\delta| is maximal — where the residual LcL_c term predicts.

The report is Corollary (conservative certificate): sign-correctness outside an abstention band; L2L^2 flatters the interior, LL^\infty is dominated by the declared-undetermined band.

🧪 A Physical Check: The Gravity Asymmetry

  • Rockets are asymmetric between θ=90\theta=-90^\circ and θ=+90\theta=+90^\circ: the gravity term (gaasinθ)(g-a-a\sin\theta) gives a g2ag-2a drift at +90+90^\circ but gg at 90-90^\circ.

  • Holm-Bonferroni test over 30 seeds detects this asymmetry for Rockets (pholm<109p_{\mathrm{holm}}<10^{-9}) but not for the gravity-free Dubins vehicle (pholm=0.53p_{\mathrm{holm}}=0.53).

The method resolves a genuine physical effect, and the statistics correctly find it present where physics says it should be and absent where it should not. Validation, not just fitting.

🧪 Benchmark 2: A 45-Dimensional Pursuit-Evasion Game

  • 15 rockets (14 pursuers, 1 evader), state xR45x\in\mathbb R^{45}: each agent (xi,yi,θi)(x_i,y_i,\theta_i), control ui[1,1]u_i\in[-1,1].

  • Dynamics x˙i=aicosθi, y˙i=aisinθi, θ˙i=ui\dot x_i=a_i\cos\theta_i,\ \dot y_i=a_i\sin\theta_i,\ \dot\theta_i=u_i; target ϕ(x)=mini14xiposx15posrcapture\phi(x)=\min_{i\le14}\|x_i^{\mathrm{pos}}-x_{15}^{\mathrm{pos}}\|-r_{\mathrm{capture}}.

  • Three regimes: evader faster (2.02.0 vs 1.01.0), balanced (1.01.0/1.01.0), pursuers faster (1.01.0 vs 2.02.0).

  • A 101101-point grid would need 101451090101^{45}\approx10^{90} cells; HJ-Gauss operates at ≈ 7.2 MB per iteration.

This is the flagship: a reachability computation grid solvers cannot even represent, done on a single CPU in seconds.

🧪 Benchmark 2: 45D Results

Case aevadera_{\mathrm{evader}} apursuersa_{\mathrm{pursuers}} Iters Residual ε(k)\varepsilon(k) Wall-clock (s)
Evader faster 2.0 1.0 15 0.0002±0.00050.0002\pm0.0005 12.712.7
Equal speed 1.0 1.0 15 0.0003±0.00050.0003\pm0.0005 12.612.6
Pursuers faster 1.0 2.0 15 0.0006±0.00130.0006\pm0.0013 12.612.6
  • Memory constant at 7.2 MB/iteration; residuals below 10210^{-2} (indeed ~10410^{-4}) → near-zero Picard residual floor.

  • Min-max Hamiltonian evaluates in closed form (box-constrained control ⇒ sign structure), so each iteration is O(Nn)O(N\cdot n) arithmetic and memory.

  • Pairwise Holm-Bonferroni Mann-Whitney: no significant residual difference between speed regimes (pholm0.93p_{\mathrm{holm}}\ge0.93) → floor set by (N,δ)(N,\delta), not game parameters.

At n=45n=45 there is no grid reference; the report is measurable quantities — iteration stability, memory, wall-clock — i.e. scalability, not certified accuracy.

🧪 Why the 45D Residual Floor Is Lower Than 3D

  • 3D benchmarks floor at 0.020.02-0.060.06; the 45D game floors at 0.00020.0002-0.00060.0006two orders of magnitude lower.

  • Reason: the residual floor tracks proximity to the coefficient-turnover region (the shock-prone barrier), not dimension per se.

  • 45D evaluation states are drawn uniformly over [100,100][-100,100] per coordinate — with small probability of landing near the boundary — so the average residual is small.

A subtle but important message: error concentrates geometrically (at the barrier), not dimensionally. High dimension is not inherently high error.

🧪 Cost Accounting: Time vs Memory

  • 3D isosurface over 15,62515{,}625 points: 129.4 s (rockets, single CPU) vs 1.3 s for the dense 453=91,12545^3=91{,}125-point LevelSetPy grid.

  • Per-iteration memory: ≈ 0.6 MB (MC, N=14N=14k, n=3n=3) vs ≈ 1.5 MB (grid value+gradient).

  • In low dimensions (n4n\le4) grids win — smaller constant, no sampling variance.

  • The Monte-Carlo overhead becomes favorable where grid storage becomes prohibitive (n5n\ge5).

The two paradigms are complementary, not competing. Use grids where they fit in memory; use HJ-Gauss where they cannot.

🧪 Benchmark 3: Safety at Population Scale (10510^5 Starlings)

  • Certify 100,000 European starlings (Sturnus vulgaris) as 4D aerial Dubins vehicles under predator attack.

  • Structure (explicit): the murmuration is partitioned into flocks; each flock has its own value function; the population safe set is the aggregation of per-flock zero sublevel sets — many coupled low-D games, not one joint high-D PDE.

  • Because the solve is grid-free, the value-function solve is independent of bird count; the population enters only through parallel per-bird certification — the operational content of O(Nn)O(N\cdot n) at 10510^5 agents.

Two curses dodged at once: dimensionality (grid-free solve) and agent cardinality (per-flock decoupling + parallel evaluation).

🐦 The Certified Population Snapshot

2,000 of 100,000 birds (colored by heading) with 7 flock centers (stars) and their capture discs (dashed). Black contour is the certified safe-set boundary at τ=0\tau=0: an annular cordon around a protected core. — HJ-Gauss (Molu et al., 2026).

🐦 Watch the Safe Set Change Shape

  • Backward time τ\tau runs outward from the capture set: the certified safe set of the attacked flock grows and changes topology.

  • Green crosses and dashed circles are the seven attacking predators with their capture discs.

  • Blue interior = certified safe; the black curve is the v=0v=0 boundary.

A safety certificate for 10510^5 agents, as one evolving surface.

🐦 Cordon, Then Collapse

Same solve, six instants. A hole persists in the safe set (χ=0, β1=1\chi=0,\ \beta_1=1, cordon) through τ=1.30\tau=1.30; by τ=1.39\tau=1.39 it has closed (χ=1, β1=0\chi=1,\ \beta_1=0, cohesion). — HJ-Gauss (Molu et al., 2026).

🧪 Topology as a Safety Instrument

The certificates recover the field-documented collective repertoire as topological events of the reachable set, compressed to three integers per time step (χ,β1,ncomp)(\chi,\beta_1,n_{\mathrm{comp}}):

Behavior Topological signature Marker
Vacuole nucleation (predator penetrates) Drop in Euler characteristic χ\chi Threshold crossing in χ\chi
Defensive cordon (protected core) Annular safe set, first Betti number β1=1\beta_1=1 β1\beta_1 transition
Flock fragmentation Rising connected-component count ncompn_{\mathrm{comp}} Component-count jump

The triple (χ,β1,ncomp)(\chi,\beta_1,n_{\mathrm{comp}}) tells an operator not merely that safety is being lost but how — nucleation vs cordon vs split. Safety posture as a 3-integer summary.

🐦 The Three Integers, Over Time

  • χ\chi steps 010\to1 while β1\beta_1 drops 101\to0 at the same τ=1.39\tau=1.39: one event, two independent witnesses.

  • ncn_c holds at 11 throughout, so this flock never fragments.

  • Vacuole nucleation is the reverse event: a predator penetration attaches a 1-handle and drops χ\chi by one.

Three integers per tick say whether safety is being lost, and how.

🐦 The Repertoire Is Field-Documented

  • Real starling responses to predation: cordon, tube, funnel, and split.

  • Each one appears in our certificates as a topological signature of the safe set, and none of them is a hand-coded rule.

  • The certificate reproduces a documented repertoire from dynamics and the game alone — which is the reason to trust it on a floor, where the repertoire is congestion, yielding, and deadlock instead.

Fragmentation event, nc:12n_c:1\to2. Field murmuration imagery as reproduced in HJ-Gauss (Molu et al., 2026).

Part 6

🤖 Application: Multi-Agent Path Finding

The reason this talk is for the autonomous mobility team.

🤖 The Floor, as MAPF Sees It

Storage blocks separated by single-cell travel corridors, task endpoints on the border columns — the RHCR fulfillment-warehouse map family (Li et al., AAAI 2021). CBS/ECBS resolve the two classical conflict types marked above.

🤖 What Counts as a Conflict

  • Vertex conflict ai,aj,x,t\langle a_i,a_j,x,t\rangle: two agents occupy the same cell at the same timestep.

  • Edge (swap) conflict ai,aj,x ⁣ ⁣y,t\langle a_i,a_j,x\!\to\!y,t\rangle: two agents traverse the same edge in opposition — the head-on case in a one-cell corridor.

  • CBS branches on a conflict, adds a constraint to one agent, and re-plans that agent's shortest path; ECBS bounds suboptimality; RHCR applies this inside a rolling window.

  • Every one of these predicates is a statement about cells and timesteps.

Nothing in this vocabulary mentions turn radius, actuation lag, or localization error.

🤖 CCBS Fixes Time, Not Dynamics

CCBS (Andreychuk et al., IJCAI 2019) replaces integer timesteps with continuous time: agents are discs moving along straight edges with arbitrary durations, and conflicts become unsafe time intervals. Turn radius, actuation lag, and disturbance remain outside the model.

🤖 The Gap in Classical MAPF

  • Multi-Agent Path Finding (MAPF): move a team of agents to goals without collision. Solvers: CBS/ECBS (conflict-based search), PIBT, LaCAM/LaCAM*, and lifelong RHCR.

  • All operate on a discrete grid with simplified kinematics (unit moves / rotate-in-place) and no disturbance model.

  • A "conflict" is a shared vertex/edge (or swept-disc overlap) — dynamics-blind.

  • Consequence: realized collisions on a real floor (turn-radius limits, localization noise, actuation lag) are out of scope.

The discrete plan is provably conflict-free on the graph — yet the continuous robot can still collide. That is the gap HJ reachability fills.

🤖 The Scaling Anchor: RHCR1

  • Rolling-Horizon Collision Resolution: decompose lifelong MAPF into a sequence of Windowed MAPF instances; resolve collisions only within a bounded time window ww, ignore beyond.

  • Scales to 1,000 agents on warehouse maps; co-authored by J. Durham (Amazon Robotics).

  • Current frontier: LaCAM* (10,000+ agents, near-optimal, anytime), PIBT (thousands in ms), learning-based lifelong (imitation, guidance-graph, MAPF-GPT).

  • All still discrete-grid, deterministic.

HJ-Gauss does not compete with LaCAM's combinatorial search; it certifies the plan under continuous dynamics — a different, complementary axis.

1 Li et al., AAAI 2021

🤖 The Mapping: HJ-Gauss Constructs → MAPF Roles

HJ-Gauss construct MAPF role
Windowed BRT over (0,T](0,T], set T=wT=w Continuous, disturbance-robust replacement for the RHCR rolling window (innovation #1)
Pairwise Dubins BRT membership Dynamics-aware conflict predicate replacing the geometric/disc check in CBS/CCBS (innovation #2)
Relative-frame tube, computed once Reused across all pairs & timesteps ⇒ certificate cost O(1)O(1) in agents
Value gradient DvlogpDv\propto\nabla\log p A score: certified guidance term for diffusion planners (innovation #3)

The Dubins pursuit-evasion BRT from Part 5 is the canonical pairwise MAPF conflict, computed rigorously.

🤖 The Dynamics-Aware Conflict Set (Pairwise Dubins BRT)

Black = certified inevitable-collision boundary; dashed = naive disc. The BRT bulges beyond the disc in a heading-dependent way — what a dynamics-blind check cannot see.

⚙️ What the Certified Set Looks Like

  • Sweeping the relative heading x3x_3 makes the certified set rotate and deform.

  • A near head-on geometry grows a long lobe; a near-parallel one stays compact.

  • The dashed red circle is the dynamics-blind disc, fixed for every heading.

This is the object a swept-disc test approximates with a circle.

⚙️ Reading the Heading Sweep

  • Only about 2% of the relative-state box is certified inevitable-collision at w=0.6w=0.6 s.

  • So the gate is selective, not blanket-conservative: it fires on geometry that actually traps the pair.

  • Where the tube exceeds the disc, a geometric planner is blind; where it falls inside, the disc is needlessly cautious.

🤖 Falsifiable Hypotheses (Stated to Be Proven Wrong)

Naming: HJ = Hamilton-Jacobi (the method); HB-n = hypothesis nn.

ID Hypothesis Null we try to reject Metric
HB-1 HJ-shield is sound Admits collisions geometric catches Realized collisions
HB-2 HJ is dynamics-aware Geometric never misses what HJ catches Collisions, geom vs HJ (CRN)
HB-3 Memory O(Nn)O(N\cdot n), flat in resolution Grows like grid Peak memory
HB-4 Certified gate costs little throughput Large makespan inflation Throughput / flowtime
HB-5 Fast enough (precompute + O(1)O(1) lookup) Too slow for the loop Wall-clock / latency
HB-6 (stretch) DvDv-guidance reduces collisions in a diffusion planner No reduction Guided vs unguided

🤖 The AMFS Pipeline: World and Planner

  • World: an RHCR-style structured warehouse grid — storage blocks, single-cell corridors, border endpoints — with lifelong task reassignment.

  • Planner: windowed prioritized planning (space-time A*), the RHCR rolling horizon, shared by both policies.

  • Executor: a continuous unicycle/Dubins rollout with bounded turn rate and bounded disturbance, where realized collisions are detected in continuous space.

The planner is held fixed on purpose. Only the safety layer varies.

🤖 The AMFS Pipeline: The Two Policies

  • Geometric — the classical dynamics-blind vertex/edge conflict test, unshielded.

  • HJ — the same planner plus the windowed-BRT runtime shield.

  • Both run under Common Random Numbers: identical spawns, tasks, priorities, and disturbance realizations for a given seed.

  • BRT precompute: the JAX HJ sampler (Algorithm B) on the Dubins-relative Hamiltonian, cached once; the online loop is numpy-only O(1)O(1) lookups.

One clean contrast: the only difference between the two arms is whether the certificate is actuated.

🤖 The Simulated Floor

RHCR-style structured floor: storage blocks (obstacles), border endpoints (pickup/dropoff), 14 lifelong agents (circles) heading to goals (stars).

▶️ Watch It Run: Same Seed, Same Noise, One Difference

Left: geometric conflict check. Right: the HJ-Gauss windowed-BRT shield. Amber ring = shield firing (agent fleeing), red = realized contact, stars = current goals. Seed 1028 of the 30-seed harness: 98 → 66 collisions at identical throughput (0.825). Animated in the HTML deck; the PDF shows the opening frame.

▶️ The Same Episode, as a Filmstrip

Four instants from the run above: top row geometric, bottom row HJ-shield. Counters under each panel accumulate realized collisions and shield activations. Identical spawn, task, and disturbance streams throughout (CRN).

🤖 The Key Scientific Finding (Why the Naive Version Fails)

  • Planning-only BRT predicate made things worse (HJ 84 vs geometric 53 collisions in the first trial). Two principled reasons:
    1. the pursuit-evasion BRT is a worst-case adversarial set, but agents are cooperative — they never apply the BRT's safe control, so plan-time membership does not predict cooperative-tracking collisions;
    2. plan-time checks see only discrete nodes at integer times; collisions happen in continuous time under disturbance.
  • The certificate only bites when actuated. Fix: use the windowed BRT as a runtime shield — the lower-priority agent in an in-BRT pair flees (a braking "spin-in-place" bug had it get hit).

This is the arc: a negative result diagnosed to a principle, then the correct mechanism. Actuation, not inspection.

🤖 The Multiseed Statistical Harness

Mirrors the WIP-forecast harness; numpy-only:

  • ≥30 seeds (configurable);

  • MSER-5 warm-up truncation of the per-tick collision series (+ Welch running-mean cross-check);

  • Bootstrap 95% CIs on every headline metric;

  • Common Random Numbers (CRN) across policies (spawn/task/disturbance streams keyed to the seed) for a paired comparison;

  • Paired bootstrap CI for mean(hjgeom)\mathrm{mean}(\text{hj}-\text{geom}) + Holm-Bonferroni step-down FWER control across the HB family.

Single-seed results were noisy and even inverted; the harness is what turns a direction into a defensible claim.

🤖 Results: 30 CRN-Paired Seeds (14 Agents)

Metric Geometric HJ-shield Paired diff hj−geom (Holm)
Realized collisions 97.7 [90.8, 104.9] 66.1 [61.2, 71.2] −31.6 [−38.0, −25.4], reject
Collision rate (MSER-5) 2.48 /tick 1.67 /tick −0.81 [−0.98, −0.64], reject
Throughput 0 [0,0], not rejected
Flowtime 0 [0,0], not rejected
Shield interventions 0 ~1024 (activity, by design)
  • ~32% fewer realized collisions, significant under Holm-Bonferroni, at no throughput/flowtime cost in this model.

  • Aggregated sweeps: 18-37% reduction across densities and disturbance levels.

HB-1/HB-2 rejected in the safe direction; HB-3/HB-4 show no throughput penalty. The certificate, actuated, works.

📊 Headline: ~32% Fewer Realized Collisions

30 CRN-paired seeds, bootstrap 95% CI. Geometric 97.7 → HJ-shield 66.1; paired diff −31.6 [−38.0, −25.4], Holm p≈0.

📊 Per-Tick Collisions & MSER-5 Warm-Up

HJ shield (teal) sits below geometric (red) at every steady-state tick; the dashed line is the MSER-5 warm-up cut discarded before averaging.

📊 The Effect Holds as the Fleet Grows

Collision reduction persists across agent densities (8-20 agents) — the certificate's value does not wash out with congestion.

🤖 Verdict Table

ID Prediction Result Verdict
HB-1 Shield is sound HJ never certifies a colliding plan safe; collisions ↓ ✅
HB-2 Dynamics-aware advantage 31.6 fewer collisions per run, paired, Holm p≈0 ✅
HB-3 O(Nn)O(N\cdot n) memory 7.2 MB at n=45n=45; flat in resolution ✅ (paper)
HB-4 Little throughput cost Throughput/flowtime diff = 0 in this model ✅ (with caveat)
HB-5 Fast enough BRT precompute ~10 s; O(1)O(1) online lookup ✅
HB-6 Diffusion-guidance helps Deferred to Option C ⏳

HB-4's zero difference is partly a modeling artifact (next: Dirty Laundry). Everything else holds under the harness.

Part 7

🌊 The Diffusion Connection

The Cole-Hopf kernel is the diffusion kernel.

🌊 A Mathematical Identity, Not an Analogy

  • The Cole-Hopf step turns the HJ PDE into the heat equation, whose fundamental solution is the Gaussian transition kernel — the identical kernel that score-based generative models (DDPM, score matching) and diffusion policies use in their forward process.

  • Under v=δlogϕv=-\delta\log\phi, the recovered value gradient is a score function:

Dv  logϕ = logp.Dv\ \propto\ \nabla\log\phi\ =\ \nabla\log p.

  • Our Feynman-Kac gradient estimator (weighted-mean shift) is structurally a training-free score estimator.

Certified reachability and diffusion trajectory generation meet at the same Gaussian kernel. This is not a metaphor; it is the same PDE.

🌊 Consequence: A Certified Guidance Term

  • Diffusion trajectory planners (Diffuser, Decision Diffuser, Motion Planning Diffusion) generate paths by denoising but carry no hard safety guarantee.

  • The BRT gradient DvDv can serve as a certified guidance / shield term: add it to the denoiser's score to steer denoised trajectories out of the inevitable-collision set.

  • The AMFS shield is the discrete-time instance of this idea (flee along Dv-Dv); the continuous diffusion-guidance version is Option C.

A reachability-certified shield for neural planners — the missing safety guarantee in the learning-based MAPF line (imitation, guidance-graph, MAPF-GPT).

🌊 The Careful Claim (for the Q&A Skeptic)

  • DvlogϕDv\propto\nabla\log\phi is a genuine score of the Cole-Hopf-transformed value density ϕ\phi.

  • But ϕ\phi is not the data distribution a diffusion planner learns — the objects coincide structurally (same kernel, same log\nabla\log form), not identically.

  • The rigorous joint-work statement: use the certified reachability score as a guidance/projection term on the learned generative score, inheriting the BRT's worst-case guarantee as a shield while the learned score supplies task performance.

State it carefully and it is bulletproof; overstate it and a diffusion expert will (rightly) push back. Structural identity + guidance role, not "our value function is your data score."

🌊 Joint-Work Surface with a Diffusion-Planner Team

  • Shared kernel: both sides live on N(x,σ2I)\mathcal N(x,\sigma^2 I) transitions — infrastructure reuse.

  • Certified shield: wrap any learned proposer (BC, CQL/IQL, diffusion) with the windowed-BRT flee/guidance term; report blocked actions and throughput margin separately.

  • Score as drift: the importance-sampling tilt θ=σ2cDv\theta^\star=-\sigma^2 c Dv is literally a score-guided proposal — a learned score could serve as the sampler's drift and vice versa.

  • Benchmark: extend League-of-Robot-Runners / RHCR with a disturbance model → a robust-throughput axis.

One decision contract, two evidence environments: certified reachability and learned generation, meeting at the Gaussian kernel.

Part 8

🧺 Dirty Laundry

Limits, caveats, and boundaries.

🧺 Theoretical Limits

  • Quasi-linearization residual Eql\mathcal E_{\mathrm{ql}} floors accuracy for non-quadratic HH; the scheme is closed-form only when H=12p2H=\tfrac12|p|^2. The residual is largest where H/Dv2H/|Dv|^2 turns over sharply (the usable-part boundary) — the theory predicts where the error lives.

  • Worst-case sample complexity is exponential in 1/δ1/\delta (Hoeffding + crude μ\mu bound: e2(gmaxgmin)/δ\sim e^{2(g_{\max}-g_{\min})/\delta}), while viscosity error is only O(δ)O(\sqrt\delta) — a genuine bias-variance tension. Practical NN sits far below this; Bernstein/Jensen and importance sampling tighten it; the optimal δN1/3\delta\sim N^{-1/3} gives O(N1/6)O(N^{-1/6}).

  • Coefficient cc blows up in flat interiors and flips sign at the barrier; cured by regularization at a quantified, uniform price TCHη/2TC_H\sqrt\eta/2.

None of these are hidden — each has a theorem, a remark, and a mitigation. The certificate is correct by construction (abstention band).

🧺 Reporting & Accuracy Caveats

  • The Crandall-Lions O(δ)O(\sqrt\delta) bound and the reported L2/LL^2/L^\infty errors are in different currencies (inviscid-vs-viscous sup-norm vs MC-vs-grid); compared with explicit care.

  • Averaging ≠ agreement: even the 30-seed-averaged field differs from the grid (paired Wilcoxon, p<108p<10^{-8}) — the systematic residual remains.

  • At n=45n=45 there is no grid reference: we report scalability (iteration stability, memory, wall-clock), not certified accuracy.

  • The accuracy quotation is the conservative certificate: sign-correctness outside a declared abstention band, not an L2L^2 average that flatters the interior.

L2L^2 flatters; LL^\infty is dominated by the band we already declare undetermined. We quote the certificate, not the flattering average.

🧺 MAPF-Application Caveats

  • Adversarial vs cooperative: the BRT is a worst-case set; using it as a cooperative-MAPF predicate is safe but conservative, and only reduces realized collisions when actuated (shield), not merely checked at plan time — this was our diagnosed negative result.

  • "Free safety" is a modeling artifact: in the AMFS executor the discrete planner is authoritative for task progress, so shield-induced fleeing does not delay arrivals → HB-3/HB-4 diffs are 0. A physical executor should let fleeing delay arrivals, introducing a small, real throughput cost.

  • Shield compute: the O(n2)O(n^2) per-micro-step BRT interpolation is the CPU bottleneck (~7 min / 30 seeds); vectorize before scaling.

  • Scope: Dubins agents, one floor topology, single disturbance level — a PoC, not a fleet study.

The result is real and significant; the magnitude and cost need a more physical executor and larger sweeps (Option C, GPU).

🧺 Source & Scope Boundaries

  • Grid solvers remain preferable for n4n\le4 (smaller constant, no sampling variance); HJ-Gauss is the method of choice only in the high-dimensional regime. The paradigms are complementary.

  • The 10510^5-bird result is many coupled low-D games, not one joint high-D PDE — we are explicit about this.

  • All experiments are single-CPU; GPU/Lambda scaling (Part 9) is future work, not claimed here.

  • The diffusion connection is a structural identity + guidance role, not a claim that our value density equals a learned data distribution.

Complementary, decoupled, single-CPU, structural — four boundaries stated plainly so no claim is overread.

Part 9

🏁 Conclusions, Future Work, References

🏁 Conclusions

  • HJ-Gauss turns the nonlinear viscous HJ PDE into a sequence of linear heat equations (Cole-Hopf), solved as Gaussian Feynman-Kac expectations by a frozen-coefficient Picard iteration (Algorithm 1).

  • Memory drops from grid O(Mn)O(M^n) to O(Nn)O(N\cdot n) — storage- and discretization-free.

  • Guarantees: O(N1/2)O(N^{-1/2}) concentration (dimension-independent), geometric contraction with a posteriori estimate, a Duhamel residual bound, a total-error decomposition with δN1/3O(N1/6)\delta\sim N^{-1/3}\Rightarrow O(N^{-1/6}), and a one-sided conservative safety certificate.

  • Validated to a 45D game and 10510^5-agent certification — regimes grids cannot represent.

  • For autonomous mobility: a dynamics-aware, disturbance-robust conflict predicate/shield for MAPF (windowed BRT = RHCR window), and — via the Gaussian/score identity — a certified guidance term for diffusion planners.

Certified safety is the sign of a value function. HJ-Gauss computes that sign where grids cannot — and hands the same object to your learned planners.

🏁 Future Work

  • Option C — diffusion-guided planning (HB-6): actuate DvDv as continuous guidance on a diffusion/sampling planner; certified shield for neural LMAPF.

  • Physical MAPF executor: let shield fleeing delay arrivals → measure the real throughput-vs-safety frontier (robust-throughput benchmark).

  • GPU / Lambda Labs scaling: vectorize the shield's BRT interpolation; run the harness as a Metaflow flow (fan-out over configs × seeds); scale the BRT precompute (bigger grids, higher-D dynamics) on H100s.

  • Adaptive importance sampling in high dimensions; Bernstein-tight sample budgets.

  • Tighter integration with safe-RL / policy-certification pipelines.

The scaling path (imp/ar-metaflow, W&B, S3 checkpointing) is scoped in AMFS/infra/lambda_labs_notes.md.

📖 References — 1/3

  1. L. Molu, "LevelSetPy: A GPU-Accelerated Package for Hyperbolic Hamilton-Jacobi PDEs," ACM Trans. Math. Softw. 51(2), Art. 10, 2025.
  2. L. Molu, "The Python LevelSet Toolbox (LevelSetPy)," IEEE CDC, 2024.
  3. M. G. Crandall, P.-L. Lions, "Viscosity Solutions of Hamilton-Jacobi Equations," Trans. AMS 277(1), 1983; and the two-approximations O(δ)O(\sqrt\delta) error, Math. Comp., 1984.
  4. R. Isaacs, Differential Games, Wiley, 1965.
  5. I. Mitchell, A. Bayen, C. Tomlin, "A Time-Dependent HJ Formulation of Reachable Sets for Continuous Dynamic Games," IEEE TAC 50(7), 2005.

📖 References — 2/3

  1. J. Lygeros, "On Reachability and Minimum Cost Optimal Control," Automatica, 2004.
  2. S. Osher, R. Fedkiw, Level Set Methods and Dynamic Implicit Surfaces, Springer, 2003.
  3. X.-D. Liu, S. Osher, T. Chan, "Weighted Essentially Non-Oscillatory Schemes," J. Comput. Phys., 1994; C.-W. Shu, S. Osher, TVD-RK, 1988.
  4. L. C. Evans, Partial Differential Equations, AMS (heat kernel, Feynman-Kac).
  5. J. Darbon, S. Osher (2016); Y. T. Chow, J. Darbon, S. Osher, W. Yin (2017) — Hopf/Lax-Oleinik grid-free formulas.
  6. H. J. Kappen (2005); E. Theodorou, J. Buchli, S. Schaal (2010) — path-integral / stochastic HJB linearization.

📖 References — 3/3

  1. S. Bansal, M. Chen, S. Herbert, C. Tomlin, "DeepReach," ICRA, 2021; M. Chen, S. Herbert et al., system decomposition.
  2. S. Summers, J. Lygeros (2010); K. Lesser, M. Oishi, R. Erwin — sample-based stochastic reachability.
  3. J. Li, A. Tinka, S. Kiesel, J. W. Durham, T. K. S. Kumar, S. Koenig, "Lifelong MAPF in Large-Scale Warehouses (RHCR)," AAAI, 2021.
  4. K. Okumura, "LaCAM / Engineering LaCAM*," 2023; PIBT and lifelong learning-based MAPF (2024-25).
  5. S. Holm, "A Simple Sequentially Rejective Multiple Test Procedure," Scand. J. Stat., 1979.

✅ Reference ledger complete.

Code: github.com/robotsorcerer/levelsetpy (monte_carlo, monte_carlo/AMFS) · Contact: ogunmolu@amazon.com

📖 References — Reachability Primer

  1. I. Mitchell, "Reach Sets and the Hamilton-Jacobi Equation," UBC CS542D lecture notes, 2004 (with A. Bayen, M. Oishi, C. Tomlin). cs.ubc.ca/~mitchell/Class/CS542D.2004/Handouts/reachSets1.pdf

  2. L. C. Evans, P. E. Souganidis, "Differential Games and Representation Formulas for Solutions of Hamilton-Jacobi-Isaacs Equations," Indiana Univ. Math. J., 1984.

  3. A. W. Merz, "The Homicidal Chauffeur," AIAA J., 1972; I. Mitchell, numerical validation, 2001.

  4. M. Falcone (static HJ); J.-P. Aubin & P. Saint-Pierre (viability kernels) — alternative Eulerian reachability.

🙏 Thank You

Questions?

✉️ ogunmolu@amazon.com


Certified safety is the sign of a value function —
HJ-Gauss computes that sign where grids cannot.

Backup slides: full proofs (residual Duhamel bound, contraction), murmuration topology theorems, AMFS harness internals, Lambda Labs scaling plan.

Appendix

📚 Background & Foundations (Parts A–C)

Notation, Hamilton-Jacobi / viscosity theory (A), reachability foundations (B), and the LevelSetPy grid pipeline (C) — reference material for the main talk.

📏 Notations

Symbol Meaning
xΩRnx\in\Omega\subseteq\mathbb{R}^n xx: State; Ω\Omega: Open set; nn = State dimension
v(t,x)v(t,x) Value function; vtv_t time derivative; Dv=xvDv=\nabla_x v spatial gradient (co-state)
H(t;x,p)H(t;x,p) Hamiltonian; pp = co-state
g(x)g(x) Terminal/target datum (signed distance (x)\ell(x)); BUC
δ>0\delta>0 Viscosity parameter

📏 Notations

Symbol Meaning
ωδ=ecvδ\omega^\delta=e^{-c v^\delta} Cole-Hopf transformed variable
c(t;x)c(t;x) Frozen coefficient =2δHδ/Dvδ2=\frac{2}{\delta}H^\delta/\lvert Dv^\delta\rvert^2
M, NM,\ N Grid points per dimension (MM); Monte-Carlo samples per query state (NN)
L0, L\mathcal L_0,\ \mathcal L Target set, backward reachable tube (BRT)

Two independent counts: MM evaluation states (arbitrary, grid-free) vs NN Gaussian samples drawn per state. Total randomness per iteration =M×N=M\times N.

👥 Who Should Care, and Why

  • Autonomous mobility / MAPF: a certified, dynamics-aware, disturbance-robust conflict predicate that slots into rolling-horizon planners at fleet scale.

  • Safe RL / policy verification: computing backward reachable tubes for a closed-loop learned policy is memory-bound on grids; O(Nn)O(N\cdot n) lifts that bound.

  • Differential games / pursuit-evasion: the adversarial worst-case reachable set is what HJ-Isaacs computes.

The unifying object is a value function whose sign certifies safety. This talk is about computing that sign where grids cannot.

👥 Who Should Care, and Why

  • Differential games / pursuit-evasion: the adversarial worst-case reachable set is what HJ-Isaacs computes.

  • Diffusion / generative planning: the Cole-Hopf kernel is the score-based diffusion kernel; the value gradient is a score.

  • Air-traffic, collision avoidance, multi-robot control: the classical application domain of HJ reachability.

The unifying object is a value function whose sign certifies safety. This talk is about computing that sign where grids cannot.

Part A

🧮 Hamilton-Jacobi PDE Theory Recap

Viscosity solutions, vanishing viscosity, and why we need them.

🧮 The Cauchy-Type HJ Equation

Our chief object is the evolution (Cauchy) HJ equation

vt(x,t)+H(t;x,xv)=0  in Ω×(0,T],v(x,0)=v0(x)  in Ω,v_t(x,t) + H(t;x,\nabla_x v)=0 \ \text{ in } \Omega\times(0,T],\qquad v(x,0)=v_0(x)\ \text{ in }\Omega,

with H:(0,T]×Rn×RnRH:(0,T]\times\mathbb{R}^n\times\mathbb{R}^n\to\mathbb{R} continuous and g,v0g,v_0 bounded, uniformly continuous (BUC).

  • A closely related object is the scalar conservation law / convection equation vt+ifi(v)xi=0v_t+\sum_i f_i(v)_{x_i}=0, whose shock theory motivates the numerics.

  • The HJ equation is first-order, nonlinear, hyperbolic.

First-order nonlinear hyperbolic PDEs generically fail to have smooth global solutions — the reason the entire viscosity-solution apparatus exists.

🧮 Why Classical Solutions Fail: Crossing Characteristics

  • The method of characteristics integrates the PDE along curves in (x,t)(x,t).

  • For nonlinear HH, characteristics cross: multiple characteristics carry conflicting values to the same point → a shock / gradient discontinuity.

  • Consequence: no global C1C^1 solution exists in general, even when HH and gg are smooth.

  • Global analysis via classical PDE theory is "virtually impossible" (Crandall-Lions).

The value function of a differential game develops kinks and shocks right at the barrier — the most safety-relevant region. We must define a weak solution that survives there.

🧮 Viscosity Solutions1

  • Viscosity solutions are the correct weak solution class for HJ PDEs: they exist almost everywhere, and enjoy existence, uniqueness, and stability theorems.

  • Definition (sketch) via test functions: vv is a viscosity subsolution if for every smooth φ\varphi touching vv from above at (x0,t0)(x_0,t_0), φt+H(,φ)0\varphi_t+H(\cdot,\nabla\varphi)\le 0; supersolution with the reverse inequality and touching from below; a solution is both.

  • This selects the physically-correct kinked solution and discards spurious ones.

Viscosity theory gives us a unique object to compute and to certify — indispensable for a safety guarantee.

1 Crandall & Lions, 1983

🧮 Vanishing Viscosity

Introduce δ>0\delta>0 and regularize (parabolic smoothing, as in gas dynamics):

vtδ+H(t;x,vδ)=δ2Δvδ  in Ω×(0,T],vδ(x,0)=g(x).v_t^\delta + H(t;x,\nabla v^\delta)=\tfrac{\delta}{2}\,\Delta v^\delta \ \text{ in }\Omega\times(0,T],\qquad v^\delta(x,0)=g(x).

  • The added Laplacian makes the PDE parabolic, hence classically well-posed: vδC2,1v^\delta\in C^{2,1}, unique, stable, BUC for all TT.

  • Traversing the limit δ0\delta\to 0 recovers the unique viscosity solution.

δ\delta is the linchpin of HJ-Gauss: it is both the smoothing that admits a classical solution and the diffusion coefficient of the heat equation we are about to expose.

🧮 The Crandall-Lions Error Bound

The viscous solution approximates the inviscid viscosity solution at a known rate:

supt(0,T] supxRn v(t,x)vδ(t,x)  kδ,k>0.\sup_{t\in(0,T]}\ \sup_{x\in\mathbb{R}^n}\ \big|v(t,x)-v^\delta(t,x)\big|\ \le\ k\sqrt{\delta}, \qquad k>0.

  • Bias scales as O(δ)O(\sqrt\delta): smaller δ\delta → more accurate.

  • But (preview) smaller δ\delta → more concentrated exponential weights → higher Monte-Carlo variance.

  • This is the bias-variance knob we will formalize in Part 4 (δN1/3\delta\sim N^{-1/3}).

One scalar δ\delta trades geometric accuracy against sampling variance. Choosing it well is the practical art of the method.

🧮 Admissible Data on Rn\mathbb{R}^n

  • Whole-space heat theory requires the datum in C(Rn)L(Rn)C(\mathbb{R}^n)\cap L^\infty(\mathbb{R}^n).

  • The transformed datum is ωδ(0,)=ecg\omega^\delta(0,\cdot)=e^{-c\,g}not gg itself. This matters: the signed distance \ell is unbounded above, but for a bounded target ggming\ge g_{\min} and g+g\to+\infty as x|x|\to\infty, so

0<ecg(y)ecgmin,ecg(y)0 as y.0< e^{-c g(y)}\le e^{-c g_{\min}},\qquad e^{-c g(y)}\to 0\ \text{as }|y|\to\infty.

  • Hence ecge^{-cg} is continuous, strictly positive, bounded, decaying → the heat solution is the unique bounded one, the integral converges absolutely, and the Gaussian expectation is genuine and unbiased.

Only the lower bound ggming\ge g_{\min} is needed; no upper bound on gg is used. This is what lets us sample over all of Rn\mathbb{R}^n.

Part B

🛡️ Reachability & Safety Foundations

What a certified safety set is, before we compute one.

🛡️ What Is Reachability?

  • Reachability concerns the decidability of a dynamical system's trajectory evolution across a phase space.

  • A reachable system is decidable when one can compute all states reachable from an initial condition in a finite number of steps.

  • Dual questions:

    • Forward: where can the system go from here?

    • Backward: from which states is a target inevitably reached (or avoidable)?

  • Safety analysis is naturally backward: characterize the set of states doomed to enter a danger set, then stay out of it.

Certifying a learned controller, neural policy, or planner means proving it satisfies all specified requirements — a verification problem. Reachability is the geometric engine of that verification.

🛡️ Backward Reachable Sets and Tubes

  • Backward Reachable Set (BRS): states that reach the target at a specific time.

  • Backward Reachable Tube (BRT): states that reach the target at some time in [0,T][0,T] — the safety-relevant object.

  • Reach-Avoid Tube (BRAT): states that can reach a goal while avoiding an obstacle set.

  • Robustly-Controlled BRT (RCBRT): when the controller must counter a worst-case disturbance — the adversarial guarantee.

L([T,0],L0)={xRn: βB(t) uU(t), τˉ[T,0], ξ(τˉ)L0}.\mathcal L([-T,0],\mathcal L_0)=\{x\in\mathbb{R}^n:\ \exists\,\beta\in\mathcal B(t)\ \forall\,u\in\mathcal U(t),\ \exists\,\bar\tau\in[-T,0],\ \xi(\bar\tau)\in\mathcal L_0\}.

The strategy structure (β u\exists\beta\ \forall u) encodes the game: disturbance plays a nonanticipative strategy β\beta against control uu.

🎓 Why "Backward" Reachable Sets

  • A continuous backward reachable set is the set of all states from which trajectories can reach a given target set G(0)G(0).

  • Called "backward" to distinguish it from the forward reachable set.

  • To compute it, run the dynamics backward in time from the target set.

For safety, the target is usually the unsafe set, so the backward reachable set is the set of states doomed to become unsafe.

(Mitchell 2004, Reach Sets and the HJ Equation)

🎓 How to Represent the Set/Tube?

Computing a reachable set poses two coupled problems:

  • Represent the set of reachable states.

  • Evolve that set according to the dynamics.

Inset: A sphere as an SDF — LevelSetPy (L. Molu), ACM TOMS 51(2), 2025.

🎓 Implicit Surface Functions

Level-set idea: Represent a set G(t)G(t) as an isosurface of a scalar function ϕ(x,t)\phi(x,t)1:

  • State-space dimension does not matter conceptually: the same ϕ\phi machinery works in any nn.

  • Surfaces automatically merge and separate as the set evolves.

  • Geometric quantities (normals, curvature, distance) are easy to compute from ϕ\phi.

Critical talk juncture: the reachable set is the zero sublevel set of a value function ϕ\phi.

Inset: Set union of two spheres — LevelSetPy (L. Molu), ACM TOMS 51(2), 2025. · 1 Osher & Sethian

🎓 How to Represent the Set/Tube?

For continuous systems x˙=f(x)\dot x=f(x), two families:

  • Lagrangian (forward sets; restricted dynamics/shapes; overapproximation): HyTech, Checkmate, d/dtd/dt, ellipsoidal1.

  • Eulerian (backward sets; general dynamics incl. competitive inputs; implicit set representation).

    • HJ-Gauss belongs here.

1 Kurzhanski

🎓 Canonical Example: Two Identical Vehicles

Classical collision avoidance:

  • Collision if the vehicles come within 5 units of each other.

  • Evader picks turn rate a1|a|\le 1 to avoid;

  • Pursuer picks b1|b|\le 1 to cause collision; fixed equal speeds ve=vp=5v_e=v_p=5.

(Mitchell 2004, Reach Sets and the HJ Equation)

🎓 Canonical Example: Two Identical Vehicles

Classical collision avoidance:

  • Work in relative coordinates with the evader fixed at the origin

  • State is relative position (x,y)(x,y) and relative heading ψ\psi.

NB: Same relative-coordinate pursuit-evasion (PE) game we solve with HJ-Gauss (Part 5); and the pairwise MAPF conflict of Part 6.

(Mitchell 2004, Reach Sets and the HJ Equation)

🎓 Evolve: The Time-Dependent HJ Equation

The set evolves by a (modified) Hamilton-Jacobi PDE:

  • A first-order hyperbolic PDE whose solution can form kinks (discontinuous derivatives).

  • The right weak solution is the viscosity solution1.

(Mitchell 2004, Reach Sets and the HJ Equation); viscosity: Crandall-Evans-Lions; level sets: Osher-Sethian · Dubins BRT: LevelSetPy (L. Molu), ACM TOMS 51(2), 2025 · 1 Crandall, Evans, Lions

🎓 Evolve: The Time-Dependent HJ Equation

The set evolves by a (modified) Hamilton-Jacobi PDE:

  • Level-set methods produce convergent numerical schemes1:

    • Non-oscillatory high-accuracy spatial derivatives;

    • A stable/consistent numerical Hamiltonian; and

    • Total variation-diminishing (TVD) high-order explicit time integration.

This is the classical grid pipeline of Part C. HJ-Gauss tackles this computational cost.

(Mitchell 2004, Reach Sets and the HJ Equation); viscosity: Crandall-Evans-Lions; level sets: Osher-Sethian · Dubins BRT: LevelSetPy (L. Molu), ACM TOMS 51(2), 2025 · 1 Osher, Sethian

🎓 The Game Value and the Optimal-Stopping Fix

  • The terminal-cost differential game

    • Trajectories ξ(;x,t,a,b)\xi(\cdot;x,t,a,b);

    • Value function ϕ(x,t)\phi(x,t) is the viscosity solution of the HJ equation1.

This modified/augmented Hamiltonian is the min{0,}\min\{0,\cdot\} freeze term on our HJI-RCBRT slide.

1 Evans & Souganidis, 1984

🎓 The Game Value and the Optimal-Stopping Fix

  • To stop trajectories from passing through the target G(0)G(0) (so the set is a tube, not just a set),

    • Augment the disturbance input;

    • The augmented HJ equation solves for the reachable set;

    • The augmented Hamiltonian is the modified min{0,H}\min\{0,H\} Hamiltonian.

This modified/augmented Hamiltonian is the min{0,}\min\{0,\cdot\} freeze term on our HJI-RCBRT slide.

🎓 Three Eulerian Approaches (All Equivalent)

The method sits among Eulerian formulations:

  • Static HJ: Minimum time-to-reach1; (dis)continuous implicit representation; yields optimal-input information.

  • Viability kernels: Set-valued analysis for very general dynamics2; discrete implicit representation; overapproximation guarantee.

  • Time-dependent HJ (this method): Continuous solution, optimal-input information throughout the state space, high-order accurate.

All three are theoretically equivalent; HJ-Gauss is a new solver for the time-dependent HJ formulation.

(Mitchell 2004, Reach Sets and the HJ Equation); Falcone/Sethian; Aubin/Saint-Pierre · 1 Falcone; Sethian · 2 Aubin; Saint-Pierre

🎓 Why It Matters: Two Applications

Reachable sets already drive real-world safety systems:

  • Softwalls for aircraft safety: Filter evader's input so the pursuer never enters the reachable (unsafe) set — a certified safety filter (with E. Lee & A. Cataldo).

  • Collision alert for ATC: Flag aircraft pairs whose flight plans intersect and whose relative state enters the collision region.

    • A one-hour Oakland-airspace sample: 1590 pairs, 25 detected conflicts, 2 false alerts.

These are the ancestors of the certified conflict predicate / shield we bring to warehouse MAPF in Part 6.

(Mitchell 2004, Reach Sets and the HJ Equation); Softwalls with E. Lee & A. Cataldo

🎓 Validation: Merz's Analytic Solution

  • For identical PE dynamics, the reachable set admits an analytic solution1.

  • Merz placed the pursuer at the origin; the game is not symmetric.

  • That analytic solution is used to validate the numerical algorithm2 — the same discipline behind our LevelSetPy-vs-Monte-Carlo comparison in Part 5.

Takeaway of the primer: reachability = represent implicitly, evolve in a HJ PDE game, solve for the viscosity solution.

HJ-Gauss keeps this exactly and changes only how the PDE is solved.

(Mitchell 2004, Reach Sets and the HJ Equation); Merz (1972); Mitchell (2001) · 1 Merz, 1972 · 2 Mitchell, 2001

🛡️ Target Set and Zero Level Set

  • The target set at horizon TT is the invariant set

L0(T)={xRn: v(0,x)0},\mathcal L_0(T)=\{x\in\mathbb{R}^n:\ v(0,x)\le 0\},

robustly controlled over the distance-to-target cost g(0,x)g(0,x).

  • Numerically gg is a signed-distance function (x)\ell(x) whose zero sublevel set is the target: negative inside, positive outside.

  • The BRT is recovered as the zero sublevel set of the value function:

x(t)L()    v(t,x)0.x(t)\in\mathcal L(\cdot) \iff v(t,x)\le 0.

🛡️ The Hamilton-Jacobi-Isaacs Value Function

The value function of the RCBRT is the viscosity solution of the variational HJ-Isaacs equation

vt(t,x)+min{0, H(t;x,Dv)}=0,v(0,x)=g(0,x),v_t(t,x) + \min\{0,\ H(t;x,Dv)\} = 0,\qquad v(0,x)=g(0,x),

with the game Hamiltonian

H(t;x,p)=maxuminw p, f(t;x,u,w).H(t;x,p)=\max_{u}\min_{w}\ \langle p,\ f(t;x,u,w)\rangle.

  • The min{0,}\min\{0,\cdot\} freeze term makes the set only grow (a tube, not a set) — states already captured stay captured.

  • For reach-avoid, the variational inequality couples the growth term with the obstacle datum \ell.

This Hamiltonian is positively 1-homogeneous in pp, state-dependent, nonconvex, and sign-changing across the barrier. Those four properties will rule out every convex-duality shortcut.

🛡️ Reach vs Reach-Avoid; Sign & Time Conventions

  • Backward-reachability convention: tt is the backward horizon (time-to-go); the datum is posed at t=0t=0 and the tube grows over (0,T](0,T].

  • Reach (capture) tube: vt+min{0,H}=0v_t+\min\{0,H\}=0.

  • Reach-avoid tube (viscous):

min{vtδ+Hδδ2Δvδ,  g(t,x)(t,x)}0.\min\Big\{v_t^\delta+H^\delta-\tfrac{\delta}{2}\Delta v^\delta,\ \ g(t,x)-\ell(t,x)\Big\}\le 0.

  • Physical time is tphys=Ttt_{\mathrm{phys}}=T-t; the datum is the terminal cost in physical time.

These conventions matter for signs during implementation and for which set (reach vs avoid) a negative value certifies. We adopt the backward-reachability viscosity-solution convention throughout.

🛡️ Why This Is the Right Safety Object

  • Worst-case, not average-case: the RCBRT certifies safety against all admissible disturbances — the guarantee a safety case needs.

  • Geometric and set-valued, not trajectory-valued: it characterizes every unsafe initial condition at once, not one rollout.

  • Composable: the zero level set can be intersected, unioned, and propagated; it plugs into supervisory control and shielding.

  • Certificate-grade: a signed value with an error bound yields a decision — SAFE / UNSAFE / UNDETERMINED (Part 4).

The cost of this rigor is computational: solving the HJ(I) PDE. The rest of the talk is about paying that cost at scale.

Part C

🧱 The Grid Pipeline: LevelSetPy

How Reachable Sets Are Computed Today — and Why It Is O(Mn)O(M^n).

Molu. ACM TOMS 2025 · IEEE CDC 2024

TOMS: ACM Transactions on Mathematical Software · CDC: Conference on Decision and Control.

🧱 The Level-Set Idea1

  • Represent the reachable set implicitly as the zero sublevel set of v(t;x)v(t;x) stored on a Cartesian grid.

  • Evolve the interface by integrating the HJ PDE on the grid:

    • Discretize space (upwinding),

    • Stabilize the Hamiltonian (Lax-Friedrichs),

    • March in time (TVD-RK).

1 Osher-Sethian

🧱 The Level-Set Idea1

  • LevelSetPy (our prior work) reimplements the 2004 MATLAB Level Set Toolbox in NumPy/CuPy, GPU-accelerated and interoperable with modern Python (PyTorch, SciPy, ROS).
MATLAB ToolboxLS (2004) LevelSetPy (2024/25)
CPU-only, single-threaded NumPy + CuPy GPU
Slow for modern problems Fast, batched, portable
No modern-library plug-in ROS/PyTorch/SciPy compatible

LevelSetPy makes grid reachability fast. It does not change the memory scaling — the theme of Part 1.

1 Osher-Sethian

🧱 Implicit Surfaces & Signed-Distance Initialization

  • The target set is initialized as a signed-distance function (x)\ell(x): negative inside, positive outside, =1|\nabla\ell|=1.

  • Stored as an nn-dimensional array over a Cartesian grid: MM points per axis → MnM^n cells.

  • Geometric primitives (spheres, cylinders, half-spaces) and boolean set operations (union/intersection/complement) are implemented as min/max on the level-set field.

  • Example: a capture ball of radius rr is (x)=xr\ell(x)=\|x\|-r; a cylinder ignores the periodic θ\theta axis.

The implicit representation is elegant and closed under set algebra — but it stores the value at every grid node.

🧱 Spatial Derivatives via Upwinding

  • The co-state p=v/xp=\partial v/\partial x must be approximated from grid values with the correct direction of information flow (upwinding) to remain stable at shocks.

  • First-order upwinding: one-sided differences chosen by the sign of the characteristic speed.

  • Left/right approximations Dv, D+vD^-v,\ D^+v feed the numerical Hamiltonian; the choice prevents differencing across a discontinuity.

vx(x,t)v(x,t)x(one-sided, direction by wind).v_x(x,t)\approx \frac{\partial v(x,t)}{\partial x}\quad\text{(one-sided, direction by wind)}.

Naive centered differences ring and go unstable at the barrier; upwinding is the minimal fix, refined next by ENO/WENO.

🧱 ENO: Essentially Non-Oscillatory Reconstruction

  • ENO picks, among candidate stencils, the smoothest one to interpolate the derivative — avoiding stencils that straddle a shock.

  • Orders implemented: ENO2 (2nd), ENO3 (3rd), via upwind_first_eno2.py, upwind_first_eno3.py.

  • Higher order → sharper interface, lower numerical diffusion, at more stencil work per node.

ENO chooses one smoothest stencil. WENO improves on this by blending stencils with adaptive weights.

🧱 WENO5: Weighted ENO Shock Capture

  • WENO51 forms a convex combination of three candidate substencils rather than choosing one, achieving 5th-order accuracy in smooth regions and non-oscillatory capture at shocks.

  • Substencils on the grid index ii:

{i3,,i},{i2,,i+1},{i1,,i+3},\{i-3,\dots,i\},\quad \{i-2,\dots,i+1\},\quad \{i-1,\dots,i+3\},

combined with nonlinear weights that de-emphasize stencils crossing a discontinuity.

  • Implemented in upwind_first_weno5.py.

WENO5 is the workhorse for accurate reachable-set boundaries — and its per-node cost is one reason grid solves are expensive even before the memory wall.

1 Liu, Osher, Chan 1994

🧱 The Lax-Friedrichs Numerical Hamiltonian

  • The analytic H(x,p)H(x,p) is replaced by a monotone numerical Hamiltonian H^(x,p,p+)\hat H(x,p^-,p^+) using the Lax-Friedrichs flux:

H^=H ⁣(x,p+p+2)12α(p+p),\hat H = H\!\Big(x,\tfrac{p^-+p^+}{2}\Big) - \tfrac12\,\alpha\cdot(p^+-p^-),

with dissipation coefficient α=maxH/p\alpha=\max|\partial H/\partial p| over the relevant range (dimension-wise for global LF).

  • Monotonicity guarantees convergence to the viscosity solution.

The artificial dissipation α\alpha is a numerical cousin of the viscosity δ\delta — both stabilize the barrier. HJ-Gauss will trade the grid's LF dissipation for the analytic δ\delta.

🧱 Time Integration: TVD Runge-Kutta

Method of lines + Total-Variation-Diminishing Runge-Kutta1, so the interface does not spuriously oscillate:

  • Forward Euler (1st): vn+1=vn+ΔtL(vn)v^{n+1}=v^n+\Delta t\,L(v^n), L=H^L=-\hat H.

  • TVD-RK2: Euler step to v(1)v^{(1)}, second Euler step, then convex average vn+1=12vn+12v(2)v^{n+1}=\tfrac12 v^n+\tfrac12 v^{(2)}.

  • TVD-RK3: three stages with convex-combination weights (1),(3/4,1/4),(1/3,2/3)(1),(3/4,1/4),(1/3,2/3).

TVD-RK preserves monotonicity of the spatial scheme in time. Each stage is a full grid sweep.

1 Shu-Osher

🧱 The CFL Condition

  • Explicit integration is stable only under a Courant-Friedrichs-Lewy step restriction:

Δt  CFL imaxH/pi/Δxi ,CFL(0,1).\Delta t\ \le\ \frac{\text{CFL}}{\ \sum_i \max|\partial H/\partial p_i|/\Delta x_i\ },\qquad \text{CFL}\in(0,1).

  • Numerical information must not travel more than one grid cell per step.

  • Finer grids (Δx\Delta x\downarrow) force smaller Δt\Delta t → more steps → compounding the cost.

CFL couples spatial and temporal resolution: refining space to sharpen the barrier makes both the memory and the step count worse.

🧱 Package Anatomy & a Worked Example

Module Role
grids, initialconditions Cartesian grids, signed-distance shapes
spatialderivative Upwind first, ENO2/3, WENO5
explicitintegration Lax-Friedrichs Hamiltonians, TVD-RK, CFL
dynamicalsystems Vehicle models (Dubins, rockets)
visualization Isosurface / marching cubes rendering
  • Worked example: the rockets-launch pursuit-evasion game; 2D (x,z)(x,z) slices of the 3D relative-state BRT, evolved backward over (0,T](0,T].

  • Multi-agent verification: flocks/murmurations partitioned into per-flock games.

A clean, tested, GPU-portable stack — the state of practice we now try to move beyond.

🧱 Grid Complexity: The Accounting

  • Memory: O(Mn)O(M^n) — store the value (and gradient) at every node.

  • Time per step: O(Mn)O(M^n) node updates × stencil width × RK stages, under a CFL-bounded step count.

  • GPU acceleration cuts the constant and parallelizes node updates, but the exponent nn is untouched.

n=6, M=100  1012 cells  8 TB per double array.n=6,\ M=100\ \Rightarrow\ 10^{12}\ \text{cells}\ \approx\ 8\ \text{TB per double array}.

This is the wall. Part 1 quantifies it and surveys who has tried to climb it.