journal article·2022-10-28Open access

Block-Wisely Supervised Network Pruning with Knowledge Distillation and Markov Chain Monte Carlo

Huidong Liu, Fang Du, Lijuan Song, Zhenhua Yu

Applied Sciences· Volume 12· Issue 21

Abstract

Structural network pruning is an effective way to reduce network size for deploying deep networks to resource-constrained devices. Existing methods mainly employ knowledge distillation from the last layer of network to guide pruning of the whole network, and informative features from intermediate layers are not yet fully exploited to improve pruning efficiency and accuracy. In this paper, we propose a block-wisely supervised network pruning (BNP) approach to find the optimal subnet from a baseline network based on knowledge distillation and Markov Chain Monte Carlo. To achieve this, the baseline network is divided into small blocks, and block shrinkage can be independently applied to each block under a same manner. Specifically, block-wise representations of the baseline network are exploited to supervise subnet search by encouraging each block of student network to imitate the behavior of the corresponding baseline block. A score metric measuring block accuracy and efficiency is assigned to each block, and block search is conducted under a Markov Chain Monte Carlo scheme to sample blocks from the posterior. Knowledge distillation enables effective feature representations of the student network, and Markov Chain Monte Carlo provides a sampling scheme to find the optimal solution. Extensive evaluations on multiple network architectures and datasets show BNP outperforms the state of the art. For instance, with 0.16% accuracy improvement on the CIFAR-10 dataset, it yields a more compact subnet of ResNet-110 than other methods by reducing 61.24% FLOPs.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · Advanced Image and Video Retrieval Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Information Engineering, Ningxia University, Yinchuan 750021, China

Collaborative Innovation Center for Ningxia Big Data and Artificial Intelligence Co-Founded by Ningxia Municipality and Ministry of Education, Yinchuan 750021, China

Funding

National Natural Science Foundation of China · Chinese Academy of Sciences · Key research and Development Program of Ningxia

References (34)

Show source-provided references
1. He, Y., Zhang, X., and Sun, J. (2017, January 22–29). Channel pruning for accelerating very deep neural networks. Proceedings of the International Conference on Computer Vision (ICCV), Venice, Italy.10.1109/ICCV.2017.155 ↗
2. He, Y., Lin, J., Liu, Z., Wang, H., Li, L., and Han, S. (2018, January 8–14). Amc: Automl for model compression and acceleration on mobile devices. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01234-2_48 ↗
3. Compressing the cnn architecture for in-air handwritten chinese character recognition10.1016/j.patrec.2019.11.028 ↗
4. Liebenwein, L., Baykal, C., Lang, H., Feldman, D., and Rus, D. (May, January 26). Provable filter pruning for efficient neural networks. Proceedings of the International Conference on Learning Representations (ICLR), Online.
5. Chin, T.W., Ding, R., Zhang, C., and Marculescu, D. (2020, January 13–19). Towards efficient model compression via learned global ranking. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.00159 ↗
6. Lin, S., Ji, R., Yan, C., Zhang, B., Cao, L., Ye, Q., Huang, F., and Doermann, D. (2019, January 16–20). Towards optimal structured cnn pruning via generative adversarial learning. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00290 ↗
7. You, Z., Yan, K., Ye, J., Ma, M., and Wang, P. (2019, January 8–14). Gate decorator: Global filter pruning method for accelerating deep convolutional neural networks. Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada.
8. Wang, H., Zhao, H., Li, X., and Tan, X. (2018, January 13–19). Progressive blockwise knowledge distillation for neural network acceleration. Proceedings of the International Joint Conference on Artifificial Intelligence (IJCAI), Stockholm, Sweden.10.24963/ijcai.2018/384 ↗
9. Markov chain monte carlo in practice10.1080/00401706.1997.10485132 ↗
10. Li, C., Peng, J., Yuan, L., Wang, G., Liang, X., Lin, L., and Chang, X. (2020, January 13–19). Block-wisely supervised neural architecture search with knowledge distillation. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.00206 ↗
11. Wang, Z., Li, C., and Wang, X. (2021, January 19–25). Convolutional neural network pruning with structural redundancy reduction. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Online.10.1109/CVPR46437.2021.01467 ↗
12. Convolutional neural network simplification with progressive retraining10.1016/j.patrec.2021.06.032 ↗
13. Han, S., Pool, J., Tran, J., and Dally, W. (2015, January 7–12). Learning both weights and connections for efficient neural network. Proceedings of the Advances in Neural Information Processing Systems, Montreal, PC, Canada.
14. Ashok, A., Rhinehart, N., Beainy, F., and Kitani, K.M. (May, January 30). N2n learning: Network to network compression via policy gradient reinforcement learning. Proceedings of the International Conference on Learning Representations (ICLR), Vancouver, BC, Canada.
15. Lin, M., Ji, R., Wang, Y., Zhang, Y., Zhang, B., Tian, Y., and Shao, L. (2020, January 13–19). Hrank: Filter pruning using high-rank feature map. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.00160 ↗
16. Robust pruning for efficient cnns10.1016/j.patrec.2020.03.034 ↗
17. Hinton, G., Vinyals, O., and Dean, J. (2015). Distilling the knowledge in a neural network. arXiv.
18. Improving knowledge distillation using unified ensembles of specialized teachers10.1016/j.patrec.2021.03.014 ↗
19. Li, M., Lin, J., Ding, Y., Liu, Z., Zhu, J.-Y., and Han, S. (2020, January 13–19). Gan compression: Efficient architectures for interactive conditional gans. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.00533 ↗
20. Romero, A., Ballas, N., Kahou, S.E., Chassang, A., Gatta, C., and Bengio, Y. (2015, January 7–9). Fitnets: Hints for thin deep nets. Proceedings of the International Conference on Learning Representations (ICLR), San Diego, CA, USA.
21. Li, H., Kadav, A., Durdanovic, I., Samet, H., and Graf, H.P. (2017, January 4–7). Pruning filters for efficient convnets. Proceedings of the Advances in Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA.
22. Krizhevsky, A., and Hinton, G. (2009). Learning Multiple Layers of Features from Tiny Images, Citeseer. Technical Report.
23. Deng, J., Dong, W., Socher, R., Li, L., Li, K., and Feifei, L. (2009, January 20–25). Imagenet: A large-scale hierarchical image database. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Miami, FL, USA.10.1109/CVPR.2009.5206848 ↗
24. Simonyan, K., and Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv.
25. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
26. Huang, Z., and Wang, N. (2018, January 8–14). Data-driven sparse structure selection for deep neural networks. Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany.10.1007/978-3-030-01270-0_19 ↗
27. He, Y., Liu, P., Wang, Z., Hu, Z., and Yang, Y. (2019, January 16–20). Filter pruning via geometric median for deep convolutional neural networks acceleration. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00447 ↗
28. He, Y., Ding, Y., Liu, P., Zhu, L., Zhang, H., and Yang, Y. (2020, January 13–19). Learning filter pruning criteria for deep convolutional neural networks acceleration. Proceedings of the Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA.10.1109/CVPR42600.2020.00208 ↗
29. Ning, X., Zhao, T., Li, W., Lei, P., Wang, Y., and Yang, H. (2020, January 23–28). DSA: More efficient budgeted pruning via differentiable sparsity allocation. Proceedings of the European Conference on Computer Vision (ECCV), Glasgow, UK.10.1007/978-3-030-58580-8_35 ↗
30. Ruan, X., Liu, Y., Li, B., Yuan, C., and Hu, W. (2021, January 2–9). Dpfps: Dynamic and progressive filter pruning for compressing convolutional neural networks from scratch. Proceedings of the AAAI Conference on Artificial Intelligence, Online.10.1609/aaai.v35i3.16351 ↗
31. He, Y., Kang, G., Dong, X., Fu, Y., and Yang, Y. (2018, January 13–19). Soft filter pruning for accelerating deep convolutional neural networks. Proceedings of the International Joint Conference on Artifificial Intelligence (IJCAI), Stockholm, Sweden.10.24963/ijcai.2018/309 ↗
32. Autopruner: An end-to-end trainable filter pruning method for efficient deep model inference10.1016/j.patcog.2020.107461 ↗
33. Kang, M., and Han, B. (2020, January 12–18). Operation-aware soft channel pruning using differentiable masks. Proceedings of the International Conference on Machine Learning, PMLR, Online.
34. Lin, M., Ji, R., Zhang, Y., Zhang, B., Wu, Y., and Tian, Y. (2020, January 7–15). Channel pruning via automatic structure search. Proceedings of the International Joint Conference on Artifificial Intelligence (IJCAI), Online.10.24963/ijcai.2020/94 ↗