BaldWhisper: Faster Whisper with Head Shearing and Layer Merging
Yaya Sy, Christophe Cerisara, Irina Illina
TL;DR
This work tackles efficient on-device ASR for Whisper in data-scarce languages by introducing BaldWhisper, a two-stage pruning approach that first merges adjacent decoder layers and then applies activation-aware low-rank embedding decomposition to the shared embeddings. The method leverages a data-efficient workflow, requiring only $32$ hours of Bambara data, and uses cross-entropy combined with knowledge distillation to train the compressed model. The results show a 48% reduction in model size and a 2.15x speedup on a MacBook Air M1, while preserving over 90% of the base Whisper's performance, without large retraining data. This approach offers a practical path to deploying accurate, fast ASR for low-resource languages on edge devices and avoids risky vocabulary pruning in code-switching contexts.
Abstract
Pruning large pre-trained transformers for low-resource languages 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.
