Abstract
Modern autoregressive speech synthesis models leveraging large language models (LLMs) have achieved state-of-the-art performance in naturalness and zero-shot speaker adaptation. However, their sequential token-by-token generation process introduces significant latency. We present Speech Speculative Decoding (SSD), a framework that utilizes a lightweight draft model to generate candidate sequences, which are then verified in parallel by a larger target model. By introducing a relaxed acceptance criterion tailored for the continuous nature of speech, SSD achieves a 1.4x speedup in inference while maintaining high audio fidelity and speaker similarity.
Introduction: The Bottleneck in Autoregressive TTS
State-of-the-art Text-to-Speech (TTS) systems, such as CosyVoice 2, rely on autoregressive language models to predict discrete speech tokens. While these models produce highly natural speech, the inference process is computationally expensive. As shown in the analysis of CosyVoice 2, the autoregressive language model accounts for approximately 70% of the total inference time, making it the primary bottleneck for real-time applications.
Standard speculative decoding, successful in text generation, fails to translate directly to speech. Speech tokens exhibit a one-to-many mapping where multiple token sequences can represent the same acoustic output. Strict probability matching often rejects valid draft tokens, negating speed gains.
Proposed Method: Speech Speculative Decoding (SSD)
The SSD framework addresses these challenges through two main innovations: a specialized draft model and a relaxed acceptance criterion.
Lightweight Draft Model
The draft model is an 8-layer Transformer derived from the 24-layer target model. By initializing with the target model's weights and fine-tuning only the bottom layers, the draft model retains essential semantic knowledge while operating at a fraction of the computational cost.
Relaxed Acceptance with Tolerance Factor ($\beta$)
To accommodate the inherent ambiguity of speech tokens, SSD introduces a tolerance factor $\beta$. Instead of requiring an exact match in probability distributions, the system accepts a draft token if its probability is within a relaxed threshold defined by $\beta$. This allows the system to accept more tokens from the draft model, maximizing the benefits of parallel verification by the target model.
Experimental Results
The SSD framework was evaluated using the LibriTTS dataset. Key findings include:
- Inference Speedup: SSD achieved a 1.4x acceleration over standard decoding. The Language Model Real-Time Factor (LM-RTF) improved from 0.504 to 0.360.
- Quality Preservation: Objective metrics (NMOS) and subjective human evaluations (NAT-MOS, SIM-MOS) showed no statistically significant degradation in speech naturalness or speaker similarity compared to the baseline.
- Optimal Configuration: Empirical testing identified a tolerance factor of $\beta = 0.4$ and a draft length of 3-4 tokens as the optimal balance for speed and accuracy.
Conclusion
Speech Speculative Decoding provides a robust solution for accelerating heavy autoregressive TTS models. By acknowledging the unique properties of speech tokens and relaxing acceptance criteria, SSD enables faster inference without sacrificing the high-quality output characteristic of modern LLM-based synthesis systems.
Summary updated