Manuscript Offprint

arXiv:2610.24349

FlashRT-PAI: Fast Kernels Are Not Fast Pipelines for Physical AI Inference

Liang Su, David Chen, Jason Li, Kevin Guo, Teresa Lv

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Vision-language-action (VLA), video-action (VA), and world action models (WAMs) form the backbone of modern physical AI systems, yet their real-time single-batch inference remains a defining bottleneck. Latency is dominated not by individual kernel computation, but by system-level overhead: thousands of short kernel launches, intermediate data movement across operator boundaries, and redundant recomputation across consecutive decisions. General-purpose graph compilers cannot address these costs, as they optimize individual calls in isolation and lack visibility into cross-call state semantics and global pipeline structure.

We present FLASHRT-PAI, a low-latency inference engine built around model-hardware pipeline co-design rather than isolated kernel optimization. FLASHRT-PAI combines three core mechanisms: deep kernel fusion with launch overlap eliminates inter-operator boundaries and launch gaps; an execution contract formalizes the pipeline's stage DAG, update rates, and named buffers to enable cross-decision state reuse and selective refresh; and execution-state capsules enable fast snapshot, restore, and fork of persistent pipeline state. The system also supports drop-in acceleration of unmodified PyTorch models via parity- and latency-gated kernel replacement.

Evaluation covers six policies on RTX 5090 and four on Jetson AGX Thor. At matched 16-bit precision, FLASHRT-PAI is 1.3–3.7× faster than official compiled paths. Combining pipeline co-design with reduced precision delivers 3.38–12.66× speedup over official eager implementations. In LIBERO-10, four-bit π0.5\pi_{0.5} achieves 94.04% success on Thor and 93.32% on RTX 5090, compared with 92.4% for the measured official FP16 reference. FLASHRT-PAI is open source, distributed via Hugging Face Kernel Hub, and its opt-in π0.5\pi_{0.5} kernels have been adopted into the LeRobot framework.

1 INTRODUCTION

Physical AI places learned policies in robot control loops: VLAs map images and instructions to actions (Physical Intelligence et al., 2025; NVIDIA et al., 2025), VAs generate video and actions autoregressively (Li et al., 2026a), and WAMs jointly denoise future video and actions (Black Forest Labs, 2026; NVIDIA et al., 2026; Bi et al., 2026). Each call returns an action chunk; its inference budget depends on the host's observation and action-update schedule. We study this inference component on edge and workstation GPUs, with task-level checks in LIBERO simulation.

Growing policies such as π0.7\pi_{0.7} and FLUX 3 Action have 5–7B parameters (Physical Intelligence et al., 2026; Black Forest Labs, 2026). On Thor, official π0.5\pi_{0.5} takes 222.64 ms eager and 129.17 ms compiled; FLUX 3 Action takes 1.35 s on RTX 5090 (Table 3). Reducing latency must also preserve action fidelity, since numerical drift can change robot behavior.

Closing this gap takes more than faster individual kernels. We present FLASHRT-PAI, an inference engine for low-latency physical AI, guided by a simple principle: fast kernels are necessary but not sufficient (Dehghani et al., 2021). For each model–hardware pipeline, FLASHRT-PAI decides what can be fused, overlapped, or reused across decisions; an execution contract makes those choices executable. Four limitations motivate these choices.

First, small kernels repeatedly materialize intermediates; deep kernel fusion removes selected boundaries. At batch size one, separate normalization, residual, activation, and quantization kernels between general matrix multiplications (GEMMs) can write values that the next kernel immediately reads. TensorRT (NVIDIA, 2026g), torch.compile (Ansel et al., 2024), and TVM (Chen et al., 2018) already fuse common patterns, but some boundaries depend on deployment-specific facts, such as a validated quantization scale and the next GEMM's input layout. FLASHRT-PAI uses these facts to hand-write the producer–consumer path, folding quantization into the producer where precision and hardware permit. In π0.5\pi_{0.5} on

Preliminary work. Under review by the Machine Learning and Systems (MLSys) Conference. Do not distribute.

Thor, its FP8 decoder layer uses 12 kernels versus 20 for torch.compile+FP8 (§3.2).

Second, remaining kernel dependencies need not serialize all work; launch overlap hides part of their cost. A successor can load weights before it needs its predecessor's output, but an ordinary graph dependency waits for the predecessor to finish. At eligible boundaries, FLASHRT-PAI marks where the successor may start and where it must wait, then applies CUDA's Programmatic Dependent Launch (PDL) (NVIDIA, 2026b). PDL is CUDA's mechanism; FLASHRT-PAI supplies the safe kernel points and pipeline order. On top of the already fused π0.5\pi_{0.5} NVFP4 path, it further shortens each decoder layer on Thor (§3.3).

Third, values needed by later decisions are often recomputed; frozen execution state keeps them valid and reusable. In the official π0.5\pi_{0.5} implementation, step-dependent conditioning is rebuilt on every call; LingBot-VA similarly recomputes cross-attention keys and values derived from an unchanged instruction. CUDA Graph replay gives stable addresses but not the application's rules for when such values become stale. FLASHRT-PAI names its fixed and persistent buffers, and records each one's owner and refresh rule in the execution contract. It can replay captured stages without per-kernel host dispatch and reuse prompt- or step-dependent values across decisions. These named buffers also form an execution-state capsule that can be copied to snapshot, restore, or fork a session (§3.4).

Fourth, optimized kernels are hard to adopt; checked replacements let an existing host use them selectively. Fast TensorRT deployments for policies such as π0.5\pi_{0.5} and GR00T require model-specific integration (NVIDIA, 2026f;d), and an existing PyTorch host needs a way to check a replacement before using it. FLASHRT-PAI packages each replaceable region with a PyTorch reference and its kernels; the host keeps its own path unless the replacement matches the reference and lowers end-to-end latency (§5). FLASHRT-PAI kernels are distributed through the Hugging Face Kernel Hub, and LeRobot adopted an opt-in π0.5\pi_{0.5} kernel integration (LeRobot contributors, 2026).

We evaluate FLASHRT-PAI on a Jetson AGX Thor for robot-side inference and an RTX 5090 for workstation inference. Latency and numerical fidelity use fixed or recorded inputs offline; closed-loop task success is evaluated for π0.5\pi_{0.5} and LingBot-VA in LIBERO simulation. We compare official implementations, torch.compile, and available TensorRT deployments ( §4§4), and report public adoption ( §6§6).

References (43)