Abstract
Large Speech Language Models (SpeechLMs) have demonstrated remarkable capabilities in audio understanding and generation, yet their deployment is often hindered by significant computational costs and memory requirements. We present FastAdaSP, a plug-and-play inference framework designed to accelerate SpeechLMs by merging redundant audio tokens. By employing task-aware reduction strategies—distinguishing between "dense" tasks like transcription and "sparse" tasks like emotion detection—FastAdaSP achieves up to a 7x improvement in memory efficiency and a 1.84x boost in throughput with minimal impact on accuracy. Notably, the framework requires no additional training, making it a versatile solution for scaling speech-based AI.
Introduction
As Large Speech Language Models (SpeechLMs) such as GPT-4o and Qwen-Audio scale to billions of parameters, the bottlenecks associated with inference latency and memory consumption become increasingly critical. Processing long audio sequences generates a massive number of tokens, which leads to quadratic growth in attention complexity and frequent "Out of Memory" (OOM) errors on standard hardware.
While token reduction techniques have been successfully applied in computer vision and natural language processing, speech signals present unique challenges. First, speech is a continuous signal with high temporal dependency; arbitrary token dropping can disrupt phonetic structures essential for tasks like Automatic Speech Recognition (ASR). Second, the informational density of speech varies by task: ASR requires high-fidelity "dense" data, whereas Emotion Recognition may only require "sparse" cues. Finally, identifying the optimal layer within a deep transformer to begin token reduction typically requires exhaustive trial-and-error or expensive retraining.
The FastAdaSP Framework
FastAdaSP (Fast Multitask-Adapted Speech Processing) addresses these challenges through three core innovations designed to streamline inference without sacrificing model integrity.
Weighted Token Merging
Unlike traditional "eviction" methods that simply delete tokens, FastAdaSP utilizes weighted token merging. The framework identifies similar adjacent audio tokens and merges them into a single representative feature. To ensure that critical information is preserved, the merging process is guided by the model’s own attention scores. By analyzing how much the text prompt (the instruction) interacts with specific audio segments, FastAdaSP prioritizes the retention of features that the model deems most relevant to the user's request.
Task-Specific Strategies
Recognizing that different audio tasks have varying information requirements, FastAdaSP employs dual strategies:
- Dense Tasks (e.g., ASR, Translation): These tasks require high temporal precision. FastAdaSP uses a "Decay Schedule" that merges tokens gradually across multiple layers, preventing the sudden loss of phonetic information.
- Sparse Tasks (e.g., Emotion Recognition, Audio Captioning): These tasks often depend on global context rather than every individual phoneme. The framework applies a more aggressive, one-time merge at a specific layer to distill the audio into its most informative components.
Automated Layer Selection via Transfer Entropy
To eliminate the need for manual tuning, the authors introduce a mathematical approach based on Information Theory. By calculating Transfer Entropy (TE), the framework measures the potential information loss at the final output when a specific layer is reduced. This allows FastAdaSP to automatically select the optimal "bottleneck" layer for merging, ensuring maximum efficiency with minimal performance degradation.
Experimental Results
The framework was evaluated using WavLLM (7B) and Qwen-Audio (7B) backbones across a diverse suite of benchmarks, including LibriSpeech (ASR), CoVoST2 (Translation), IEMOCAP (Emotion), and Clotho (Captioning).
Efficiency Gains
FastAdaSP demonstrated significant improvements in hardware utilization on NVIDIA A100 GPUs:
- Throughput: For long audio samples (approx. 240 seconds), the framework achieved a 1.84x increase in decoding throughput.
- Memory: The framework enabled a 7x increase in maximum batch size (from 10 to 70) on an A100 80GB, effectively mitigating OOM constraints for high-volume processing.
Task Performance
The trade-off between speed and accuracy remained remarkably favorable. In dense tasks like ASR, the model maintained a 2.27% Word Error Rate (WER) at a 10% reduction—identical to the baseline—and only saw a minor increase to 4.73% WER even at a 50% reduction.
In sparse tasks, the results were even more striking. For Emotion Recognition (IEMOCAP), accuracy actually increased from 72.80% to 73.65% while using 50% fewer tokens. This suggests a "needle in the haystack" effect, where merging redundant tokens helps the model filter out background noise and silence, allowing it to focus on the core emotional signal.
Conclusion and Future Work
FastAdaSP provides a robust, plug-and-play solution for the computational challenges of modern SpeechLMs. By leveraging task-specific merging and information-theoretic layer selection, it offers a path toward more efficient, real-time speech AI without the need for costly retraining.
Future research will focus on optimizing the merging logic for better hardware parallelism and extending the framework to multi-turn dialogues and multi-modal Audio-Visual LLMs, where the potential for cross-modal redundancy reduction is even greater.
Summary updated