[Paper Review] The OoO VLIW JIT Compiler for GPU Inference
This paper proposes an Out-of-Order VLIW-inspired Just-in-Time (JIT) compiler for GPU inference that coalesces and reorders heterogeneous kernels from multiple execution streams at runtime to maximize throughput while meeting strict latency SLOs. By dynamically packing kernels into superkernels and leveraging inter-stream parallelism, the approach achieves up to 7.7x higher throughput than time-slicing, significantly improving GPU utilization in interactive inference workloads.
Current trends in Machine Learning~(ML) inference on hardware accelerated devices (e.g., GPUs, TPUs) point to alarmingly low utilization. As ML inference is increasingly time-bounded by tight latency SLOs, increasing data parallelism is not an option. The need for better efficiency motivates GPU multiplexing. Furthermore, existing GPU programming abstractions force programmers to micro-manage GPU resources in an early-binding, context-free fashion. We propose a VLIW-inspired Out-of-Order (OoO) Just-in-Time (JIT) compiler that coalesces and reorders execution kernels at runtime for throughput-optimal device utilization while satisfying latency SLOs. We quantify the inefficiencies of space-only and time-only multiplexing alternatives and demonstrate an achievable 7.7x opportunity gap through spatial coalescing.
Motivation & Objective
- To address the critical problem of poor GPU utilization in interactive DNN inference workloads, where low parallelism and tight latency SLOs limit efficiency.
- To overcome the limitations of static, ahead-of-time compilers like TensorRT, which fail to adapt to dynamic, bursty inference workloads.
- To enable dynamic, runtime coalescing and reordering of heterogeneous kernels across multiple execution streams to maximize GPU compute and memory utilization.
- To explore a VLIW-inspired compilation model that shifts complexity from hardware to the JIT compiler, enabling efficient space-time scheduling on GPUs.
- To demonstrate that dynamic kernel packing can close the 7.7x efficiency gap between naive time-slicing and optimal space-time utilization.
Proposed method
- The JIT compiler operates at runtime on multiple independent inference streams, coalescing small, independent kernels into larger superkernels to improve memory and compute utilization.
- It uses a dynamic, out-of-order scheduling strategy to reorder kernel execution across streams, prioritizing those that can meet latency SLOs while maximizing throughput.
- The system leverages auto-tuning to pre-compute optimal kernel configurations (e.g., blocking parameters) for common kernel clusters, reducing runtime compilation overhead.
- Kernel coalescing is guided by clustering of matrix-multiply operations by shape, minimizing padding and enabling efficient batched execution via cuBLAS-like kernels.
- The compiler dynamically delays or reorders kernels that cannot yet be coalesced, overlapping waiting time with computation from other streams.
- It supports multi-tenant GPU environments by monitoring per-kernel latency to enable runtime resource reallocation and workload isolation.
Experimental results
Research questions
- RQ1Can dynamic, runtime kernel coalescing and reordering significantly improve GPU utilization in interactive DNN inference under strict latency SLOs?
- RQ2What is the achievable performance gap between naive time-slicing and optimal space-time scheduling in GPU inference?
- RQ3How effective is a VLIW-inspired JIT compiler in coalescing heterogeneous DNN kernels across multiple execution streams?
- RQ4Can auto-tuning of kernel configurations improve the efficiency of dynamic superkernel generation at runtime?
- RQ5To what extent can dynamic JIT compilation enable better throughput and resource utilization compared to static, ahead-of-time compilation?
Key findings
- The proposed OoO VLIW JIT compiler achieves a geometric mean throughput speedup of 7.71× over time-slicing and 3.23× over Hyper-Q spatial multiplexing for ResNet-18 intermediate convolutions.
- Coalescing matrix-vector multiplications in RNN/LSTM inference yields a 2.48× speedup over time-slicing, demonstrating broad applicability across DNN types.
- Auto-tuning of blocking configurations leads to a 1.25× maximum throughput gain in co-tenancy-optimized kernels, even with a 20% performance degradation in isolation.
- The compiler reduces GPU utilization bottlenecks by overlapping idle time from kernel coalescing with active computation from other streams.
- The approach enables dynamic resource reallocation between tenants by monitoring per-kernel latency, improving predictability and isolation.
- The study identifies a 7.7× opportunity gap in GPU utilization between current time-slicing approaches and the theoretical optimal space-time schedule.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.