BaldWhisper: 更高效的Whisper通过头部剪切和层合并
BaldWhisper: Faster Whisper with Head Shearing and Layer Merging
AI总结:
针对数据稀缺场景,BaldWhisper通过嵌入压缩和层合并技术,在仅用32小时语音数据的情况下,使Whisper模型更轻量且更快,性能损失仅0.1,体积缩小48%,速度提升2.15倍。
摘要:
在数据稀缺情况下对大型预训练Transformer进行剪枝具有挑战性,因为通常需要大量重新训练数据来恢复性能。例如,Distill-Whisper通过剪枝Whisper并重新训练21,000小时语音数据,远超大多数语言可用的数据量。针对Bambara语言仅32小时语音到文本数据,我们提出了一种新的剪枝方法。而非传统的词汇剪枝(因Bambara说话人频繁切换语言而不可行),我们采用低秩分解和特征蒸馏压缩嵌入。而非移除层,我们合并层以限制性能损失。最终模型在MacBook Air M1上保持90%的原始性能,体积缩小48%,速度提升2.15倍。
英文摘要:
Pruning large pre-trained transformers in a data-scarce scenario is challenging, as it often requires massive retraining data to recover performance. For instance, Distill-Whisper prunes Whisper by 40 and retrains on 21,000 hours of speech, far beyond what is available for most languages. Can Whisper be made lighter and faster for edge devices in data-scarce settings? Focusing on Bambara with only 32h of speech-to-text data, we propose a new pruning recipe. Instead of vocabulary pruning, which is unsuitable due to frequent code-switching by Bambara speakers, we compress the embeddings with low-rank decomposition and feature distillation. Rather than removing layers, we merge them to limit performance loss. The final model preserves 90 of the original performance while being 48 smaller and 2.15x faster on a MacBook Air M1.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。