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

作为约束优化的模型压缩及其在神经网络中的应用。零件II:quantization

Model compression as constrained optimization, with application to neural nets. Part II: quantization

University of California, Merced(加州大学默塞德分校)

Miguel Á. Carreira-Perpiñán, Yerlan Idelbayev

摘要:

我们考虑通过量化进行深度神经网络压缩的问题:给定一个大的参考网络,我们希望使用具有$K$条目的码本来计算其实值权重,以便量化网络的训练损失最小。对于二值化或三值化方法,码本可以最佳地与网络联合学习,或者固定。以前的工作已经量化了参考网络的权重,或者在反向传播算法中引入了舍入操作,但这并不能保证收敛到损失最优的量化网络。我们描述了一种新的方法的基础上,最近提出的框架模型压缩约束优化\citep{Carreir17a}。这导致了一个简单的迭代“学习-压缩”算法,该算法交替学习连续权重的网络的步骤和量化(或二进制化/三进制化)权重的步骤,并且保证收敛到量化网络的损失的局部最优值。我们开发的自适应码本或(部分)固定码本的算法。后者包括二值化、三值化、二的幂和其他重要的特殊情况。我们的实验表明,我们可以实现更高的压缩率比以前的量化工作(即使只使用1位每重量),可以忽略不计的损失退化。

英文摘要:

We consider the problem of deep neural net compression by quantization: given a large, reference net, we want to quantize its real-valued weights using a codebook with $K$ entries so that the training loss of the quantized net is minimal. The codebook can be optimally learned jointly with the net, or fixed, as for binarization or ternarization approaches. Previous work has quantized the weights of the reference net, or incorporated rounding operations in the backpropagation algorithm, but this has no guarantee of converging to a loss-optimal, quantized net. We describe a new approach based on the recently proposed framework of model compression as constrained optimization \citep{Carreir17a}. This results in a simple iterative "learning-compression" algorithm, which alternates a step that learns a net of continuous weights with a step that quantizes (or binarizes/ternarizes) the weights, and is guaranteed to converge to local optimum of the loss for quantized nets. We develop algorithms for an adaptive codebook or a (partially) fixed codebook. The latter includes binarization, ternarization, powers-of-two and other important particular cases. We show experimentally that we can achieve much higher compression rates than previous quantization work (even using just 1 bit per weight) with negligible loss degradation.

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

↑