arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1612.01543cs.CVcs.LGcs.NE
收藏

走向网络的极限Quantization

Towards the Limit of Network Quantization

Samsung US R&D Center(三星美国研发中心)

Yoojin Choi, Mostafa El-Khamy, Jungwon Lee

摘要:

网络量化是减少深度神经网络冗余的网络压缩技术之一。它通过量化减少了不同网络参数值的数量,以节省存储空间。在本文中,我们设计的网络量化方案,最大限度地减少由于量化的压缩比约束的性能损失。我们分析了量化误差与神经网络损失函数的定量关系,并确定了Hessian加权失真测度是优化网络量化的局部目标函数。因此,Hessian-weighted k-means聚类被提出用于聚类网络参数以进行分类。当最佳变长二进制码(例如,Huffman码进行进一步压缩,推导出网络量化问题可以与信息论中的熵约束标量量化(ECSQ)问题相联系,从而提出了两种ECSQ网络量化方案,即,均匀量化和类似于Lloyd算法的迭代解。最后,使用简单的均匀量化和霍夫曼编码,我们的实验表明,LeNet、32层ResNet和AlexNet分别可以实现51.25、22.17和40.65的压缩比。

英文摘要:

Network quantization is one of network compression techniques to reduce the redundancy of deep neural networks. It reduces the number of distinct network parameter values by quantization in order to save the storage for them. In this paper, we design network quantization schemes that minimize the performance loss due to quantization given a compression ratio constraint. We analyze the quantitative relation of quantization errors to the neural network loss function and identify that the Hessian-weighted distortion measure is locally the right objective function for the optimization of network quantization. As a result, Hessian-weighted k-means clustering is proposed for clustering network parameters to quantize. When optimal variable-length binary codes, e.g., Huffman codes, are employed for further compression, we derive that the network quantization problem can be related to the entropy-constrained scalar quantization (ECSQ) problem in information theory and consequently propose two solutions of ECSQ for network quantization, i.e., uniform quantization and an iterative solution similar to Lloyd's algorithm. Finally, using the simple uniform quantization followed by Huffman coding, we show from our experiments that the compression ratios of 51.25, 22.17 and 40.65 are achievable for LeNet, 32-layer ResNet and AlexNet, respectively.

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

↑