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

使用二值化与少量全精度权重的神经网络压缩

Neural Network Compression using Binarization and Few Full-Precision Weights

National Research Council of Italy(意大利国家研究委员会);University of Pisa(比萨大学)

Franco Maria Nardini, Cosimo Rulli, Salvatore Trani, Rossano Venturini

AI总结:

本文提出自动剪枝二值化(APB)压缩技术,结合量化与剪枝,利用少量全精度权重提升二值网络表示能力,并设计高效矩阵乘法算法,在CIFAR10和ImageNet上实现更优的准确率与内存及效率权衡。

摘要:

量化和剪枝是两种有效的深度神经网络模型压缩方法。在本文中,我们提出了自动剪枝二值化(APB),这是一种结合量化与剪枝的新型压缩技术。APB利用少量全精度权重来增强二值网络的表示能力。我们的技术通过决定每个权重应该被二值化还是保持全精度,在最大化网络准确率的同时最小化其内存影响。我们展示了如何通过将其分解为二值矩阵和稀疏-稠密矩阵乘法,来高效地对使用APB压缩的层执行前向传递。此外,我们利用高效的按位运算,设计了两种用于CPU上极端量化矩阵乘法的新型高效算法。所提出的算法比现有的最先进解决方案分别快6.9倍和1.5倍。我们在两个广泛采用的模型压缩数据集,即CIFAR10和ImageNet上对APB进行了广泛评估。与基于i)量化、ii)剪枝以及iii)剪枝与量化结合的最先进方法相比,APB提供了更好的准确率/内存权衡。APB在准确率/效率权衡方面优于量化,比2-bit量化模型快达2倍且无准确率损失。

英文摘要:

Quantization and pruning are two effective Deep Neural Networks model compression methods. In this paper, we propose Automatic Prune Binarization (APB), a novel compression technique combining quantization with pruning. APB enhances the representational capability of binary networks using a few full-precision weights. Our technique jointly maximizes the accuracy of the network while minimizing its memory impact by deciding whether each weight should be binarized or kept in full precision. We show how to efficiently perform a forward pass through layers compressed using APB by decomposing it into a binary and a sparse-dense matrix multiplication. Moreover, we design two novel efficient algorithms for extremely quantized matrix multiplication on CPU, leveraging highly efficient bitwise operations. The proposed algorithms are 6.9x and 1.5x faster than available state-of-the-art solutions. We extensively evaluate APB on two widely adopted model compression datasets, namely CIFAR10 and ImageNet. APB delivers better accuracy/memory trade-off compared to state-of-the-art methods based on i) quantization, ii) pruning, and iii) combination of pruning and quantization. APB outperforms quantization in the accuracy/efficiency trade-off, being up to 2x faster than the 2-bit quantized model with no loss in accuracy.

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

↑