arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.06920cs.SDcs.LGeess.AS
收藏

嵌入式芯片组的亚8位流关键字定位模型Quantization

Sub 8-Bit Quantization of Streaming Keyword Spotting Models for Embedded Chipsets

Amazon(亚马逊)

Lu Zeng, Sree Hari Krishnan Parthasarathi, Yuzong Liu, Alex Escott, Santosh Kumar Cheekatmalla, Nikko Strom, Shiv Vitaladevuni

摘要:

我们提出了一种新的2阶段子8位量化感知训练算法的所有组件的250 K参数前馈,流,无状态的关键字定位模型。对于第一阶段,我们采用最近提出的量化技术,使用tanh(.)密集层的权重。在第二阶段,我们对网络的其余部分使用线性量化方法,包括其他参数(偏置,增益,batchnorm),输入和激活。我们进行了大规模的实验,对26,000小时的去识别化制作、远场和近场音频数据进行了训练(对4,000小时的数据进行了评估)。我们组织我们的结果在两个嵌入式芯片组设置:a)与商品ARM NEON指令集和8位容器,我们目前的准确性,CPU和内存的结果,使用子8位权重(4、5、8位)和8位量化网络的其余部分; b)使用现成的神经网络加速器,对于一定范围的权重位宽(1和5位),在呈现准确性结果的同时,我们预计减少存储器利用率。在这两种配置中,我们的结果表明,所提出的算法可以实现:a)奇偶校验与一个完整的浮点模型的工作点上的检测错误权衡(DET)曲线在错误检测率(FDR)在错误拒绝率(FRR); b)显着减少计算和内存,产生高达3倍的改善CPU消耗和超过4倍的改善内存消耗。

英文摘要:

We propose a novel 2-stage sub 8-bit quantization aware training algorithm for all components of a 250K parameter feedforward, streaming, state-free keyword spotting model. For the 1st-stage, we adapt a recently proposed quantization technique using a non-linear transformation with tanh(.) on dense layer weights. In the 2nd-stage, we use linear quantization methods on the rest of the network, including other parameters (bias, gain, batchnorm), inputs, and activations. We conduct large scale experiments, training on 26,000 hours of de-identified production, far-field and near-field audio data (evaluating on 4,000 hours of data). We organize our results in two embedded chipset settings: a) with commodity ARM NEON instruction set and 8-bit containers, we present accuracy, CPU, and memory results using sub 8-bit weights (4, 5, 8-bit) and 8-bit quantization of rest of the network; b) with off-the-shelf neural network accelerators, for a range of weight bit widths (1 and 5-bit), while presenting accuracy results, we project reduction in memory utilization. In both configurations, our results show that the proposed algorithm can achieve: a) parity with a full floating point model's operating point on a detection error tradeoff (DET) curve in terms of false detection rate (FDR) at false rejection rate (FRR); b) significant reduction in compute and memory, yielding up to 3 times improvement in CPU consumption and more than 4 times improvement in memory consumption.

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

↑