Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking State-of-the-Art Deep Learning Software Tools

Shaohuai Shi, Qiang Wang|arXiv (Cornell University)|Aug 25, 2016
Advanced Neural Network ApplicationsComputer Science22 references70 citations
TL;DR

This paper benchmarks five state-of-the-art deep learning frameworks—Caffe, CNTK, MXNet, TensorFlow, and Torch—across multiple neural network types (FCNs, CNNs, RNNs) and hardware platforms (CPUs and GPUs). It reveals that performance varies significantly by tool, network type, and hardware, with CNTK excelling in RNNs and MXNet in large CNNs, while GPU acceleration delivers substantial speedups over CPUs, and multi-GPU scaling depends heavily on gradient aggregation strategies.

ABSTRACT

Deep learning has been shown as a successful machine learning method for a variety of tasks, and its popularity results in numerous open-source deep learning software tools. Training a deep network is usually a very time-consuming process. To address the computational challenge in deep learning, many tools exploit hardware features such as multi-core CPUs and many-core GPUs to shorten the training time. However, different tools exhibit different features and running performance when training different types of deep networks on different hardware platforms, which makes it difficult for end users to select an appropriate pair of software and hardware. In this paper, we aim to make a comparative study of the state-of-the-art GPU-accelerated deep learning software tools, including Caffe, CNTK, MXNet, TensorFlow, and Torch. We first benchmark the running performance of these tools with three popular types of neural networks on two CPU platforms and three GPU platforms. We then benchmark some distributed versions on multiple GPUs. Our contribution is two-fold. First, for end users of deep learning tools, our benchmarking results can serve as a guide to selecting appropriate hardware platforms and software tools. Second, for software developers of deep learning tools, our in-depth analysis points out possible future directions to further optimize the running performance.

Motivation & Objective

  • To evaluate and compare the performance of leading GPU-accelerated deep learning frameworks on diverse neural network architectures.
  • To identify the optimal software-hardware combinations for different deep learning workloads.
  • To analyze the impact of system design choices—especially gradient aggregation strategies—on multi-GPU scalability.
  • To guide end users in selecting efficient tools and hardware, and to inform developers on performance optimization opportunities.

Proposed method

  • The study benchmarks five deep learning frameworks—Caffe, CNTK, MXNet, TensorFlow, and Torch—on two CPU platforms (Intel i7-3820 and Xeon E5-2630) and three GPU platforms (GTX 980, GTX 1080, Tesla K80).
  • Experiments include training small and large versions of three network types: fully connected networks (FCNs), convolutional neural networks (CNNs), and recurrent neural networks (RNNs) with LSTM.
  • Performance is measured using both synthetic and real-world data, focusing on training time and throughput.
  • Multi-GPU performance is evaluated using data parallelism with two Tesla K80 cards (four GPUs), analyzing gradient aggregation overhead and communication patterns.
  • The study analyzes kernel launch patterns and system-level optimizations such as cuDNN usage, auto-tuning, and memory trade-offs.
  • Findings are validated through detailed profiling of kernel operations, memory transfers, and communication topologies, particularly PCIe bandwidth limitations.

Experimental results

Research questions

  • RQ1How do the five deep learning frameworks compare in training speed across different neural network architectures on CPUs and GPUs?
  • RQ2What is the impact of hardware platform (CPU vs. GPU) and GPU model (GTX 980, 1080, K80) on training performance?
  • RQ3How does multi-GPU data parallelism affect scalability, and what role does gradient aggregation strategy play in performance?
  • RQ4Why does CNTK outperform other tools in RNN training, particularly for LSTM networks?
  • RQ5To what extent do configuration settings and system-level optimizations (e.g., auto-tuning, memory trade-offs) influence framework performance?

Key findings

  • On single GPUs, CNTK achieves up to 5–10× better efficiency than other tools in training LSTM-based RNNs, due to optimized kernel design and efficient gradient handling.
  • MXNet delivers the best performance for large CNNs, especially on the GTX 1080, outperforming others by significant margins due to efficient kernel fusion and cuDNN integration.
  • CNTK and MXNet show superior multi-GPU scaling for CNNs and FCNs, while TensorFlow and Torch suffer from CPU-bound gradient aggregation, limiting scalability.
  • The GTX 1080 delivers the highest performance across most benchmarks due to its higher computational throughput and memory bandwidth.
  • Gradient aggregation on the CPU side (as in TensorFlow and Torch) creates a major bottleneck, with PCIe transfer times (up to 0.0256s per mini-batch) significantly impacting performance.
  • System-level design choices—such as CNTK’s 1-bit stochastic gradient descent and MXNet’s GPU-based aggregation—dramatically improve multi-GPU scalability compared to CPU-centric approaches.

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.