Autoregressive Diffusion Transformer for Text-to-Speech Synthesis

Zhijun Liu, Shuai Wang, Sho Inoue, Qibing Bai, Haizhou LiarXiv 2024 · DOI

Abstract

ARDiT (Autoregressive Diffusion Transformer) eliminates the need for discrete audio tokenization in text-to-speech (TTS) by modeling speech as sequences of continuous vectors. By combining a semi-autoregressive transformer with Distribution Matching Distillation (DMD), the model achieves state-of-the-art zero-shot TTS and near-perfect speech editing at blistering speeds—generating up to 170ms of high-fidelity audio in a single network evaluation.

Introduction

Most modern "audio language models" (like Vall-E or AudioLM) rely on discrete audio tokens. This creates a fundamental "bitrate-quality" bottleneck: low bitrates lose crucial acoustic details, while high bitrates result in extremely long sequences that are computationally expensive for transformers to process. Furthermore, training on discrete distributions often requires complex differentiable approximations like Gumbel-Softmax.

ARDiT addresses these challenges by skipping discretization entirely. By representing audio as continuous vectors in $\mathbb{R}^d$, the model retains high-fidelity information while using the power of diffusion models to handle the complexity of continuous distributions.

Methods

The ARDiT framework consists of three main components: a Contextual Mel Spectrogram Autoencoder, the Autoregressive Diffusion Transformer itself, and a distillation process using Distribution Matching Distillation (DMD).

Overview of the ARDiT framework, including the contextual autoencoder (left) and the ODE sampling process (right).
  1. Contextual Mel Spectrogram Autoencoder: Instead of a discrete codebook, a transformer-based autoencoder compresses log Mel spectrograms into a sequence of continuous latent vectors. This achieves a theoretical bitrate of 1.7 kbps while maintaining near-flawless reconstruction.
  2. Autoregressive Diffusion Transformer (ARDiT): This decoder-only transformer predicts the next "block" of continuous vectors. It uses Flow Matching, a modern alternative to standard diffusion, to learn the "velocity" required to transform Gaussian noise into the target audio latent.
  3. Distribution Matching Distillation (DMD): To solve the slow inference speed of diffusion, DMD distills the multi-step "teacher" model into a single-step "student" generator. Using an Integral Kullback-Leibler (IKL) divergence loss, the student surprisingly improves the perceived naturalness of the audio compared to the teacher.
  4. Duration Control via RoPE: The model uses Rotary Position Embeddings (RoPE) to control speech duration. By manipulating rotation angles based on a target speech rate, the model learns to respect global timing constraints without an explicit duration predictor.

The ARDiT Architecture

The core of the system is a transformer that processes text embeddings alongside speech tokens. To handle the continuous nature of the data and maintain autoregressive properties, it employs a specific attention masking strategy.

The Autoregressive Diffusion Transformer architecture (right) and its attention mask (left) showing the interaction between text, clean speech, and noisy speech tokens.

By predicting multiple continuous vectors at once (e.g., a block size of 4), the model significantly reduces the number of autoregressive steps needed. This block-wise generation, combined with the DMD distillation, allows the model to generate 170ms of 24 kHz speech per network evaluation, making it highly suitable for real-time applications.

Key Results

  • Subjective Quality: In MUSHRA listening tests, ARDiT (DMD, B=4) achieved a naturalness score of 79.3, outperforming strong baselines like StyleTTS2 (77.2) and VoiceCraft (62.1).
  • Speaker Similarity: The model showed superior speaker similarity (SECS) compared to all baselines, effectively capturing nuances from a 3-second voice prompt.
  • Intelligibility: The Word Error Rate (WER) using Whisper-medium was 1.81%, comparable to the ground truth (2.02%).
  • Speech Editing: Because the model retains continuous information, it performs "near-perfect" speech editing. Transitions between original and generated audio in "fill-in-the-middle" tasks are virtually seamless.

Limitations and Future Work

While ARDiT excels at TTS and editing on clean datasets like LibriTTS, its performance on "in-the-wild" data with background noise remains untested. Future work will explore broader audio tasks like music generation and more principled duration predictors to replace current heuristics.

Summary updated

BibTeX
@misc{liu2024autoregressive,
  author = {Zhijun Liu and Shuai Wang and Sho Inoue and Qibing Bai and Haizhou Li},
  title = {{Autoregressive Diffusion Transformer for Text-to-Speech Synthesis}},
  year = {2024},
  eprint = {2406.05551},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.05551},
}
Figure