基于FPGA的CNN卷积加速器
A CNN Accelerator on FPGA Using Depthwise Separable Convolution
摘要:
卷积神经网络(CNN)由于其高精度,在计算机视觉和模式识别领域得到了广泛的应用。然而,大型卷积运算是计算密集型的,通常需要强大的计算平台,例如图形处理单元(GPU)。这使得将CNN应用于便携式设备变得困难。最先进的CNN,如MobileNetV 2和Xception,采用深度可分离卷积来取代嵌入式平台的标准卷积。这大大减少了操作和参数,而精度损失有限。这种高度结构化的模型非常适合现场可编程门阵列(FPGA)实现。本文提出了一种可扩展的高性能深度可分离卷积优化的CNN加速器。该加速器可以安装在不同尺寸的FPGA中,在硬件资源和处理速度之间提供平衡。以MobileNetV 2为例,在Arria 10 SoC FPGA上实现,结果表明该加速器可以在3.75ms内对ImageNet中的每幅图片进行分类,约为266.6帧/秒。与CPU相比,这实现了20倍的加速。
英文摘要:
Convolutional neural networks (CNNs) have been widely deployed in the fields of computer vision and pattern recognition because of their high accuracy. However, large convolution operations are computing-intensive that often requires a powerful computing platform such as Graphics Processing Unit (GPU). This makes it difficult to apply CNNs to portable devices. The state-of-the-art CNNs, such as MobileNetV2 and Xception, adopt depthwise separable convolution to replace the standard convolution for embedded platforms. That significantly reduces operations and parameters with only limited loss in accuracy. This highly structured model is very suitable for Field-Programmable Gate Array (FPGA) implementation. In this paper, a scalable high performance depthwise separable convolution optimized CNN accelerator is proposed. The accelerator can be fit into an FPGA of different sizes, provided the balancing between hardware resources and processing speed. As an example, MobileNetV2 is implemented on Arria 10 SoC FPGA, and the results show this accelerator can classify each picture from ImageNet in 3.75ms, which is about 266.6 frames per second. This achieves 20x speedup if compared to CPU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。