Effective and Efficient Mixed Precision Quantization of Speech Foundation Models

Haoning Xu, Zhaoqing Li, Zengrui Jin, Huimeng Wang, Youjun Chen, Guinan Li, Mengzhe Geng, Shujie Hu, Jiajun Deng, Xunying Liu · DOI

Abstract

Self-supervised learning (SSL) has established a new paradigm in speech processing, yielding powerful foundation models such as wav2vec 2.0 and HuBERT. Despite their performance, these models' massive parameter counts pose significant challenges for deployment on resource-constrained edge devices. This paper presents a novel "one-pass" framework for mixed-precision quantization that integrates Neural Architecture Search (NAS) directly into the training process. By optimizing bit-widths and model weights simultaneously, the proposed method achieves up to 8.6x compression with no statistically significant loss in accuracy, while reducing system compression time by nearly 2x compared to traditional two-stage approaches.

Introduction

The emergence of speech foundation models has revolutionized tasks like Automatic Speech Recognition (ASR). However, the high memory and computational demands of these models often necessitate quantization—the process of reducing weight precision from 32-bit floating point to lower-bit integers.

Standard quantization approaches typically fall into two categories: uniform precision, which applies the same bit-width to every layer, and mixed precision, which assigns different bit-widths based on layer sensitivity. While mixed precision is theoretically more efficient, it traditionally requires a cumbersome two-stage process: first searching for an optimal bit-configuration and then training the model. This disjointed workflow is computationally expensive and often results in a "mismatch" where the searched bit-widths are suboptimal for the final trained parameters.

Methodology

To address these inefficiencies, this research introduces a framework that tightly couples mixed-precision learning with quantized parameter estimation in a single stage.

The core of the approach utilizes Differentiable Neural Architecture Search (DARTS). The researchers treat the selection of bit-widths (e.g., 2, 4, or 8 bits) as a searchable architecture parameter. By constructing a "supernet" where each layer contains multiple weight-sharing candidates of varying precisions, the model can explore the trade-offs between size and accuracy during training.

To make the discrete choice of bit-width differentiable, the Gumbel-Softmax trick is employed. This allows the framework to use standard backpropagation to "softly" navigate precision options, eventually converging on a "hard" bit-width assignment for each layer.

Joint Training and Regularization

Unlike previous methods, this "one-pass" system learns the optimal bit-widths and the weights themselves simultaneously. To ensure the compressed student model maintains the performance of the original, a Teacher-Student approach is used. KL Divergence Regularization guides the low-precision model to mimic the behavior of the original 32-bit foundation model. Following the initial joint training, an optional post-quantization fine-tuning stage can be used to further refine weights once bit-widths are frozen.

Experimental Results

The framework was evaluated using the LibriSpeech dataset (100-hour clean subset) on two primary architectures: wav2vec 2.0-base and HuBERT-large.

Compression and Accuracy

The results demonstrate that mixed-precision models consistently outperform uniform-precision counterparts at similar compression levels.

  • HuBERT-large: The model achieved an average precision of 3.5 bits, resulting in an 8.6x compression ratio. Statistical significance tests (MAPSSWE) confirmed the model remained "lossless," meaning its Word Error Rate (WER) was indistinguishable from the 32-bit original.
  • wav2vec 2.0-base: This model achieved a 4.6-bit average precision and a 6.4x compression ratio, also maintaining lossless performance.
  • Performance Gains: At a 3.8-bit configuration, the mixed-precision HuBERT model showed a 0.57% absolute WER reduction compared to a standard 4-bit uniform model.

System Efficiency

Beyond model performance, the "one-pass" approach significantly improves training efficiency. By eliminating the need for exhaustive sensitivity analysis and pre-training multiple uniform-precision anchors, the researchers reduced total system compression time by up to 1.9x compared to state-of-the-art two-stage baselines.

Discussion and Limitations

While the framework provides a robust path toward efficient speech model deployment, several areas for future work remain. The current study focuses on ASR using a CTC decoder; further research is required to determine if these mixed-precision configurations transfer effectively to other downstream tasks like speaker identification or emotion recognition. Additionally, while theoretical memory savings are substantial, actual inference speedups are highly dependent on hardware-specific support for mixed-precision arithmetic on mobile CPUs and NPUs. Finally, scaling the training from the 100-hour LibriSpeech subset to the full 960-hour dataset will be a critical step in validating the approach's robustness for production-level environments.

Conclusion

This research demonstrates that mixed-precision quantization does not have to be a computationally prohibitive or disjointed process. By leveraging differentiable NAS and joint training, speech foundation models can be compressed significantly—up to 8.6x—without sacrificing the accuracy that makes them so valuable. This paves the way for more sophisticated speech AI to run locally on consumer hardware.

Summary updated

BibTeX
@inproceedings{xu2025effective,
  author = {Haoning Xu and Zhaoqing Li and Zengrui Jin and Huimeng Wang and Youjun Chen and Guinan Li and Mengzhe Geng and Shujie Hu and Jiajun Deng and Xunying Liu},
  title = {{Effective and Efficient Mixed Precision Quantization of Speech Foundation Models}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10888920},
}
Figure