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

神经网络剪枝真的需要复杂性吗?基于全局幅度剪枝的案例研究

Is Complexity Required for Neural Network Pruning? A Case Study on Global Magnitude Pruning

Institute for Infocomm Research (I2 R), A*STAR(资讯通信研究院 (I2R),新加坡科技研究局 (A*STAR));National University of Singapore(新加坡国立大学);Nanyang Technological University(南洋理工大学)

Manas Gupta, Efe Camci, Vishandi Rudy Keneta, Abhishek Vaidyanathan, Ritwik Kanodia, Chuan-Sheng Foo, Wu Min, Lin Jie

AI总结:

本文质疑剪枝方法日益复杂的必要性,发现简单的全局幅度剪枝在稀疏度-准确率权衡上全面优于SOTA技术,并通过Minimum Threshold技术解决层崩溃问题,在多种模型和数据集上验证了其有效性。

摘要:

在过去十年中,神经网络剪枝变得非常流行,因为研究表明可以从现代神经网络中安全地移除大量权重而不损害准确率。此后提出了许多剪枝方法,每种都声称比先前技术更好,然而代价是剪枝方法日益复杂。这些方法包括利用重要性评分、通过反向传播获取反馈或采用基于启发式的剪枝规则等。在这项工作中,我们质疑这种引入复杂性的模式是否真的必要以获得更好的剪枝结果。我们将这些SOTA技术与一个简单的剪枝基线进行基准比较,即全局幅度剪枝(Global MP),它按权重大小排序并剪枝最小的权重。令人惊讶的是,我们发现原始的Global MP在与SOTA技术对比时表现非常好。在考虑稀疏度-准确率权衡时,Global MP在所有稀疏度比例下都优于所有SOTA技术。在考虑FLOPs-准确率权衡时,一些SOTA技术在较低稀疏度比例下优于Global MP,然而,Global MP在高稀疏度比例下开始表现良好,并在极高稀疏度比例下表现非常出色。此外,我们发现许多剪枝算法在高稀疏度率下遇到的一个常见问题,即层崩溃,可以在Global MP中轻松修复。我们探讨了网络中发生层崩溃的原因,以及如何利用一种称为Minimum Threshold的技术在Global MP中缓解它。我们在各种模型(WRN-28-8、ResNet-32、ResNet-50、MobileNet-V1和FastGRNN)和多个数据集(CIFAR-10、ImageNet和HAR-2)上展示了上述发现。代码可在https://github.com/manasgupta-1/GlobalMP获取。

英文摘要:

Pruning neural networks has become popular in the last decade when it was shown that a large number of weights can be safely removed from modern neural networks without compromising accuracy. Numerous pruning methods have been proposed since, each claiming to be better than prior art, however, at the cost of increasingly complex pruning methodologies. These methodologies include utilizing importance scores, getting feedback through back-propagation or having heuristics-based pruning rules amongst others. In this work, we question whether this pattern of introducing complexity is really necessary to achieve better pruning results. We benchmark these SOTA techniques against a simple pruning baseline, namely, Global Magnitude Pruning (Global MP), that ranks weights in order of their magnitudes and prunes the smallest ones. Surprisingly, we find that vanilla Global MP performs very well against the SOTA techniques. When considering sparsity-accuracy trade-off, Global MP performs better than all SOTA techniques at all sparsity ratios. When considering FLOPs-accuracy trade-off, some SOTA techniques outperform Global MP at lower sparsity ratios, however, Global MP starts performing well at high sparsity ratios and performs very well at extremely high sparsity ratios. Moreover, we find that a common issue that many pruning algorithms run into at high sparsity rates, namely, layer-collapse, can be easily fixed in Global MP. We explore why layer collapse occurs in networks and how it can be mitigated in Global MP by utilizing a technique called Minimum Threshold. We showcase the above findings on various models (WRN-28-8, ResNet-32, ResNet-50, MobileNet-V1 and FastGRNN) and multiple datasets (CIFAR-10, ImageNet and HAR-2). Code is available at https://github.com/manasgupta-1/GlobalMP.

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

↑