Abstract
State-of-the-art Automatic Speech Recognition (ASR) models based on the Conformer architecture achieve high accuracy but are often too large for efficient deployment on edge devices. This paper presents a structured pruning framework that combines learnable binary masks with layer-wise knowledge distillation. The approach achieves a 50% reduction in model size and a 28% improvement in inference speed on CPUs with minimal impact on Word Error Rate (WER).
Introduction
Modern ASR systems rely on massive architectures like the Conformer, which can contain hundreds of millions of parameters. While these models provide excellent performance, their computational and memory requirements hinder deployment on smartphones and IoT devices. Unstructured pruning, which removes individual weights, often fails to provide real-world speedups because standard hardware is not optimized for sparse matrix operations. Structured pruning—removing entire components like attention heads or feed-forward network (FFN) channels—offers a path to actual acceleration but typically results in significant accuracy degradation.
Methodology
The researchers propose a comprehensive framework to address the challenges of structured pruning through three main innovations:
- Hybrid Pruning Granularity: The system targets multiple components within the Conformer encoder, including attention heads, FFN intermediate dimensions, convolution modules, and hidden dimensions.
- Learnable $L_0$ Regularization: To determine which components are redundant, the framework employs learnable binary masks. Using a "hard concrete distribution," these discrete masks are made differentiable, allowing the pruning process to be optimized via standard gradient-based training.
- Layer-wise Knowledge Distillation (KD): To mitigate accuracy loss, a "teacher" model guides a "student" model. Unlike standard KD that only looks at final outputs, this method forces the student's internal hidden states to match the teacher's layer-by-layer.
Analysis of Model Redundancy
A key finding of this work is the non-uniform distribution of redundancy within the Conformer architecture. The pruning algorithm automatically identified that lower layers (1-10) are significantly more redundant than upper layers (16-18). In some cases, up to 76.7% of parameters in the bottom layers could be removed.
Furthermore, the analysis revealed that Feed-Forward Networks (FFN) are more prunable than Attention or CNN modules. This suggests that a large portion of the model's "bloat" resides in these dense linear transformations rather than the core feature-extraction components.
Performance Evaluation
The framework was evaluated on the LibriSpeech benchmark (960 hours). Key results include:
- Accuracy Preservation: At 50% sparsity, the model maintained a WER of 3.27% on "test-clean," compared to the 2.86% baseline.
- Inference Speedup: The pruned model achieved a 28% reduction in the Real-Time Factor (RTF) on a single-core Intel Xeon CPU.
- Comparison to Baselines: The method consistently outperformed standard techniques like Singular Value Decomposition (SVD) and magnitude-based pruning (PARP), showing up to a 15% relative improvement in WER at high sparsity levels.
Conclusion
This structured pruning framework demonstrates that it is possible to significantly compress ASR models while maintaining high accuracy. By leveraging layer-wise distillation and learnable masks, the approach identifies and removes architectural redundancy, particularly in the lower layers and FFN modules. Future work will explore the application of these principles to other architectures like Whisper and the combination of pruning with quantization for even greater efficiency.
Summary updated