[Paper Review] Domain-specific Communication Optimization for Distributed DNN Training
DLCP is a domain-specific communication optimization framework for distributed DNN training that reduces communication overhead through bounded-loss tolerant transport, per-packet gradient prioritization based on layer and magnitude, and inter-packet order-independent load balancing. It achieves up to 84.3% additional training speedup over state-of-the-art solutions by fine-grained, network-aware optimization at the packet level.
Communication overhead poses an important obstacle to distributed DNN training and draws increasing attention in recent years. Despite continuous efforts, prior solutions such as gradient compression/reduction, compute/communication overlapping and layer-wise flow scheduling, etc., are still coarse-grained and insufficient for an efficient distributed training especially when the network is under pressure. We present DLCP, a novel solution exploiting the domain-specific properties of deep learning to optimize communication overhead of DNN training in a fine-grained manner. At its heart, DLCP comprises of several key innovations beyond prior work: e.g., it exploits {\em bounded loss tolerance} of SGD-based training to improve tail communication latency which cannot be avoided purely through gradient compression. It then performs fine-grained packet-level prioritization and dropping, as opposed to flow-level scheduling, based on layers and magnitudes of gradients to further speedup model convergence without affecting accuracy. In addition, it leverages inter-packet order-independency to perform per-packet load balancing without causing classical re-ordering issues. DLCP works with both Parameter Server and collective communication routines. We have implemented DLCP with commodity switches, integrated it with various training frameworks including TensorFlow, MXNet and PyTorch, and deployed it in our small-scale testbed with 10 Nvidia V100 GPUs. Our testbed experiments and large-scale simulations show that DLCP delivers up to $84.3\%$ additional training acceleration over the best existing solutions.
Motivation & Objective
- Address the persistent challenge of communication bottlenecks in distributed DNN training, especially under network stress and tail latency.
- Overcome the limitations of coarse-grained, flow-level optimizations in prior solutions such as gradient compression and flow scheduling.
- Leverage domain-specific properties of deep learning—such as bounded loss tolerance in SGD and gradient importance by layer/magnitude—to enable fine-grained, network-level optimizations.
- Design a transport and scheduling stack that operates below the application layer to improve end-to-end training efficiency without requiring changes to deep learning frameworks.
- Achieve significant training acceleration by minimizing tail latency and improving load balancing while preserving model accuracy.
Proposed method
- Introduces a bounded-loss tolerant transport protocol that intentionally drops or ignores a small, configurable fraction (up to 10%) of delayed or lost packets, leveraging SGD’s inherent tolerance to gradient loss.
- Employs per-packet priority queuing and dropping in network switches based on two dimensions: gradient layer (back layers more critical) and gradient magnitude (larger values more loss-tolerant).
- Utilizes inter-packet order-independency in DNN training to enable per-packet load balancing without reordering overhead, simplifying network design.
- Integrates with both parameter server and collective communication patterns (e.g., NCCL), and is compatible with TensorFlow, MXNet, and PyTorch.
- Uses commodity switches to implement priority-based scheduling and loss tolerance, avoiding reliance on specialized hardware.
- Employs a retransmission timeout (RTO) independent design, making it robust to RTO configuration issues that affect TCP-based protocols.
Experimental results
Research questions
- RQ1Can bounded loss tolerance in SGD-based training be exploited to reduce tail communication latency without degrading model convergence?
- RQ2How can per-packet prioritization based on gradient layer and magnitude improve training convergence and reduce communication bottlenecks?
- RQ3To what extent can per-packet load balancing be achieved without reordering, and what performance gains does it yield in high-congestion scenarios?
- RQ4How does DLCP compare to existing flow-level optimization techniques in terms of training speedup and robustness under network stress?
- RQ5Can DLCP achieve significant performance gains across diverse models (e.g., ResNet50, InceptionV3) and training workloads without requiring model-specific tuning?
Key findings
- DLCP achieves up to 84.3% additional training acceleration over the best existing solution (ByteScheduler) in large-scale simulations.
- With a 10% loss-tolerant bound, DLCP maintains model accuracy comparable to the benchmark, with convergence curves nearly indistinguishable from the baseline.
- DLCP reduces tail flow completion time (FCT) by up to 84.5% (with RTOmin = 1ms) and 83.9% (with RTOmin = 5ms), outperforming TCP-based protocols even under aggressive RTO settings.
- The 1% and 10% loss-tolerant bounds yield nearly identical convergence times, indicating that fine-tuning the loss tolerance threshold is unnecessary for optimal performance.
- DLCP is robust to retransmission timeout (RTO) configuration issues, as it does not rely on retransmissions, avoiding problems like spurious retransmissions and timer resolution limits.
- The framework is compatible with multiple deep learning frameworks (TensorFlow, MXNet, PyTorch) and works with both parameter server and collective communication patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.