Automated Runtime-Aware Scheduling for Multi-Tenant DNN Inference on GPU

Fuxun Yu, Shawn Bray, Di Wang, Longfei Shangguan, Xulong Tang, Chenchen Liu, Xiang Chen

Abstract

Multi-tenant deep neural network (DNN) inference is critical for modern AI applications, yet current GPU scheduling methods often suffer from either hardware under-utilization or severe resource contention. This paper presents an automated framework that optimizes multi-tenant execution by interleaving operators from different models using a custom intermediate representation and ML-based search. By balancing resource utilization, the system achieves a 1.3x to 1.7x speedup over standard industry runtimes like NVIDIA’s Multi-Stream and cuDNN.

Introduction: The Multi-Tenancy Challenge

Modern AI environments, from autonomous vehicles to cloud data centers, frequently run multiple deep learning models simultaneously. A self-driving car, for instance, might concurrently execute models for object detection, lane tracking, and semantic segmentation. This scenario is known as multi-tenant DNN inference.

Currently, GPUs handle these workloads in two sub-optimal ways:

  1. Sequential Execution: Models run one after another, leading to continuous under-utilization because individual operators often cannot saturate the massive parallel hardware of a modern GPU.
  2. Naive Parallel Execution: Models run concurrently via tools like NVIDIA Multi-Stream, but without coordination. This often results in heavy resource contention early in the execution timeline and under-utilization later as shorter models finish.
Comparison of scheduling strategies: (a) Sequential, (b) Naive Parallel, and (c) the proposed balanced approach.

The authors aim to bridge the gap between high-level model graphs and low-level hardware execution to create a "balanced" schedule that maximizes throughput and minimizes latency.

Proposed Methodology

The researchers developed a resource-aware scheduling framework that operates at the Runtime Optimization layer of the deep learning stack.

The deep learning optimization stack, highlighting where Runtime Optimization fits between Graph and Operator levels.

The framework consists of three core components:

  • Unified Intermediate Representation (IR): DNNs are represented as operator sequences. The framework introduces "pointers"—synchronization barriers—to split these sequences into stages, allowing precise control over concurrency levels.
  • Automated ML-Based Search: To navigate the complex search space of possible schedules, the authors utilized Random Search and Coordinate Descent algorithms. These algorithms use real-world GPU profiling as a cost model to identify the most efficient pointer configurations.
  • Breadth-First Search (BFS) Issuing: Unlike standard schedulers that often use Depth-First Search (DFS) logic (which can cause stream stalls), this framework optimizes scheduler logic to issue operators in a BFS manner. This ensures fair priority across all model streams and reduces overhead stalls by over 50%.

Evaluation and Results

The framework was evaluated using a "Model Zoo" including AlexNet, VGG16, and various ResNet architectures (18, 34, 50, 101) on NVIDIA Titan V (Volta) and P6000 (Pascal) GPUs.

Key Findings:

  • Significant Speedups: The framework consistently achieved 1.3x to 1.7x speedup compared to sequential execution (cuDNN-Seq) and significantly outperformed native parallel execution (Stream-Parallel).
  • Handling Structural Divergence: In scenarios mixing models of vastly different depths (e.g., AlexNet and ResNet101), the framework achieved up to 1.6x speedup by effectively interleaving operators to fill gaps left by shorter models.
  • Search Efficiency: Despite the massive search space, the Coordinate Descent approach identifies near-optimal schedules in approximately 2 minutes, making it viable for real-world deployment.
  • Hardware Generality: Performance gains were consistent across different GPU architectures, demonstrating that the approach is not overfitted to specific hardware.

Conclusion

By moving beyond black-box hardware scheduling and implementing a runtime-aware, automated interleaving strategy, this framework significantly improves the efficiency of multi-tenant DNN inference. While currently focused on static inference workloads, future work may extend these fine-grained scheduling techniques to dynamic environments and multi-tenant training scenarios.

Summary updated

BibTeX
@inproceedings{yu2021automated,
  author = {Fuxun Yu and Shawn Bray and Di Wang and Longfei Shangguan and Xulong Tang and Chenchen Liu and Xiang Chen},
  title = {{Automated Runtime-Aware Scheduling for Multi-Tenant DNN Inference on GPU}},
  booktitle = {ICCAD},
  year = {2021},
  url = {https://openreview.net/forum?id=jthIvk9Rkiu},
}
Figure