arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.12704cs.LG
收藏

基于权值修剪和quantization的卷积神经网络的紧凑表示

Compact representations of convolutional neural networks via weight pruning and quantization

Università degli Studi di Milano(米兰大学)

Giosuè Cataldo Marinò, Alessandro Petrini, Dario Malchiodi, Marco Frasca

摘要:

卷积神经网络(CNN)目前已达到解决几个现实问题的最先进性能。这样的学习模型利用了深度学习领域的最新成果,通常会导致具有(至少)数百万个参数的高性能但非常大的神经网络。因此,当只有少量RAM可用时,或者通常在资源有限的平台内,这种模型的部署是不可能的,因此压缩CNN的策略变得至关重要。在本文中,我们提出了一种新的无损存储格式的CNN的基础上信源编码和利用权重修剪和量化。我们从理论上推导出所提出的结构的空间上界,显示它们与稀疏性和量化水平的权重矩阵的关系。压缩率和执行时间都已经针对矩阵压缩的参考方法进行了测试,并且还讨论了基于权重共享的最先进量化方案的经验评估,以评估它们在应用于卷积层和全连接层时对性能的影响。在分类和回归问题的四个基准测试中,与基线预训练的未压缩网络相比,我们在全连接层上实现了高达0.6%的空间占用减少,在整个网络上实现了5.44%的空间占用减少,同时表现至少与基线一样具有竞争力。

英文摘要:

The state-of-the-art performance for several real-world problems is currently reached by convolutional neural networks (CNN). Such learning models exploit recent results in the field of deep learning, typically leading to highly performing, yet very large neural networks with (at least) millions of parameters. As a result, the deployment of such models is not possible when only small amounts of RAM are available, or in general within resource-limited platforms, and strategies to compress CNNs became thus of paramount importance. In this paper we propose a novel lossless storage format for CNNs based on source coding and leveraging both weight pruning and quantization. We theoretically derive the space upper bounds for the proposed structures, showing their relationship with both sparsity and quantization levels of the weight matrices. Both compression rates and excution times have been tested against reference methods for matrix compression, and an empirical evaluation of state-of-the-art quantization schemes based on weight sharing is also discussed, to assess their impact on the performance when applied to both convolutional and fully connected layers. On four benchmarks for classification and regression problems and comparing to the baseline pre-trained uncompressed network, we achieved a reduction of space occupancy up to 0.6% on fully connected layers and 5.44% on the whole network, while performing at least as competitive as the baseline.

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

↑