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

让 RepVGG 再次强大:一种量化感知方法

Make RepVGG Greater Again: A Quantization-aware Approach

Meituan(美团)

Xiangxiang Chu, Liang Li, Bo Zhang

AI总结:

针对 RepVGG 架构重参数化导致 INT8 量化精度严重下降的问题,本文提出量化友好的重参数化结构,将 ImageNet 训练后量化精度损失降至 2% 以内并保持 FP32 性能。

摘要:

性能与推理速度之间的权衡对于实际应用至关重要。架构重参数化能够获得更好的权衡,并且正成为现代卷积神经网络中越来越受欢迎的组成部分。尽管如此,当需要 INT8 推理时,其量化性能通常差到无法部署(在 ImageNet 上 top-1 准确率下降超过 20%)。本文深入研究了这一失败的底层机制,即原始设计不可避免地放大了量化误差。我们提出了一种简单、稳健且有效的补救措施,以获得既对量化友好又享有重参数化优势的结构。我们的方法极大地缩小了 RepVGG 的 INT8 与 FP32 准确率之间的差距。在没有额外技巧的情况下,通过标准的训练后量化,ImageNet 上的 top-1 准确率下降被控制在 2% 以内。此外,我们的方法还取得了与 RepVGG 相近的 FP32 性能。在检测和语义分割任务上的大量实验验证了其泛化能力。

英文摘要:

The tradeoff between performance and inference speed is critical for practical applications. Architecture reparameterization obtains better tradeoffs and it is becoming an increasingly popular ingredient in modern convolutional neural networks. Nonetheless, its quantization performance is usually too poor to deploy (more than 20% top-1 accuracy drop on ImageNet) when INT8 inference is desired. In this paper, we dive into the underlying mechanism of this failure, where the original design inevitably enlarges quantization error. We propose a simple, robust, and effective remedy to have a quantization-friendly structure that also enjoys reparameterization benefits. Our method greatly bridges the gap between INT8 and FP32 accuracy for RepVGG. Without bells and whistles, the top-1 accuracy drop on ImageNet is reduced within 2% by standard post-training quantization. Moreover, our method also achieves similar FP32 performance as RepVGG. Extensive experiments on detection and semantic segmentation tasks verify its generalization.

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

↑