arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.03046cs.LGstat.ML
收藏

用于稀疏CNN的聚焦Quantization

Focused Quantization for Sparse CNNs

Shenzhen Institutes of Advanced Technology(深圳先进技术研究院);University of Cambridge(剑桥大学);University of Macau(澳门大学)

Yiren Zhao, Xitong Gao, Daniel Bates, Robert Mullins, Cheng-Zhong Xu

摘要:

深度卷积神经网络(CNN)是用于各种视觉任务的强大工具,但CNN所需的大量内存和计算资源对在受限设备上部署它们构成了挑战。现有的压缩技术,虽然擅长减少模型的大小,努力是计算友好的。在本文中,我们注意到稀疏CNN的统计特性,并提出了聚焦量化,这是一种基于2的幂值的新型量化策略,它利用了细粒度修剪后的权重分布。所提出的方法动态地发现最有效的数值表示的权重层具有不同的稀疏性,显着减少模型的大小。量化CNN中的乘法被更便宜的比特移位操作所取代,以实现高效的推理。结合无损编码,我们构建了一个压缩管道,为CNN提供高压缩比(CR),低计算成本和最小的准确性损失。在ResNet-50中,我们实现了18.08x CR,前5名精度仅损失0.24%,优于现有的压缩方法。我们完全压缩了ResNet-18,发现它不仅具有更高的CR和前5名精度,而且硬件效率更高,因为与其他最先进的量化方法相比,它需要更少的逻辑门来实现。

英文摘要:

Deep convolutional neural networks (CNNs) are powerful tools for a wide range of vision tasks, but the enormous amount of memory and compute resources required by CNNs pose a challenge in deploying them on constrained devices. Existing compression techniques, while excelling at reducing model sizes, struggle to be computationally friendly. In this paper, we attend to the statistical properties of sparse CNNs and present focused quantization, a novel quantization strategy based on power-of-two values, which exploits the weight distributions after fine-grained pruning. The proposed method dynamically discovers the most effective numerical representation for weights in layers with varying sparsities, significantly reducing model sizes. Multiplications in quantized CNNs are replaced with much cheaper bit-shift operations for efficient inference. Coupled with lossless encoding, we built a compression pipeline that provides CNNs with high compression ratios (CR), low computation cost and minimal loss in accuracy. In ResNet-50, we achieved a 18.08x CR with only 0.24% loss in top-5 accuracy, outperforming existing compression methods. We fully compressed a ResNet-18 and found that it is not only higher in CR and top-5 accuracy, but also more hardware efficient as it requires fewer logic gates to implement when compared to other state-of-the-art quantization methods assuming the same throughput.

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

↑