arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11022cs.SDeess.AS
收藏

利用门控注意力减少异常值以改进大型序列到序列语音基础模型的训练后量化

Outlier Reduction with Gated Attention for Improved Post-training Quantization in Large Sequence-to-sequence Speech Foundation Models

Technische Hochschule Nürnberg Georg Simon Ohm(纽伦堡乔治·西蒙·欧姆应用技术大学);Intel Labs(英特尔实验室)

Dominik Wagner, Ilja Baumann, Korbinian Riedhammer, Tobias Bocklet

AI总结:

针对 Whisper 语音模型蒸馏后 PTQ 受权重与激活异常值影响的问题,本文在学生模型注意力块中引入门控机制以减少异常值,实现有效 8 比特量化并降低词错误率。

摘要:

本文探讨了在 Whisper 语音基础模型系列中,于知识蒸馏之后改进训练后量化(PTQ)的方法。我们应对权重和激活张量中异常值带来的挑战;已知这些异常值会损害基于 transformer 的语言模型和视觉模型中的量化质量。将该观察扩展到 Whisper,我们证明,当基于 transformer 的模型被训练用于执行自动语音识别时,这些异常值同样存在,因此 PTQ 需要缓解策略。我们表明,通过最近提出的、用于学生模型注意力块的门控机制,可以减少异常值,从而实现有效的 8 比特量化;与未设置该门控机制的学生模型相比,词错误率更低。

英文摘要:

This paper explores the improvement of post-training quantization (PTQ) after knowledge distillation in the Whisper speech foundation model family. We address the challenge of outliers in weights and activation tensors, known to impede quantization quality in transformer-based language and vision models. Extending this observation to Whisper, we demonstrate that these outliers are also present when transformer-based models are trained to perform automatic speech recognition, necessitating mitigation strategies for PTQ. We show that outliers can be reduced by a recently proposed gating mechanism in the attention blocks of the student model, enabling effective 8-bit quantization, and lower word error rates compared to student models without the gating mechanism in place.

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

↑