Abstract
Automatic Speech Recognition (ASR) on mobile devices requires a delicate balance between model size, latency, and accuracy. This study explores the compression of cascaded Conformer-Transducer models, focusing on the non-causal second-pass encoder and the memory-intensive decoder. By integrating a Tied-and-Reduced (TAR) decoder architecture with Knowledge Distillation (KD), we successfully reduced a 41M parameter model to 20M parameters. Experimental results on the LibriSpeech benchmark demonstrate that the compressed model maintains a Word Error Rate (WER) of 4.62% on the test-clean set, while achieving a 30% reduction in second-pass latency on mobile hardware.
Introduction
On-device ASR systems must operate within strict memory and computational constraints to provide a seamless user experience. Current state-of-the-art "cascaded" models utilize a two-pass approach: a causal encoder for immediate streaming results and a non-causal encoder for a final, high-accuracy correction. While effective, these models are often too bulky for mobile deployment. Most existing research focuses on shrinking the first-pass encoder; this work specifically targets the "shallow" non-causal second pass and the heavy LSTM-based decoder.
Methodology
The proposed compression strategy is three-pronged, focusing on architectural simplification and knowledge transfer:
- Tied-and-Reduced (TAR) Decoder: Standard models rely on complex LSTM layers in the decoder. We replaced these with a TAR architecture that "ties" input embedding weights to the output layer and replaces LSTMs with simple weighted averages of previous labels. This modification can reduce decoder parameters by up to 95%.
- Shallow Non-Causal Encoder: We reduced the number of layers and hidden units in the second-pass (non-causal) encoder to minimize the computational footprint during the final "look-ahead" phase of recognition.
- Knowledge Distillation (KD): To recover accuracy lost during compression, we employed a Teacher-Student training framework. A frozen 41M parameter "Teacher" model guides the 20M parameter "Student" model by encouraging it to mimic the teacher's output probability distributions using Coarsed Kullback-Leibler (KL) divergence loss.
Experimental Setup
The models were trained and evaluated using the LibriSpeech database (960 hours of English speech). Accuracy was measured via Word Error Rate (WER) on the "test-clean" and "test-other" sets. To simulate real-world mobile performance, latency and Real-Time Factor (xRT) were benchmarked on a Snapdragon SM8450 processor.
Key Results
The combination of TAR and KD allowed for significant model shrinkage with minimal performance degradation. The baseline model was compressed from 41M parameters to 20M parameters (a 50.5% reduction). On the LibriSpeech "test-clean" set, the compressed model achieved a WER of 4.62%, nearly identical to the teacher's 4.60%.
Beyond size reduction, the approach yielded substantial speed improvements. On the Snapdragon SM8450, second-pass latency was reduced from 128ms to 89ms, a 30% improvement that directly enhances the user-perceived speed of final text output.
Discussion and Insights
- Encoder vs. Decoder Importance: Our findings reinforce that for Transducer models, encoder depth is far more critical for accuracy than decoder complexity. Aggressive shrinking of the decoder via TAR is viable when supported by KD.
- Embedding Optimization: Ablation studies showed that the decoder's embedding size can be reduced to 25% of its original size before accuracy begins to degrade significantly.
- Latency Bottlenecks: The second-pass (non-causal) decoding is the primary source of latency. Making this encoder "shallow" is the most effective way to reduce the final output delay.
Conclusion
This research demonstrates that high-performance ASR models can be halved in size while becoming 30% faster through targeted architectural simplification and distillation. While non-streaming accuracy remained high, future work will focus on refining distillation strategies to protect streaming (first-pass) accuracy during aggressive compression and testing these models in more diverse, noisy environments.
Summary updated