Filter Pruning via Attention Consistency on Feature Maps
Source abstract
Abstract
Due to the effective guidance of prior information, feature map-based pruning methods have emerged as promising techniques for model compression. In the previous works, the undifferentiated treatment of all information on feature maps amplifies the negative impact of noise and background information. To address this issue, a novel filter pruning strategy called Filter Pruning via Attention Consistency (FPAC) is proposed, and a simple and effective implementation method of FPAC is presented. FPAC is inspired by the notion that the attention of feature maps on one layer is in high consistency of spatial dimension. The experiments also show that feature maps with lower consistency are less important. Hence, FPAC measures the importance of filters by evaluating the attention consistency on the feature maps and then prunes the filters corresponding to feature maps with lower consistency. The present experiments on various datasets further confirm the effectiveness of FPAC. For instance, applying VGG-16 on CIFAR-10, the classification accuracy even increases from 93.96% to 94.03% with 58.1% FLOPs reductions. Furthermore, applying ResNet-50 on ImageNet achieves 45% FLOPs reductions with only 0.53% accuracy loss.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Neural Network Applications · Generative Adversarial Networks and Image Synthesis · Image Enhancement Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Electronic and Information Engineering, Shenzhen University, Shenzhen 518060, China
Pengcheng Laboratory, Shenzhen 518055, China
Big Data and Internet College, Shenzhen University of Technology, Shenzhen 518118, China
School of Computer Sciences, Shenzhen Institute of Information Technology, Shenzhen 518172, China
Funding
National Natural Science Foundation of China · Guangdong Province key construction discipline scientific research capacity improvement project
References (41)
Show source-provided references
1. Deep convolutional neural networks for image classification: A comprehensive review10.1162/neco_a_00990 ↗
2. A survey of the recent architectures of deep convolutional neural networks10.1007/s10462-020-09825-6 ↗
3. Imagenet classification with deep convolutional neural networks
4. Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., Erhan, D., Vanhoucke, V., and Rabinovic, A. (2015, January 7–12). Going deeper with convolutions. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7298594 ↗
5. Simonyan, K., and Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv.
6. Taigman, Y., Yang, M., Ranzato, M.A., and Wolf, L. (2014, January 23–28). Deepface: Closing the gap to human-level performance in face verification. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA.10.1109/CVPR.2014.220 ↗
7. Predicting parameters in deep learning
8. Exploiting linear structure within convolutional networks for efficient evaluation
9. Holistic cnn compression via low-rank decomposition with knowledge transfer10.1109/TPAMI.2018.2873305 ↗
10. Zhang, X., Zou, J., Ming, X., He, K., and Sun, J. (2015, January 7–12). Efficient and accurate approximations of nonlinear convolutional networks. Proceedings of the IEEE Conference on Computer Vision and pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7298809 ↗
11. Hou, Z., and Kung, S.Y. (2020). A feature map discriminant perspective for pruning deep neural networks. arXiv.
12. Hu, H., Peng, R., Tai, Y.W., and Tang, C.K. (2016). Network trimming: A data-driven neuron pruning approach towards efficient deep architectures. arXiv.
13. Qian, X., and Klaban, D. (2021, January 18–24). A probabilistic approach to neural network pruning. Proceedings of the International Conference on Machine Learning, Virtual Event.
14. Rosenfeld, S., Frankle, J., Carbin, M., and Shavit, N. (2021, January 18–24). On the predictability of pruning across scales. Proceedings of the International Conference on Machine Learning, Virtual Event.
15. Amelio, A., Bonifazi, G., Corradini, E., Ursino, D., and Virgili, L. (2022). A Multilayer Network-Based Approach to Represent, Explore and Handle Convolutional Neural Networks. Cogn. Comput., 1–29.10.1007/s12559-022-10084-6 ↗
16. Representation and compression of Residual Neural Networks through a multilayer network based approach10.1016/j.eswa.2022.119391 ↗
17. Chen, W., Wilson, J.T., Tyree, S., Weinberger, K., and Chen, Y. (2015, January 11). Compressing neural networks with the hashing trick. Proceedings of the International Conference on Machine Learning, Lille, France.
18. Wu, J., Leng, C., Wang, Y., Hu, Q., and Cheng, J. (2016, January 27–30). Quantized convolutional neural networks for mobile devices. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.521 ↗
19. Liu, W., Zhou, P., Zhao, Z., Wang, Z., Deng, H., and Ju, Q. (2020). Fastbert: A self-distilling bert with adaptive inference time. arXiv.10.18653/v1/2020.acl-main.537 ↗
20. Sun, S., Cheng, Y., Gan, Z., and Liu, J. (2019). Patient knowledge distillation for bert model compression. arXiv.10.18653/v1/D19-1441 ↗
21. Li, H., Kadav, A., Durdanovic, I., Samet, H., and Graf, H.P. (2016). Pruning filters for efficient convnets. arXiv.
22. 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 Artificial Intelligence, Stockholm, Sweden.10.24963/ijcai.2018/309 ↗
23. He, Y., Liu, P., Wang, Z., Hu, Z., and Yang, Y. (, January 15–20). Filter pruning via geometric median for deep convolutional neural networks acceleration. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.
24. Yu, R., Li, A., Chen, C.F., Lai, J.H., Morariu, V.I., Han, X., Gao, M., Lin, C.Y., and Davis, L.S. (, January 18–23). Nisp: Pruning networks using neuron importance score propagation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.
25. Zhuo, H., Qian, X., Fu, Y., Yang, H., and Xue, X. (2018). Scsp: Spectral clustering filter pruning with soft self-adaption manners. arXiv.
26. Luo, H., Wu, J., and Lin, W. (, January 22–29). Thinet: A filter level pruning method for deep neural network compression. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.
27. Liebenwein, L., Baykal, C., Lang, H., Feldman, D., and Rus, D. (2019). Provable filter pruning for efficient neural networks. arXiv.
28. He, Y., Zhang, X., and Sun, J. (2017, January 22–29). Channel pruning for accelerating very deep neural networks. Proceedings of the IEEE international Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.155 ↗
29. Suau, X., Zappella, L., Palakkode, V., and Apostoloff, N. (2018). Principal filter analysis for guided network compression. arXiv.
30. Wang, D., Zhou, L., Zhang, X., Bai, X., and Zhou, J. (2018). Exploring linear relationship in feature map subspace for convnets compression. arXiv.
31. 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 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.00160 ↗
32. Zhao, C., Ni, B., Zhang, J., Zhao, Q., Zhang, W., and Tian, Q. (2019, January 15–20). Variational convolutional neural network pruning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00289 ↗
33. Liu, Z., Li, J., Shen, Z., Huang, G., Yan, S., and Zhang, C. (2017, January 22–29). Learning efficient convolutional networks through network slimming. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.298 ↗
34. Discrimination-aware channel pruning for deep neural networks
35. 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 ↗
36. Lin, S., Ji, R., Li, Y., Wu, Y., Huang, F., and Zhang, B. (2018, January 13–19). Accelerating Convolutional Networks via Global & Dynamic Filter Pruning. Proceedings of the International Joint Conference on Artificial Intelligence, Stockholm, Sweden.10.24963/ijcai.2018/336 ↗
37. Lin, S., Ji, R., Yan, C., Zhang, B., Cao, L., Ye, Q., Huang, F., and Doermann, D. (2019, January 15–20). Towards optimal structured cnn pruning via generative adversarial learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00290 ↗
38. Krizhevsky, A., and Hinton, G. (2022, June 23). Learning Multiple Layers of Features from Tiny Images (Technical Report). University of Toronto, Canada. Available online: https://www.cs.toronto.edu/%7Ekriz/cifar.html.
39. Imagenet large scale visual recognition challenge10.1007/s11263-015-0816-y ↗
40. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
41. Huang, G., Liu, Z., Van Der Maaten, L., and Weinberger, K.Q. (2017, January 21–26). Densely connected convolutional networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.243 ↗