arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.11540cs.CLcs.SDeess.AS
收藏

语音识别中Transformer语言模型Quantization的混合精度

Mixed Precision of Quantization of Transformer Language Models for Speech Recognition

The Chinese University of Hong Kong(香港中文大学)

Junhao Xu, Shoukang Hu, Jianwei Yu, Xunying Liu, Helen Meng

摘要:

以Transformers为代表的最先进的神经语言模型对于实际应用来说正变得越来越复杂和昂贵。低比特深度神经网络量化技术提供了一个强大的解决方案,以显着减少其模型的大小。当前的低比特量化方法基于统一的精度,并且不能考虑系统的不同部分对量化误差的变化的性能敏感度。为此,本文提出了新的混合精度DNN量化方法。使用两种技术自动学习最佳局部精度设置。第一种是基于量化灵敏度度量的海森迹加权量化扰动的形式。第二种是基于混合精度的Transformer结构搜索。交替方向乘法器(ADMM)被用来有效地训练混合精度量化DNN系统。在Penn Treebank(PTB)和Switchboard语料库训练的LF-MMI TDNN系统上进行的实验表明,所提出的混合精度Transformer量化技术在全精度基线上实现了高达16倍的模型大小压缩比,而没有识别性能下降。当用于压缩具有更多层的更大的全精度Transformer LM时,获得了高达1.7%绝对(18%相对)的总体字出错率(WER)降低。

英文摘要:

State-of-the-art neural language models represented by Transformers are becoming increasingly complex and expensive for practical applications. Low-bit deep neural network quantization techniques provides a powerful solution to dramatically reduce their model size. Current low-bit quantization methods are based on uniform precision and fail to account for the varying performance sensitivity at different parts of the system to quantization errors. To this end, novel mixed precision DNN quantization methods are proposed in this paper. The optimal local precision settings are automatically learned using two techniques. The first is based on a quantization sensitivity metric in the form of Hessian trace weighted quantization perturbation. The second is based on mixed precision Transformer architecture search. Alternating direction methods of multipliers (ADMM) are used to efficiently train mixed precision quantized DNN systems. Experiments conducted on Penn Treebank (PTB) and a Switchboard corpus trained LF-MMI TDNN system suggest the proposed mixed precision Transformer quantization techniques achieved model size compression ratios of up to 16 times over the full precision baseline with no recognition performance degradation. When being used to compress a larger full precision Transformer LM with more layers, overall word error rate (WER) reductions up to 1.7% absolute (18% relative) were obtained.

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

↑