Dynamic event voxelization into static CUDA Graph replay and EPE vs. vorticity trade-offs

Where to Split the CUDA Graph Boundary for Raw Events

Asynchronous event packets ei=(xi,yi,ti,pi)e_i = (x_i, y_i, t_i, p_i) vary wildly in length (242k–458k events per 20 ms pair in our held-out clips), preventing end-to-end static CUDA Graph capture over variable-length lists. Splitting the pipeline at the fixed-shape voxel grid boundary gives deterministic sub-2ms latency:

Within each 10 ms window, timestamps map to normalized bin coordinates z=(B−1)(t−t0)/Δtz = (B-1)(t - t_0)/\Delta t (B=5B = 5, k=⌊z⌋,f=z−kk = \lfloor z \rfloor, f = z - k), and a flattened scatter-add kernel populates a static 1×5×256×2561 \times 5 \times 256 \times 256 signed voxel tensor:

Vk(y,x)+=p(1−f),Vmin⁡(k+1,B−1)(y,x)+=pfV_k(y, x) \mathrel{+}= p(1 - f), \qquad V_{\min(k+1, B-1)}(y, x) \mathrel{+}= p f

Copying into preallocated input buffers lets a captured CUDA Graph replay LiteERAFT (1/8-scale 4D correlation + 2 separable ConvGRU updates + convex upsampling) with zero kernel-launch overhead on an RTX 4060 Ti (batch = 1):

Profiling Scope (256×256, B=5, K=2) Median Synced Wall Time Throughput
Pre-encoded voxel pair →\to Eager PyTorch 6.393 ms 156.4 FPS
Pre-encoded voxel pair →\to CUDA Graph replay 0.710 ms 1,408 FPS
GPU-resident raw events →\to voxelization + Graph flow 1.213 ms (P95 1.70 ms) 824.5 FPS

High-Speed Motion Blur: 46.5% Lower Endpoint Error than Frames

Synthesizing events and shutter-integrated frames from the exact same continuous irradiance trajectory under 3× fast motion and 100 Hz/px Poisson background noise, LiteERAFT on signed event voxels achieved 6.35 px EPE, beating the identical recurrent correlation architecture on blurred frames (11.86 px EPE, a 46.5% error reduction).

Why Vorticity Reverses the Leaderboard

Converting displacement D=(Dx,Dy)D = (D_x, D_y) into discrete vorticity via central differences flips the ranking between supervised correlation and label-free Contrast Maximization (CMax):

ω^ij=Dy(i,j+1)−Dy(i,j−1)−Dx(i+1,j)+Dx(i−1,j)2Δt\widehat{\omega}_{ij} = \frac{D_y(i, j+1) - D_y(i, j-1) - D_x(i+1, j) + D_x(i-1, j)}{2\Delta t}
  • On multi-layer occlusions, LiteERAFT wins decisively (1.68 px vs. CMax 4.94 px EPE);
  • On 12 continuous Lamb–Oseen / Rankine vortices, offline CMax (861 ms/clip, warping events to maximize multi-reference focus with TV regularization) cuts instantaneous vorticity MAE to 5.55 s⁻¹, outperforming LiteERAFT (16.43 s⁻¹).

Pointwise L1/L2 displacement supervision tolerates tiny high-frequency pixel-to-pixel jitter that barely moves global EPE, yet dividing spatial differences by Δt=10 ms\Delta t = 10\text{ ms} magnifies that jitter into large curl noise. Real-time obstacle perception favors LiteERAFT; fluid-gradient diagnostics require derivative-aware regularization.

Measured datasets & code: CUDA latency breakdown · Per-condition EPE summary · Vortex curl errors · MIT core source ZIP