Is Complexity Required for Neural Network Pruning? A Case Study on Global Magnitude Pruning
Authors:
- Manas GuptaMGManas Gupta
- Efe CamciECEfe Camci
- Vishandi Rudy KenetaVKVishandi Rudy Keneta
- Abhishek VaidyanathanAVAbhishek Vaidyanathan
- Ritwik KanodiaRKRitwik Kanodia
- Chuan-Sheng FooCFChuan-Sheng Foo
- Wu MinWMWu Min
- Lin JieLJLin Jie
Preprint
Abstract
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 then, each claiming to be better than the previous. Many state-of-the-art (SOTA) techniques today rely on complex pruning methodologies 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 naive pruning baseline, namely, Global Magnitude Pruning (Global MP). Global MP ranks weights in order of their magnitudes and prunes the smallest ones. Hence, in its vanilla form, it is one of the simplest pruning techniques. Surprisingly, we find that vanilla Global MP outperforms all the other SOTA techniques and achieves a new SOTA result. It also achieves promising performance on FLOPs sparsification, which we find is enhanced, when pruning is conducted in a gradual fashion. We also find that Global MP is generalizable across tasks, datasets, and models with superior performance. Moreover, a common issue that many pruning algorithms run into at high sparsity rates, namely, layer-collapse, can be easily fixed in Global MP by setting a minimum threshold of weights to be retained in each layer. Lastly, unlike many other SOTA techniques, Global MP does not require any additional algorithm specific hyper-parameters and is very straightforward to tune and implement. We showcase our 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.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Automated Filter Pruning Based on High-Dimensional Bayesian OptimizationIEEE Access, 2022
- Autonomous aerial cinematography in unstructured environments with learned artistic decision‐makingJournal of Field Robotics, 2020
- Domain-Adaptive Deep Network Compression2017
- Deep Residual Learning for Image Recognition2016
- Data-free Parameter Pruning for Deep Neural Networks2015
- Sparse connection and pruning in large dynamic artificial neural networks1997