Whisper-MLA: Reducing GPU Memory Consumption of ASR Models based on MHA2MLA Conversion
Organizations: College of Intelligence and Computing, Tianjin University, Tianjin, China · Banma Network Technology Co., Ltd.
Abstract
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.
Figures & tables
| Model | Keep Strategy | KV Cache Red. | dev-clean | dev-other | test-clean | test-other | avg |
| Whisper(pretrained) | - | 0% | 16.37 | 19.78 | 16.00 | 20.90 | 18.36 |
| Whisper(finetuned) | - | 0% | 6.32 | 14.86 | 6.86 | 15.05 | 10.95 |
| Whisper-MLA (Full) | Full Compression | 87.50% | 16.58 | 27.79 | 16.37 | 28.09 | 22.46 |
| Uniform | 81.25% | 12.32 | 19.72 | 13.18 | 21.34 | 16.81 | |
| 2-Norm | 81.25% | 11.75 | 20.83 | 12.15 | 21.74 | 16.82 | |
| Whisper-MLA (DSO) | Full Compression | 87.50% | 8.69 | 16.99 | 8.87 | 17.86 | 13.29 |
Automatic Speech Recognition
Automatic speech recognition converts spoken language into text across speakers, languages, domains, and recording conditions.
See all 480 papers