arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.02284eess.AScs.AIcs.LGeess.SP
收藏

用于设备上关键字定位的定点量化感知训练

Fixed-point quantization aware training for on-device keyword-spotting

Amazon(亚马逊公司);Alexa AI(Alexa人工智能部门);Alexa Perceptual Technologies(Alexa感知技术部门)

Sashank Macha, Om Oza, Alex Escott, Francesco Caliva, Robbie Armitano, Santosh Kumar Cheekatmalla, Sree Hari Krishnan Parthasarathi, Yuzong Liu

摘要:

定点(FXP)推理已被证明适用于计算资源有限的嵌入式设备,但模型训练仍在浮点(FLP)中持续进行。FXP训练还没有被充分探索,从FLP到FXP的非平凡转换带来了不可避免的性能下降。我们提出了一种新的方法来训练和获得FXP卷积关键字定位(KWS)模型。我们将我们的方法与两种量化感知训练(QAT)技术-模型参数的压缩权重分布和绝对余弦正则化相结合,并提出了在瞬态变量上扩展QAT的技术,否则会被以前的范式所忽略。在Google Speech Commands v2数据集上的实验结果表明,我们可以将模型精度降低到4位,而不会损失准确性。此外,在内部KWS数据集上,我们表明,与全精度FLP模型相比,我们的8位FXP-QAT模型在固定错误拒绝率下的相对错误发现率提高了4-6%。在推理过程中,我们认为FXP-QAT消除了q格式的规范化,并允许使用低比特位,同时最大限度地提高SIMD吞吐量,以减少用户感知的延迟。我们证明,我们可以减少68%的执行时间,而不影响KWS模型的预测性能或需要模型架构的变化。我们的工作提供了新的发现,有助于这一领域的未来研究,并实现准确和有效的模型。

英文摘要:

Fixed-point (FXP) inference has proven suitable for embedded devices with limited computational resources, and yet model training is continually performed in floating-point (FLP). FXP training has not been fully explored and the non-trivial conversion from FLP to FXP presents unavoidable performance drop. We propose a novel method to train and obtain FXP convolutional keyword-spotting (KWS) models. We combine our methodology with two quantization-aware-training (QAT) techniques - squashed weight distribution and absolute cosine regularization for model parameters, and propose techniques for extending QAT over transient variables, otherwise neglected by previous paradigms. Experimental results on the Google Speech Commands v2 dataset show that we can reduce model precision up to 4-bit with no loss in accuracy. Furthermore, on an in-house KWS dataset, we show that our 8-bit FXP-QAT models have a 4-6% improvement in relative false discovery rate at fixed false reject rate compared to full precision FLP models. During inference we argue that FXP-QAT eliminates q-format normalization and enables the use of low-bit accumulators while maximizing SIMD throughput to reduce user perceived latency. We demonstrate that we can reduce execution time by 68% without compromising KWS model's predictive performance or requiring model architectural changes. Our work provides novel findings that aid future research in this area and enable accurate and efficient models.

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

↑