Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Space-Time Scheduling for GPU Inference

Paras Jain, Xiangxi Mo|arXiv (Cornell University)|Dec 31, 2018
Advanced Neural Network ApplicationsComputer Science14 references27 citations
TL;DR

This paper proposes a dynamic space-time scheduler that fuses inference kernels across multiple DNN models to improve GPU utilization in multi-tenant online inference. By batching diverse model kernels into a single super-kernel invocation, it achieves up to 7.73x higher floating-point throughput than time-only multiplexing and 3.23x over space-only, while ensuring latency predictability and performance isolation.

ABSTRACT

Serving deep neural networks in latency critical interactive settings often requires GPU acceleration. However, the small batch sizes typical in online inference results in poor GPU utilization, a potential performance gap which GPU resource sharing can address. In this paper, we explore several techniques to leverage both temporal and spatial multiplexing to improve GPU utilization for deep learning inference workloads. We evaluate the performance trade-offs of each approach with respect to resource-efficiency, latency predictability, and isolation when compared with conventional batched inference. Our experimental analysis suggests up to a 5x potential for improved utilization through the exploration of more advanced spatial and temporal multiplexing strategies. Our preliminary prototype of a dynamic space-time scheduler demonstrates a 3.23x floating-point throughput increase over space-only multiplexing and a 7.73x increase over time-only multiplexing for convolutions, while also providing better isolation and latency predictability.

Motivation & Objective

  • Address the critical problem of low GPU utilization in online DNN inference due to small batch sizes and variable workloads.
  • Overcome the limitations of existing space-only or time-only GPU multiplexing, which compromise resource efficiency, predictability, or isolation.
  • Design a scheduler that enables efficient, predictable, and isolated multi-tenancy for GPU-accelerated inference workloads.
  • Evaluate the trade-offs between resource efficiency, latency predictability, and isolation in a real-world multi-tenant GPU inference setting.

Proposed method

  • Implement a software-based dynamic scheduler that batches multiple kernel invocations from different DNN models into a single super-kernel launch.
  • Use inter-model batching to fuse SGEMM operations from different models with varying input sizes into a single batched kernel using the MAGMA BLAS library.
  • Leverage NVIDIA's cuBLAS batched GEMM operations for fixed-size problems and extend to variable-sized batches for heterogeneous models.
  • Schedule workloads based on per-model Service Level Objectives (SLOs), enabling dynamic batching decisions to balance latency and throughput.
  • Apply kernel fusion across disjoint DNN computation graphs to maximize GPU resource utilization during each GPU time slice.
  • Measure performance using representative DNN layers (e.g., ResNet-18 conv2_2) and matrix multiplication types (RNN, square, conv layers) under controlled conditions.

Experimental results

Research questions

  • RQ1Can dynamic space-time multiplexing improve GPU utilization in online DNN inference beyond what is achievable with space-only or time-only scheduling?
  • RQ2How does inter-model kernel batching affect latency predictability and performance isolation in multi-tenant GPU inference?
  • RQ3What is the throughput improvement of a dynamic space-time scheduler compared to conventional batched inference and existing multiplexing strategies?
  • RQ4To what extent can kernel fusion across models with different input sizes and weights improve resource efficiency on modern GPUs?
  • RQ5Does the proposed scheduler maintain predictable performance under variable and stochastic query workloads typical of interactive inference systems?

Key findings

  • The dynamic space-time scheduler achieves a 3.23x increase in floating-point throughput over space-only multiplexing and a 7.73x increase over time-only multiplexing for ResNet-18 convolution layers.
  • For matrix-multiplication workloads, the scheduler achieves a 4.93x throughput improvement over the next best approach (space-only) on average across 2–120 concurrent models.
  • Inter-model kernel batching via super-kernels enables better spatial and temporal multiplexing, reducing idle GPU resources and improving utilization.
  • The scheduler maintains better latency predictability and performance isolation than conventional approaches, which suffer from high variability and interference.
  • Throughput scaling is significantly improved: for example, 2.48x speedup on RNN matrix-vector operations and 3.23x on ResNet-18 conv2_2 layers compared to space-only multiplexing.
  • The approach demonstrates a substantial performance gap between traditional batched inference and advanced multiplexing, indicating untapped potential for GPU utilization in inference workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.