Abstract
Large-scale models have achieved state-of-the-art performance in automatic speech recognition (ASR), but their high memory and computation demands pose significant challenges for deployment. To address these challenges, weight-only quantization is widely adopted, as it enables efficient compression with minimal accuracy degradation compared to activation quantization. However, existing methods like quantization-aware training (QAT) incur substantial additional training costs. Moreover, mixed-precision quantization (MPQ) remains underexplored in ASR despite varying layer sensitivities. In this paper, we propose GenPTQ, a mixed-precision post-training quantization method that optimizes the trade-off among accuracy, model size, and optimization cost. By leveraging gradient-based sensitivity measurement and transforming the search space into a continuous domain, GenPTQ achieves up to 89.1% model size reduction (2.5-bit average precision) with only a 0.8% increase in word error rate (WER), completing optimization in just 15 seconds.
Introduction
Deploying large-scale ASR models like OpenAI’s Whisper on edge devices faces a "triple threat" of challenges: memory bottlenecks, high training costs, and an explosive search space for optimization. For models with billions of parameters, weight volume is the primary bottleneck for inference speed. While Quantization-Aware Training (QAT) can restore accuracy lost during compression, it is resource-intensive; for instance, applying QAT to a Conformer-large model can exceed 84 GPU-hours. Furthermore, not all layers are equally sensitive to quantization. Assigning uniform bit-widths is inefficient, yet finding the optimal mixed-precision allocation across hundreds of layers is a daunting discrete search problem.
Methodology
GenPTQ addresses these issues through a three-pronged approach designed for speed and effectiveness:
- Gradient-Based Sensitivity: Instead of relying solely on weight magnitudes, GenPTQ utilizes gradients to measure how perturbations in specific layer weights affect the final task loss ($\mathcal{L}_{task}$). This identifies "fragile" layers that require higher precision.
- Continuous Bit-Precision Representation (CBPR): To overcome the difficulty of discrete bit-width optimization (e.g., 2-bit vs 4-bit), GenPTQ treats bit-widths as continuous variables ($P_t$). This allows the use of fast, differentiable numerical solvers like gradient descent to find optimal configurations.
- Sensitivity Regularization (SR): A regularization term ensures that highly sensitive layers are not assigned excessively low bit-widths during optimization, maintaining model fidelity even under strict global average bit-width targets.
Results and Discussion
The researchers evaluated GenPTQ across diverse benchmarks, including English (LibriSpeech, CommonVoice, GigaSpeech) and multilingual datasets.
Performance and Efficiency
GenPTQ demonstrates a superior trade-off between speed, size, and accuracy. On a Whisper-medium model, it achieved an 89.1% model size reduction (averaging 2.5 bits per weight) with only a 0.8% average increase in WER. Remarkably, the optimization process for Whisper-medium was completed in 15.16 seconds. In contrast, other state-of-the-art PTQ methods like AdaRound and BRECQ require hours of computation while often yielding lower accuracy.
Layer-Wise Insights
The method confirms that sensitivity varies wildly across the network. For example, the first and third layers of the Whisper encoder were found to be particularly sensitive. GenPTQ automatically detects these critical areas, allocating higher precision (e.g., 8-bit) while pushing less sensitive layers down to 2-bit.
Conclusion
GenPTQ provides a highly efficient, "green" solution for deploying large-scale ASR models. By moving from discrete to continuous optimization, it achieves massive compression in seconds. While currently focused on weight-only quantization, future work could extend this framework to activations. Additionally, mapping these mixed-precision results to specific hardware-friendly power-of-two kernels remains a practical next step for real-world deployment.
Summary updated