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

面向量化感知训练的权重跃迁调度方法

Scheduling Weight Transitions for Quantization-Aware Training

Samsung Research(三星研究院);Yonsei University(延世大学);Articron Inc.(Articron公司);Samsung AI center(三星AI研究中心)

Junghyup Lee, Jeimin Jeon, Dohyung Kim, Bumsub Ham

AI总结:

针对量化感知训练中手动调度学习率难以控制量化权重变化幅度的问题,提出跃迁率调度技术与跃迁自适应学习率,显式控制量化权重跃迁数,在标准基准上验证了有效性。

摘要:

量化感知训练(QAT,Quantization-Aware Training)通过在训练过程中模拟量化流程来降低权重与激活值的位精度。它借助基于梯度的优化器更新潜层权重(即量化器的全精度输入),间接学习量化后的权重。本文指出,将用户自定义学习率(LR,Learning Rate)与这类优化器绑定的方案,对QAT而言并非最优。只有当对应的潜层权重经过量化器改变离散状态的跃迁点时,量化权重才会在量化器的离散层级间跃迁。这意味着量化权重的变化同时受潜层权重的学习率及其分布的影响,因此通过手动调度学习率很难控制量化权重的变化幅度。本文推测,QAT中的参数变化程度与发生离散层级跃迁的量化权重数量相关。基于这一结论,我们提出了一种跃迁率(TR,Transition Rate)调度技术,可显式控制量化权重的跃迁数量。我们不再为潜层权重调度学习率,而是为量化权重设置目标跃迁率,并通过一种全新的跃迁自适应学习率(TALR,Transition-Adaptive Learning Rate)更新潜层权重,从而在QAT过程中兼顾量化权重的变化幅度。实验结果表明,该方法在标准基准测试上具备有效性。

英文摘要:

Quantization-aware training (QAT) simulates a quantization process during training to lower bit-precision of weights/activations. It learns quantized weights indirectly by updating latent weights,i.e., full-precision inputs to a quantizer, using gradient-based optimizers. We claim that coupling a user-defined learning rate (LR) with these optimizers is sub-optimal for QAT. Quantized weights transit discrete levels of a quantizer, only if corresponding latent weights pass transition points, where the quantizer changes discrete states. This suggests that the changes of quantized weights are affected by both the LR for latent weights and their distributions. It is thus difficult to control the degree of changes for quantized weights by scheduling the LR manually. We conjecture that the degree of parameter changes in QAT is related to the number of quantized weights transiting discrete levels. Based on this, we introduce a transition rate (TR) scheduling technique that controls the number of transitions of quantized weights explicitly. Instead of scheduling a LR for latent weights, we schedule a target TR of quantized weights, and update the latent weights with a novel transition-adaptive LR (TALR), enabling considering the degree of changes for the quantized weights during QAT. Experimental results demonstrate the effectiveness of our approach on standard benchmarks.

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

↑