Skip to content
AI Learning Ground Start learning

Research ·

Six Layers Less: Encoder Pruning for Whisper with Label-Free Recovery

Researchers pruned six of Whisper-large-v3-turbo's 32 encoder layers (18.5% of the stack) by ranking layers via leave-one-out WER impact, then recovered accuracy with label-free distillation on unlabeled monolingual speech, releasing code and the pruned model.

Six Layers Less: Encoder Pruning for Whisper with Label-Free Recovery
Image: Hugging Face

A new paper introduces an approach to pruning the encoder of OpenAI's Whisper, an area where prior compression work has focused mostly on the decoder. Decoder pruning is already widely adopted: whisper-large-v3-turbo cut the decoder from 32 to 4 layers, and Distill-Whisper went down to 2. Encoder compression has not caught on, which the authors attribute to the need for custom inference implementations to actually run the compressed models.

The method ranks encoder layers by the leave-one-layer-out change in Word Error Rate and removes the six layers that hurt WER least, about 18.5% of the encoder stack. Because the result is just a shallower encoder with fewer layers, no custom inference code is needed. To recover accuracy lost to zero-shot pruning, the authors distill using unlabeled monolingual speech data. Mean WER across four languages improved from 21.9% after zero-shot pruning to 20.1% after distillation, against a baseline of 18.2%.

Code is available on GitHub (rasgaard/whisper-encoder-layer-prune) and the pruned model on Hugging Face (rasgaard/whisper-large-v3-turbo-encoder-pruned). For builders, the practical win is a lighter encoder that drops into standard Whisper inference pipelines without changes, though the paper's discussion notes real-world latency gains depend on whether the encoder is actually the bottleneck in a given setup, and distillation recovery was measured on benchmark data rather than noisy recordings.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research