RAND:面向量化Seq2seq模型的鲁棒性感知范数衰减
RAND: Robustness Aware Norm Decay For Quantized Seq2seq Models
AI总结:
本文针对量化Seq2seq模型提出鲁棒性感知范数衰减方法,通过低复杂度修改QAT过程解决噪声量化中正则化信号不足问题,在语音识别和机器翻译任务上优于现有可学习尺度与裁剪方法,并支持混合精度训练和长形式语音识别泛化提升。
摘要:
随着神经网络规模的迅速增长,模型压缩已成为一个重要的研究领域。量化是一种在减小模型尺寸、降低内存访问和计算负载方面非常有效的技术。尽管量化感知训练(QAT)技术近期取得了进展,但大多数论文所呈现的评估主要集中于计算机视觉任务,而这些任务与序列任务具有不同的训练动态特性。在本文中,我们首先在一系列语音识别数据集(规模从1,000小时到100万小时不等)以及一个机器翻译数据集上,对4比特seq2seq模型中的流行技术(如直通估计器、伪量化噪声、可学习尺度参数、裁剪等)的影响进行了基准测试,以展示其在语音之外领域的适用性。通过实验,我们报告称,当回传到量化尺度的正则化信号不足时,基于噪声的QAT性能会受到影响。我们提出了对QAT过程的低复杂度修改,以提高模型精度(优于流行的可学习尺度和裁剪方法)。随着精度的提升,这为利用基于噪声的QAT的其他一些优势开辟了可能性:1)训练一个在混合精度模式下表现良好的单一模型;2)在长形式语音识别上提高泛化能力。
英文摘要:
With the rapid increase in the size of neural networks, model compression has become an important area of research. Quantization is an effective technique at decreasing the model size, memory access, and compute load of large models. Despite recent advances in quantization aware training (QAT) technique, most papers present evaluations that are focused on computer vision tasks, which have different training dynamics compared to sequence tasks. In this paper, we first benchmark the impact of popular techniques such as straight through estimator, pseudo-quantization noise, learnable scale parameter, clipping, etc. on 4-bit seq2seq models across a suite of speech recognition datasets ranging from 1,000 hours to 1 million hours, as well as one machine translation dataset to illustrate its applicability outside of speech. Through the experiments, we report that noise based QAT suffers when there is insufficient regularization signal flowing back to the quantization scale. We propose low complexity changes to the QAT process to improve model accuracy (outperforming popular learnable scale and clipping methods). With the improved accuracy, it opens up the possibility to exploit some of the other benefits of noise based QAT: 1) training a single model that performs well in mixed precision mode and 2) improved generalization on long form speech recognition.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。