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

使用随机Quantization学习精确的低位深度神经网络

Learning Accurate Low-Bit Deep Neural Networks with Stochastic Quantization

Tsinghua University(清华大学);University of Virginia(弗吉尼亚大学);Intel Labs China(英特尔中国研究院)

Yinpeng Dong, Renkun Ni, Jianguo Li, Yurong Chen, Jun Zhu, Hang Su

摘要:

低比特深度神经网络(DNN)由于其低存储需求和计算效率而成为嵌入式应用的关键。然而,它们受到不可忽略的精度下降的影响。本文提出了一种用于学习精确的低比特DNN的随机量化(SQ)算法。动机是由于以下观察。现有的训练算法在每次迭代中都用低比特表示来近似实值元素/滤波器。量化误差对于某些元件/滤波器可能很小,而对于另一些元件/滤波器可能很大,这导致在训练期间不适当的梯度方向,从而带来显著的精度下降。相反,SQ以与量化误差成反比的随机概率将元素/滤波器的一部分量化为低位,同时以全精度保持其他部分不变。量化和全精度部分在每次迭代中分别用相应的梯度进行更新。SQ比率逐渐增加,直到整个网络被量化。这个过程可以极大地补偿量化误差,从而为低比特DNN产生更好的精度。实验表明,SQ可以在各种数据集和各种网络结构上一致且显着地提高不同低位DNN的准确性。

英文摘要:

Low-bit deep neural networks (DNNs) become critical for embedded applications due to their low storage requirement and computing efficiency. However, they suffer much from the non-negligible accuracy drop. This paper proposes the stochastic quantization (SQ) algorithm for learning accurate low-bit DNNs. The motivation is due to the following observation. Existing training algorithms approximate the real-valued elements/filters with low-bit representation all together in each iteration. The quantization errors may be small for some elements/filters, while are remarkable for others, which lead to inappropriate gradient direction during training, and thus bring notable accuracy drop. Instead, SQ quantizes a portion of elements/filters to low-bit with a stochastic probability inversely proportional to the quantization error, while keeping the other portion unchanged with full-precision. The quantized and full-precision portions are updated with corresponding gradients separately in each iteration. The SQ ratio is gradually increased until the whole network is quantized. This procedure can greatly compensate the quantization error and thus yield better accuracy for low-bit DNNs. Experiments show that SQ can consistently and significantly improve the accuracy for different low-bit DNNs on various datasets and various network structures.

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

↑