Skip to main content
QUICK REVIEW

[Paper Review] Comparative Study of Deep Learning Software Frameworks

Soheil Bahrampour, Naveen Ramakrishnan|arXiv (Cornell University)|Nov 19, 2015
Advanced Neural Network ApplicationsComputer Science17 references87 citations
TL;DR

This paper evaluates five deep learning frameworks—Caffe, Neon, TensorFlow, Theano, and Torch—on extensibility, hardware utilization, and speed across CPU and GPU settings. Key findings show Theano and Torch lead in extensibility, Torch excels in CPU performance and large network GPU deployment, while Theano achieves the best GPU performance for LSTM training and small convolutional networks.

ABSTRACT

Deep learning methods have resulted in significant performance improvements in several application domains and as such several software frameworks have been developed to facilitate their implementation. This paper presents a comparative study of five deep learning frameworks, namely Caffe, Neon, TensorFlow, Theano, and Torch, on three aspects: extensibility, hardware utilization, and speed. The study is performed on several types of deep learning architectures and we evaluate the performance of the above frameworks when employed on a single machine for both (multi-threaded) CPU and GPU (Nvidia Titan X) settings. The speed performance metrics used here include the gradient computation time, which is important during the training phase of deep networks, and the forward time, which is important from the deployment perspective of trained networks. For convolutional networks, we also report how each of these frameworks support various convolutional algorithms and their corresponding performance. From our experiments, we observe that Theano and Torch are the most easily extensible frameworks. We observe that Torch is best suited for any deep architecture on CPU, followed by Theano. It also achieves the best performance on the GPU for large convolutional and fully connected networks, followed closely by Neon. Theano achieves the best performance on GPU for training and deployment of LSTM networks. Caffe is the easiest for evaluating the performance of standard deep architectures. Finally, TensorFlow is a very flexible framework, similar to Theano, but its performance is currently not competitive compared to the other studied frameworks.

Motivation & Objective

  • To evaluate the extensibility of major deep learning frameworks in supporting diverse architectures and training procedures.
  • To assess hardware utilization efficiency across multi-threaded CPU and GPU (NVIDIA Titan X) configurations.
  • To benchmark speed performance for both training (gradient computation) and deployment (forward pass) across multiple network types.
  • To analyze framework support for advanced convolutional algorithms and variable-length sequence handling in recurrent networks.
  • To provide practitioners with a comparative assessment of strengths and limitations for framework selection in real-world applications.

Proposed method

  • Benchmarking was conducted on a single machine using standard deep learning architectures: fully connected, convolutional, and recurrent (LSTM) networks.
  • Performance metrics included gradient computation time (training) and forward pass time (deployment), measured on both CPU (multi-threaded) and GPU (NVIDIA Titan X).
  • For convolutional networks, support and performance of various convolution algorithms (e.g., FFT-based) were evaluated.
  • LSTM training used the IMDB sentiment analysis dataset with variable-length sequences, employing masking and padding techniques.
  • All frameworks were tested under identical conditions: fixed batch size (16), no shuffling, and consistent data loading to ensure fair comparison.
  • The study focused on frameworks with active development and community support as of February 2016, excluding those lacking key features like LSTM or cuDNN support.

Experimental results

Research questions

  • RQ1Which deep learning framework offers the highest extensibility in supporting diverse network architectures and training procedures?
  • RQ2How do the frameworks compare in terms of CPU and GPU utilization efficiency across different network types?
  • RQ3What is the relative performance of each framework in gradient computation (training) and forward pass (deployment)?
  • RQ4How well do the frameworks support advanced features such as variable-length sequence processing in RNNs and optimized convolution algorithms?
  • RQ5What are the current performance bottlenecks and limitations of each framework, particularly in GPU-accelerated settings?

Key findings

  • Theano and Torch are the most extensible frameworks, with Theano offering symbolic differentiation for flexible architecture design and Torch providing strong community-driven extensibility.
  • On CPU, Torch achieves the best performance for all tested architectures, followed by Theano, while Neon shows the worst performance.
  • On GPU, Torch delivers the fastest performance for large convolutional and fully connected networks, followed by Theano and Neon, which is highly competitive for large convolutional networks.
  • For GPU-based training of small convolutional and fully connected networks, Theano outperforms others, while for LSTM networks, Theano achieves the best performance with cuDNN v3.
  • Caffe is the most user-friendly for evaluating standard deep architectures due to its ease of configuration without hard-coding.
  • TensorFlow, despite high flexibility and support for heterogeneous devices, shows inferior performance on single-GPU settings compared to Theano, Torch, and Neon.

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.