A Filter Pruning Method of CNN Models Based on Feature Maps Clustering
Source abstract
Abstract
The convolutional neural network (CNN) has been widely used in the field of self-driving cars. To satisfy the increasing demand, the deeper and wider neural network has become a general trend. However, this leads to the main problem that the deep neural network is computationally expensive and consumes a considerable amount of memory. To compress and accelerate the deep neural network, this paper proposes a filter pruning method based on feature maps clustering. The basic idea is that by clustering, one can know how many features the input images have and how many filters are enough to extract all features. This paper chooses Retinanet and WIDER FACE datasets to experiment with the proposed method. Experiments demonstrate that the hierarchical clustering algorithm is an effective method for filtering pruning, and the silhouette coefficient method can be used to determine the number of pruned filters. This work evaluates the performance change by increasing the pruning ratio. The main results are as follows: Firstly, it is effective to select pruned filters based on feature maps clustering, and its precision is higher than that of a random selection of pruned filters. Secondly, the silhouette coefficient method is a feasible method for finding the best clustering number. Thirdly, the detection speed of the pruned model improves greatly. Lastly, the method we propose can be used not only for Retinanet, but also for other CNN models. Its effect will be verified in future work.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Neural Network Applications · Video Surveillance and Tracking Methods · Remote Sensing and LiDAR Applications
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
School of Automotive Studies, Tongji University, Shanghai 201804, China
Nanchang Automotive Institute of Intelligence & New Energy, Tongji University, Nanchang 330052, China
Funding
Automotive Institute of Intelligence & New Energy. Tongji University (NAIT) under the project the Perspective Study Funding of Nanchang Automotive Institute of Intelligence and New Energy. Tongji University
References (33)
Show source-provided references
1. Gao, J., and Tembine, H. (2016, January 12–14). Distributed Mean-Field-Type Filters for Big Data Assimilation. Proceedings of the 2016 IEEE 18th International Conference on High Performance Computing and Communications, IEEE 14th International Conference on Smart City, IEEE 2nd International Conference on Data Science and Systems (HPCC/SmartCity/DSS), Sydney, NSW, Australia.10.1109/HPCC-SmartCity-DSS.2016.0206 ↗
2. Jaderberg, M., Vedaldi, A., and Zisserman, A. (2014). Speeding up convolutional neural networks with low rank expansions. arXiv.10.5244/C.28.88 ↗
3. Han, S., Pool, J., Tran, J., and Dally, W. (2015). Learning both weights and connections for efficient neural network. Advances in Neural Information Processing Systems, MIT Press.
4. Krishnamoorthi, R. (2018). Quantizing deep convolutional networks for efficient inference: A whitepaper. arXiv.
5. Wen, W., Wu, C., Wang, Y., Chen, Y., and Li, H. (2016). Learning structured sparsity in deep neural networks. Advances in Neural Information Processing Systems, MIT Press.
6. Cheng, Y., Wang, D., Zhou, P., and Zhang, T. (2017). A survey of model compression and acceleration for deep neural networks. arXiv.
7. Alvarez, J.M., and Salzmann, M. (2016). Learning the number of neurons in deep networks. Advances in Neural Information Processing Systems, MIT Press.
8. Gao, J., and Tembine, H. (2017, January 6–8). Correlative mean-field filter for sequential and spatial data processing. Proceedings of the IEEE EUROCON 2017—17th International Conference on Smart Technologies, Ohrid, Macedonia.10.1109/EUROCON.2017.8011113 ↗
9. Distributed Mean-Field-Type Filters for Traffic Networks10.1109/TITS.2018.2816811 ↗
10. LeCun, Y., Denker, J.S., and Solla, S.A. (1990). Optimal brain damage. Advances in Neural Information Processing Systems, MIT Press.
11. Li, H., Kadav, A., Durdanovic, I., Samet, H., and Graf, H.P. (2016). Pruning filters for efficient convnets. arXiv.
12. Courbariaux, M., Bengio, Y., and David, J.-P. (2015). Binaryconnect: Training deep neural networks with binary weights during propagations. Advances in Neural Information Processing Systems, MIT Press.
13. Rastegari, M., Ordonez, V., Redmon, J., and Farhadi, A. (2016). Xnornet: Imagenet classication using binary convolutional neural networks. Computer Vision—ECCV 2016, Proceedings of the 14th European Conference, Amsterdam, The Netherlands, 11–14 October 2016, Springer.10.1007/978-3-319-46493-0_32 ↗
14. Polino, A., Pascanu, R., and Alistarh, D. (2018). Model compression via distillation and quantization. arXiv.
15. Gong, Y., Liu, L., Yang, M., and Bourdev, L. (2014). Compressing deep convolutional networks using vector quantization. arXiv.
16. Denton, E.L., Zaremba, W., Bruna, J., LeCun, Y., and Fergus, R. (2014). Exploiting linear structure within convolutional networks for efficient evaluation. Advances in Neural Information Processing Systems, MIT Press.
17. Noise reduction of hyper spectral images using kernel non-negative tucker decomposition10.1109/JSTSP.2011.2132692 ↗
18. 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.
19. Hu, J., Shen, L., and Sun, G. (2018, January 18–23). Squeeze-and-excitation networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00745 ↗
20. Focal Loss for Dense Object Detection10.1109/TPAMI.2018.2858826 ↗
21. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep Residual Learning for Image Recognition. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
22. Lin, T.-Y., Goyal, P., Girshick, R., He, K., and Dollár, P. (2017, January 22–29). Focal loss for dense object detection. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.324 ↗
23. Lin, T.-Y., Dollár, P., Girshick, R., He, K., Hariharan, B., and Belongie, S. (2017, January 21–26). Feature pyramid networks for object detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.106 ↗
24. Li, X., Zhao, H., and Zhang, L. (2018). Recurrent retinanet: A video object detection model based on focal loss. Neural Information Processing, Proceedings of the 25th International Conference, ICONIP 2018, Siem Reap, Cambodia, 13–16 December 2018, Springer.10.1007/978-3-030-04212-7_44 ↗
25. Krizhevsky, A., Sutskever, I., and Hinton, G.E. (2012). Imagenet classification with deep convolutional neural networks. Advances in Neural Information Processing Systems, MIT Press.
26. Gradient based learning applied to document recognition10.1109/5.726791 ↗
27. Long, J., Shelhamer, E., and Darrell, T. (2015, January 7–12). Fully convolutional networks for semantic segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7298965 ↗
28. Jiang, H., and Learned-Miller, E. (June, January 30). Face detection with the faster rcnn. Proceedings of the 2017 12th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2017), Washington, DC, USA.10.1109/FG.2017.82 ↗
29. Deep feature extraction and classification of hy per spectral images based on convolutional neural networks10.1109/TGRS.2016.2584107 ↗
30. Jordao, A., Yamada, F., and Robson Schwartz, W. (2018). Pruning deep neural networks using partial least squares. arXiv.
31. Banerjee, S., Choudhary, A., and Pal, S. (2015, January 19–20). Empirical evaluation of K-Means, Bisecting K-Means, Fuzzy C-Means and Genetic K-Means clustering algorithms. Proceedings of the 2015 IEEE International WIE Conference on Electrical and Computer Engineering (WIECON-ECE), Dhaka, Bangladesh.10.1109/WIECON-ECE.2015.7443889 ↗
32. Takumi, S., and Miyamoto, S. (2012, January 11–13). Top-down vs. bottom-up methods of linkage for asymmetric agglomerative hierarchical clustering. Proceedings of the 2012 IEEE International Conference on Granular Computing, Hangzhou, China.10.1109/GrC.2012.6468689 ↗
33. Yang, S., Luo, P., Loy, C.C., and Tang, X. (2016, January 27–30). Wider face: A face detection benchmark. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.596 ↗