Skip to main content
QUICK REVIEW

[Paper Review] Comparative Study of Caffe, Neon, Theano, and Torch for Deep Learning

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

This paper compares Caffe, Neon, Theano, and Torch across extensibility, hardware utilization, and speed on CPU and GPU (NVIDIA Titan X) for various deep learning architectures. Key findings show Torch excels on CPU and large networks on GPU, Theano leads for LSTM training and deployment, and Caffe is best for evaluating standard architectures.

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 four deep learning frameworks, namely Caffe, Neon, 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. Finally Caffe is the easiest for evaluating the performance of standard deep architectures.

Motivation & Objective

  • To evaluate and compare the extensibility, hardware utilization, and speed of four major deep learning frameworks: Caffe, Neon, Theano, and Torch.
  • To assess framework performance across diverse deep learning architectures, including convolutional and recurrent networks.
  • To measure gradient computation time (training) and forward pass time (deployment) on both CPU and GPU settings.
  • To analyze support and performance of various convolutional algorithms within each framework.
  • To identify the most suitable framework for specific use cases such as CPU inference, GPU training, or standard architecture evaluation.

Proposed method

  • Benchmarking each framework on a single machine with CPU (multi-threaded) and GPU (NVIDIA Titan X) configurations.
  • Evaluating performance on multiple deep learning architectures, including convolutional and fully connected networks.
  • Measuring gradient computation time as a key metric for training efficiency and forward pass time for deployment performance.
  • Assessing support and execution speed of different convolutional algorithms across frameworks.
  • Using standardized datasets and network configurations to ensure consistent comparison across frameworks.
  • Focusing on both training (gradient computation) and inference (forward pass) workloads to reflect real-world usage patterns.

Experimental results

Research questions

  • RQ1Which framework offers the highest extensibility for custom deep learning architectures?
  • RQ2How do the frameworks compare in terms of CPU and GPU utilization for training and inference?
  • RQ3Which framework achieves the fastest gradient computation time for large-scale deep networks?
  • RQ4Which framework provides the best forward pass performance for deployed models?
  • RQ5How well do the frameworks support and optimize various convolutional algorithms?

Key findings

  • Theano and Torch are the most easily extensible frameworks, supporting custom network modifications with relative ease.
  • Torch achieves the best performance on CPU across all evaluated deep architectures, outperforming the other frameworks.
  • On GPU, Torch delivers the best performance for large convolutional and fully connected networks, followed closely by Neon.
  • Theano achieves the best GPU performance for training and deploying LSTM networks, outperforming the other frameworks in this specific workload.
  • Caffe is the most straightforward and effective framework for evaluating standard deep learning architectures, particularly in terms of ease of use and performance measurement.
  • The performance ranking varies by network type, with no single framework dominating across all metrics and architectures.

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.