arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.01588cs.CVcs.ARcs.DC
收藏

CNN目标检测器FPGA设计中混合精度混合数据流的分层优化

Layer-specific Optimization for Mixed Data Flow with Mixed Precision in FPGA Design for CNN-based Object Detectors

Duy Thanh Nguyen, Hyun Kim, Hyuk-Jae Lee

摘要:

卷积神经网络(CNN)需要密集的计算和频繁的存储器访问,这导致了低的处理速度和大的功耗。虽然CNN中不同层的特性通常非常不同,但是先前的硬件设计已经为它们采用了共同的优化方案。本文提出了一种层特定的设计,采用不同的组织,优化不同的层。所提出的设计采用了两个特定于层的优化:特定于层的混合数据流和特定于层的混合精度。混合数据流旨在最小化片外访问,同时要求FPGA器件的最小片上存储器(BRAM)资源。混合精度量化是为了实现无损精度和积极的模型压缩,从而进一步减少芯片外访问。贝叶斯优化方法用于为每个层选择最佳稀疏度,从而在精度和压缩之间实现最佳权衡。这种混合方案允许将整个网络模型存储在FPGA的BRAM中,以积极减少片外访问,从而实现显著的性能增强。与全精度网络相比,模型大小减少了22.66-28.93倍,VOC,COCO和ImageNet数据集的准确性下降可以忽略不计。此外,混合低功耗和混合精度的组合显着优于以前的作品在吞吐量,片外访问,和片内存储器的要求。

英文摘要:

Convolutional neural networks (CNNs) require both intensive computation and frequent memory access, which lead to a low processing speed and large power dissipation. Although the characteristics of the different layers in a CNN are frequently quite different, previous hardware designs have employed common optimization schemes for them. This paper proposes a layer-specific design that employs different organizations that are optimized for the different layers. The proposed design employs two layer-specific optimizations: layer-specific mixed data flow and layer-specific mixed precision. The mixed data flow aims to minimize the off-chip access while demanding a minimal on-chip memory (BRAM) resource of an FPGA device. The mixed precision quantization is to achieve both a lossless accuracy and an aggressive model compression, thereby further reducing the off-chip access. A Bayesian optimization approach is used to select the best sparsity for each layer, achieving the best trade-off between the accuracy and compression. This mixing scheme allows the entire network model to be stored in BRAMs of the FPGA to aggressively reduce the off-chip access, and thereby achieves a significant performance enhancement. The model size is reduced by 22.66-28.93 times compared to that in a full-precision network with a negligible degradation of accuracy on VOC, COCO, and ImageNet datasets. Furthermore, the combination of mixed dataflow and mixed precision significantly outperforms the previous works in terms of both throughput, off-chip access, and on-chip memory requirement.

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

↑