Resource Allocation and Workload Scheduling for Large-Scale Distributed Deep Learning: A Survey

Feng Liang, Zhen Zhang, Haifeng Lu, Chengming Li, Victor C. M. Leung, Yanyi Guo, Xiping HuarXiv 2024

Abstract

With rapidly increasing distributed deep learning workloads in large-scale data centers, efficient distributed deep learning framework strategies for resource allocation and workload scheduling have become the key to high-performance deep learning. The large-scale environment with large volumes of datasets, models, and computational and communication resources raises various unique challenges for resource allocation and workload scheduling in distributed deep learning, such as scheduling complexity, resource and workload heterogeneity, and fault tolerance. To uncover these challenges and corresponding solutions, this survey reviews the literature, mainly from 2019 to 2024, on efficient resource allocation and workload scheduling strategies for large-scale distributed DL. We explore these strategies by focusing on various resource types, scheduling granularity levels, and performance goals during distributed training and inference processes. We highlight critical challenges for each topic and discuss key insights of existing technologies. To illustrate practical large-scale resource allocation and workload scheduling in real distributed deep learning scenarios, we use a case study of training large language models. This survey aims to encourage computer science, artificial intelligence, and communications researchers to understand recent advances and explore future research directions for efficient framework strategies for large-scale distributed deep learning.

Introduction

Deep learning has entered the era of "extreme scale." Training state-of-the-art models, such as Large Language Models (LLMs) with hundreds of billions of parameters, now requires hundreds of nodes and thousands of GPUs. However, simply increasing hardware capacity often leads to diminishing returns. The primary bottlenecks in modern AI infrastructure are no longer just raw GPU power, but the orchestration of thousands of devices to work in harmony.

Common deep learning architectures and abbreviations used in the survey.

This survey addresses four critical challenges in large-scale environments:

  1. Resource Underutilization: Production clusters often see GPU utilization below 50% due to rigid allocation policies.
  2. Communication Bottlenecks: The time spent synchronizing gradients across the network often exceeds the time spent on actual computation.
  3. Heterogeneity: Real-world data centers mix different generations of hardware, making uniform scheduling inefficient.
  4. Complexity: Scheduling must occur at multiple levels, from high-level job placement to low-level network packet priority.

Taxonomy of Resource Management

The paper provides a systematic roadmap for managing these computational and communication demands by categorizing strategies into two primary pillars: Resource Allocation and Workload Scheduling.

Taxonomy of resource allocation and workload scheduling strategies for distributed deep learning.

Resource Allocation

This pillar focuses on how physical hardware is divided among tasks. Key strategies include:

  • GPU Sharing: Moving from exclusive access to spatial partitioning (dividing a single GPU), temporal sharing (time-slicing), and hybrid approaches.
  • Network Bandwidth Sharing: Allocating network "lanes" at the job, gradient block, or "coflow" level to ensure critical data transfers are not delayed.

Workload Scheduling

This pillar focuses on the ordering and placement of tasks across the cluster. The survey analyzes scheduling at three granularity levels:

  • Job Level: Prioritizing and placing entire training runs.
  • Pipeline Level: Managing micro-batches within a model to maximize throughput.
  • Network Flow Level: Optimizing packet delivery to reduce communication latency.

Key Insights and Strategies

  • The "3D Parallelism" Necessity: For massive models like LLMs, the paper highlights that a single parallelism mode is insufficient. Successful systems combine Data, Model, and Pipeline parallelism simultaneously to maximize throughput.
  • Communication-Computation Overlap: A major goal of modern scheduling is making the network "invisible." Techniques like gradient packing and look-ahead scheduling ensure that GPUs are never idle while waiting for network transfers.
  • Elastic Training: To combat waste in static clusters, the survey emphasizes "Elastic Training," where jobs can dynamically expand to use idle GPUs or shrink when demand spikes without losing progress.
  • Network-Awareness: Modern approaches (e.g., CASSINI or Geryon) treat the network as a first-class resource, scheduling data transfers with the same precision as GPU kernels.

Performance and Results

The survey summarizes performance gains across over 150 referenced works. Notable highlights include:

  • Efficiency Gains: Systems like Gandiva and AntMan have demonstrated improvements in cluster-wide GPU utilization by 2x or more compared to traditional FIFO scheduling.
  • Communication Reduction: Pipeline parallelism techniques, such as GPipe, can reduce communication volume by up to 300x in specific large-model scenarios compared to standard data parallelism.
  • Reduced Latency: Advanced GPU sharing techniques like PipeSwitch have reduced the overhead of switching between different AI models on a single GPU to the millisecond scale, enabling highly responsive cloud inference.

Future Research Directions

The authors identify several "frontiers" that remain open for research:

  1. Multi-Datacenter Learning: Training models across geographically distant data centers where the network is the public internet.
  2. Resilience at Scale: Developing fault-tolerant scheduling that can reroute tasks instantly in the event of hardware failure, which is a daily occurrence in 10,000-GPU clusters.
  3. Green AI: Integrating energy pricing and carbon footprints into scheduling logic to reduce the environmental impact of AI.
  4. Algorithmic Orchestration: Creating schedulers that are "aware" of specific model mathematics (e.g., sparsity) to make better placement decisions.

Summary updated

BibTeX
@misc{liang2024resource,
  author = {Feng Liang and Zhen Zhang and Haifeng Lu and Chengming Li and Victor C. M. Leung and Yanyi Guo and Xiping Hu},
  title = {{Resource Allocation and Workload Scheduling for Large-Scale Distributed Deep Learning: A Survey}},
  year = {2024},
  eprint = {2406.08115},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.08115},
}
Figure