Introduction: The Communication Tax in Distributed Training
In the landscape of Distributed Deep Learning (DDL), training performance is no longer dictated solely by raw floating-point operations (FLOPs). As models grow in size and complexity, the bottleneck has shifted toward the "communication tax"—the time GPUs spend synchronizing gradients, typically via all-reduce operations.
The physical proximity of GPUs within a data center significantly impacts this overhead. While intra-machine communication (via NVLink) is exceptionally fast, moving data across different racks over standard Ethernet introduces substantial latency. Existing schedulers, such as Tiresias or Gandiva, often overlook these topological nuances or rely on inadequate proxies like "model skew" (the ratio of the largest tensor to total model size). As shown in Figure 1, the communication overhead can explode when jobs are placed across the network, particularly for models like MobileNet and BERT-large.
Dally: A Network-Aware Scheduling Architecture
To address these challenges, we present Dally, a novel GPU cluster scheduler designed to minimize communication overhead through intelligent, network-aware placement. Dally moves beyond simple "first-available" allocation by balancing the trade-off between queueing delay (waiting for a local GPU) and network stall (running immediately on a distant, slower GPU).
The Dally architecture, illustrated in Figure 5, is built upon three core pillars:
- Network-Sensitive Delay Scheduling: Dally utilizes "delay timers" to hold jobs in the wait queue intentionally. By waiting for a GPU to become available on the same machine or rack, a job can achieve significantly faster training iterations that more than compensate for the initial wait time.
- Dynamic Auto-Tuning: Unlike static scheduling policies, Dally features an auto-tuner that dynamically adjusts delay timers based on real-time cluster congestion. It tracks "starvation times" and uses moving averages to ensure the scheduler adapts to varying workloads.
- Network-Sensitive Preemption: Dally introduces a priority metric, $Nw_{sens}$, which evaluates a job's progress relative to its runtime. Jobs that have suffered from poor network placement receive higher priority, preventing them from being trapped in inefficient configurations.
Evaluation and Key Insights
The effectiveness of Dally was evaluated using ArtISt-sim, a high-fidelity simulator integrated with ASTRA-sim to model complex network topologies and hardware like NVIDIA Quantum switches. The evaluation utilized real-world production traces from SenseTime, encompassing a diverse range of models including VGG11, ResNet50, and BERT-large.
A critical finding of this research is the "death of skew." The authors demonstrated that model skew is a poor predictor of network sensitivity on modern high-speed hardware. For instance, ResNet18 exhibits low skew but suffers a massive 2749% slowdown when spread across the network, whereas ResNet50 proves much more resilient. This underscores the necessity of Dally’s direct measurement of network sensitivity rather than relying on architectural proxies.
Results and Performance Gains
Compared to state-of-the-art schedulers like Tiresias, Dally delivers substantial performance improvements across all key metrics:
- Makespan Reduction: Dally achieves up to a 69% improvement in total makespan (68% on average).
- Job Completion Time (JCT): Average JCT is reduced by 26% to 36%.
- Communication Efficiency: Time spent waiting for the network is slashed by 66% to 83%.
- Cluster Throughput: By minimizing network stalls, Dally ensures GPUs remain focused on computation, leading to higher overall utilization and throughput.
Conclusion and Future Work
Dally represents a significant step forward in GPU cluster management by treating the network as a first-class citizen in scheduling decisions. By proving that "waiting can be winning," Dally optimizes the end-to-end training process for modern, communication-heavy deep learning workloads.
Future research will focus on extending Dally to handle heterogeneous GPU clusters (e.g., mixing A100s and H100s) and exploring "white-box" scheduling where the system has full access to a model's computation graph. Additionally, integrating Dally with dynamic cloud autoscaling remains a promising avenue for further optimization in elastic environments.
Summary updated