Abstract
While large transformer-based models have exhibited remarkable performance in speaker-independent speech recognition, their large size and computational requirements make them expensive or impractical to use in resource-constrained settings. In this work, we propose a low-rank adaptive compression technique called AdaPTwin that jointly compresses product-dependent pairs of weight matrices in the transformer attention layer. Our approach can prioritize the compressed model's performance on a specific speaker while maintaining generalizability to new speakers and acoustic conditions. Notably, our technique requires only 8 hours of speech data for fine-tuning, which can be accomplished in under 20 minutes, making it highly cost-effective compared to other compression methods. We demonstrate the efficacy of our approach by compressing the Whisper and Distil-Whisper models by up to 45% while incurring less than a 2% increase in word error rate.
Introduction
Large Transformer models, such as OpenAI’s Whisper, have established state-of-the-art performance in Automatic Speech Recognition (ASR). However, their substantial parameter counts present significant challenges for deployment on edge devices like smartphones and wearables due to high latency and memory constraints. Existing compression strategies like knowledge distillation often require massive datasets and extensive compute time, while pruning or quantization can lead to sharp performance degradation beyond modest compression ratios. AdaPTwin addresses these issues through a low-cost, adaptive method designed for rapid and effective compression in specific deployment scenarios.
Methodology
AdaPTwin introduces two primary innovations: Product Twin Compression and Layer-wise Adaptive Fine-tuning.
Product Twin Compression
The architecture leverages the observation that Transformer self-attention weight matrices operate in functional pairs. Specifically, the Query ($W_Q$) and Key ($W_K$) matrices determine attention scores, while the Value ($W_V$) and Output ($W_O$) matrices determine the final context vector. AdaPTwin treats these as "product twins," performing a joint Singular Value Decomposition (SVD) on their product. This approach captures essential inter-matrix interactions more efficiently than independent low-rank approximations.
AdaPTwin Architecture and Fine-tuning
To mitigate potential performance loss from SVD, compressed matrices are augmented with Low-Rank Adaptation (LoRA) blocks. This hybrid structure combines fixed spectral data from the original model with trainable parameters, allowing the model to recover performance during a rapid fine-tuning phase.
Unlike traditional end-to-end training, AdaPTwin employs a layer-wise fine-tuning strategy. Each layer is optimized independently to minimize the Mean Squared Error (MSE) between the original and compressed layer outputs. This parallelizable process prevents "catastrophic forgetting" of general speech patterns and significantly reduces training time.
Experimental Setup
The proposed method was evaluated using the Whisper and Distil-Whisper model families.
- Fine-tuning Data: 8 hours of single-speaker English speech from the LJSpeech dataset, simulating a realistic personalization scenario.
- Evaluation Metrics: Word Error Rate (WER) was measured on a subset of LJSpeech (target speaker) and LibriSpeech test-clean (generalization to unseen speakers).
Results and Discussion
AdaPTwin demonstrates a superior size-vs-accuracy trade-off compared to existing methods. The study found that ASR encoders are far more amenable to compression than decoders, successfully compressing Whisper-small encoders by 80% with minimal loss.
Key Findings
- Efficiency: The layer-wise approach allows a 200M parameter model to be fine-tuned in under 20 minutes on a single T4 GPU.
- Performance: The method achieved up to 45% overall model compression. The increase in WER was restricted to under 1.2% for the target speaker and under 2.2% for general multi-speaker datasets.
- Hybrid Potential: Combining AdaPTwin with quantization (AdaPTwin + Q) enables even higher compression ratios (70-80% for specific components) by preserving critical information that low-rank approximation alone might lose.
Conclusion and Future Work
AdaPTwin provides a cost-effective path for deploying high-performance ASR models on resource-constrained hardware. While the current study focuses on English, future work will explore its efficacy for non-native speakers and other languages. Additionally, while parameter reduction is a strong proxy for efficiency, future research will involve direct benchmarking on edge hardware to quantify real-world latency and power improvements.
Summary updated