Abstract
Increasing demand for on-device Automatic Speech Recognition (ASR) systems has resulted in renewed interests in developing automatic model compression techniques. Past research have shown that AutoML-based Low Rank Factorization (LRF) technique, when applied to an end-to-end Encoder-Attention-Decoder style ASR model, can achieve a speedup of up to 3.7x, outperforming laborious manual rank-selection approaches. However, we show that current AutoML-based search techniques only work up to a certain compression level, beyond which they fail to produce compressed models with acceptable word error rates (WER). In this work, we propose an iterative AutoML-based LRF approach that achieves over 5x compression without degrading the WER, thereby advancing the state-of-the-art in ASR compression.
Introduction
Deploying modern Automatic Speech Recognition (ASR) systems directly on mobile or IoT devices presents significant computational challenges. These models are typically parameter-heavy, requiring substantial memory and processing power. While cloud-based processing exists, on-device ASR is preferred for privacy, reduced latency, and offline functionality.
Existing techniques like Low-Rank Factorization (LRF) simplify large weight matrices into smaller, efficient ones. While Reinforcement Learning (RL) has been used to automate this process, "one-shot" AutoML tools often fail when targeting high compression ratios (e.g., 5x). In these scenarios, the RL agent encounters a "flat" reward landscape where nearly every configuration results in a broken model, preventing the agent from learning an optimal path. This research, conducted by teams from Samsung and the University of Cambridge, addresses this by introducing an iterative trajectory approach.
Methodology
The proposed framework combines iterative compression with AutoML-based rank searching to navigate the reward plateau. Instead of targeting a high speedup in a single step, the algorithm follows a sequence of intermediate targets (e.g., 2x → 3x → 4x → 5x).
The Search-Retrain Loop
At each step of the trajectory, the system performs a two-stage process:
- AutoML Search: An RL agent using the REINFORCE algorithm searches for the optimal ranks for each layer to meet the current intermediate speedup goal while minimizing error.
- Retraining (Healing): The model is retrained for several epochs. This process "heals" the Word Error Rate (WER) before the next, more aggressive compression step begins.
To further aid recovery, the researchers utilize Full-Size Initialization. During intermediate steps, matrices are kept at their original size but initialized with low-rank approximations, providing the model with more capacity to recover accuracy before the final factorization is locked in.
Results and Insights
The researchers evaluated the method using the LibriSpeech dataset. The iterative approach achieved a 5.0x theoretical speedup with an 8.24% WER, representing a 7% relative improvement over the baseline model's 8.32% WER. This significantly outperforms the previous state-of-the-art one-shot method, which hit a performance wall at 3.7x speedup.
Key Findings
- Granularity and Recovery: Finer trajectories (more steps with smaller increments) lead to superior final models because smaller distortions at each step are easier for the model to recover from during retraining.
- Attention Compressibility: Layers related to the model's attention mechanism were found to be exceptionally compressible, sometimes reaching up to 28x speedup individually without degrading overall performance.
- On-Device Performance: When deployed on a Samsung Exynos 9810 processor, the 5x theoretical model translated to a 3.0x practical reduction in execution time, bringing latency down to 17ms.
Conclusion and Future Work
By breaking the compression process into a trajectory of manageable steps, this iterative AutoML approach successfully bypasses the reward plateau that limits one-shot methods. While the approach is computationally intensive due to multiple rounds of searching and retraining, it provides a clear path to high-performance, highly compressed ASR models.
Future work will focus on narrowing the "practicality gap" between theoretical FLOP reductions and actual hardware latency, as well as exploring more efficient training techniques to discover optimal ranks without the full iterative loop overhead.
Summary updated