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

Whisper-MLA: 降低ASR模型GPU内存消耗基于MHA2MLA转换

Whisper-MLA: Reducing GPU Memory Consumption of ASR Models based on MHA2MLA Conversion

College of Intelligence and Computing, Tianjin University, Tianjin, China(智能与计算学院,天津大学,天津,中国);Banma Network Technology Co., Ltd.(Banma网络技术有限公司)

Sen Zhang, Jianguo Wei, Wenhuan Lu, Xianghu Yue, Wei Li, Qiang Li, Pengcheng Zhao, Ming Cai, Luo Si

AI总结:

Whisper-MLA通过将多头潜在注意力应用于解码器自注意力模块,有效降低ASR模型的GPU内存消耗,同时保持较高的识别准确性。

摘要:

基于Transformer的Whisper模型在自动语音识别(ASR)中实现了最先进的性能。然而,其多头注意力(MHA)机制由于键值(KV)缓存使用量线性增长,导致显著的GPU内存消耗,这对许多应用,尤其是长音频来说是个问题。为了解决这个问题,我们引入了Whisper-MLA,一种新的架构,将多头潜在注意力(MLA)融入Whisper模型中。具体来说,我们将MLA适应到Whisper的绝对位置嵌入,并系统地研究其在编码器自注意力、解码器自注意力和交叉注意力模块中的应用。实验结果表明,仅将MLA应用于解码器自注意力可以在性能和内存效率之间取得平衡。我们提出的方法允许将预训练的Whisper模型转换为Whisper-MLA,只需最小的微调。在LibriSpeech基准上的广泛实验验证了这种转换的有效性,证明Whisper-MLA在保持竞争力的准确性的同时,将KV缓存大小减少了高达87.5%。

英文摘要:

The Transformer-based Whisper model has achieved state-of-the-art performance in Automatic Speech Recognition (ASR). However, its Multi-Head Attention (MHA) mechanism results in significant GPU memory consumption due to the linearly growing Key-Value (KV) cache usage, which is problematic for many applications especially with long-form audio. To address this, we introduce Whisper-MLA, a novel architecture that incorporates Multi-Head Latent Attention (MLA) into the Whisper model. Specifically, we adapt MLA for Whisper's absolute positional embeddings and systematically investigate its application across encoder self-attention, decoder self-attention, and cross-attention modules. Empirical results indicate that applying MLA exclusively to decoder self-attention yields the desired balance between performance and memory efficiency. Our proposed approach allows conversion of a pretrained Whisper model to Whisper-MLA with minimal fine-tuning. Extensive experiments on the LibriSpeech benchmark validate the effectiveness of this conversion, demonstrating that Whisper-MLA reduces the KV cache size by up to 87.5% while maintaining competitive accuracy.

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

↑