arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.05111cs.LGcs.CV
收藏

使用网络灵敏度和梯度的深度学习模型压缩

Deep learning model compression using network sensitivity and gradients

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Cadence Design Systems Inc.(楷登电子公司)

Madhumitha Sakthi, Niranjan Yadla, Raj Pawate

摘要:

深度学习模型压缩是深度学习模型边缘部署的一个重要改进领域。鉴于模型的大小及其相应的功耗不断增加,在不显著降低模型性能的情况下降低模型大小和计算要求至关重要。在本文中,我们提出了模型压缩算法的非再训练和再训练条件。在第一种情况下,由于无法访问原始数据或缺乏必要的计算资源而只能访问现成的模型,模型的再训练是不可行的,我们提出了Bin & Quant算法,用于使用网络参数的敏感性来压缩深度学习模型。这导致语音命令和控制模型的13倍压缩和DeepSpeech2模型的7倍压缩。在第二种情况下,当模型可以重新训练和最大的压缩是需要的精度可以忽略不计的损失,我们提出了我们的新的梯度加权k均值聚类算法(GWK)。该方法使用梯度来识别给定聚类中的重要权重值,并将质心推向这些值,从而赋予敏感权重重要性。我们的方法有效地将乘积量化与EWGS[1]算法相结合,用于量化模型的子1位表示。我们在CIFAR10数据集上测试了我们的GWK算法,包括ResNet20,ResNet56,MobileNetv2等一系列模型,并在量化模型上显示了35倍的压缩,与浮点模型相比,准确度的绝对损失小于2%。

英文摘要:

Deep learning model compression is an improving and important field for the edge deployment of deep learning models. Given the increasing size of the models and their corresponding power consumption, it is vital to decrease the model size and compute requirement without a significant drop in the model's performance. In this paper, we present model compression algorithms for both non-retraining and retraining conditions. In the first case where retraining of the model is not feasible due to lack of access to the original data or absence of necessary compute resources while only having access to off-the-shelf models, we propose the Bin & Quant algorithm for compression of the deep learning models using the sensitivity of the network parameters. This results in 13x compression of the speech command and control model and 7x compression of the DeepSpeech2 models. In the second case when the models can be retrained and utmost compression is required for the negligible loss in accuracy, we propose our novel gradient-weighted k-means clustering algorithm (GWK). This method uses the gradients in identifying the important weight values in a given cluster and nudges the centroid towards those values, thereby giving importance to sensitive weights. Our method effectively combines product quantization with the EWGS[1] algorithm for sub-1-bit representation of the quantized models. We test our GWK algorithm on the CIFAR10 dataset across a range of models such as ResNet20, ResNet56, MobileNetv2 and show 35x compression on quantized models for less than 2% absolute loss in accuracy compared to the floating-point models.

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

↑