CLaM-TTS: Improving Neural Codec Language Model for Zero-Shot Text-to-Speech

Jaehyeon Kim, Keon Lee, Seungjun Chung, Jaewoong Cho

Overview

CLaM-TTS introduces a novel zero-shot text-to-speech (TTS) framework that streamlines how large language models (LLMs) generate audio. By utilizing a probabilistic residual vector quantization (RVQ) method, it compresses speech into shorter sequences and allows the model to predict multiple token streams simultaneously. This eliminates the clunky two-stage generation pipelines used by previous models, resulting in faster inference and state-of-the-art voice cloning quality.

The Multi-Stream Bottleneck in Audio LLMs

Recently, researchers have successfully applied LLMs to TTS by treating audio as a foreign language. They use "neural audio codecs" to translate raw audio into discrete tokens, which the LLM then learns to predict.

However, to maintain high audio fidelity, these codecs do not just output one sequence of tokens; they output multiple parallel streams of tokens (e.g., 8 streams for a single audio segment). Because standard LLMs are designed to predict one token at a time, forcing them to handle multiple parallel streams creates a massive bottleneck. Previous solutions (like VALL-E or AudioLM) rely on complex, cascaded two-stage pipelines: they autoregressively generate coarse tokens first, and then use a second model to fill in the fine-grained tokens. This approach is computationally heavy, slow, and difficult to scale.

Methods: Bypassing the Two-Stage Pipeline

The authors propose CLaM-TTS (Codec Language Model-based TTS), which bypasses the two-stage pipeline entirely using two main components.

Architecture of CLaM-TTS showing the Mel-VAE and Latent Language Model components.
  1. Mel-VAE with Probabilistic RVQ: Instead of compressing raw waveforms, the authors compress mel-spectrograms. They introduce a novel probabilistic Residual Vector Quantization (RVQ) based on mean-field variational inference. This mathematical tweak prevents "codebook collapse" (a common issue where the model ignores available tokens) and allows for a highly compressed, efficient token representation.
  2. Latent Language Model: This is the core innovation. Instead of forcing the LLM to predict discrete tokens sequentially across multiple streams, the CLaM-TTS language model (based on a frozen ByT5 text encoder) predicts a continuous latent vector using a Gaussian Mixture Model (GMM). This single continuous vector is then passed through the pre-trained RVQ to instantly generate all the parallel discrete tokens for that time step.

By predicting the continuous space and quantizing it after the fact, the model generates all token layers at once in a single autoregressive step.

Key Insights

  • Predicting continuous vectors is a "cheat code" for audio LMs: By shifting the LLM's target from discrete tokens to a continuous latent representation, the authors elegantly solved the multi-stream bottleneck. The LLM does the heavy lifting of predicting the continuous audio state, and the RVQ handles the multi-stream discretization instantly.
  • Byte-level pre-training transfers well to TTS: In ablation studies comparing different T5 variants, ByT5 (which processes text at the byte level rather than using subword tokens) significantly outperformed standard T5 models. Leveraging deep pre-training on raw text bytes seems to provide a stronger foundation for mapping text to audio.
  • Phonemes still rule, but text is more scalable: While ByT5 was excellent, a similarly sized model trained explicitly on phonemes actually yielded the best intelligibility. However, the authors opted to use text (ByT5) because massive, pre-trained text LLMs are widely available, whereas phoneme-based models are limited by the scarcity of phoneme-transcribed data.

Key Results

The model was trained on a massive 100,000-hour dataset spanning 11 languages and evaluated primarily on the standard LibriSpeech test-clean dataset for zero-shot continuation and cross-sentence tasks.

Performance comparison of CLaM-TTS against baseline models on zero-shot continuation.
  • Intelligibility: On the English zero-shot continuation task, CLaM-TTS achieved a Word Error Rate (WER) of 2.36% and a Character Error Rate (CER) of 0.79%. This significantly outperforms VALL-E (3.8% WER) and YourTTS (7.57% WER), and is highly competitive with Voicebox (2.0% WER).
  • Speed: Because it avoids a two-stage pipeline, CLaM-TTS generated 10 seconds of speech in just 4.15 seconds, making it faster than VALL-E (~6.2s) and Voicebox (~6.4s).
  • Human Evaluation: In subjective tests, CLaM-TTS achieved a Quality MOS (QMOS) of 3.87 and a Similarity MOS (SMOS) of 3.49, vastly outperforming the YourTTS baseline and approaching ground-truth human speech scores.

Limitations and Future Work

  • Robustness: Because the latent language model is still autoregressive, it suffers from the classic LLM hallucination problem: it can occasionally muddle, omit, or repeat words. The authors suggest exploring non-autoregressive architectures in the future to fix this.
  • Expressiveness: The 100K-hour training dataset is heavily dominated by audiobook reading styles. As a result, the model struggles to generate highly diverse, emotional, or accentuated speaking styles.
  • Future Directions: The authors plan to scale up the data diversity and explore "Instruction Prompting"—feeding the LLM metadata tags (e.g., [man, old, neutral]) alongside the text to allow for fine-grained control over the generated voice's age, gender, and emotion.

Summary updated

BibTeX
@inproceedings{kim2024clam,
  author = {Jaehyeon Kim and Keon Lee and Seungjun Chung and Jaewoong Cho},
  title = {{CLaM-TTS: Improving Neural Codec Language Model for Zero-Shot Text-to-Speech}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=ofzeypWosV},
}
Figure