arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1810.02068cs.LGcs.AIcs.ARcs.CVstat.ML
收藏

基于FPGA的快速高效二值化神经网络推理

Towards Fast and Energy-Efficient Binarized Neural Network Inference on FPGA

Iluvatar CoreX(天数智芯);University of California San Diego(加州大学圣地亚哥分校)

Cheng Fu, Shilin Zhu, Hao Su, Ching-En Lee, Jishen Zhao

摘要:

二值化神经网络(Binarized Neural Network,BNN)通过使用单个比特(-1/+1)作为网络参数和中间表示,消除了传统CNN中的位宽冗余,大大降低了片外数据传输和存储开销。然而,BNN推理仍然存在大量的计算冗余。通过分析图像的局部属性和学习的BNN内核权重,我们观察到平均$\sim$ 78%的输入相似性和$\sim$ 59%的权重内核之间的权重相似性,我们提出的度量在常见的网络架构。因此,确实存在冗余,可以利用这些冗余来进一步减少片上计算量。受观察的启发,在本文中,我们提出了两种类型的快速和节能的BNN推理架构。我们还提供了分析和见解,以便为不同的数据集和网络模型选择更好的策略。通过重用先前计算的结果,可以跳过用于数据缓冲器访问和计算的许多周期。通过实验,我们证明了80%的计算和40%的缓冲区访问可以跳过利用BNN相似性。因此,我们的设计可以实现减少17%的总功耗,减少54%的片上功耗和2.4 $\times$的最大加速比,与基线相比,没有应用我们的重用技术。我们的设计还显示了1.9 $\times$更多的面积效率相比,国家的最先进的BNN推理设计。我们相信,我们在FPGA上部署BNN将为在移动设备上运行深度学习模型带来光明的未来。

英文摘要:

Binarized Neural Network (BNN) removes bitwidth redundancy in classical CNN by using a single bit (-1/+1) for network parameters and intermediate representations, which has greatly reduced the off-chip data transfer and storage overhead. However, a large amount of computation redundancy still exists in BNN inference. By analyzing local properties of images and the learned BNN kernel weights, we observe an average of $\sim$78% input similarity and $\sim$59% weight similarity among weight kernels, measured by our proposed metric in common network architectures. Thus there does exist redundancy that can be exploited to further reduce the amount of on-chip computations. Motivated by the observation, in this paper, we proposed two types of fast and energy-efficient architectures for BNN inference. We also provide analysis and insights to pick the better strategy of these two for different datasets and network models. By reusing the results from previous computation, much cycles for data buffer access and computations can be skipped. By experiments, we demonstrate that 80% of the computation and 40% of the buffer access can be skipped by exploiting BNN similarity. Thus, our design can achieve 17% reduction in total power consumption, 54% reduction in on-chip power consumption and 2.4$\times$ maximum speedup, compared to the baseline without applying our reuse technique. Our design also shows 1.9$\times$ more area-efficiency compared to state-of-the-art BNN inference design. We believe our deployment of BNN on FPGA leads to a promising future of running deep learning models on mobile devices.

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

↑