arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.02124cs.LGcs.AIcs.CVcs.NEstat.ML
收藏

非结构化的DNN权重修剪--它在任何平台上都是有益的吗?

Non-Structured DNN Weight Pruning -- Is It Beneficial in Any Platform?

Xiaolong Ma, Sheng Lin, Shaokai Ye, Zhezhi He, Linfeng Zhang, Geng Yuan, Sia Huat Tan, Zhengang Li, Deliang Fan, Xuehai Qian, Xue Lin, Kaisheng Ma, Yanzhi Wang

摘要:

大型深度神经网络(DNN)模型对能效提出了关键挑战,因为片外DRAM访问的能耗显著高于算术或SRAM操作。这就从两个方面推动了对模型压缩的深入研究。权重修剪利用了权重数量的冗余,并且可以以非结构化方式执行,其具有更高的灵活性和修剪率,但由于不规则的权重而导致索引访问,或者以结构化方式执行,其以较低的修剪率保留完整的矩阵结构。权重量化利用权重中的位数的冗余。与修剪相比,量化更加硬件友好,并且已经成为FPGA和ASIC实现的“必做”步骤。本文首次对这一问题给出了明确的答案。首先,我们建立ADMM-NN-S扩展和增强ADMM-NN,最近提出的联合权重修剪和量化框架。其次,我们开发了一种方法,公平和基本的比较非结构化和结构化修剪的存储和计算效率。我们的研究结果表明,ADMM-NN-S始终优于现有技术:(i)它在LeNet-5,AlexNet和ResNet-50上分别实现了348倍,36倍和8倍的整体权重修剪,(几乎)零精度损失;(ii)我们证明了第一个完全二进制化的(所有层)DNN在许多情况下可以在精度上无损。这些结果为我们的研究提供了强有力的基线和可信度。基于所提出的比较框架,在相同的精度和量化,结果表明,非结构化剪枝是没有竞争力的存储和计算效率方面。因此,我们得出结论,非结构化修剪被认为是有害的。我们敦促社区不要继续DNN推理加速非结构化稀疏性。

英文摘要:

Large deep neural network (DNN) models pose the key challenge to energy efficiency due to the significantly higher energy consumption of off-chip DRAM accesses than arithmetic or SRAM operations. It motivates the intensive research on model compression with two main approaches. Weight pruning leverages the redundancy in the number of weights and can be performed in a non-structured, which has higher flexibility and pruning rate but incurs index accesses due to irregular weights, or structured manner, which preserves the full matrix structure with lower pruning rate. Weight quantization leverages the redundancy in the number of bits in weights. Compared to pruning, quantization is much more hardware-friendly, and has become a "must-do" step for FPGA and ASIC implementations. This paper provides a definitive answer to the question for the first time. First, we build ADMM-NN-S by extending and enhancing ADMM-NN, a recently proposed joint weight pruning and quantization framework. Second, we develop a methodology for fair and fundamental comparison of non-structured and structured pruning in terms of both storage and computation efficiency. Our results show that ADMM-NN-S consistently outperforms the prior art: (i) it achieves 348x, 36x, and 8x overall weight pruning on LeNet-5, AlexNet, and ResNet-50, respectively, with (almost) zero accuracy loss; (ii) we demonstrate the first fully binarized (for all layers) DNNs can be lossless in accuracy in many cases. These results provide a strong baseline and credibility of our study. Based on the proposed comparison framework, with the same accuracy and quantization, the results show that non-structrued pruning is not competitive in terms of both storage and computation efficiency. Thus, we conclude that non-structured pruning is considered harmful. We urge the community not to continue the DNN inference acceleration for non-structured sparsity.

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

↑