arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1709.07776cs.LG
收藏

面向块浮点运算的卷积神经网络加速器设计的计算误差分析

Computation Error Analysis of Block Floating Point Arithmetic Oriented Convolution Neural Network Accelerator Design

Beijing University of Posts and Telecommunications(北京邮电大学);Tsinghua University(清华大学)

Zhourui Song, Zhenyu Liu, Dongsheng Wang

摘要:

大规模卷积神经网络在嵌入式平台上的部署面临着计算量和片外通信量的巨大负担。由于CNN对计算误差有很强的耐受性,在CNN加速器中采用块浮点(BFP)算法可以有效地节省硬件成本和数据流量,同时保持分类精度。在本文中,我们验证了BFP中的字宽定义对CNN性能的影响,而无需重新训练。本文测试了几种典型的CNN模型,包括VGG 16、ResNet-18、ResNet-50和GoogLeNet。实验结果表明,8位尾数,包括符号位,在BFP表示仅引起小于0.3%的准确性损失。此外,我们还从理论上分析了计算误差,给出了信噪比(NSR)的上界,为基于BFP的CNN引擎设计提供了有希望的指导。

英文摘要:

The heavy burdens of computation and off-chip traffic impede deploying the large scale convolution neural network on embedded platforms. As CNN is attributed to the strong endurance to computation errors, employing block floating point (BFP) arithmetics in CNN accelerators could save the hardware cost and data traffics efficiently, while maintaining the classification accuracy. In this paper, we verify the effects of word width definitions in BFP to the CNN performance without retraining. Several typical CNN models, including VGG16, ResNet-18, ResNet-50 and GoogLeNet, were tested in this paper. Experiments revealed that 8-bit mantissa, including sign bit, in BFP representation merely induced less than 0.3% accuracy loss. In addition, we investigate the computational errors in theory and develop the noise-to-signal ratio (NSR) upper bound, which provides the promising guidance for BFP based CNN engine design.

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

↑