arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.11086cs.LG
收藏

克服Quantization中的振荡-感知培训

Overcoming Oscillations in Quantization-Aware Training

Qualcomm AI Research, an initiative of Qualcomm Technologies, Inc.(高通人工智能研究院(高通技术公司旗下研究机构))

Markus Nagel, Marios Fournarakis, Yelysei Bondarenko, Tijmen Blankevoort

摘要:

当用模拟量化训练神经网络时,我们观察到量化的权重可以在两个网格点之间振荡,这是出乎意料的。这种效应的重要性及其对量化感知训练(QAT)的影响在文献中没有得到很好的理解或研究。在本文中,我们深入研究了权重振荡现象,并表明由于在推理过程中错误估计了批量归一化统计数据,以及在训练过程中增加了噪声,它可能会导致显著的准确性下降。这些效应在具有深度可分离层的高效网络(例如MobileNet和EfficientNets)的低比特($\leq$ 4比特)量化中特别明显。在我们的分析中,我们调查了几个以前提出的QAT算法,并表明,其中大多数是无法克服振荡。最后,我们提出了两种新的QAT算法来克服训练过程中的振荡:振荡阻尼和迭代权重冻结。我们证明了我们的算法在低位(3位和4位)权重和有效架构(如MobileNetV 2,MobileNetV 3和ImageNet上的EfficentNet-lite)的激活量化方面达到了最先进的精度。我们的源代码可以在{https://github.com/qualcomm-ai-research/oscillations-qat}上找到。

英文摘要:

When training neural networks with simulated quantization, we observe that quantized weights can, rather unexpectedly, oscillate between two grid-points. The importance of this effect and its impact on quantization-aware training (QAT) are not well-understood or investigated in literature. In this paper, we delve deeper into the phenomenon of weight oscillations and show that it can lead to a significant accuracy degradation due to wrongly estimated batch-normalization statistics during inference and increased noise during training. These effects are particularly pronounced in low-bit ($\leq$ 4-bits) quantization of efficient networks with depth-wise separable layers, such as MobileNets and EfficientNets. In our analysis we investigate several previously proposed QAT algorithms and show that most of these are unable to overcome oscillations. Finally, we propose two novel QAT algorithms to overcome oscillations during training: oscillation dampening and iterative weight freezing. We demonstrate that our algorithms achieve state-of-the-art accuracy for low-bit (3 & 4 bits) weight and activation quantization of efficient architectures, such as MobileNetV2, MobileNetV3, and EfficentNet-lite on ImageNet. Our source code is available at {https://github.com/qualcomm-ai-research/oscillations-qat}.

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

↑