arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.04044cs.CVcs.AI
收藏

卷积神经网络的量化范围估计

Quantization Range Estimation for Convolutional Neural Networks

Bingtao Yang, Yujia Wang, Mengzhi Jiao, Hongwei Huo

AI总结:

本文提出一种基于局部凸优化和高效搜索的量化范围估计方法,用于后训练量化,在ResNet和Inception-v3上8位和6位几乎无损,4位显著提升。

摘要:

后训练量化在减少深度神经网络模型存储方面已被证明在各种任务中是有效的方法。然而,在保持模型精度的同时进行低位量化是一个具有挑战性的问题。在本文中,我们提出了一种范围估计方法,以提高后训练量化的量化性能。我们将范围估计建模为一个优化问题,通过逐层局部最小值来最小化量化误差。我们证明了该问题是局部凸的,并提出了一种高效的搜索算法来找到最优解。我们建议将上述搜索算法应用于变换后的权重空间,以在实践中进一步改进。我们的实验表明,在ResNet系列模型和Inception-v3模型上,我们的方法在图像分类任务的top-1准确率上普遍优于现有技术水平。实验结果表明,所提出的方法在8位和6位设置下几乎不损失top-1准确率,并且4位量化的准确率也显著提高。代码可在https://github.com/codeiscommitting/REQuant获取。

英文摘要:

Post-training quantization for reducing the storage of deep neural network models has been demonstrated to be an effective way in various tasks. However, low-bit quantization while maintaining model accuracy is a challenging problem. In this paper, we present a range estimation method to improve the quantization performance for post-training quantization. We model the range estimation into an optimization problem of minimizing quantization errors by layer-wise local minima. We prove this problem is locally convex and present an efficient search algorithm to find the optimal solution. We propose the application of the above search algorithm to the transformed weights space to do further improvement in practice. Our experiments demonstrate that our method outperforms state-of-the-art performance generally on top-1 accuracy for image classification tasks on the ResNet series models and Inception-v3 model. The experimental results show that the proposed method has almost no loss of top-1 accuracy in 8-bit and 6-bit settings for image classifications, and the accuracy of 4-bit quantization is also significantly improved. The code is available at https://github.com/codeiscommitting/REQuant.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑