arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.00490cs.LG
收藏

振荡使神经网络对量化具有鲁棒性

Oscillations Make Neural Networks Robust to Quantization

Department of Computer Science, University of Copenhagen(计算机科学系,哥本哈根大学)

Jonathan Wenshøj, Bob Pepin, Raghavendra Selvan

AI总结:

本研究通过引入振荡正则化器,证明在QAT中振荡有助于提升模型在量化后的性能。

摘要:

我们挑战了普遍认为在量化感知训练(QAT)过程中观察到的权重振荡仅仅是不希望的副作用的观点,认为它们实际上是QAT的重要组成部分。我们在单变量线性模型中展示,QAT会导致一个额外的损失项,通过将权重推离最近的量化级别从而引起振荡。基于分析中的机制,我们随后推导出一个正则化器,该正则化器在训练神经网络时诱导权重的振荡。我们在ResNet-18和Tiny Vision Transformer上进行的实验证明,在CIFAR-10和Tiny ImageNet数据集上,对不同量化级别进行训练后,通过后训练量化(PTQ)恢复QAT性能在大多数情况下是足够的。通过这项工作,我们进一步了解了QAT的动力学,并为解释QAT中振荡的作用提供了新的见解,直到现在这些振荡被认为主要对量化有负面影响。

英文摘要:

We challenge the prevailing view that weight oscillations observed during Quantization Aware Training (QAT) are merely undesirable side-effects and argue instead that they are an essential part of QAT. We show in a univariate linear model that QAT results in an additional loss term that causes oscillations by pushing weights away from their nearest quantization level. Based on the mechanism from the analysis, we then derive a regularizer that induces oscillations in the weights of neural networks during training. Our empirical results on ResNet-18 and Tiny Vision Transformer, evaluated on CIFAR-10 and Tiny ImageNet datasets, demonstrate across a range of quantization levels that training with oscillations followed by post-training quantization (PTQ) is sufficient to recover the performance of QAT in most cases. With this work we provide further insight into the dynamics of QAT and contribute a novel insight into explaining the role of oscillations in QAT which until now have been considered to have a primarily negative effect on quantization.

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

↑