Skip to main content
QUICK REVIEW

[Paper Review] Modeling and Evaluation of Synchronous Stochastic Gradient Descent in Distributed Deep Learning on Multiple GPUs.

Shaohuai Shi, Qiang Wang|arXiv (Cornell University)|May 10, 2018
Stochastic Gradient Optimization TechniquesComputer Science3 citations
TL;DR

This paper proposes a general directed acyclic graph (DAG) model to analyze synchronous stochastic gradient descent (S-SGD) in distributed deep learning across multiple GPUs. Through empirical evaluation on four frameworks (Caffe-MPI, CNTK, MXNet, TensorFlow) using PCIe, NVLink, 10GbE, and InfiniBand, it identifies communication bottlenecks and provides publicly available experimental traces for simulation-based research.

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 model the behavior of synchronous stochastic gradient descent (S-SGD) in distributed deep learning using a general directed acyclic graph (DAG) abstraction.
  • To identify and analyze communication bottlenecks in multi-GPU and multi-node environments across different data communication technologies.
  • To evaluate the performance impact of various communication techniques—PCIe, NVLink, 10GbE, and InfiniBand—on state-of-the-art deep learning frameworks.
  • To provide a publicly available dataset of experimental traces to support future simulation-based studies in distributed deep learning.

Proposed method

  • Develops a general directed acyclic graph (DAG) model to represent the computation and communication flow in distributed S-SGD training.
  • Employs extensive empirical studies across four deep learning frameworks: Caffe-MPI, CNTK, MXNet, and TensorFlow.
  • Evaluates training performance using diverse communication backbones: PCIe, NVLink, 10GbE, and InfiniBand.
  • Conducts both analytical and experimental analysis to identify performance bottlenecks related to data communication.
  • Collects and publishes detailed experimental traces from multi-GPU and multi-node setups for reproducibility and simulation use.
  • Uses the DAG model to systematically map and analyze the interaction between computation and communication phases in S-SGD.

Experimental results

Research questions

  • RQ1How does the communication overhead in S-SGD vary across different interconnect technologies (PCIe, NVLink, 10GbE, InfiniBand) in multi-GPU settings?
  • RQ2What are the key performance bottlenecks in distributed S-SGD training when scaling across multiple GPUs and nodes?
  • RQ3How do different deep learning frameworks (Caffe-MPI, CNTK, MXNet, TensorFlow) exhibit varying communication and computation trade-offs?
  • RQ4To what extent can the proposed DAG model accurately represent and predict the behavior of S-SGD in distributed training?
  • RQ5What insights can be drawn from empirical traces to guide future optimization of communication-efficient deep learning frameworks?

Key findings

  • Data communication among GPUs emerges as a major bottleneck in distributed S-SGD training, especially with increasing model and data scale.
  • NVLink significantly reduces communication latency compared to PCIe, leading to improved training throughput.
  • InfiniBand outperforms 10GbE in multi-node environments due to lower latency and higher bandwidth.
  • The choice of communication backend has a measurable impact on overall training performance, with performance gaps increasing at scale.
  • The proposed DAG model effectively captures the communication-computation interaction patterns in S-SGD, enabling systematic bottleneck analysis.
  • The publicly released experimental traces provide a valuable resource for validating and calibrating simulation tools in distributed deep learning research.

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.