Outlier Reduction with Gated Attention for Improved Post-training Quantization in Large Sequence-to-sequence Speech Foundation Models
Dominik Wagner, Ilja Baumann, Korbinian Riedhammer, Tobias Bocklet
TL;DR
The paper addresses the degradation of post-training quantization (PTQ) for large speech foundation models caused by activation and weight outliers. It combines knowledge distillation to create compact Whisper student models with gated attention to mitigate outliers, enabling reliable $INT8$ quantization. The approach yields substan-tial resilience of WER under quantization, particularly for a 24-layer encoder with gating, and demonstrates improved outlier statistics (e.g., reduced kurtosis and $||\cdot||_{\infty}$) relative to ungated baselines. This work advances practical deployment of efficient, quantized speech foundation models on devices with limited compute and memory, by linking outlier mitigation in attention with robust PTQ performance.
Abstract
This paper explores the improvement of post-training quantization (PTQ) after knowledge distillation in the Whisper speech foundation model family. We address the challenge of outliers in weights and activation tensors, known to impede quantization quality in transformer-based language and vision models. Extending this observation to Whisper, we demonstrate that these outliers are also present when transformer-based models are trained to perform automatic speech recognition, necessitating mitigation strategies for PTQ. We show that outliers can be reduced by a recently proposed gating mechanism in the attention blocks of the student model, enabling effective 8-bit quantization, and lower word error rates compared to student models without the gating mechanism in place.
