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

QDrop:随机丢弃极低位训练后Quantization的Quantization

QDrop: Randomly Dropping Quantization for Extremely Low-bit Post-Training Quantization

Beihang University(北京航空航天大学);SenseTime Research(商汤科技研究院)

Xiuying Wei, Ruihao Gong, Yuhang Li, Xianglong Liu, Fengwei Yu

摘要:

最近,后训练量化(PTQ)已经引起了人们的广泛关注,以产生高效的神经网络,而无需长时间的再训练。尽管其成本低,但目前的PTQ工作往往在极低的位设置下失败。在这项研究中,我们开创性地确认,适当地将激活量化到PTQ重建的最终准确性的好处。为了深入理解其内在原因,建立了一个理论框架,指出优化后的低比特模型在校准和测试数据上的平坦性是至关重要的。在此基础上,提出了一种简单而有效的方法QDROP,该方法在PTQ过程中随机丢弃激活的量化。在包括计算机视觉(图像分类、目标检测)和自然语言处理(文本分类和问答)在内的各种任务上的广泛实验证明了其优越性。通过QDROP,PTQ的极限首次被推到2位激活,准确率提升高达51.49%。没有花里胡哨,QDROP为PTQ建立了一个新的艺术状态。我们的代码可以在https://github.com/wimh966/QDrop上找到,并已集成到MQBench(https://github.com/ModelTC/MQBench)中。

英文摘要:

Recently, post-training quantization (PTQ) has driven much attention to produce efficient neural networks without long-time retraining. Despite its low cost, current PTQ works tend to fail under the extremely low-bit setting. In this study, we pioneeringly confirm that properly incorporating activation quantization into the PTQ reconstruction benefits the final accuracy. To deeply understand the inherent reason, a theoretical framework is established, indicating that the flatness of the optimized low-bit model on calibration and test data is crucial. Based on the conclusion, a simple yet effective approach dubbed as QDROP is proposed, which randomly drops the quantization of activations during PTQ. Extensive experiments on various tasks including computer vision (image classification, object detection) and natural language processing (text classification and question answering) prove its superiority. With QDROP, the limit of PTQ is pushed to the 2-bit activation for the first time and the accuracy boost can be up to 51.49%. Without bells and whistles, QDROP establishes a new state of the art for PTQ. Our code is available at https://github.com/wimh966/QDrop and has been integrated into MQBench (https://github.com/ModelTC/MQBench)

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

↑