Skip to main content
QUICK REVIEW

[Paper Review] A DAG Model of Synchronous Stochastic Gradient Descent in Distributed Deep Learning

Shaohuai Shi, Qiang Wang|arXiv (Cornell University)|May 10, 2018
Advanced Neural Network ApplicationsComputer Science24 references8 citations
TL;DR

This paper proposes a novel directed acyclic graph (DAG) model to analyze and optimize synchronous stochastic gradient descent (S-SGD) in distributed deep learning, explicitly modeling both computation and communication phases. The study reveals that gradient communication overhead limits scaling on modern GPUs, even with high-bandwidth interconnects like InfiniBand and NVLink, and identifies opportunities to improve performance through overlapping I/O and gradient aggregation with computation.

ABSTRACT

With huge amounts of training data, deep learning has made great breakthroughs in many artificial intelligence (AI) applications. However, such large-scale data sets present computational challenges, requiring training to be distributed on a cluster equipped with accelerators like GPUs. With the fast increase of GPU computing power, the data communications among GPUs have become a potential bottleneck on the overall training performance. In this paper, we first propose a general directed acyclic graph (DAG) model to describe the distributed synchronous stochastic gradient descent (S-SGD) algorithm, which has been widely used in distributed deep learning frameworks. To understand the practical impact of data communications on training performance, we conduct extensive empirical studies on four state-of-the-art distributed deep learning frameworks (i.e., Caffe-MPI, CNTK, MXNet and TensorFlow) over multi-GPU and multi-node environments with different data communication techniques, including PCIe, NVLink, 10GbE, and InfiniBand. Through both analytical and experimental studies, we identify the potential bottlenecks and overheads that could be further optimized. At last, we make the data set of our experimental traces publicly available, which could be used to support simulation-based studies.

Motivation & Objective

  • To understand the performance impact of data communication on distributed deep learning training with synchronous SGD.
  • To analyze the scaling limitations of state-of-the-art deep learning frameworks (Caffe-MPI, CNTK, MXNet, TensorFlow) across multi-GPU and multi-node setups.
  • To identify system-level bottlenecks in communication, I/O, and computation that hinder efficient scaling on high-performance GPUs.
  • To provide a publicly available, layer-wise trace dataset for simulation-based performance studies and framework optimization.

Proposed method

  • Develops a general DAG model where nodes represent either computation or communication tasks, and edges encode precedence constraints in S-SGD workflows.
  • Uses the DAG model to analyze scheduling strategies, particularly overlapping I/O and gradient aggregation with computation to hide communication latency.
  • Empirically evaluates four deep learning frameworks (Caffe-MPI, CNTK, MXNet, TensorFlow) on multi-GPU and multi-node clusters using PCIe, NVLink, 10GbE, and InfiniBand.
  • Collects and publishes detailed layer-wise performance traces (forward/backward time, gradient communication time, gradient size) for AlexNet, GoogleNet, and ResNet-50 on K80 and V100 GPUs.
  • Analyzes the impact of different communication techniques and framework-specific implementations on training iteration time and scaling efficiency.
  • Validates the DAG model's predictive accuracy by comparing its iteration time predictions against actual measurements on Caffe-MPI, achieving average errors of 4.6–9.4%.

Experimental results

Research questions

  • RQ1How do different data communication techniques (PCIe, NVLink, 10GbE, InfiniBand) affect the training performance of S-SGD in distributed deep learning?
  • RQ2To what extent do current deep learning frameworks hide communication overhead through task overlapping (e.g., I/O and gradient aggregation with computation)?
  • RQ3Why do frameworks scale poorly on high-end GPUs like V100 despite advanced interconnects like InfiniBand?
  • RQ4What are the performance bottlenecks in gradient communication, and how do they vary across different neural network architectures?
  • RQ5Can the DAG model accurately predict training iteration times and guide optimization strategies in distributed training?

Key findings

  • The DAG model accurately predicts training iteration times, with average prediction errors of 9.4% on AlexNet, 4.7% on GoogleNet, and 4.6% on ResNet-50 when compared to Caffe-MPI measurements.
  • CNTK fails to overlap gradient communication with computation, resulting in higher communication overhead and worse scaling performance compared to Caffe-MPI, MXNet, and TensorFlow.
  • Even with 100Gbps InfiniBand, gradient communication remains a bottleneck on V100 GPUs, especially when Tensor Cores are used, due to insufficient optimization of inter-node communication.
  • Low network bandwidth utilization is observed on InfiniBand due to the layer-wise communication pattern during backpropagation, indicating suboptimal data transfer scheduling.
  • The proposed DAG model reveals two key optimization opportunities: overlapping I/O with computation and overlapping gradient aggregation with computation, both of which can improve scaling efficiency.
  • The publicly released trace dataset includes layer-wise time and gradient size measurements for three CNNs across K80 and V100 GPUs, enabling simulation-based performance analysis and framework evaluation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.