Bidirectional Variational Inference for Non-Autoregressive Text-to-Speech

Yoonhyung Lee, Joongbo Shin, Kyomin JungICLR 2021

In the world of Text-to-Speech (TTS), developers have traditionally faced a strict trade-off between quality and speed. Autoregressive (AR) models like Tacotron 2 produce beautiful, human-like speech but do so one step at a time, making them slow and prone to "drifting" errors over long sentences. Non-autoregressive models solve the speed issue by generating audio in parallel, but they often require complex "teacher" models or massive parameter counts to maintain quality.

Presented at ICLR 2021, BVAE-TTS offers an elegant middle ground. By leveraging bidirectional variational inference, researchers from Seoul National University have built a model that is 27 times faster than Tacotron 2, more robust to out-of-domain text, and significantly smaller than its competitors.

TL;DR

BVAE-TTS is a non-autoregressive speech synthesis model that uses a bidirectional-inference variational autoencoder to generate mel-spectrograms in parallel. It achieves speech quality comparable to state-of-the-art models while being 27x faster than Tacotron 2 and using 58% fewer parameters than flow-based models like Glow-TTS.

The Bottleneck in Autoregressive TTS

The "gold standard" for neural TTS has long been autoregressive architectures. These models predict the next "frame" of audio based on all previous frames. While effective, this creates two major bottlenecks:

  1. Inference Speed: Because frames are generated sequentially, modern GPUs cannot easily parallelize the process.
  2. Robustness: If the model makes a tiny mistake at step 10, that error compounds by step 100, often leading to "mumbled" or skipped words, especially on long or unusual sentences.

Previous attempts to fix this (like FastSpeech) often relied on Knowledge Distillation, where a slow AR "teacher" model trains a fast "student" model, making the training pipeline cumbersome. Other models used Normalizing Flows, which are fast but architecturally rigid—they require the input and output dimensions to be identical, leading to massive, memory-hungry models.

Methodology: Introducing BVAE-TTS

The authors introduce BVAE-TTS, which stands for Bidirectional Variational Autoencoder for TTS.

Architecture of BVAE-TTS during training and inference, including the BVAE layer details.

1. The Bidirectional VAE (BVAE)

Standard VAEs usually have a simple encoder-decoder structure. BVAE-TTS uses a more sophisticated hierarchical approach:

Conceptual diagram of the Bidirectional VAE showing bottom-up and top-down paths.
  • Bottom-Up Path: Extracts fine-to-coarse features from the mel-spectrogram.
  • Top-Down Path: Generates the spectrogram by combining text information with hierarchical latent variables.

This bidirectional sharing allows the model to learn a much richer representation of the complex relationship between text and sound.

2. Bridging the Training-Inference Gap

In training, the model uses an attention mechanism to align text with audio. However, at inference, there is no audio to align with. To solve this, the authors include a Duration Predictor.

To make this transition seamless, they use a few clever tricks:

  • Straight-Through (ST) Argmax: During training, they force the model to pick the "best" phoneme for each time step (like it would at inference) but allow gradients to flow as if it were a soft average.
  • Jitter: They intentionally add noise to the text representations during training, forcing the model to become robust to the slight timing errors a duration predictor might make.

Datasets

The model was evaluated on:

  • LJSpeech: A standard single-speaker English dataset (24 hours of audio).
  • LibriTTS: Used specifically for Out-of-Domain (OOD) testing to see how the model handles text patterns it didn't see during training.

Key Insights and Ideas

  • Hierarchical Specialization: The authors found that the "lower" blocks in their BVAE hierarchy capture the most variation (prosody, style, and audio details), while the "upper" blocks stay closer to the literal text content. This separation of concerns is likely why the model is so efficient.
  • VAE vs. Flows: By using a VAE instead of a Normalizing Flow, the authors escaped the "bijective constraint." They could downsample and upsample data within the model, allowing them to achieve better results with only 12 million parameters at inference, compared to the 28.6 million required by Glow-TTS.
  • Robustness is Key: Because BVAE-TTS is non-autoregressive, it doesn't suffer from error propagation. In tests on out-of-domain data (LibriTTS), it actually achieved a higher Mean Opinion Score (MOS) than the AR Tacotron 2 (4.21 vs 4.16).

Key Results

  • Speed: BVAE-TTS generates mel-spectrograms in roughly 24ms, compared to 658ms for Tacotron 2—a 27.2x speedup.
  • Quality: In human listening tests (MOS), BVAE-TTS (4.14) significantly outperformed the previous non-AR leader, Glow-TTS (3.96), and came very close to the AR baseline (4.35).
  • Efficiency: The model is much smaller. At inference time, it uses 58% fewer parameters than Glow-TTS because the "bottom-up" encoder is no longer needed.
  • Controllability: By simply multiplying the output of the duration predictor by a constant, the model can precisely control the speed of speech (e.g., making one specific word in a sentence slower for emphasis).

Limitations and Future Work

While BVAE-TTS is a major step forward, the authors note a few areas for improvement:

  • The "VAE Gap": While the quality is high, there is still a slight gap between BVAE-TTS and the original Ground Truth audio.
  • Single Speaker: The experiments were limited to a single-speaker dataset. Extending this hierarchical latent approach to multi-speaker or multi-lingual settings remains an open challenge.
  • Vocoder Dependency: Like most TTS systems, this model generates mel-spectrograms, which still need to be converted to raw audio by a separate "vocoder" (like WaveGlow). Integrating the vocoder directly into the BVAE framework could be a future direction for a truly end-to-end system.

Summary updated

BibTeX
@inproceedings{lee2021bidirectional,
  author = {Yoonhyung Lee and Joongbo Shin and Kyomin Jung},
  title = {{Bidirectional Variational Inference for Non-Autoregressive Text-to-Speech}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=o3iritJHLfO},
}
Figure