arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.16827eess.AScs.CLcs.SD
收藏

用于高效语音识别的整数Zero-shot量化

Integer-only Zero-shot Quantization for Efficient Speech Recognition

University of California, Berkeley(加州大学伯克利分校)

Sehoon Kim, Amir Gholami, Zhewei Yao, Nicholas Lee, Patrick Wang, Aniruddha Nrusimha, Bohan Zhai, Tianren Gao, Michael W. Mahoney, Kurt Keutzer

摘要:

端到端神经网络模型在各种自动语音识别(ASR)任务上实现了改进的性能。然而,由于大量的内存和计算需求,这些模型在边缘硬件上表现不佳。虽然将模型权重和/或激活量化到低精度可能是一个有前途的解决方案,但以前对量化ASR模型的研究是有限的。特别是,以前的方法在推理过程中使用浮点运算,因此它们不能充分利用有效的整数处理单元。此外,它们在量化期间需要训练和/或验证数据,由于安全或隐私问题,这些数据可能不可用。为了解决这些限制,我们提出了一个整数,zero-shot量化方案的ASR模型。特别是,我们生成的合成数据的运行时统计数据类似于真实数据,我们用它来校准模型在量化。我们将我们的方法应用于QuartzNet,Jasper和Conformer,与全精度基线模型相比,即使没有使用任何数据,WER的退化也可以忽略不计。此外,我们在T4 GPU上实现了高达2.35倍的加速和4倍的压缩率,使用INT 8量化时WER降低<1%。

英文摘要:

End-to-end neural network models achieve improved performance on various automatic speech recognition (ASR) tasks. However, these models perform poorly on edge hardware due to large memory and computation requirements. While quantizing model weights and/or activations to low-precision can be a promising solution, previous research on quantizing ASR models is limited. In particular, the previous approaches use floating-point arithmetic during inference and thus they cannot fully exploit efficient integer processing units. Moreover, they require training and/or validation data during quantization, which may not be available due to security or privacy concerns. To address these limitations, we propose an integer-only, zero-shot quantization scheme for ASR models. In particular, we generate synthetic data whose runtime statistics resemble the real data, and we use it to calibrate models during quantization. We apply our method to quantize QuartzNet, Jasper, and Conformer and show negligible WER degradation as compared to the full-precision baseline models, even without using any data. Moreover, we achieve up to 2.35x speedup on a T4 GPU and 4x compression rate, with a modest WER degradation of <1% with INT8 quantization.

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

↑