arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2007.10500cs.LGcs.CVeess.SP
收藏

近似乘法对卷积神经网络的影响

The Effects of Approximate Multiplication on Convolutional Neural Networks

Min Soo Kim, Alberto A. Del Barrio, HyunJin Kim, Nader Bagherzadeh

摘要:

本文分析了在深度卷积神经网络(CNN)上执行推理时近似乘法的影响。近似乘法可以降低底层电路的成本,使得可以在硬件加速器中更有效地执行CNN推断。该研究确定了卷积,全连接和批量归一化层中的关键因素,这些因素允许更准确的CNN预测,尽管近似乘法存在误差。同样的因素也提供了bfloat 16乘法在CNN上表现良好的算术解释。使用公认的网络架构进行实验,以表明近似乘法器可以产生几乎与FP 32参考一样准确的预测,而无需额外的训练。例如,与FP 32参考相比,使用Mitch- $w$ 6乘法的ResNet和Inception-v4模型产生的前5个误差在0.2%以内。Mitch- $w$ 6与bfloat 16的成本比较,其中MAC操作与bfloat 16算法相比节省高达80%的能量。本文最深远的贡献是分析的理由,乘法可以近似,而添加需要精确的CNN MAC操作。

英文摘要:

This paper analyzes the effects of approximate multiplication when performing inferences on deep convolutional neural networks (CNNs). The approximate multiplication can reduce the cost of the underlying circuits so that CNN inferences can be performed more efficiently in hardware accelerators. The study identifies the critical factors in the convolution, fully-connected, and batch normalization layers that allow more accurate CNN predictions despite the errors from approximate multiplication. The same factors also provide an arithmetic explanation of why bfloat16 multiplication performs well on CNNs. The experiments are performed with recognized network architectures to show that the approximate multipliers can produce predictions that are nearly as accurate as the FP32 references, without additional training. For example, the ResNet and Inception-v4 models with Mitch-$w$6 multiplication produces Top-5 errors that are within 0.2% compared to the FP32 references. A brief cost comparison of Mitch-$w$6 against bfloat16 is presented, where a MAC operation saves up to 80% of energy compared to the bfloat16 arithmetic. The most far-reaching contribution of this paper is the analytical justification that multiplications can be approximated while additions need to be exact in CNN MAC operations.

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

↑