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

通过自适应神经网络量化实现轻量级说话人验证

Towards Lightweight Speaker Verification via Adaptive Neural Network Quantization

Shanghai Jiao Tong University(上海交通大学)

Bei Liu, Haoyu Wang, Yanmin Qian

AI总结:

针对说话人验证模型资源开销大的问题,提出自适应均匀精度、混合精度与多阶段微调及 1-bit 量化方案,在 VoxCeleb 上实现高压缩与显著性能优势。

摘要:

现代说话人验证(SV)系统通常需要昂贵的存储和计算资源,从而阻碍了其在移动设备上的部署。本文探索用于轻量级说话人验证的自适应神经网络量化。首先,我们提出一种新颖的自适应均匀精度量化方法,该方法能够基于 k-means 聚类动态生成针对每个网络层定制的量化质心。通过将其应用于预训练 SV 系统,我们获得了一系列具有不同位宽的量化变体。为提升低位量化模型的性能,进一步引入了混合精度量化算法以及多阶段微调(MSFT)策略。与均匀精度量化不同,混合精度方法允许为不同网络层分配不同位宽。当位组合确定后,采用 MSFT 按特定顺序逐步量化并微调网络。最后,我们设计了两种不同的二值量化方案以缓解 1-bit 量化模型的性能下降:静态量化器和自适应量化器。在 VoxCeleb 上的实验表明,ResNets 和 DF-ResNets 均实现了无损 4-bit 均匀精度量化,获得了约 8 倍的良好压缩率。此外,与均匀精度方法相比,混合精度量化不仅在模型尺寸相近的情况下取得了额外的性能提升,还提供了为任意期望模型尺寸生成位组合的灵活性。另外,我们提出的 1-bit 量化方案显著提升了二值化模型的性能。最后,与现有轻量级 SV 系统的全面比较表明,我们提出的模型在各种模型尺寸范围内均大幅优于所有先前方法。

英文摘要:

Modern speaker verification (SV) systems typically demand expensive storage and computing resources, thereby hindering their deployment on mobile devices. In this paper, we explore adaptive neural network quantization for lightweight speaker verification. Firstly, we propose a novel adaptive uniform precision quantization method which enables the dynamic generation of quantization centroids customized for each network layer based on k-means clustering. By applying it to the pre-trained SV systems, we obtain a series of quantized variants with different bit widths. To enhance the performance of low-bit quantized models, a mixed precision quantization algorithm along with a multi-stage fine-tuning (MSFT) strategy is further introduced. Unlike uniform precision quantization, mixed precision approach allows for the assignment of varying bit widths to different network layers. When bit combination is determined, MSFT is employed to progressively quantize and fine-tune network in a specific order. Finally, we design two distinct binary quantization schemes to mitigate performance degradation of 1-bit quantized models: the static and adaptive quantizers. Experiments on VoxCeleb demonstrate that lossless 4-bit uniform precision quantization is achieved on both ResNets and DF-ResNets, yielding a promising compression ratio of around 8. Moreover, compared to uniform precision approach, mixed precision quantization not only obtains additional performance improvements with a similar model size but also offers the flexibility to generate bit combination for any desirable model size. In addition, our suggested 1-bit quantization schemes remarkably boost the performance of binarized models. Finally, a thorough comparison with existing lightweight SV systems reveals that our proposed models outperform all previous methods by a large margin across various model size ranges.

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

↑