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

Fixflow:轻量级CNN推理中不定点运算的评价框架

Fixflow: A Framework to Evaluate Fixed-point Arithmetic in Light-Weight CNN Inference

Sharif University of Technology(谢里夫理工大学)

Farhad Taheri, Siavash Bayat-Sarmadi, Hatame Mosanaei-Boorani, Reza Taheri

摘要:

卷积神经网络(CNN)广泛用于物联网应用中的资源受限设备。为了减少计算复杂性和内存占用,资源受限的设备使用定点表示。与浮点表示相比,这种表示在硬件中消耗更少的面积和能量,具有类似的分类精度。然而,为了采用低精度定点表示,需要各种考虑以获得高精度。虽然提出了许多量化和重新训练技术来提高推理精度,但这些方法非常耗时,并且需要访问整个数据集。本文研究了不同定点硬件单元对CNN推理精度的影响。为此,我们提供了一个名为Fixflow的框架来评估在硬件级别执行的定点计算对CNN分类精度的影响。我们可以在硬件加速器上采用不同的定点考虑因素。这包括舍入方法和调整定点运算结果的精度。Fixflow可以确定采用不同算术单元(如截断乘数)对CNN分类准确性的影响。此外,我们评估这些单元的硬件加速器的能源和面积消耗。我们在两个常见的MNIST和CIFAR-10数据集上进行实验。我们的研究结果表明,采用不同的方法在硬件水平,特别是低精度,可以显着改变分类精度。

英文摘要:

Convolutional neural networks (CNN) are widely used in resource-constrained devices in IoT applications. In order to reduce the computational complexity and memory footprint, the resource-constrained devices use fixed-point representation. This representation consumes less area and energy in hardware with similar classification accuracy compared to the floating-point ones. However, to employ the low-precision fixed-point representation, various considerations to gain high accuracy are required. Although many quantization and re-training techniques are proposed to improve the inference accuracy, these approaches are time-consuming and require access to the entire dataset. This paper investigates the effect of different fixed-point hardware units on CNN inference accuracy. To this end, we provide a framework called Fixflow to evaluate the effect of fixed-point computations performed at hardware level on CNN classification accuracy. We can employ different fixed-point considerations at the hardware accelerators.This includes rounding methods and adjusting the precision of the fixed-point operation's result. Fixflow can determine the impact of employing different arithmetic units (such as truncated multipliers) on CNN classification accuracy. Moreover, we evaluate the energy and area consumption of these units in hardware accelerators. We perform experiments on two common MNIST and CIFAR-10 datasets. Our results show that employing different methods at the hardware level specially with low-precision, can significantly change the classification accuracy.

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

↑