Abstract
Modern automatic speech recognition (ASR) models, such as OpenAI’s Whisper, rely on deep encoder-decoder architectures, and their encoders are a critical bottleneck for efficient deployment due to high computational intensity. We introduce LiteASR, a low-rank compression scheme for ASR encoders that significantly reduces inference costs while maintaining transcription accuracy. Our approach leverages the strong low-rank properties observed in intermediate activations: by applying principal component analysis (PCA) with a small calibration dataset, we approximate linear transformations with a chain of low-rank matrix multiplications, and further optimize self-attention to work in reduced dimensionality. Evaluation results show that our method can compress Whisper large-v3’s encoder size by over 50%, matching Whisper medium’s size with better transcription accuracy, thereby establishing a new Pareto frontier of accuracy and efficiency. The code of LiteASR is available at https://github.com/efeslab/LiteASR.
Introduction
While large-scale ASR models like OpenAI’s Whisper have achieved near-human performance, their computational demands make them difficult to deploy in real-time or on-device environments. The primary bottleneck is the encoder. Unlike the decoder, which generates text token-by-token, the encoder must process long, fixed-length audio sequences (e.g., 1500 tokens for Whisper) simultaneously. While recent efforts like Distill-Whisper have successfully shrunk the decoder, the encoder has remained largely unoptimized, particularly in data center environments where batching offers diminishing returns for compute-bound encoder tasks.
Methodology: Low-Rank Approximation
The core of LiteASR is a post-training compression method that exploits the inherent redundancy in audio data. The methodology consists of three primary components:
1. Activation Analysis and PCA Factorization
Audio data, typically represented as Mel spectrograms, contains high correlations between frequency components. LiteASR observes that intermediate activations in ASR encoders exhibit strong low-rank properties. By using a small calibration dataset (approximately 100 audio clips), the method performs Principal Component Analysis (PCA) on these activations to identify the most significant dimensions.
As shown in the diagram above, the original weight matrix $W$ is decomposed into a chain of two lower-rank matrices. This transformation reduces the total number of floating-point operations (FLOPs) required for inference without requiring extensive retraining.
2. Optimized Self-Attention
Standard self-attention mechanisms are computationally expensive. LiteASR reformulates the self-attention mechanism to operate directly within the reduced dimensionality identified during the PCA phase. To ensure these theoretical gains translate to actual hardware speedups, the authors implemented a specialized GPU kernel using Triton, extending the FlashAttention framework to handle optimized low-rank mathematics.
Evaluation and Results
LiteASR was evaluated using the End-to-end Speech Benchmark (ESB), covering eight English datasets, and multilingual benchmarks including MLS (French and German) and JSUT (Japanese).
Pareto Frontier and Accuracy
The most significant result is the establishment of a new Pareto frontier for ASR models. When applied to Whisper large-v3, LiteASR reduced the encoder size by over 50%.
As illustrated in the figure above, the compressed "large-v3" models (represented by stars) achieve a significantly lower Word Error Rate (WER) than the standard "medium" model, despite having a similar or smaller encoder size. This demonstrates that LiteASR effectively preserves the superior modeling capabilities of larger architectures while drastically reducing their footprint.
Hardware Performance
The method achieved consistent latency improvements across various hardware platforms:
- 1.57x peak speedup on NVIDIA RTX 4090.
- 1.4x average speedup on Apple M1 Pro (utilizing the MLX framework).
Conclusion
LiteASR presents a highly efficient, "plug-and-play" method for compressing ASR encoders in minutes. By leveraging the low-rank nature of audio activations and implementing hardware-aware kernels, it achieves substantial speedups and size reductions with minimal impact on accuracy. Future work includes extending this approach to convolution-heavy architectures like Conformers and exploring performance on low-resource languages.
Summary updated