arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.11812cs.CLcs.AI
收藏

Teacher Intervention:提高超低精度Transformers的Quantization感知训练的收敛性

Teacher Intervention: Improving Convergence of Quantization Aware Training for Ultra-Low Precision Transformers

Hanyang University(汉阳大学);Seoul National University(首尔国立大学)

Minsoo Kim, Kyuhong Shim, Seongmin Park, Wonyong Sung, Jungwook Choi

摘要:

预训练的Transformer模型(如BERT)在广泛的应用中取得了巨大的成功,但代价是模型复杂性大幅增加。量化感知训练(QAT)是一种很有前途的方法,以降低实现成本和能源消耗。然而,由于不稳定的收敛,低于2位的积极量化会导致相当大的精度下降,特别是当下游数据集不丰富时。这项工作提出了一种积极主动的知识蒸馏方法,称为教师干预(TI)的快速收敛QAT的超低精度预先训练的Transformers。TI用来自教师的完整信号干预逐层信号传播,以消除传播的量化误差的干扰,平滑QAT的损失表面并加速收敛。此外,我们提出了一个渐进的干预机制,以稳定恢复的Transformer层的子部分从量化。所提出的计划,使QAT的快速收敛,提高模型的精度,而不管下游微调任务的不同特点。我们证明,TI一贯实现卓越的准确性与显着较低的微调迭代著名的Transformers的自然语言处理以及计算机视觉相比,国家的最先进的QAT方法。

英文摘要:

Pre-trained Transformer models such as BERT have shown great success in a wide range of applications, but at the cost of substantial increases in model complexity. Quantization-aware training (QAT) is a promising method to lower the implementation cost and energy consumption. However, aggressive quantization below 2-bit causes considerable accuracy degradation due to unstable convergence, especially when the downstream dataset is not abundant. This work proposes a proactive knowledge distillation method called Teacher Intervention (TI) for fast converging QAT of ultra-low precision pre-trained Transformers. TI intervenes layer-wise signal propagation with the intact signal from the teacher to remove the interference of propagated quantization errors, smoothing loss surface of QAT and expediting the convergence. Furthermore, we propose a gradual intervention mechanism to stabilize the recovery of subsections of Transformer layers from quantization. The proposed schemes enable fast convergence of QAT and improve the model accuracy regardless of the diverse characteristics of downstream fine-tuning tasks. We demonstrate that TI consistently achieves superior accuracy with significantly lower fine-tuning iterations on well-known Transformers of natural language processing as well as computer vision compared to the state-of-the-art QAT methods.

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

↑