arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.11233cs.LGstat.ML
收藏

深度神经网络中基于再训练的迭代权值Quantization

Retraining-Based Iterative Weight Quantization for Deep Neural Networks

Samsung Research(三星研究院)

Dongsoo Lee, Byeongwook Kim

摘要:

模型压缩由于其在保持DNN的准确性的同时显著减少硬件资源需求的能力而获得了很多关注。模型压缩对于内存密集型递归神经网络特别有用,因为较小的内存占用不仅对于减少存储需求而且对于快速推理操作至关重要。量化被认为是一种有效的模型压缩方法,研究人员对最小化表示参数的比特数感兴趣。在这项工作中,我们引入了一种迭代技术来应用量化,呈现高压缩比,而无需对训练算法进行任何修改。在所提出的技术中,权重量化之后是用全精度权重重新训练模型。我们表明,迭代再训练产生新的权重集,可以量化,在每次迭代减少量化损失。我们还表明,量化能够有效地利用修剪,另一种有效的模型压缩方法。结合这两种方法的实施问题也得到了解决。我们的实验结果表明,使用1位量化权重的LSTM模型对于PTB数据集是足够的,而没有任何准确性下降,而以前的方法需要至少2-4位量化权重。

英文摘要:

Model compression has gained a lot of attention due to its ability to reduce hardware resource requirements significantly while maintaining accuracy of DNNs. Model compression is especially useful for memory-intensive recurrent neural networks because smaller memory footprint is crucial not only for reducing storage requirement but also for fast inference operations. Quantization is known to be an effective model compression method and researchers are interested in minimizing the number of bits to represent parameters. In this work, we introduce an iterative technique to apply quantization, presenting high compression ratio without any modifications to the training algorithm. In the proposed technique, weight quantization is followed by retraining the model with full precision weights. We show that iterative retraining generates new sets of weights which can be quantized with decreasing quantization loss at each iteration. We also show that quantization is efficiently able to leverage pruning, another effective model compression method. Implementation issues on combining the two methods are also addressed. Our experimental results demonstrate that an LSTM model using 1-bit quantized weights is sufficient for PTB dataset without any accuracy degradation while previous methods demand at least 2-4 bits for quantized weights.

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

↑