[Paper Review] PipeCNN: An OpenCL-Based FPGA Accelerator for Large-Scale Convolution Neuron Networks
This paper proposes PipeCNN, an OpenCL-based FPGA accelerator for large-scale convolutional neural networks (CNNs) that leverages deeply pipelined kernels and data reuse techniques to improve performance and resource efficiency. By exploiting FPGA's pipelining capability and optimizing kernel mapping, PipeCNN achieves 33.9 GOPS with a 34% reduction in DSP usage compared to prior work, while supporting full-precision (32-bit float) inference and training compatibility.
Convolutional neural networks (CNNs) have been widely employed in many applications such as image classification, video analysis and speech recognition. Being compute-intensive, CNN computations are mainly accelerated by GPUs with high power dissipations. Recently, studies were carried out exploiting FPGA as CNN accelerator because of its reconfigurability and energy efficiency advantage over GPU, especially when OpenCL-based high-level synthesis tools are now available providing fast verification and implementation flows. Previous OpenCL-based design only focused on creating a generic framework to identify performance-related hardware parameters, without utilizing FPGA's special capability of pipelining kernel functions to minimize memory bandwidth requirement. In this work, we propose an FPGA accelerator with a new architecture of deeply pipelined OpenCL kernels. Data reuse and task mapping techniques are also presented to improve design efficiency. The proposed schemes are verified by implementing two representative large-scale CNNs, AlexNet and VGG on Altera Stratix-V A7 FPGA. We have achieved a similar peak performance of 33.9 GOPS with a 34% resource reduction on DSP blocks compared to previous work. Our design is openly accessible and thus can be reused to explore new architectures for neural network accelerators.
Motivation & Objective
- To address the high power consumption and limited scalability of GPU-based CNN accelerators in embedded systems.
- To overcome the limitations of prior OpenCL-based FPGA designs that underutilize pipelining and memory bandwidth optimization.
- To develop a high-performance, scalable, and reusable FPGA accelerator for large-scale CNNs using OpenCL and high-level synthesis.
- To explore and optimize the design space of pipelined kernels for CNN inference on Stratix-V A7 FPGA.
- To provide an open-source, reusable framework for future research in neural network accelerator design.
Proposed method
- The architecture uses four OpenCL kernels—Convolution, Pooling, LRN, and Fully Connected—connected via OpenCL channels for data streaming.
- A deeply pipelined kernel design is employed to maximize throughput and minimize memory bandwidth pressure.
- Data reuse and task mapping techniques are applied to reduce redundant memory accesses and improve data locality.
- The design uses 32-bit floating-point precision for full compatibility with both inference and backpropagation in training.
- A piecewise linear approximation (pwlf) method is used in the LRN kernel to efficiently compute normalization with minimal area overhead.
- Design space exploration is performed by varying vector size (VEC_SIZE) and number of computing units (CU_NUM) to optimize performance and resource usage.
Experimental results
Research questions
- RQ1How can pipelined OpenCL kernels be effectively utilized to reduce memory bandwidth pressure in FPGA-based CNN accelerators?
- RQ2What is the optimal configuration of vector size and number of computing units for maximizing performance and resource efficiency on a Stratix-V A7 FPGA?
- RQ3Can an OpenCL-based FPGA accelerator achieve competitive performance with reduced DSP resource usage compared to prior HSL-based designs?
- RQ4To what extent does the use of full-precision (32-bit float) computation impact performance and resource utilization in FPGA-based CNN accelerators?
- RQ5How does the proposed architecture compare in performance density (GOPS per DSP) to existing FPGA-based CNN accelerators?
Key findings
- PipeCNN achieves a peak performance of 33.9 GOPS on the Stratix-V A7 FPGA, matching the performance of prior work while using significantly fewer DSP blocks.
- The design reduces DSP usage by 34% compared to the FPGA2016 work, achieving a performance density of 0.21 GOPS/DSP, which is 60% higher than the baseline.
- The optimal configuration for the DE5-net board is found to be VEC_SIZE=8 and CU_NUM=16, yielding 43 ms inference time for AlexNet and 718 ms for VGG-16.
- Memory bandwidth becomes a bottleneck at higher CU counts, as the 12.8 GB/s DRAM limit causes pipeline stalls and diminishing returns.
- Power consumption is 27.3W for AlexNet and 29.8W for VGG-16, with the design maintaining high efficiency despite full-precision computation.
- The open-source availability of the design enables reuse and extension for future research in neural network accelerator development.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.