Skip to main content
QUICK REVIEW

[Paper Review] A detailed comparative study of open source deep learning frameworks

Ghadeer Al-Bdour, Raffi Al-Qurran|arXiv (Cornell University)|Feb 25, 2019
Anomaly Detection Techniques and ApplicationsComputer Science41 references11 citations
TL;DR

This paper presents a comprehensive quantitative and qualitative comparison of three leading open-source deep learning frameworks—TensorFlow, Theano, and CNTK—evaluating their performance across multiple benchmark datasets using CNN and RNN architectures. The study finds that CNTK consistently outperforms the others in training speed and resource efficiency, particularly on GPU and multi-GPU setups, across diverse tasks in image processing, NLP, and computer vision.

ABSTRACT

Deep Learning (DL) is one of the hottest trends in machine learning as DL approaches produced results superior to the state-of-the-art in problematic areas such as image processing and natural language processing (NLP). To foster the growth of DL, several open source frameworks appeared providing implementations of the most common DL algorithms. These frameworks vary in the algorithms they support and in the quality of their implementations. The purpose of this work is to provide a qualitative and quantitative comparison among three of the most popular and most comprehensive DL frameworks (namely Google's TensorFlow, University of Montreal's Theano and Microsoft's CNTK). The ultimate goal of this work is to help end users make an informed decision about the best DL framework that suits their needs and resources. To ensure that our study is as comprehensive as possible, we conduct several experiments using multiple benchmark datasets from different fields (image processing, NLP, etc.) and measure the performance of the frameworks' implementations of different DL algorithms. For most of our experiments, we find out that CNTK's implementations are superior to the other ones under consideration.

Motivation & Objective

  • To provide a comprehensive, empirical comparison of the most popular open-source deep learning frameworks—TensorFlow, Theano, and CNTK.
  • To identify the strengths and weaknesses of each framework in terms of training speed, resource utilization, and scalability across different hardware configurations.
  • To guide researchers and practitioners in selecting the most suitable framework based on their specific computational resources and application requirements.
  • To evaluate framework performance across diverse deep learning tasks, including image classification, NLP, and video analysis, using standard benchmark datasets.
  • To analyze CPU and GPU utilization, memory consumption, and convergence speed across multiple neural network architectures and hardware platforms.

Proposed method

  • The study evaluates three frameworks—TensorFlow, Theano, and CNTK—on a laptop with Windows 10, using multi-core CPUs (Intel i7-3820 and Xeon E5-2630) and multiple NVIDIA GPUs (GTX980, GTX1080, Tesla K80).
  • Experiments were conducted on five benchmark datasets: MNIST, CIFAR-10, IMDB, Self-Driving Car, and Penn TreeBank, representing image processing, NLP, and video analysis tasks.
  • Multiple neural network architectures were trained: fully connected networks, CNNs (e.g., for MNIST and CIFAR-10), and RNNs (e.g., LSTM for IMDB and Penn TreeBank).
  • Performance metrics included training time, accuracy/perplexity, CPU and GPU utilization percentages, memory usage, and number of epochs to convergence.
  • The frameworks were evaluated on both CPU and GPU configurations, including multi-GPU setups using two Tesla K80 cards.
  • Results were collected and reported in detailed tables (Tables 5–9) showing accuracy, utilization, memory usage, and convergence speed across all configurations.

Experimental results

Research questions

  • RQ1How do TensorFlow, Theano, and CNTK compare in terms of training speed across different deep learning architectures and datasets?
  • RQ2Which framework achieves the highest accuracy or lowest perplexity while maintaining efficient resource utilization?
  • RQ3How do the frameworks perform under varying hardware configurations, including single and multi-GPU setups and different CPU types?
  • RQ4What are the memory and CPU/GPU utilization patterns across the frameworks, and how do they affect training efficiency?
  • RQ5Which framework demonstrates the most efficient convergence speed and scalability in multi-GPU environments?

Key findings

  • CNTK achieved the fastest training performance across most experiments, particularly excelling in RNN training (LSTM), where it was 5–10× faster than other frameworks.
  • On the IMDB dataset, CNTK achieved 88.93% accuracy on GPU with only 2 epochs, while TensorFlow and Theano required 3 epochs, and Theano showed significantly lower CPU utilization (14.6%) compared to CNTK (94.8%).
  • For the Self-Driving Car dataset, CNTK achieved 99.97% accuracy on GPU with 32.4% GPU utilization, while Theano used only 31% GPU utilization, indicating underutilization despite high accuracy.
  • On the Penn TreeBank dataset, CNTK achieved the lowest perplexity (113.7 on CPU) and showed lower memory usage (1.3% CPU, 2.2% GPU) compared to Theano (4.1% CPU, 5.4% GPU).
  • TensorFlow showed the highest memory utilization across all datasets, with 5.2% GPU memory usage on MNIST and 9.1% on IMDB, while CNTK consistently maintained the lowest memory footprint.
  • Despite high CPU utilization in most cases, Theano showed very low CPU utilization (14.7% on MNIST, 15.3% on CIFAR-10), indicating inefficiency in CPU-bound training scenarios.

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.