Abstract
Scheduling Distributed Deep Learning (DDL) jobs in modern GPU clusters is increasingly complex due to mixed parallelism strategies and unpredictable job durations. This paper introduces A-SRPT, an online scheduling algorithm that reduces job completion times by up to 92%. A-SRPT utilizes a graph-based GPU mapping strategy called Heavy-Edge and a Random Forest model for duration prediction. By mapping the complex cluster-wide scheduling problem onto a simplified "virtual single machine," A-SRPT makes near-optimal decisions in real-time.
Introduction
The rise of large-scale models has shifted DDL from simple data parallelism to Mixed Parallelisms (DDLwMP), combining data, model, and pipeline parallelism. This shift introduces three primary challenges for cluster scheduling:
- Placement Sensitivity: Training speed varies significantly based on whether model components share high-bandwidth interconnects (NVLink) or slower network interfaces (NIC).
- Unpredictability: Job durations are often unknown as users may terminate training early based on convergence.
- Non-Preemption Overhead: The high cost of pausing and migrating large model states makes traditional preemptive scheduling impractical.
Methods: The A-SRPT Algorithm
The proposed Adaptive Shortest-Remaining-Processing-Time-First (A-SRPT) algorithm addresses these challenges through a three-pillared approach:
Heavy-Edge GPU Mapping
A-SRPT models each DDL job as a graph where nodes represent model stages and edges represent communication. The "Heavy-Edge" heuristic partitions this graph to ensure high-communication components are co-located on the same physical server, maximizing the use of intra-server bandwidth.
Random Forest Prediction
Leveraging the observation that ~65% of DDL jobs are recurrent, the authors employ a Random Forest regressor. By grouping jobs based on metadata (user ID, script, dataset), the model predicts total training iterations from historical data.
The Virtual Single Machine Abstraction
The mathematical core of A-SRPT involves simplifying the multi-GPU scheduling problem. The algorithm transforms the complex cluster state into a hypothetical "single-machine" instance.
By scaling job workloads and cluster capacity, the problem becomes a 1D scheduling task where the Shortest Remaining Processing Time (SRPT) principle—theoretically optimal for single machines—can be applied to guide real-world placement.
Experimental Setup
The study evaluates A-SRPT using a two-month workload trace from a production cluster of 6,000 GPUs (Alibaba/MLaaS). The trace includes over 750,000 jobs. To supplement the trace, the authors profiled nine representative DNN models, including VGG19, ResNet152, BERT-large, and GPT-175B, to simulate realistic communication and computation patterns.
Key Results
A-SRPT demonstrates significant performance gains over standard baselines like Shortest Predicted Job First (SPJF) and various Weighted Cost-based Scheduling (WCS) methods.
- Efficiency Gains: In real-world testbed experiments with NVIDIA H100 GPUs, A-SRPT reduced total job completion time by up to 44%. In large-scale simulations (2,000 GPUs), completion times were reduced by 31% to 92%.
- Prediction Robustness: The Random Forest model achieved perfect iteration prediction for ~60% of jobs. Even with imperfect predictions, A-SRPT remained robust, consistently outperforming non-predictive alternatives.
- Computational Speed: The Heavy-Edge mapping is 1,500x faster than Integer Linear Programming (ILP) solutions, enabling real-time online scheduling.
Discussion and Future Work
A-SRPT introduces "strategic delaying" for communication-heavy jobs, waiting for optimal resources rather than settling for fragmented, slow allocations. While the current model excels with asynchronous pipeline parallelism, future work will explore its application to synchronous pipelines and emerging strategies like Tensor and Expert Parallelism. Additionally, addressing "cold start" scenarios for entirely new jobs remains an area for further optimization.
Summary updated