Skip to main content
QUICK REVIEW

[Paper Review] CNNLab: a Novel Parallel Framework for Neural Networks using GPU and FPGA-a Practical Study with Trade-off Analysis

Maohua Zhu, Liu Liu|arXiv (Cornell University)|Jun 20, 2016
Advanced Neural Network ApplicationsComputer Science19 references18 citations
TL;DR

CNNLab is a novel heterogeneous middleware framework that dynamically offloads deep learning workloads between GPU and FPGA accelerators using a unified programming model, achieving up to 100x speedup on GPU and 50x better power efficiency on FPGA, with comparable energy efficiency in convolutional layers and superior performance density in fully connected layers.

ABSTRACT

Designing and implementing efficient, provably correct parallel neural network processing is challenging. Existing high-level parallel abstractions like MapReduce are insufficiently expressive while low-level tools like MPI and Pthreads leave ML experts repeatedly solving the same design challenges. However, the diversity and large-scale data size have posed a significant challenge to construct a flexible and high-performance implementation of deep learning neural networks. To improve the performance and maintain the scalability, we present CNNLab, a novel deep learning framework using GPU and FPGA-based accelerators. CNNLab provides a uniform programming model to users so that the hardware implementation and the scheduling are invisible to the programmers. At runtime, CNNLab leverages the trade-offs between GPU and FPGA before offloading the tasks to the accelerators. Experimental results on the state-of-the-art Nvidia K40 GPU and Altera DE5 FPGA board demonstrate that the CNNLab can provide a universal framework with efficient support for diverse applications without increasing the burden of the programmers. Moreover, we analyze the detailed quantitative performance, throughput, power, energy, and performance density for both approaches. Experimental results leverage the trade-offs between GPU and FPGA and provide useful practical experiences for the deep learning research community.

Motivation & Objective

  • Address the challenge of efficiently accelerating large-scale deep neural networks with high performance and low power consumption.
  • Reduce the programming burden on machine learning experts by abstracting hardware complexity through a uniform programming model.
  • Enable dynamic task offloading between GPU and FPGA based on workload characteristics and system constraints.
  • Provide quantitative trade-off analysis between GPU and FPGA accelerators in terms of performance, throughput, power, energy, and performance density.
  • Develop a practical, real-world prototype using NVIDIA K40 GPU and Intel-Altera DE5 FPGA for end-to-end evaluation.

Proposed method

  • Design a heterogeneous hybrid system integrating CPU, GPU, and FPGA accelerators to handle computationally intensive parts of deep learning workloads.
  • Implement a unified programming model using CUDA and OpenCL to abstract low-level hardware details and enable seamless mapping of neural network layers to accelerators.
  • Develop a runtime scheduler that selects between GPU and FPGA based on real-time workload profiling and performance constraints.
  • Construct a hardware prototype using NVIDIA K40 GPU and Altera DE5 FPGA to evaluate end-to-end performance on real neural network models.
  • Use quantitative metrics—execution time, throughput, power, energy, and performance density—to compare GPU and FPGA implementations across convolutional and fully connected layers.
  • Evaluate state-of-the-art CUDA libraries (cuDNN and cuBLAS) to assess their impact on energy efficiency and performance.

Experimental results

Research questions

  • RQ1How can a unified programming model be designed to abstract GPU and FPGA hardware complexity while enabling efficient task offloading in deep learning workloads?
  • RQ2What are the quantitative trade-offs between GPU and FPGA accelerators in terms of performance, throughput, power consumption, energy efficiency, and performance density for convolutional and fully connected layers?
  • RQ3Can a hybrid GPU-FPGA framework achieve comparable or better performance and energy efficiency than standalone accelerators in real-world deep learning applications?
  • RQ4How do different CUDA programming models (cuDNN vs. cuBLAS) affect energy efficiency and performance in deep learning inference and training?
  • RQ5What practical insights can be derived from real hardware evaluation to guide future design of heterogeneous deep learning accelerators?

Key findings

  • The GPU achieves up to 100x speedup and 100x higher throughput than the FPGA for the same deep learning workloads.
  • The FPGA demonstrates 50x better power efficiency than the GPU, making it significantly more energy-efficient for power-constrained environments.
  • In convolutional layers, both GPU and FPGA achieve similar energy efficiency, with 10 GFLOPS/W for FPGA and 14 GFLOPS/W for GPU.
  • For fully connected layers, the GPU shows superior performance density with higher operation-per-energy ratio than the FPGA.
  • cuBLAS outperforms cuDNN in energy efficiency, delivering higher speedup with lower power consumption across evaluated workloads.
  • The CNNLab framework successfully offloads tasks based on workload characteristics, achieving optimal trade-offs without increasing programmer burden.

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.