NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Serving DNN Models with Multi-Instance GPUs: A Case of the Reconfigurable Machine Scheduling Problem

Cheng Tan, Zhichao Li, Jian Zhang, Yu Cao, Sikai Qi, Zherui Liu, Yibo Zhu, Chuanxiong GuoarXiv 2021

Introduction

Modern deep learning inference often faces a resource mismatch: high-end GPUs like the NVIDIA A100 provide massive compute power that far exceeds the requirements of a single inference request. To maximize hardware utilization, developers typically colocate multiple models on a single GPU. However, traditional software-level sharing lacks strict hardware isolation, leading to unpredictable performance due to "noisy neighbor" effects.

NVIDIA’s Multi-Instance GPU (MIG) technology addresses this by allowing a physical GPU to be partitioned into up to seven independent, hardware-isolated instances. While MIG provides the necessary isolation, it introduces a complex optimization challenge: how to partition these resources to minimize costs while meeting strict Service Level Objectives (SLOs) for latency and throughput. This paper formalizes this challenge as the Reconfigurable Machine Scheduling Problem (RMS) and introduces MIG-serving to solve it.

The Reconfigurable Machine Scheduling Problem

The RMS problem is uniquely difficult due to three primary factors:

  1. Non-linear Performance Scaling: Doubling the compute resources of a GPU instance does not linearly double a model's performance.
  2. Rigid Hardware Constraints: MIG partitioning follows strict rules. For example, a GPU cannot be arbitrarily split; specific combinations of instance sizes (e.g., 4/7 and 3/7) are prohibited by hardware architecture.
  3. Dynamic Reconfiguration: Serving systems must adapt to fluctuating traffic (e.g., day vs. night cycles) without interrupting active services.

The MIG-serving Architecture

To navigate these constraints, the authors developed MIG-serving, a system comprising an intelligent optimizer and a transparent controller.

The Optimizer

The optimizer employs a two-phase strategy to find cost-effective configurations:

  • Phase 1 (Heuristic): A greedy algorithm quickly identifies a valid, high-performing configuration.
  • Phase 2 (Refinement): A combination of a Genetic Algorithm (GA) and Monte Carlo Tree Search (MCTS)—the algorithm famously used in AlphaGo—is used to explore the vast search space of valid GPU partitions. This phase refines the initial solution to maximize hardware efficiency.

The Controller

The controller manages live transitions between configurations using an exchange-and-compact algorithm. By ensuring new instances are fully operational before decommissioning old ones, the system maintains "transparent" transitions that do not violate SLOs during reconfiguration.

Model Scaling Insights

A key contribution of this work is the extensive profiling of 49 different DNN models across various MIG instance sizes and batch sizes. The study revealed that models exhibit distinct "preferences" for resource scaling.

Throughput and latency variations for different GPU partitioning strategies across two model types.

As shown in the profiling data, models like DenseNet121 are "sub-linear," meaning they achieve higher aggregate throughput when deployed on multiple small instances rather than one large instance. Conversely, models like XLNet are "super-linear," benefiting significantly from the increased compute and memory bandwidth of larger partitions. This diversity proves that a static, uniform partitioning strategy is inefficient.

Key Results

The evaluation of MIG-serving on a cluster of 24 A100 GPUs using real-world production traces demonstrated significant improvements over baseline methods.

Comparison of normalized cost per request across different GPU configurations.
  • Cost Efficiency: MIG-serving reduced hardware costs by up to 40% compared to using A100 GPUs as single, unpartitioned units.
  • Optimization Accuracy: The MCTS-based optimizer consistently found solutions within 3% of the theoretical lower bound.
  • Reliability: The system maintained a >95% SLO satisfaction rate, even during complex workload transitions, proving its readiness for production environments.

Conclusion

MIG-serving demonstrates that treating GPU partitioning as a reconfigurable scheduling problem can unlock massive efficiency gains in deep learning infrastructure. By accounting for the unique scaling behaviors of different models and navigating hardware constraints through advanced search algorithms, the system provides a robust framework for cost-effective, high-performance DNN serving. Future work may extend this approach to distributed training and other reconfigurable hardware like FPGAs.

Summary updated

BibTeX
@misc{tan2021serving,
  author = {Cheng Tan and Zhichao Li and Jian Zhang and Yu Cao and Sikai Qi and Zherui Liu and Yibo Zhu and Chuanxiong Guo},
  title = {{Serving DNN Models with Multi-Instance GPUs: A Case of the Reconfigurable Machine Scheduling Problem}},
  year = {2021},
  eprint = {2109.11067},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.11067},
}
Figure