[Paper Review] DQ-Whisper: Joint Distillation and Quantization for Efficient Multilingual Speech Recognition
This paper proposes DQ-Whisper, a joint knowledge distillation and quantization framework that compresses the Whisper ASR model for efficient inference on edge devices. By using mutual guidance between distillation and quantization to select optimal layers, it reduces Whisper-small to Whisper-base and tiny sizes (5.18x and 10.48x smaller) while improving relative CER by 11.3% and 14.0% respectively compared to original models.
As a popular multilingual and multitask pre-trained speech model, Whisper has the problem of curse of multilinguality. To enhance multilingual capabilities in small Whisper models, we propose DQ-Whisper, a novel joint distillation and quantization framework to compress Whisper for efficient inference. Firstly, we propose a novel dynamic matching distillation strategy. Then, a quantization-aware distillation framework is introduced to integrate quantization with distillation. Experimental results on various multilingual datasets show that our suggested distillation approach can effectively enhance the multilingual capabilities of small Whisper models without increasing computational costs. Up to 5.18x reduction in model size is achieved with marginal performance degradation. In addition, quantization is compatible with distillation, which can result in a higher compression rate.
Motivation & Objective
- To address the high computational cost and large size of pre-trained Whisper models, which hinder deployment on resource-constrained edge devices.
- To improve model efficiency without sacrificing recognition accuracy by combining knowledge distillation and quantization techniques.
- To develop a mutual guidance mechanism between distillation and quantization that minimizes performance degradation during compression.
- To propose layer selection strategies based on quantization and distillation losses for optimal compression and accuracy retention.
- To achieve significant model compression while improving relative character error rate (CER) over original Whisper models.
Proposed method
- The method uses a student model that learns from a teacher Whisper model via knowledge distillation, focusing on distillation of logits and intermediate hidden representations.
- Quantization is applied using Post-training Quantization with Training (APoT), selecting layers based on distillation loss to minimize performance degradation.
- Layer selection for distillation is guided by quantization loss, ensuring that layers critical to model performance are preserved during knowledge transfer.
- Layer selection for quantization is guided by distillation loss, prioritizing layers that contribute most to representation learning.
- A monotonically increasing constraint is applied to dynamic hidden layer matching to prevent mismatched layer mapping between student and teacher models.
- The framework combines joint distillation and quantization with a mutual guidance mechanism, enabling effective compression while maintaining or improving accuracy.
Experimental results
Research questions
- RQ1Can joint knowledge distillation and quantization effectively compress the Whisper model while preserving or improving ASR performance?
- RQ2How can distillation and quantization be mutually guided to minimize performance degradation during model compression?
- RQ3What layer selection strategies based on quantization and distillation losses lead to optimal compression and accuracy trade-offs?
- RQ4Does applying quantization to only a subset of layers mitigate performance degradation compared to full-layer quantization?
- RQ5Can the compressed model achieve better relative CER than the original Whisper models despite significant size reduction?
Key findings
- The DQ-Whisper method reduces the size of Whisper-small to Whisper-base and Whisper-tiny by 5.18x and 10.48x respectively, achieving significant model compression.
- The compressed model shows a relative CER reduction of 11.3% for Whisper-base and 14.0% for Whisper-tiny compared to their original counterparts.
- Applying APoT quantization to only 50% of decoder layers results in minimal performance degradation (almost no CER increase) while still achieving 114MB/58MB compression for Base/Tiny models.
- Full-layer quantization combined with guided distillation achieves the best performance, reducing model size from 461MB to 89MB (5.18x) and 44MB (10.48x) for Base and Tiny variants.
- The mutual guidance mechanism between distillation and quantization successfully restrains performance degradation, especially when using selective layer quantization.
- The method demonstrates that combining distillation and quantization with intelligent layer selection leads to better accuracy and efficiency than standalone compression techniques.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.