Introduction
In modern AI deployments, models are rarely static. Continuous Learning (CL) has become essential, allowing models to adapt to "data drift" by retraining on fresh data while simultaneously serving live inference requests. To minimize the overhead of data movement, it is ideal to co-locate retraining and inference tasks on the same GPU. However, this creates a significant resource contention problem: prioritizing retraining leads to high accuracy but missed latency deadlines, while prioritizing inference ensures responsiveness at the cost of model staleness.
The Resource Tug-of-War
Existing solutions for GPU sharing, such as NVIDIA’s Multi-Process Service (MPS), allow multiple tasks to run concurrently but often suffer from hardware-level interference, leading to unpredictable performance. Conversely, NVIDIA’s Multi-Instance GPU (MIG) technology provides strict hardware isolation but is traditionally static; reconfiguring MIG partitions on the fly is slow and complex, often resulting in significant downtime.
As shown in the comparison below, existing state-of-the-art schedulers often fail to address the specific needs of continuous learning, particularly the dynamic balance between inference dynamics and retraining benefits.
MIGRator: Dynamic Resource Optimization
To address these challenges, researchers developed MIGRator, a runtime system that treats GPU resource allocation as a dynamic optimization problem. MIGRator introduces several key innovations:
- Dynamic MIG Reconfiguration: Unlike static partitioning, MIGRator reallocates Graphics Processing Clusters (GPCs) at a fine-grained, per-second granularity to respond to bursts in inference traffic or critical retraining phases.
- ILP Formulation: The system utilizes Integer Linear Programming (ILP) to mathematically determine the optimal resource balance across multiple tenants, avoiding the slow exhaustive searches of previous schedulers.
- The "Goodput" Metric: MIGRator optimizes for a novel metric called "Goodput," defined as the number of inference requests that are both timely (meeting Service-Level Objectives) and accurate (utilizing the most recently updated model).
Mitigating Reconfiguration Overhead
A primary hurdle for dynamic MIG use is the reconfiguration latency. Characterizing this overhead reveals that library loading and model initialization are the primary bottlenecks, often taking several seconds.
To combat this, MIGRator employs a pre-initialization technique. By identifying unused resources and beginning reconfiguration in the background before they are officially required, MIGRator can hide the majority of the latency associated with switching partitions.
Performance Evaluation
MIGRator was evaluated using diverse vision and NLP workloads (including ResNet50, ConvNeXt, and BERT) against real-world inference traces from Microsoft Azure and Alibaba Cloud.
Key results include:
- Goodput Improvement: MIGRator outperformed existing MPS-based schedulers like Ekya and Astraea by 17% to 21%.
- Overhead Reduction: The pre-initialization strategy reduced MIG reconfiguration overhead by 83%.
- Efficiency: The ILP solver is highly efficient, with optimization overhead accounting for less than 1% of the total retraining window.
Conclusion
MIGRator demonstrates that hardware-level isolation via MIG can be made dynamic enough for the fast-paced requirements of continuous learning. By balancing the immediate needs of inference with the long-term benefits of model accuracy through an ILP-based approach, MIGRator provides a robust framework for multi-tenant GPU environments. Future work aims to extend these single-GPU optimizations to large-scale distributed clusters.
Summary updated