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

LQ-Nets:学习Quantization,用于高精度和紧凑的深度神经网络

LQ-Nets: Learned Quantization for Highly Accurate and Compact Deep Neural Networks

Microsoft Research(微软研究院)

Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, Gang Hua

摘要:

虽然权重和激活量化是深度神经网络(DNN)压缩的有效方法,并且具有很大的潜力来利用位操作提高推理速度,但量化模型和全精度模型之间在预测精度方面仍然存在明显的差距。为了解决这一差距,我们建议联合训练量化的,位操作兼容的DNN及其相关的量化器,而不是使用固定的,手工制作的量化方案,如均匀或对数量化。我们的方法学习量化器适用于网络权重和激活与任意位精度,我们的量化器很容易训练。在CIFAR-10和ImageNet数据集上进行的综合实验表明,我们的方法在AlexNet、VGG-Net、GoogLeNet、ResNet和DenseNet等各种网络结构上都表现良好,在准确性方面超过了以前的量化方法。代码可在https://github.com/Microsoft/LQ-Nets获得

英文摘要:

Although weight and activation quantization is an effective approach for Deep Neural Network (DNN) compression and has a lot of potentials to increase inference speed leveraging bit-operations, there is still a noticeable gap in terms of prediction accuracy between the quantized model and the full-precision model. To address this gap, we propose to jointly train a quantized, bit-operation-compatible DNN and its associated quantizers, as opposed to using fixed, handcrafted quantization schemes such as uniform or logarithmic quantization. Our method for learning the quantizers applies to both network weights and activations with arbitrary-bit precision, and our quantizers are easy to train. The comprehensive experiments on CIFAR-10 and ImageNet datasets show that our method works consistently well for various network structures such as AlexNet, VGG-Net, GoogLeNet, ResNet, and DenseNet, surpassing previous quantization methods in terms of accuracy by an appreciable margin. Code available at https://github.com/Microsoft/LQ-Nets

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

↑