Abstract
Large Language Models (LLMs) have significantly advanced Automatic Speech Recognition (ASR) by providing robust contextual understanding and cross-lingual capabilities. However, the autoregressive nature of LLM decoders introduces a substantial latency bottleneck, often preventing real-time application. While speculative decoding—a technique using a smaller "draft" model to propose tokens for a larger "target" model to verify—has shown promise in Natural Language Processing (NLP), its application to ASR has historically yielded modest gains. This paper introduces SpecASR, a framework specifically tailored to the unique constraints of audio-conditioned generation, achieving up to 3.79x speedup without sacrificing accuracy.
Introduction
Large Language Models like Llama and GPT have revolutionized the ASR landscape, offering superior context awareness and multi-dialect support compared to traditional architectures. In these systems, while the audio encoder remains relatively small and efficient, the LLM decoder—which generates text one token at a time—becomes the primary computational bottleneck.
Standard speculative decoding attempts to mitigate this by using a tiny draft model to guess a sequence of tokens, which the large target model then verifies in parallel. However, general-purpose speculative decoding often fails to account for the specific constraints of speech tasks, typically resulting in speedups of only around 1.5x. SpecASR addresses this by exploiting the "audio-conditioned" nature of ASR, where both models are anchored by the same acoustic signal.
Methodology
SpecASR optimizes the "Draft-then-Verify" pipeline through three primary innovations designed to maximize the acceptance rate of draft tokens and minimize redundant computation.
1. Adaptive Single-sequence Prediction (ASP)
Standard speculative decoding uses a fixed number of draft tokens per round. SpecASR instead monitors the draft model's confidence (logits) in real-time. If the confidence falls below a specific threshold, the system truncates the draft early. This prevents the draft model from wasting cycles on tokens that are statistically likely to be rejected by the target model.
2. Draft Sequence Recycling (DSR)
This is the framework's most significant contribution. In traditional speculative decoding, if a single token in a sequence is rejected, all subsequent tokens are discarded. However, because ASR is constrained by audio, the draft model often "gets back on track" quickly even after a minor error. DSR reuses these unaccepted tokens in the next round, significantly reducing the draft model's workload and improving the overall efficiency of the generation process.
3. Two-pass Sparse-tree Prediction (TSP)
To balance the load between draft and target models, especially as the target model size increases, SpecASR generates a sparse "tree" of potential token sequences. By focusing on exploring branches only at points of high uncertainty, TSP ensures the target model has multiple high-quality candidates to verify in a single pass, maximizing the utility of each verification step.
Experimental Setup
The researchers evaluated SpecASR using the LibriSpeech dataset, a standard benchmark for English speech recognition, testing on test-clean, test-other (noisy), dev-clean, and dev-other subsets. To simulate state-of-the-art LLM-ASR systems, they utilized TinyLlama as the draft model and Llama-7B or Vicuna-13B as the target models, following the decoding trajectories of Whisper models.
Key Insights
- Audio as an Anchor: Unlike open-ended text generation, ASR is highly constrained. The outputs of a small model and a large model are naturally aligned because they are both describing the same acoustic signal. This "alignment phenomenon" is why Draft Sequence Recycling is uniquely effective for ASR.
- Dynamic Bottlenecks: The optimal speculative strategy is dependent on the size disparity between models. As the target model grows (e.g., from 7B to 13B parameters), the cost of verification increases, making tree-based verification (TSP) more valuable than simple single-sequence drafting.
Results
SpecASR demonstrates substantial improvements over both standard autoregressive decoding and existing speculative methods:
- Significant Speedups: The framework achieved 3.04x–3.79x speedup over standard autoregressive decoding.
- Superior Efficiency: SpecASR was 1.25x–1.84x faster than existing state-of-the-art speculative decoding methods. The adaptive thresholding reduced ineffective prediction steps by 74.1%.
- Lossless Performance: Because the large target model verifies every token, the acceleration comes with zero loss in Word Error Rate (WER).
Conclusion and Future Work
SpecASR proves that tailoring speculative decoding to the specific characteristics of ASR—specifically its audio-conditioned nature—can unlock significant performance gains. While speedups are slightly lower on noisy data due to decreased draft model accuracy, the framework remains a robust solution for real-time LLM-based speech processing. Future work may explore more complex tree structures and hardware-specific optimizations to further reduce latency in integrated LLM-ASR architectures.
Summary updated