arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.07080cs.CV
收藏

基于量化卷积神经网络的图像分类

Bag of Tricks with Quantized Convolutional Neural Networks for image classification

State Key Laboratory of Computer Science, ISCAS(中国科学院软件研究所计算机科学国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);ByteDance Inc.(字节跳动公司);University of Macau(澳门大学)

Jie Hu, Mengze Zeng, Enhua Wu

摘要:

深度神经网络已被证明在广泛的任务中是有效的。然而,它们的高计算和存储器成本使得它们在资源受限的设备上部署不切实际。为了解决这个问题,已经提出了量化方案来减少存储器占用并提高推理速度。虽然已经提出了许多量化方法,但它们缺乏对其有效性的系统分析。为了弥合这一差距,我们收集和改进现有的量化方法,并提出了一个黄金准则后训练量化。我们在ImageNet数据集上使用两种流行的模型ResNet50和MobileNetV2评估了我们提出的方法的有效性。通过遵循我们的指导方针,即使在没有额外训练的情况下将模型直接量化为8位之后,也不会发生精度下降。基于该准则的量化感知训练可以进一步提高较低比特量化的准确性。此外,我们还集成了一个多阶段微调策略,与现有的修剪技术和谐地工作,以进一步降低成本。值得注意的是,我们的研究结果表明,具有30%稀疏性的量化MobileNetV2实际上超过了等效全精度模型的性能,强调了我们提出的方案的有效性和弹性。

英文摘要:

Deep neural networks have been proven effective in a wide range of tasks. However, their high computational and memory costs make them impractical to deploy on resource-constrained devices. To address this issue, quantization schemes have been proposed to reduce the memory footprint and improve inference speed. While numerous quantization methods have been proposed, they lack systematic analysis for their effectiveness. To bridge this gap, we collect and improve existing quantization methods and propose a gold guideline for post-training quantization. We evaluate the effectiveness of our proposed method with two popular models, ResNet50 and MobileNetV2, on the ImageNet dataset. By following our guidelines, no accuracy degradation occurs even after directly quantizing the model to 8-bits without additional training. A quantization-aware training based on the guidelines can further improve the accuracy in lower-bits quantization. Moreover, we have integrated a multi-stage fine-tuning strategy that works harmoniously with existing pruning techniques to reduce costs even further. Remarkably, our results reveal that a quantized MobileNetV2 with 30\% sparsity actually surpasses the performance of the equivalent full-precision model, underscoring the effectiveness and resilience of our proposed scheme.

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

↑