https://github.com/alixunxing/rethinking-network-pruning
Rethinking the Value of Network Pruning (Pytorch) (ICLR 2019)
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.0%) to scientific vocabulary
Last synced: 6 months ago
·
JSON representation
Repository
Rethinking the Value of Network Pruning (Pytorch) (ICLR 2019)
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Fork of Eric-mingjie/rethinking-network-pruning
Created over 5 years ago
· Last pushed over 5 years ago
https://github.com/alixunxing/rethinking-network-pruning/blob/master/
# Rethinking the Value of Network Pruning This repository contains the code for reproducing the results, and trained ImageNet models, in the following paper: Rethinking the Value of Network Pruning. [[arXiv]](https://arxiv.org/abs/1810.05270) [[OpenReview]](https://openreview.net/forum?id=rJlnB3C5Ym) [Zhuang Liu](https://liuzhuang13.github.io/)\*, [Mingjie Sun](https://eric-mingjie.github.io/)\*, [Tinghui Zhou](https://people.eecs.berkeley.edu/~tinghuiz/), [Gao Huang](http://www.gaohuang.net/), [Trevor Darrell](https://people.eecs.berkeley.edu/~trevor/) (\* equal contribution). ICLR 2019. Also [Best Paper Award](https://nips.cc/Conferences/2018/Schedule?showEvent=10941) at NIPS 2018 Workshop on Compact Deep Neural Networks. Several pruning methods' implementations contained in this repo can also be readily used for other research purposes. ## Paper Summary
Fig 1: A typical three-stage network pruning pipeline.
Our paper shows that for **structured** pruning, **training the pruned model from scratch can almost always achieve comparable or higher level of accuracy than the model obtained from the typical "training, pruning and fine-tuning" (Fig. 1) procedure**. We conclude that for those pruning methods: 1. Training a large, over-parameterized model is often not necessary to obtain an efficient final model. 2. Learned important weights of the large model are typically not useful for the small pruned model. 3. The pruned architecture itself, rather than a set of inherited important weights, is more crucial to the efficiency in the final model, which suggests that in some cases pruning can be useful as an architecture search paradigm. Our results suggest the need for more careful baseline evaluations in future research on structured pruning methods.Fig 2: Difference between predefined and automatically discovered target architectures, in channel pruning. The pruning ratio x is user-specified, while a, b, c, d are determined by the pruning algorithm. Unstructured sparse pruning can also be viewed as automatic. Our finding has different implications for predefined and automatic methods: for a predefined method, it is possible to skip the traditional "training, pruning and fine-tuning" pipeline and directly train the pruned model; for automatic methods, the pruning can be seen as a form of architecture learning.![]()
We also compare with the "[Lottery Ticket Hypothesis](https://arxiv.org/abs/1803.03635)" (Frankle & Carbin 2019), and find that with optimal learning rate, the "winning ticket" initialization as used in Frankle & Carbin (2019) does not bring improvement over random initialization. For more details please refer to our paper. ## Implementation We evaluated the following seven pruning methods. 1. [L1-norm based channel pruning](https://arxiv.org/abs/1608.08710) 2. [ThiNet](https://arxiv.org/abs/1707.06342) 3. [Regression based feature reconstruction](https://arxiv.org/abs/1707.06168) 4. [Network Slimming](https://arxiv.org/abs/1708.06519) 5. [Sparse Structure Selection](https://arxiv.org/abs/1707.01213) 6. [Soft filter pruning](https://www.ijcai.org/proceedings/2018/0309.pdf) 7. [Unstructured weight-level pruning](https://arxiv.org/abs/1506.02626) The first six is structured while the last one is unstructured (or sparse). For CIFAR, our code is based on [pytorch-classification](https://github.com/bearpaw/pytorch-classification) and [network-slimming](https://github.com/Eric-mingjie/network-slimming). For ImageNet, we use the [official Pytorch ImageNet training code](https://github.com/pytorch/examples/blob/0.3.1/imagenet/main.py). The instructions and models are in each subfolder. For experiments on [The Lottery Ticket Hypothesis](https://arxiv.org/abs/1803.03635), please refer to the folder [cifar/lottery-ticket](https://github.com/Eric-mingjie/rethinking-network-pruning/tree/master/cifar/lottery-ticket). Our experiment environment is Python 3.6 & PyTorch 0.3.1. ## Contact Feel free to discuss papers/code with us through issues/emails! sunmj15 at gmail.com liuzhuangthu at gmail.com ## Citation If you use our code in your research, please cite: ``` @inproceedings{liu2018rethinking, title={Rethinking the Value of Network Pruning}, author={Liu, Zhuang and Sun, Mingjie and Zhou, Tinghui and Huang, Gao and Darrell, Trevor}, booktitle={ICLR}, year={2019} } ```
Owner
- Login: alixunxing
- Kind: user
- Repositories: 18
- Profile: https://github.com/alixunxing