Distil-Whisper: Robust Knowledge Distillation via Large-Scale Pseudo Labelling

Sanchit Gandhi, Patrick von Platen, Alexander M. Rush
11/1/2023
cs.CLcs.SDeess.AS

No official code found. Best implementation: huggingface/distil-whisper (4,084 stars, MIT, last commit 2025-01-08).

Abstract

As the size of pre-trained speech recognition models increases, running these large models in low-latency or resource-constrained environments becomes challenging. In this work, we leverage pseudo-labelling to assemble a large-scale open-source dataset which we use to distill the Whisper model into a smaller variant, called Distil-Whisper. Using a simple word error rate (WER) heuristic, we select only the highest quality pseudo-labels for training. The distilled model is 5.8 times faster with 51% fewer parameters, while performing to within 1% WER on out-of-distribution test data in a zero-shot transfer setting. Distil-Whisper maintains the robustness of the Whisper model to difficult acoustic conditions, while being less prone to hallucination errors on long-form audio. Distil-Whisper is designed to be paired with Whisper for speculative decoding, yielding a 2 times speed-up while mathematically ensuring the same outputs as the original model. To facilitate further research in this domain, we make our training code, inference code and models publicly accessible.

View on arXivView PDF

Code Implementations(1)

MIT

Distilled variant of Whisper for speech recognition. 6x faster, 50% smaller, within 1% word error rate.

4,084353Shell, PythonOct 31, 20231 years agoMIT
audiospeech-recognitionwhisper

Similar Papers

Cite this paper

@article{gandhi2023distilwhisper,
  title  = {Distil-Whisper: Robust Knowledge Distillation via Large-Scale Pseudo Labelling},
  author = {Sanchit Gandhi and Patrick von Platen and Alexander M. Rush},
  year   = {2023},
  eprint = {2311.00430},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.00430v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.00430.svg)](https://codeofpaper.com/paper/2311.00430)

Discussion