Abstract
While OpenAI’s Whisper models demonstrate exceptional multilingual speech recognition capabilities, a significant performance gap exists between the largest versions and their smaller, production-friendly counterparts, particularly for under-represented languages. This paper introduces DistilWhisper, a dual-strategy approach that bridges this gap by integrating language-specific "expert" modules and distilling knowledge from the massive Whisper-large-v2. By utilizing Conditional Language-Specific Routing (CLSR) and Jensen-Shannon (JS) divergence-based distillation, DistilWhisper achieves substantial accuracy gains on both in-domain and out-of-domain tasks with a minimal 10% increase in inference parameters.
Introduction
OpenAI’s Whisper has revolutionized multilingual speech recognition, yet it remains subject to the "curse of multilinguality." While the large-v2 model performs robustly across 99 languages, smaller versions like whisper-small exhibit a steep decline in accuracy for languages that were under-represented in the original training corpus. Standard adaptation techniques, such as full fine-tuning, often result in catastrophic forgetting of the model's general capabilities or a loss of the signature robustness that allows Whisper to handle diverse, noisy environments. DistilWhisper is designed to address these limitations by preserving the model's general knowledge while specializing it for specific linguistic nuances.
Methodology
The DistilWhisper framework employs two primary mechanisms to enhance the performance of smaller student models:
1. Conditional Language-Specific Routing (CLSR)
Rather than fine-tuning the entire architecture, the researchers replaced the standard Feed-Forward Network (FFN) layers in the encoder and decoder with CLSR modules. Each module consists of:
- A Shared Path: The original, frozen weights of the pre-trained model.
- A Language-Specific Path: New, learnable "expert" weights.
- A Gating Mechanism: A token-by-token router that decides which path to prioritize, allowing the model to leverage general phonetic patterns while specializing in language-specific features.
2. Knowledge Distillation (KD) with JS Divergence
To transfer the robustness of the whisper-large-v2 (teacher) to the whisper-small (student), the authors employed sequence-level knowledge distillation. A key finding was the superiority of Jensen-Shannon (JS) divergence over the traditional Kullback-Leibler (KL) divergence. JS divergence provided greater stability and better results for the complex probability distributions found in speech tasks.
Experimental Setup
The study focused on eight languages where the performance disparity between small and large models was most pronounced: Catalan, Czech, Galician, Hungarian, Polish, Thai, Tamil, and Ukrainian.
- Training (In-Domain): CommonVoice 13.0 (CV-13) was used with varying data regimes (3k, 10k, and 28k utterances).
- Evaluation (Out-of-Domain): The FLEURS dataset served as the primary benchmark for testing generalization to new environments and accents.
Key Results and Discussion
Closing the Performance Gap
DistilWhisper successfully reduced the out-of-domain performance gap between whisper-large and whisper-small by an average of 35.2%. In high-resource scenarios (28k utterances), this gap was slashed by as much as 75% for certain languages. This suggests that the teacher's robustness is effectively transferable through distillation.
Efficiency and Scalability
One of the most significant advantages of DistilWhisper is its efficiency. The approach introduces only a 10% parameter overhead (approximately 25M parameters) during inference. Because only the relevant language expert is activated for a given task, the computational cost remains nearly identical to the original whisper-small model.
Comparison with Adaptation Baselines
DistilWhisper consistently outperformed popular adaptation methods such as LoRA (Low-Rank Adaptation) and standard fine-tuning. This was particularly evident in out-of-domain tests, where standard fine-tuning often led to brittle models that failed to generalize beyond the training distribution.
Conclusion and Future Work
DistilWhisper demonstrates that language-specific experts, combined with robust knowledge distillation, can significantly elevate the performance of small-scale speech models without sacrificing their generalist capabilities. While the current implementation requires a specific expert per language, future research may explore expert sharing or more complex routing strategies to scale the method to hundreds of languages. Additionally, the modular nature of CLSR suggests potential applications in adapting Whisper to specialized domains such as medical or legal transcription.
Summary updated