arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2109.03513cs.CVeess.SP
收藏

深度神经网络的弹性有效位Quantization与加速

Elastic Significant Bit Quantization and Acceleration for Deep Neural Networks

Nankai University(南开大学);Northeastern University(东北大学)

Cheng Gong, Ye Lu, Kunpeng Xie, Zongming Jin, Tao Li, Yanzhi Wang

摘要:

量化已被证明是提高深度神经网络(DNN)推理效率的重要方法。然而,在将DNN权重或激活值从高精度格式量化为量化对应值时,在准确性和效率之间取得良好平衡仍然具有挑战性。我们提出了一种称为弹性有效位量化(ESB)的新方法,该方法控制量化值的有效位数,从而以较少的资源获得更好的推理精度。我们设计了一个统一的数学公式来约束量化值的ESB与灵活的有效位数。我们还引入了一个分布差异对齐器(DDA)来定量对齐全精度权重或激活值与量化值之间的分布。因此,ESB适用于各种钟形权重分布和DNN的激活,从而保持较高的推理精度。由于量化值的有效位数较少,ESB可以降低乘法复杂度。我们实现ESB作为一个加速器,并定量评估其在FPGA上的效率。大量的实验结果表明,ESB量化始终优于最先进的方法,并实现了平均精度分别比AlexNet,ResNet18和MobileNetV2提高4.78%,1.92%和3.56%。此外,ESB作为加速器可以在Xilinx ZCU 102 FPGA平台上实现10.95 GOPS的峰值性能,无需DSP。与CPU、GPU和FPGA上最先进的加速器相比,ESB加速器可以分别将能效提高高达65倍、11倍和26倍。

英文摘要:

Quantization has been proven to be a vital method for improving the inference efficiency of deep neural networks (DNNs). However, it is still challenging to strike a good balance between accuracy and efficiency while quantizing DNN weights or activation values from high-precision formats to their quantized counterparts. We propose a new method called elastic significant bit quantization (ESB) that controls the number of significant bits of quantized values to obtain better inference accuracy with fewer resources. We design a unified mathematical formula to constrain the quantized values of the ESB with a flexible number of significant bits. We also introduce a distribution difference aligner (DDA) to quantitatively align the distributions between the full-precision weight or activation values and quantized values. Consequently, ESB is suitable for various bell-shaped distributions of weights and activation of DNNs, thus maintaining a high inference accuracy. Benefitting from fewer significant bits of quantized values, ESB can reduce the multiplication complexity. We implement ESB as an accelerator and quantitatively evaluate its efficiency on FPGAs. Extensive experimental results illustrate that ESB quantization consistently outperforms state-of-the-art methods and achieves average accuracy improvements of 4.78%, 1.92%, and 3.56% over AlexNet, ResNet18, and MobileNetV2, respectively. Furthermore, ESB as an accelerator can achieve 10.95 GOPS peak performance of 1k LUTs without DSPs on the Xilinx ZCU102 FPGA platform. Compared with CPU, GPU, and state-of-the-art accelerators on FPGAs, the ESB accelerator can improve the energy efficiency by up to 65x, 11x, and 26x, respectively.

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

↑