Structured Pruning of Self-Supervised Pre-Trained Models for Speech Recognition and Understanding

Yifan Peng, Kwangyoun Kim, Felix Wu, Prashant Sridhar, Shinji Watanabe

TL;DR

This paper introduces Heterogeneous Joint Pruning (HJ-Pruning), a method to compress self-supervised speech models by jointly pruning both their convolutional frontends and Transformer backends. By optimizing for computational cost (MACs) rather than just parameter count, the authors achieve a 40% to 50% reduction in computation without any loss in accuracy, and even improve performance at lower compression rates.

What Problem Does This Paper Address?

Self-supervised learning (SSL) models like wav2vec 2.0 and HuBERT have revolutionized speech processing, but they are notoriously "heavy." Deploying them on edge devices is challenging due to their massive memory footprint and high computational demands.

While pruning is a standard compression technique, most prior work focuses solely on the Transformer layers. However, speech models are heterogeneous: they combine a stack of Transformers with a convolutional neural network (CNN) frontend used for feature extraction. While this CNN frontend typically accounts for less than 5% of the total parameters, it can represent over 30% of the total computational cost (measured in multiply-accumulate operations, or MACs). If you only prune the Transformer, you hit a "computational floor" created by the unpruned CNN.

Methods

The authors propose three variants of HJ-Pruning to handle these two distinct components:

  1. HJ-Pruning-Size: Sets a single sparsity target for the entire model's parameter count.
  2. HJ-Pruning-SepSize: Uses separate sparsity targets for the CNN and the Transformer. This allows for fine-grained control but requires an expensive grid search to find the optimal balance.
  3. HJ-Pruning-MAC: The most innovative approach, which uses the total number of MAC operations as the sparsity criterion. This directly optimizes for speed and automatically balances the pruning budget between the CNN and Transformer.

Technically, they use structured pruning based on $L_0$ regularization. Instead of pruning individual weights (unstructured), they prune entire functional units: attention heads, FFN intermediate dimensions, hidden dimensions, and CNN channels. They employ a "Hard Concrete Distribution" reparameterization trick to make the discrete pruning decisions differentiable, allowing the model to learn what to prune during training.

Datasets

The methods were evaluated on two primary tasks:

  • Automatic Speech Recognition (ASR): Using the LibriSpeech 100-hour "clean" set for training and the standard test-clean set for evaluation.
  • Spoken Language Understanding (SLU): Using the SLURP corpus for intent classification.
  • Robustness Check: The authors also tested their LibriSpeech-trained models on the TED-LIUM test set to ensure the pruned models generalize to out-of-domain data.

Key Insights and Ideas

  • The Parameter-Computation Mismatch: The CNN frontend is "parameter-light but computation-heavy." Pruning based on parameter count alone (HJ-Pruning-Size) fails because the optimizer naturally ignores the tiny CNN, leaving a significant portion of the computational cost untouched.
  • Pruning as Regularization: Interestingly, at low sparsity levels (10-30% reduction), the pruned models actually outperformed the original unpruned models. This suggests that the pruning process acts as a form of regularization, preventing overfitting.
  • Layer-wise Redundancy: The authors found that redundancy isn't uniform. In the CNN, the first few layers are pruned more heavily because they are computationally expensive due to the high-resolution input. In the Transformer, the upper layers are more redundant and thus more prunable, a finding consistent with observations in NLP.
Fig. 5: Visualization of remaining CNN channels, attention heads, and FFN sizes across layers.

Key Results

The proposed HJ-Pruning methods consistently outperformed the baseline (Transformer-only pruning) across all tasks.

  • Efficiency vs. Accuracy: On LibriSpeech, HJ-Pruning-MAC achieved a 40-50% reduction in MACs with no degradation in Word Error Rate (WER). At higher compression levels, it maintained much better accuracy than the baseline.
  • Intent Classification: On the SLURP dataset, the model achieved over 55% compression without losing accuracy, likely because intent classification is a simpler task than full ASR and requires less information.
  • Generalizability: The method proved effective not just for wav2vec 2.0, but also for HuBERT, demonstrating that HJ-Pruning is a general-purpose strategy for speech SSL models.
Fig. 1: Word Error Rate vs. MACs on LibriSpeech. HJ-Pruning-MAC (red) and SepSize (blue) show the best Pareto frontiers.

Limitations and Future Work

While highly effective, the paper notes a few areas for further exploration:

  • Architecture Scope: The study focused on encoder-only models. The authors plan to extend this to encoder-decoder architectures in the future.
  • Task Variety: While ASR and intent classification were covered, other SLU tasks (like named entity recognition or emotion recognition) remain to be tested.
  • Hardware Realization: While structured pruning leads to theoretical speedups (fewer MACs), the actual wall-clock time speedup depends on specific hardware and software implementations, which were not the primary focus of this study.

Summary updated

BibTeX
@inproceedings{peng2023structured,
  author = {Yifan Peng and Kwangyoun Kim and Felix Wu and Prashant Sridhar and Shinji Watanabe},
  title = {{Structured Pruning of Self-Supervised Pre-Trained Models for Speech Recognition and Understanding}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10095780},
}
Figure