On the Impact of Quantization and Pruning of Self-Supervised Speech Models for Downstream Speech Recognition Tasks "In-the-Wild"

Arthur Pimentel, Heitor R. Guimarães, Anderson R. Avila, Mehdi Rezagholizadeh, Tiago H. FalkarXiv 2023 · DOI

Abstract

Large-scale self-supervised models like wav2vec 2.0 have set new benchmarks for Automatic Speech Recognition (ASR). However, their deployment on resource-constrained edge devices necessitates compression techniques such as quantization and pruning. This paper investigates the "robustness gap"—the performance degradation of these compressed models when subjected to real-world "in-the-wild" conditions, including background noise and reverberation. Our findings indicate that while compression is nearly transparent in clean environments, it exacerbates sensitivity to environmental stressors. Crucially, robust pre-training acts as a significant mitigator, preserving performance levels that standard models cannot maintain under pressure.

Introduction

The evolution of ASR has been driven by massive models that require significant computational resources. To enable on-device processing for smartphones and smart speakers, engineers employ 8-bit quantization and global unstructured pruning. While these methods are typically validated in controlled laboratory settings, real-world performance in noisy or echoing environments remains under-explored. This study quantifies the trade-offs between model size and environmental resilience.

Methodology

The research evaluates two variants of the wav2vec 2.0 architecture: a standard version and a "robust" version pre-trained on diverse datasets (Libri-Light, CommonVoice, Switchboard, and Fisher). Two primary compression strategies were applied:

  1. 8-bit Quantization (Int8): Reducing weight precision from FP32 to Int8, shrinking the model size from ~1262 MB to ~354 MB.
  2. Global Unstructured Pruning: Removing 10% to 30% of parameters based on the lowest L1-norm.

Experimental Setup

Models were fine-tuned on the 960-hour LibriSpeech dataset. To simulate "in-the-wild" conditions, the researchers utilized:

  • Noise Injection: 180 hours of non-speech sounds from the DNS4 dataset (e.g., wind, music, domestic noise).
  • Reverberation: Real and synthetic Room Impulse Responses (RIRs) to simulate small and medium-sized rooms.

Analysis of Environmental Impact

In pristine conditions, quantization is highly effective; converting to Int8 only increased the Word Error Rate (WER) from 3.2% to 3.3%. However, as environmental complexity increases, the gap widens.

Figure 1: Impact of SNR and Room Size on WER for quantized models.

As shown in Figure 1, the robust model variant consistently outperforms the standard model across all noise levels (SNR) and room sizes. While the robust model's WER in a medium echoing room rose from 4.9% to 5.2% upon quantization, it remained significantly more stable than its standard counterpart.

Interaction of Pruning and Noise

The study reveals a critical "breaking point" when pruning is combined with low signal-to-noise ratios. While pruning up to 30% has a manageable impact in quiet settings, it leads to catastrophic failure in the standard model at low SNRs.

Figure 2: 3D visualization of WER across varying prune rates, SNRs, and room sizes.

Figure 2 illustrates that the robust model maintains a 10.1% WER at 5 dB SNR even with 30% pruning. In contrast, the standard model's performance degrades sharply. Under the most extreme test conditions (0 dB SNR with reverberation), the compressed robust model achieved a WER of 25.5%, whereas the standard compressed model reached a non-functional 62.2%.

Conclusion

Compression is not a "free lunch" when models are deployed in unpredictable environments. Robust pre-training is essential for maintaining accuracy in compressed models intended for edge deployment. Future work should focus on environment-aware knowledge distillation and hardware-specific latency testing to further bridge the gap between laboratory success and real-world reliability.

Summary updated

BibTeX
@misc{pimentel2023impact,
  author = {Arthur Pimentel and Heitor R. Guimarães and Anderson R. Avila and Mehdi Rezagholizadeh and Tiago H. Falk},
  title = {{On the Impact of Quantization and Pruning of Self-Supervised Speech Models for Downstream Speech Recognition Tasks "In-the-Wild"}},
  year = {2023},
  eprint = {2309.14462},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.14462},
}
Figure