arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1712.06272cs.ARcs.AIcs.NE
收藏

使用FPGA压缩卷积神经网络以实现高效边缘计算的自动流程

Automated flow for compressing convolution neural networks for efficient edge-computation with FPGA

LeapMind, Inc.(LeapMind 公司)

Farhan Shafiq, Takato Yamada, Antonio T. Vilchez, Sakyasingha Dasgupta

摘要:

基于深度卷积神经网络(CNN)的解决方案是计算机视觉任务的当前最先进技术。由于这些模型的尺寸很大,它们通常在CPU或GPU集群上运行。然而,功率要求和成本预算可能是物联网应用采用CNN的主要障碍。最近的研究强调,CNN在其结构中包含显著的冗余,并且可以量化以降低位宽参数和激活,同时保持可接受的精度。由于二进制化CNN中涉及的逐位逻辑运算,低位宽尤其是单位宽(二进制)CNN特别适合于基于FPGA实现的移动应用。此外,向较低位宽的过渡为性能优化和模型改进开辟了新的途径。在本文中,我们提出了一个自动流程,从训练的TensorFlow模型到FPGA片上系统实现二值化CNN。该流程涉及模型参数和激活的量化,嵌入式C中网络和模型的生成,然后自动生成用于二进制卷积的FPGA加速器。通过在低成本、低功耗的Cyclone-V FPGA器件上实现二进制化的“YOLOV 2”来演示自动化流程。使用二值化YOLOV 2的目标检测实验表明,与CPU和移动CPU平台相比,FPGA上的模型大小和推理速度具有显着的性能优势。此外,从训练模型到FPGA合成的整个自动化流程可以在一小时内完成。

英文摘要:

Deep convolutional neural networks (CNN) based solutions are the current state- of-the-art for computer vision tasks. Due to the large size of these models, they are typically run on clusters of CPUs or GPUs. However, power requirements and cost budgets can be a major hindrance in adoption of CNN for IoT applications. Recent research highlights that CNN contain significant redundancy in their structure and can be quantized to lower bit-width parameters and activations, while maintaining acceptable accuracy. Low bit-width and especially single bit-width (binary) CNN are particularly suitable for mobile applications based on FPGA implementation, due to the bitwise logic operations involved in binarized CNN. Moreover, the transition to lower bit-widths opens new avenues for performance optimizations and model improvement. In this paper, we present an automatic flow from trained TensorFlow models to FPGA system on chip implementation of binarized CNN. This flow involves quantization of model parameters and activations, generation of network and model in embedded-C, followed by automatic generation of the FPGA accelerator for binary convolutions. The automated flow is demonstrated through implementation of binarized "YOLOV2" on the low cost, low power Cyclone- V FPGA device. Experiments on object detection using binarized YOLOV2 demonstrate significant performance benefit in terms of model size and inference speed on FPGA as compared to CPU and mobile CPU platforms. Furthermore, the entire automated flow from trained models to FPGA synthesis can be completed within one hour.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑