Clipping-Based Post Training 8-Bit Quantization of Convolution Neural Networks for Object Detection
Source abstract
Abstract
Fueled by the development of deep neural networks, breakthroughs have been achieved in plenty of computer vision problems, such as image classification, segmentation, and object detection. These models usually have handers and millions of parameters, which makes them both computational and memory expensive. Motivated by this, this paper proposes a post-training quantization method based on the clipping operation for neural network compression. By quantizing parameters of a model to 8-bit using our proposed methods, its memory consumption is reduced, its computational speed is increased, and its performance is maintained. This method exploits the clipping operation during training so that it saves a large computational cost during quantization. After training, this method quantizes the parameters to 8-bit based on the clipping value. In addition, a fully connected layer compression is conducted using singular value decomposition (SVD), and a novel loss function term is leveraged to further diminish the performance drop caused by quantization. The proposed method is validated on two widely used models, Yolo V3 and Faster R-CNN, for object detection on the PASCAL VOC, COCO, and ImageNet datasets. Performances show it effectively reduces the storage consumption at 18.84% and accelerates the model at 381%, meanwhile avoiding the performance drop (drop < 0.02% in VOC).
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Neural Network Applications · Advanced Image and Video Retrieval Techniques · Video Surveillance and Tracking Methods
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Mechanical & Electrical Engineering, Nanjing University of Aeronautics and Astronautics, Nanjing 210016, China
References (36)
Show source-provided references
1. Howard, A.G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., and Adam, H. (2017). Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv.
2. Iandola, F.N., Han, S., Moskewicz, M.W., Ashraf, K., Dally, W.J., and Keutzer, K. (2016). SqueezeNet: AlexNet-level accuracy with 50x fewer parameters and< 0.5 MB model size. arXiv.
3. Zhang, X., Zhou, X., Lin, M., and Sun, J. (2018, January 28–23). Shufflenet: An extremely efficient convolutional neural network for mobile devices. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00716 ↗
4. 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 ↗
5. Courbariaux, M., Hubara, I., Soudry, D., El-Yaniv, R., and Bengio, Y. (2016). Binarized neural networks: Training deep neural networks with weights and activations constrained to+ 1 or-1. arXiv.
6. Li, F., Zhang, B., and Liu, B. (2016). Ternary weight networks. arXiv.
7. Zhou, A., Yao, A., Guo, Y., Xu, L., and Chen, Y. (2017). Incremental network quantization: Towards lossless CNNS with low-precision weights. arXiv.
8. Vanhoucke, V., Senior, A., and Mao, M.Z. (2011, January 16–17). Improving the speed of neural networks on CPUs. Proceedings of the Deep Learning and Unsupervised Feature Learning Workshop, NIPS 2011, Granada, Spain.
9. Dettmers, T. (2015). 8-bit approximations for parallelism in deep learning. arXiv.
10. Zhu, F., Gong, R., Yu, F., Liu, X., Wang, Y., Li, Z., Yang, X., and Yan, J. (2020, January 13–19). Towards unified int8 training for the convolutional neural network. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.00204 ↗
11. Jacob, B., Kligys, S., Chen, B., Zhu, M., Tang, M., Howard, A., Adam, H., and Kalenichenko, D. (2018, January 18–23). Quantization and training of neural networks for efficient integer-arithmetic-only inference. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00286 ↗
12. Deep network quantization via error compensation10.1109/TNNLS.2021.3064293 ↗
13. Bao, Z., Zhan, K., Zhang, W., and Guo, J. (2021, January 14–16). LSFQ: A Low Precision Full Integer Quantization for High-Performance FPGA-Based CNN Acceleration. Proceedings of the 2021 IEEE Symposium in Low-Power and High-Speed Chips (COOL CHIPS), Tokyo, Japan.10.1109/COOLCHIPS52128.2021.9410327 ↗
14. Gheorghe, Ș., and Ivanovici, M. (2021, January 10–11). Model-based weight quantization for convolutional neural network compression. Proceedings of the 2021 16th International Conference on Engineering of Modern Electric Systems (EMES), Oradea, Romania.10.1109/EMES52337.2021.9484143 ↗
15. Ullah, S., Gupta, S., Ahuja, K., Tiwari, A., and Kumar, A. (2020, January 9–13). L2L: A highly accurate Log_2_Lead quantization of pre-trained neural networks. Proceedings of the 2020 Design, Automation & Test in Europe Conference & Exhibition (DATE), Grenoble, France.10.23919/DATE48585.2020.9116373 ↗
16. Yin, P., Lyu, J., Zhang, S., Osher, S., Qi, Y., and Xin, J. (2019). Understanding straight-through estimator in training activation quantized neural nets. arXiv.
17. Girshick, R., Donahue, J., Darrell, T., and Malik, J. (2014, January 23–28). Rich feature hierarchies for accurate object detection and semantic segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA.10.1109/CVPR.2014.81 ↗
18. Girshick, R. (2015, January 7–13). Fast r-CNN. Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile.10.1109/ICCV.2015.169 ↗
19. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks10.1109/TPAMI.2016.2577031 ↗
20. He, K., Gkioxari, G., Dollár, P., and Girshick, R. (2017, January 22–29). Mask r-CNN. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.322 ↗
21. Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C.Y., and Berg, A.C. (2016, January 11–14). SSD: Single shot multibox detector. Proceedings of the European Conference on Computer Vision, Amsterdam, The Netherlands.10.1007/978-3-319-46448-0_2 ↗
22. Redmon, J., Divvala, S., Girshick, R., and Farhadi, A. (2016, January 27–30). You only look once: Unified, real-time object detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.91 ↗
23. Redmon, J., and Farhadi, A. (2017, January 21–26). YOLO9000: Better, faster, stronger. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.690 ↗
24. Redmon, J., and Farhadi, A. (2018). Yolov3: An incremental improvement. arXiv.
25. Bochkovskiy, A., Wang, C.Y., and Liao HY, M. (2020). Yolov4: Optimal speed and accuracy of object detection. arXiv.
26. Wall, M.E., Rechtsteiner, A., and Rocha, L.M. (2003). Singular value decomposition and principal component analysis. A Practical Approach to Microarray Data Analysis, Springer.10.1007/0-306-47815-3_5 ↗
27. The pascal visual object classes (voc) challenge10.1007/s11263-009-0275-4 ↗
28. A compression pipeline for one-stage object detection model10.1007/s11554-020-01053-z ↗
29. Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., and Zitnick, C.L. (2014). Microsoft coco: Common objects in context. European Conference on Computer Vision, Springer.10.1007/978-3-319-10602-1_48 ↗
30. Imagenet classification with deep convolutional neural networks10.1145/3065386 ↗
31. Liu, Z., Zhang, X., Wang, S., Ma, S., and Gao, W. (2021, January 6–11). Evolutionary quantization of neural networks with mixed-precision. Proceedings of the ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Toronto, ON, Canada.10.1109/ICASSP39728.2021.9413631 ↗
32. General bitwidth assignment for efficient deep convolutional neural network quantization10.1109/TNNLS.2021.3069886 ↗
33. Tsuji, S., Yamada, F., Kawaguchi, H., Inoue, A., and Sakai, Y. (2020, January 14–15). GPQ: Greedy Partial Quantization of Convolutional Neural Networks Inspired by Submodular Optimization. Proceedings of the 2020 7th International Conference on Soft Computing & Machine Intelligence (ISCMI), Stockholm, Sweden.10.1109/ISCMI51676.2020.9311559 ↗
34. Haase, P., Schwarz, H., Kirchhoffer, H., Wiedemann, S., Marinc, T., Marban, A., Müller, K., Samek, W., Marpe, D., and Wiegand, T. (2020, January 25–28). Dependent scalar quantization for neural network compression. Proceedings of the 2020 IEEE International Conference on Image Processing (ICIP), Virtual.10.1109/ICIP40778.2020.9190955 ↗
35. Han, S., Mao, H., and Dally, W.J. (2015). Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv.
36. Iteratively training look-up tables for network quantization10.1109/JSTSP.2020.3005030 ↗