arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2210.07692cs.SDcs.LGcs.SYeess.ASeess.SY
收藏

基于混合FP16-INT8后训练Quantization的多核MCU加速RNN语音增强

Accelerating RNN-based Speech Enhancement on a Multi-Core MCU with Mixed FP16-INT8 Post-Training Quantization

Universita’ di Bologna(博洛尼亚大学);Greenwaves Technologies(绿波科技)

Manuele Rusci, Marco Fariselli, Martin Croome, Francesco Paci, Eric Flamand

摘要:

本文提出了一种优化方法,用于在最先进的微控制器单元(MCU)上设计和部署基于循环神经网络(RNN)的语音增强(SE)算法,该MCU具有1+8个通用RISC-V核心。为了实现低延迟执行,我们提出了一种优化的软件流水线,交错并行计算LSTM或GRU递归块,具有矢量化的8位整数(INT 8)和16位浮点(FP 16)计算单元,手动管理模型参数的内存传输。为了确保相对于全精度模型的最小精度下降,我们提出了一种新的FP 16-INT 8混合精度训练后量化(PTQ)方案,该方案将递归层压缩到8位,而其余层的位精度保持为FP 16。实验在Valentini数据集上训练的多个基于LSTM和GRU的SE模型上进行,具有多达124万个参数。由于所提出的方法,相对于无损FP 16基线,我们将计算速度提高了4倍。与PESQ分数平均降低0.3的均匀8位量化相比,混合精度PTQ方案导致仅0.06的低降级,同时实现1.4- 1.7倍的内存节省。得益于这种压缩,我们通过将大模型安装在有限的片上非易失性存储器上来降低外部存储器的功耗成本,并通过将电源电压从0.8V降低到0.65V来实现高达2.5倍的MCU功耗节省,同时仍符合实时限制。我们的设计比部署在单核MCU上的最先进的SE解决方案高出10倍的能效,这些解决方案使用更小的模型和量化感知训练。

英文摘要:

This paper presents an optimized methodology to design and deploy Speech Enhancement (SE) algorithms based on Recurrent Neural Networks (RNNs) on a state-of-the-art MicroController Unit (MCU), with 1+8 general-purpose RISC-V cores. To achieve low-latency execution, we propose an optimized software pipeline interleaving parallel computation of LSTM or GRU recurrent blocks, featuring vectorized 8-bit integer (INT8) and 16-bit floating-point (FP16) compute units, with manually-managed memory transfers of model parameters. To ensure minimal accuracy degradation with respect to the full-precision models, we propose a novel FP16-INT8 Mixed-Precision Post-Training Quantization (PTQ) scheme that compresses the recurrent layers to 8-bit while the bit precision of remaining layers is kept to FP16. Experiments are conducted on multiple LSTM and GRU based SE models trained on the Valentini dataset, featuring up to 1.24M parameters. Thanks to the proposed approaches, we speed-up the computation by up to 4x with respect to the lossless FP16 baselines. Differently from a uniform 8-bit quantization that degrades the PESQ score by 0.3 on average, the Mixed-Precision PTQ scheme leads to a low-degradation of only 0.06, while achieving a 1.4-1.7x memory saving. Thanks to this compression, we cut the power cost of the external memory by fitting the large models on the limited on-chip non-volatile memory and we gain a MCU power saving of up to 2.5x by reducing the supply voltage from 0.8V to 0.65V while still matching the real-time constraints. Our design results 10x more energy efficient than state-of-the-art SE solutions deployed on single-core MCUs that make use of smaller models and quantization-aware training.

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

↑