arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.07200cs.CVcs.LGcs.NE
收藏

结构重参数化网络低位宽量化的异常值感知训练

Outlier-Aware Training for Low-Bit Quantization of Structural Re-Parameterized Networks

Muqun Niu, Yuan Ren, Boyu Li, Chenchen Ding

AI总结:

针对结构重参数化网络合并过程引入权重异常值导致量化困难的问题,提出算子级训练改进方法OABN与基于聚类的非均匀量化框架ClusterQAT,二者结合大幅提升了RepVGG在低位宽下的量化性能。

摘要:

卷积神经网络(CNN)的轻量化设计需要在模型架构和压缩技术上进行协同设计。作为一种分离训练和推理的新颖设计范式,结构重参数化(SR)网络(如代表性的RepVGG)以媲美高级且通常更复杂的网络的高精度,使简单的类VGG网络焕发新生。然而,SR网络中的合并过程会在权重中引入异常值,使其分布有别于传统网络,从而增加了量化的难度。为了解决这一问题,我们提出了一种名为异常值感知批归一化(OABN)的算子级训练改进方法。此外,为了在维持推理精度的同时满足有限位宽的需求,我们开发了一个基于聚类的非均匀量化框架,用于量化感知训练(QAT),名为ClusterQAT。将OABN与ClusterQAT相结合,RepVGG的量化性能得到了大幅提升,特别是在位宽低于8时。

英文摘要:

Lightweight design of Convolutional Neural Networks (CNNs) requires co-design efforts in the model architectures and compression techniques. As a novel design paradigm that separates training and inference, a structural re-parameterized (SR) network such as the representative RepVGG revitalizes the simple VGG-like network with a high accuracy comparable to advanced and often more complicated networks. However, the merging process in SR networks introduces outliers into weights, making their distribution distinct from conventional networks and thus heightening difficulties in quantization. To address this, we propose an operator-level improvement for training called Outlier Aware Batch Normalization (OABN). Additionally, to meet the demands of limited bitwidths while upkeeping the inference accuracy, we develop a clustering-based non-uniform quantization framework for Quantization-Aware Training (QAT) named ClusterQAT. Integrating OABN with ClusterQAT, the quantized performance of RepVGG is largely enhanced, particularly when the bitwidth falls below 8.

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

↑