Submitted:
11 December 2023
Posted:
12 December 2023
You are already at the latest version
Abstract
Keywords:
1. Introduction
- We perform a theoretical analysis of the shortcomings associated with adaptive rounding and block reconstruction.
- We introduce AE-Qdrop, a two-stage algorithm that includes block-wise reconstruction and global fine-tuning. This algorithm combines a progressive optimization strategy with random weighted quantization activation, enhancing the accuracy and efficiency of block-wise reconstruction. Subsequently, global fine-tuning is applied to further optimize the weights, thereby improving the overall quantization accuracy.
- Extensive experiments are conducted to evaluate the quantization results of mainstream networks, demonstrating the superior performance of AE-Qdrop, particularly at low bit widths.
2. Related Work
2.1. Quantization-aware Training
2.2. Post-training Quantization
3. Background and Theoretical Analysis
3.1. Quantizer
3.2. AdaRound
3.3. Drawbacks of Adaptive Rounding
3.4. Drawbacks of Block-wise Reconstruction
4. AE-Qdrop
4.1. Block-wise Reconstruction: Progressive Optimization Strategy
- Quantize activation while keeping weight unquantized. Optimize to absorb weight perturbations caused by activation quantization and then set the upper and lower bounds of according to the equation (10) to achieve rounding optimization.
- Quantize activation and maintain truncation calculation of the weight quantizer but disable the rounding calculation.
- Quantize both activation and weight.
4.2. Block-wise Reconstruction: Random weighted Quantized Activation
4.3. Global Fine-tuning
5. Experimental Result
5.1. Experimental setup
5.2. Comprehensive Comparison
5.3. Ablation Study
6. Conclusion
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Zhu, A.; Wang, B.; Xie, J.; Ma, C. Lightweight Tunnel Defect Detection Algorithm Based on Knowledge Distillation. Electronics 2023, 12, 3222. [Google Scholar] [CrossRef]
- Gou, J.; Yu, B.; Maybank, S.J.; Tao, D. Knowledge distillation: A survey. International Journal of Computer Vision 2021, 129, 1789–1819. [Google Scholar] [CrossRef]
- Baymurzina, D.; Golikov, E.; Burtsev, M. A review of neural architecture search. Neurocomputing 2022, 474, 82–93. [Google Scholar] [CrossRef]
- Song, Y.; Wang, A.; Zhao, Y.; Wu, H.; Iwahori, Y. Multi-Scale Spatial–Spectral Attention-Based Neural Architecture Search for Hyperspectral Image Classification. Electronics 2023, 12, 3641. [Google Scholar] [CrossRef]
- Li, Y.; Adamczewski, K.; Li, W.; Gu, S.; Timofte, R.; Van Gool, L. Revisiting random channel pruning for neural network compression. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; 2022; pp. 191–201. [Google Scholar]
- Shen, W.; Wang, W.; Zhu, J.; Zhou, H.; Wang, S. Pruning-and Quantization-Based Compression Algorithm for Number of Mixed Signals Identification Network. Electronics 2023, 12, 1694. [Google Scholar] [CrossRef]
- Schotthöfer, S.; Zangrando, E.; Kusch, J.; Ceruti, G.; Tudisco, F. Low-rank lottery tickets: finding efficient low-rank neural networks via matrix differential equations. Advances in Neural Information Processing Systems 2022, 35, 20051–20063. [Google Scholar]
- Gholami, A.; Kim, S.; Dong, Z.; Yao, Z.; Mahoney, M.W.; Keutzer, K. A survey of quantization methods for efficient neural network inference. In Low-Power Computer Vision; Chapman and Hall/CRC, 2022; pp. 291–326.
- Krishnamoorthi, R. Quantizing deep convolutional networks for efficient inference: A whitepaper. arXiv 2018, arXiv:1806.08342 2018. [Google Scholar]
- Nagel, M.; Amjad, R.A.; Van Baalen, M.; Louizos, C.; Blankevoort, T. Up or down? adaptive rounding for post-training quantization. In Proceedings of the International Conference on Machine Learning. PMLR; 2020; pp. 7197–7206. [Google Scholar]
- Li, Y.; Gong, R.; Tan, X.; Yang, Y.; Hu, P.; Zhang, Q.; Yu, F.; Wang, W.; Gu, S. BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction. In Proceedings of the 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, 3-7 May 2021. OpenReview.net, 2021. [Google Scholar]
- Wei, X.; Gong, R.; Li, Y.; Liu, X.; Yu, F. QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization. In Proceedings of the the Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, 25-29 April 2022. OpenReview.net, 2022. [Google Scholar]
- Bengio, Y.; Léonard, N.; Courville, A. Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv 2013, arXiv:1308.3432 2013. [Google Scholar]
- Jacob, B.; Kligys, S.; Chen, B.; Zhu, M.; Tang, M.; Howard, A.; Adam, H.; Kalenichenko, D. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the IEEE conference on computer vision and pattern recognition; 2018; pp. 2704–2713. [Google Scholar]
- Esser, S.K.; McKinstry, J.L.; Bablani, D.; Appuswamy, R.; Modha, D.S. Learned Step Size quantization. In Proceedings of the 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, 26-30 April 2020. OpenReview.net, 2020. [Google Scholar]
- Bhalgat, Y.; Lee, J.; Nagel, M.; Blankevoort, T.; Kwak, N. Lsq+: Improving low-bit quantization through learnable offsets and better initialization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops; 2020; pp. 696–697. [Google Scholar]
- Gong, R.; Liu, X.; Jiang, S.; Li, T.; Hu, P.; Lin, J.; Yu, F.; Yan, J. Differentiable soft quantization: Bridging full-precision and low-bit neural networks. In Proceedings of the IEEE/CVF international conference on computer vision; 2019; pp. 4852–4861. [Google Scholar]
- Liu, Z.; Cheng, K.T.; Huang, D.; Xing, E.P.; Shen, Z. Nonuniform-to-uniform quantization: Towards accurate quantization via generalized straight-through estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; 2022; pp. 4942–4952. [Google Scholar]
- Li, Z.; Ni, B.; Li, T.; Yang, X.; Zhang, W.; Gao, W. Residual quantization for low bit-width neural networks. IEEE Transactions on Multimedia 2021. [Google Scholar] [CrossRef]
- Xu, W.; Li, F.; Jiang, Y.; Yong, A.; He, X.; Wang, P.; Cheng, J. Improving extreme low-bit quantization with soft threshold. IEEE Transactions on Circuits and Systems for Video Technology 2022, 33, 1549–1563. [Google Scholar] [CrossRef]
- Shin, S.; Hwang, K.; Sung, W. Fixed-point performance analysis of recurrent neural networks. In Proceedings of the 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP); IEEE, 2016; pp. 976–980. [Google Scholar]
- Banner, R.; Nahshan, Y.; Soudry, D. Post training 4-bit quantization of convolutional networks for rapid-deployment. Advances in Neural Information Processing Systems 2019, 32. [Google Scholar]
- Nagel, M.; Baalen, M.v.; Blankevoort, T.; Welling, M. Data-free quantization through weight equalization and bias correction. In Proceedings of the IEEE/CVF International Conference on Computer Vision; 2019; pp. 1325–1334. [Google Scholar]
- Fang, J.; Shafiee, A.; Abdel-Aziz, H.; Thorsley, D.; Georgiadis, G.; Hassoun, J.H. Post-training piecewise linear quantization for deep neural networks. In Proceedings of the Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, 23–28 August 2020; Proceedings, Part II 16. Springer, 2020; pp. 69–86. [Google Scholar]
- Park, D.; Lim, S.G.; Oh, K.J.; Lee, G.; Kim, J.G. Nonlinear depth quantization using piecewise linear scaling for immersive video coding. IEEE Access 2022, 10, 4483–4494. [Google Scholar] [CrossRef]
- Zhao, R.; Hu, Y.; Dotzel, J.; De Sa, C.; Zhang, Z. Improving neural network quantization without retraining using outlier channel splitting. In Proceedings of the International conference on machine learning. PMLR; 2019; pp. 7543–7552. [Google Scholar]
- Zhao, M.; Ning, K.; Yu, S.; Liu, L.; Wu, N. Quantizing Oriented Object Detection Network via Outlier-Aware Quantization and IoU Approximation. IEEE Signal Processing Letters 2020, 27, 1914–1918. [Google Scholar] [CrossRef]
- Jeong, E.; Kim, J.; Tan, S.; Lee, J.; Ha, S. Deep learning inference parallelization on heterogeneous processors with tensorrt. IEEE Embedded Systems Letters 2021, 14, 15–18. [Google Scholar] [CrossRef]
- Wu, D.; Tang, Q.; Zhao, Y.; Zhang, M.; Fu, Y.; Zhang, D. EasyQuant: Post-training Quantization via Scale Optimization. arXiv 2006, arXiv:2006.16669. [Google Scholar]
- Nahshan, Y.; Chmiel, B.; Baskin, C.; Zheltonozhskii, E.; Banner, R.; Bronstein, A.M.; Mendelson, A. Loss aware post-training quantization. Machine Learning 2021, 110, 3245–3262. [Google Scholar] [CrossRef]
- Baldi, P.; Sadowski, P.J. Understanding dropout. Advances in neural information processing systems 2013, 26. [Google Scholar]
- Verma, V.; Lamb, A.; Beckham, C.; Najafi, A.; Mitliagkas, I.; Lopez-Paz, D.; Bengio, Y. Manifold mixup: Better representations by interpolating hidden states. In Proceedings of the International conference on machine learning. PMLR; 2019; pp. 6438–6447. [Google Scholar]




| Method | Bits(W/A) | Res18 | Res50 | MV2 | Reg600M | Reg3.2G | MNx2 |
|---|---|---|---|---|---|---|---|
| FP32 | 32/32 | 71.01 | 76.63 | 72.62 | 73.52 | 78.46 | 76.52 |
| LAPQ | 4/4 | 60.30 | 70.00 | 49.70 | 57.71 | 55.89 | 65.32 |
| AdaRound | 67.96 | 73.88 | 61.52 | 68.20 | 73.85 | 68.86 | |
| BrecQ | 68.16 | 72.95 | 62.08 | 68.94 | 73.94 | 71.01 | |
| Qdrop- | 69.05 | 74.79 | 67.72 | 70.60 | 76.21 | 72.57 | |
| Qdrop | 69.16 | 74.91 | 67.86 | 70.95 | 76.45 | 72.81 | |
| AE-Qdrop | 69.24 | 74.98 | 67.93 | 70.83 | 76.54 | 72.68 | |
| AdaRound | 4/2 | 0.44 | 0.17 | 0.29 | 2.14 | 0.10 | 0.93 |
| BrecQ | 31.19 | 16.95 | 0.28 | 4.22 | 3.47 | 6.34 | |
| Qdrop- | 56.46 | 61.87 | 10.26 | 46.68 | 59.58 | 16.71 | |
| Qdrop | 58.10 | 63.26 | 17.03 | 49.78 | 61.87 | 33.96 | |
| AE-Qdrop | 58.48 | 64.53 | 29.10 | 52.71 | 64.29 | 42.32 | |
| AdaRound | 2/2 | 0.39 | 0.13 | 0.12 | 0.79 | 0.11 | 0.40 |
| BrecQ | 25.91 | 8.26 | 0.19 | 2.49 | 1.72 | 0.38 | |
| Qdrop- | 46.12 | 48.81 | 6.18 | 31.30 | 48.38 | 16.37 | |
| Qdrop | 51.55 | 55.21 | 9.97 | 39.31 | 53.88 | 24.21 | |
| AE-Qdrop | 52.24 | 55.55 | 16.46 | 40.58 | 54.56 | 27.43 |
| Method | Res18 | Res50 | MV2 | Reg600M | Reg3.2G | MNx2 |
|---|---|---|---|---|---|---|
| Baseline | 46.40 | 47.90 | 6.44 | 27.73 | 41.17 | 15.72 |
| Baseline+RDQA | 50.00 | 52.29 | 7.52 | 36.29 | 52.89 | 16.64 |
| Baseline+RWQA | 51.05 | 52.89 | 8.78 | 36.92 | 53.51 | 20.35 |
| Baseline+POS | 47.12 | 49.55 | 11.10 | 28.75 | 41.74 | 20.49 |
| Baseline+RWQA+POS | 51.73 | 55.36 | 13.33 | 39.06 | 54.32 | 24.61 |
| Baseline+RWQA+POS+GF | 52.24 | 55.55 | 16.46 | 40.58 | 54.56 | 27.43 |
| Method | Res18 | Res50 | MV2 | Reg600M | Reg3.2G | MNx2 | |
|---|---|---|---|---|---|---|---|
| 4w4a | MSE | 49.75 | 65.54 | 22.40 | 51.70 | 66.75 | 49.71 |
| MSE+GF | 65.05 | 69.10 | 36.69 | 60.05 | 70.24 | 56.68 | |
| 4w2a | MSE | 9.33 | 4.35 | 0.11 | 1.9 | 2.01 | 0.27 |
| MSE+GF | 25.18 | 6.98 | 0.18 | 3.3 | 4.43 | 0.28 | |
| 2w2a | MSE | 0.08 | 0.16 | 0.11 | 0.15 | 0.11 | 0.10 |
| MSE+GF | 0.08 | 0.10 | 0.09 | 0.16 | 0.17 | 0.10 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).