RALL-E: Robust Codec Language Modeling with Chain-of-Thought Prompting for Text-to-Speech Synthesis

Detai Xin, Xu Tan, Kai Shen, Zeqian Ju, Dongchao Yang, Yuancheng Wang, Shinnosuke Takamichi, Hiroshi Saruwatari, Shujie Liu, Jinyu Li, Sheng Zhao

Abstract

We present RALL-E, a robust language modeling method for text-to-speech (TTS) synthesis. While previous large language model (LLM) based methods show impressive zero-shot performance, they often suffer from unstable prosody and high word error rates (WER) due to their autoregressive nature. RALL-E introduces chain-of-thought (CoT) prompting to TTS, decomposing the task into simpler steps: first predicting prosody features (pitch and duration) and then using them as intermediate conditions for speech token prediction. Additionally, RALL-E employs duration-guided attention masking to enforce local alignment. Evaluations show RALL-E significantly improves WER and reduces the error rate on difficult sentences from 68% to 4%.

Introduction

Large Language Model (LLM) based TTS systems, such as Microsoft’s VALL-E, have revolutionized zero-shot speech synthesis by treating discrete audio tokens as a language. However, these models often "hallucinate," skipping words or repeating phrases, particularly in "hard" sentences containing complex strings or repetitive patterns. This lack of robustness stems from the absence of a strict alignment mechanism between text and speech.

Methodology

RALL-E (Robust VALL-E) addresses these stability issues through two primary innovations: Chain-of-Thought (CoT) prompting and duration-guided attention.

Chain-of-Thought Prompting for Prosody

Inspired by the success of CoT in reasoning tasks, RALL-E decomposes the TTS process. Instead of mapping phonemes directly to speech tokens, it first predicts intermediate prosody tokens (phoneme-level pitch and duration). These features act as a "blueprint," providing structural guidance for the subsequent generation of audio tokens.

The RALL-E architecture utilizing Chain-of-Thought prompting for prosody and speech token prediction.

Duration-Guided Attention Masking

In standard Transformer-based TTS, speech tokens can attend to the entire phoneme sequence, which can lead to alignment failures. RALL-E uses the predicted durations to constrain this attention. By knowing which phoneme corresponds to a specific audio frame, the model applies a mask so that the speech token only attends to a small window of relevant phonemes and prosody tokens.

Comparison of attention mechanisms: VALL-E (left) attends to all phonemes, while RALL-E (right) uses duration-guided windowed attention.

Experimental Setup

The model was trained on 44,000 hours of the English subset of the Multilingual LibriSpeech (MLS) corpus. Evaluation was conducted on the LibriSpeech test-clean set and a specialized benchmark of 50 "Hard Sentences" known to trigger failures in existing models.

Results and Discussion

RALL-E demonstrates a significant leap in robustness:

  • Hard Sentence Performance: VALL-E's 68% error rate on complex sentences was slashed to just 4% by RALL-E.
  • Word Error Rate (WER): On standard benchmarks, RALL-E improved the WER from 5.6% to 2.5% without requiring expensive reranking techniques.
  • Naturalness: Subjective and objective metrics (CMOS and UTMOS) indicate that RALL-E produces more natural-sounding speech compared to the baseline.

Conclusion

By incorporating Chain-of-Thought prompting and local attention constraints, RALL-E provides a more stable and reliable framework for zero-shot TTS. It effectively eliminates common autoregressive artifacts like word skipping and repetition, even in challenging linguistic contexts, while maintaining high naturalness and speaker similarity.

Summary updated

BibTeX
@misc{xin2024rall,
  author = {Detai Xin and Xu Tan and Kai Shen and Zeqian Ju and Dongchao Yang and Yuancheng Wang and Shinnosuke Takamichi and Hiroshi Saruwatari and Shujie Liu and Jinyu Li and Sheng Zhao},
  title = {{RALL-E: Robust Codec Language Modeling with Chain-of-Thought Prompting for Text-to-Speech Synthesis}},
  year = {2024},
  eprint = {2404.03204},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.03204},
}
Figure