TL;DR
This paper introduces a novel "stepwise monotonic attention" algorithm for Large Language Model (LLM)-based Text-to-Speech (TTS) systems. This method significantly improves the robustness of synthesized speech by preventing common errors like repetitions and omissions, without requiring external alignment tools or adding significant computational overhead.
What Problem Does This Paper Address?
Modern Text-to-Speech (TTS) systems, particularly those leveraging powerful Large Language Models (LLMs), have achieved impressive naturalness. However, a critical limitation of many LLM architectures (specifically decoder-only ones) is the lack of inherent "monotonic alignment constraints." This means the model doesn't naturally enforce a strict one-to-one mapping between the input text and the generated audio features. Without this constraint, TTS systems can produce undesirable artifacts such as:
- Repetitions: Saying parts of the text multiple times.
- Omissions: Skipping over parts of the text.
- Misalignments: Generating audio that doesn't correspond correctly to the spoken words.
While previous methods have addressed monotonic attention in traditional encoder-decoder TTS models, these solutions are not directly applicable to the decoder-only LLM architectures that are becoming increasingly popular for their scalability and zero-shot capabilities. This paper aims to bridge this gap by providing a robust and efficient monotonic attention mechanism specifically designed for LLM-based TTS.
Methods
The core contribution is the stepwise monotonic attention algorithm. This algorithm is designed to be integrated directly into the self-attention mechanisms of LLM transformer layers. Key aspects include:
- Alignment-Free: Unlike prior methods that relied on external forced alignment information (which can be difficult to obtain reliably for diverse datasets), this approach learns monotonic constraints implicitly.
- Stepwise Computation: The attention scores are computed iteratively, ensuring that the model progresses through the text and audio sequentially. This is achieved through a recursive formula that builds upon previous attention states.
- Alignment Head Selection: LLMs often use multi-head attention, where different heads learn different features. The authors observed that only a subset of these heads exhibit alignment characteristics. They propose an automatic method to identify these "alignment heads" by computing a "diagonal ratio" and then apply the monotonic attention mechanism only to these selected heads, leaving standard attention for the others. This optimizes the process and prevents degradation from applying monotonic constraints to non-alignment heads.
- Efficient Batch Processing: To handle variable text lengths within a batch, a clever shifting mechanism is introduced. This allows for parallel computation of the attention scores, significantly speeding up training.
Datasets
The paper uses both small-scale and large-scale datasets for training and evaluation:
- Training:
- Small-scale: ~1,000 hours of Chinese speech and ~960 hours of English speech (LibriSpeech).
- Large-scale: ~100,000 hours of Chinese speech and ~50,000 hours of English speech.
- Evaluation:
- LibriSpeech test-clean set
- SeedTTS sets (Seed-ZH, Seed-ZH-Hard, Seed-EN)
- ELLA-V hard case set (including a cross-sentence test set, Libri-X, and a specially designed ELLA-V-Hard set).
Key Insights and Ideas
- Monotonicity is Crucial for Robustness: The paper strongly reinforces the idea that enforcing monotonic alignment is key to overcoming common TTS errors like repetitions and omissions, especially in challenging or out-of-domain scenarios.
- LLMs Need Specialized Attention: Decoder-only LLMs, while powerful, lack the inherent structure for monotonic alignment found in older architectures. This work shows how to adapt attention mechanisms to fit these new models.
- Not All Attention Heads Are Equal: The insight that only a few heads in multi-head attention are responsible for alignment is critical. This allows for a targeted application of monotonic constraints, improving efficiency and accuracy.
- Alignment-Free is a Game-Changer: Eliminating the need for external alignment tools simplifies the pipeline and makes the system more adaptable to diverse, uncurated datasets.
Key Results
- Improved Robustness: The proposed method (Phn-Cosy-S-SMA and Phn-Cosy-L-SMA) significantly reduces Word Error Rate (WER) and Character Error Rate (CER) on hard-case test sets (Seed-ZH-Hard, ELLA-V-Hard) compared to their non-SMA counterparts. For example, Phn-Cosy-L-SMA achieved a reduction in deletion/insertion errors on ELLA-V-Hard from 4.07% to 2.36% and 2.29% to 1.73% respectively.
- Scalability: The approach scales well with both model size (small vs. large models) and training data size (small vs. large datasets).
- No Impact on Speaker Similarity: The monotonic attention mechanism did not negatively affect speaker similarity scores.
- Effective Alignment: Visualizations of attention scores clearly show improved monotonicity and better alignment of acoustic tokens to phonemes, directly addressing issues like repetition in synthesized speech.
- Efficiency: The method is alignment-free and adds minimal computational overhead, making it practical for large-scale deployment.
Limitations and Future Work
- Alignment Head Selection Sensitivity: The authors note that selecting the wrong heads for monotonic attention can severely degrade performance. While their selection method is effective, it highlights the importance of accurate head identification.
- Future Work: The paper suggests that this stepwise monotonic attention algorithm can be applied to any autoregressive generative models with decoder-only transformer architectures, not just TTS. This opens avenues for its use in other sequence generation tasks.
Summary updated