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.
翻译:本文分析了在对深卷变神经网络(CNNs)进行推论时的近似倍增效应。 近似倍增可以降低基本电路的成本, 以便CNN的推论能够在硬件加速器中更高效地进行。 这项研究确定了演进、 完全连接和分批正常化层的关键因素, 使得CNN的预测更加准确, 尽管有近似倍增错误, 也能够预测出近似倍增。 同样的因素也提供了计算解释为什么Bfloat16的倍增在CNNs上效果良好。 实验是在公认的网络结构中进行的, 以显示近似倍增系数可以产生接近FP32参考值的预测, 而无需额外培训。 例如, ResNet和Inception- v4 模型与Mitch-w$6 倍增殖产生Top-5误差, 与FP32 引用的误差不到0.2%。 提供了Mitch-w6与bfloat16的简单成本比较, 其中MAC的操作节省了80%的能源, 与bfloat16 运算。 相比, 最深远的追加的论文是分析的推算。