arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2008.05767cs.LGcs.CVstat.ML
收藏

加权移位标量耦合后训练Quantization

Weight Equalizing Shift Scaler-Coupled Post-training Quantization

Samsung Research, Samsung Electronics Co.(三星电子 三星研究院)

Jihun Oh, SangJeong Lee, Meejeong Park, Pooni Walagaurav, Kiseok Kwon

摘要:

后训练,逐层量化是优选的,因为它无需再训练并且是硬件友好的。然而,当神经网络模型具有每个输出通道的权重范围的大的差异时,发生了准确性降低。特别是,MobileNet家族在ImageNet数据集上的top-1准确率在8位权重量化后从70.60% ~ 71.87%下降到0.1%。为了减轻这种显着的准确性降低,我们提出了一个新的权重均衡移位缩放器,即通过4位二进制移位重新缩放每个通道的权重范围,然后逐层量化。为了恢复原始输出范围,逆二进制移位被有效地融合到定制神经处理单元的固定计算卷积运算符中的现有每层尺度复合。二进制移位是我们算法的一个关键特性,它在不影响内存占用的情况下显着提高了精度性能。结果表明,该方法在MobileNets中的top-1准确率为69.78% ~ 70.96%,并且在不同的网络模型和任务中表现出鲁棒性,这与信道量化结果具有竞争力。

英文摘要:

Post-training, layer-wise quantization is preferable because it is free from retraining and is hardware-friendly. Nevertheless, accuracy degradation has occurred when a neural network model has a big difference of per-out-channel weight ranges. In particular, the MobileNet family has a tragedy drop in top-1 accuracy from 70.60% ~ 71.87% to 0.1% on the ImageNet dataset after 8-bit weight quantization. To mitigate this significant accuracy reduction, we propose a new weight equalizing shift scaler, i.e. rescaling the weight range per channel by a 4-bit binary shift, prior to a layer-wise quantization. To recover the original output range, inverse binary shifting is efficiently fused to the existing per-layer scale compounding in the fixed-computing convolutional operator of the custom neural processing unit. The binary shift is a key feature of our algorithm, which significantly improved the accuracy performance without impeding the memory footprint. As a result, our proposed method achieved a top-1 accuracy of 69.78% ~ 70.96% in MobileNets and showed robust performance in varying network models and tasks, which is competitive to channel-wise quantization results.

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

↑