Adaptive Global Power-of-Two Ternary Quantization Algorithm Based on Unfixed Boundary Thresholds
Author:
Sui Xuefu1, Lv Qunbo12, Ke Changjun1, Li Mingshan1, Zhuang Mingjin1, Yu Haiyang1, Tan Zheng12
Affiliation:
1. Aerospace Information Research Institute, Chinese Academy of Sciences, No. 9 Dengzhuang South Road, Haidian District, Beijing 100094, China 2. Department of Key Laboratory of Computational Optical Imagine Technology, Chinese Academy of Sciences, No. 9 Dengzhuang South Road, Haidian District, Beijing 100094, China
Abstract
In the field of edge computing, quantizing convolutional neural networks (CNNs) using extremely low bit widths can significantly alleviate the associated storage and computational burdens in embedded hardware, thereby improving computational efficiency. However, such quantization also presents a challenge related to substantial decreases in detection accuracy. This paper proposes an innovative method, called Adaptive Global Power-of-Two Ternary Quantization Based on Unfixed Boundary Thresholds (APTQ). APTQ achieves adaptive quantization by quantizing each filter into two binary subfilters represented as power-of-two values, thereby addressing the accuracy degradation caused by a lack of expression ability of low-bit-width weight values and the contradiction between fixed quantization boundaries and the uneven actual weight distribution. It effectively reduces the accuracy loss while at the same time presenting strong hardware-friendly characteristics because of the power-of-two quantization. This paper extends the APTQ algorithm to propose the APQ quantization algorithm, which can adapt to arbitrary quantization bit widths. Furthermore, this paper designs dedicated edge deployment convolutional computation modules for the obtained quantized models. Through quantization comparison experiments with multiple commonly used CNN models utilized on the CIFAR10, CIFAR100, and Mini-ImageNet data sets, it is verified that the APTQ and APQ algorithms possess better accuracy performance than most state-of-the-art quantization algorithms and can achieve results with very low accuracy loss in certain CNNs (e.g., the accuracy loss of the APTQ ternary ResNet-56 model on CIFAR10 is 0.13%). The dedicated convolutional computation modules enable the corresponding quantized models to occupy fewer on-chip hardware resources in edge chips, thereby effectively improving computational efficiency. This adaptive CNN quantization method, combined with the power-of-two quantization results, strikes a balance between the quantization accuracy performance and deployment efficiency in embedded hardware. As such, valuable insights for the industrial edge computing domain can be gained.
Funder
Key Program Project of Science and Technology Innovation of the Chinese Academy of Sciences Innovation Fund Program of the Chinese Academy of Sciences
Subject
Electrical and Electronic Engineering,Biochemistry,Instrumentation,Atomic and Molecular Physics, and Optics,Analytical Chemistry
Reference77 articles.
1. Yan, S.-R., Pirooznia, S., Heidari, A., Navimipour, N.J., and Unal, M. (2022). IEEE Transactions on Engineering Management, IEEE. 2. CNN-32DC: An Improved Radar-Based Drone Recognition System Based on Convolutional Neural Network;Garcia;ICT Express,2022 3. Saha, D., and De, S. (2022). Practical Self-Driving Cars: Survey of the State-of-the-Art. Preprints. 4. ChipNet: Real-Time LiDAR Processing for Drivable Region Segmentation on an FPGA;Lyu;IEEE Trans. Circuits Syst. I Regul. Pap.,2019 5. Edge Computing: Vision and Challenges;Shi;Internet Things J. IEEE,2016
|
|