Glow-TTS: A Generative Flow for Text-to-Speech via Monotonic Alignment Search

Jaehyeon Kim, Sungwon Kim, Jungil Kong, Sungroh Yoon

Introduction

Text-to-speech (TTS) synthesis has seen rapid advancements, but the landscape has traditionally been divided into two distinct camps: Autoregressive (AR) models and Parallel models. Glow-TTS bridges the gap between these approaches. It is a parallel TTS model that breaks the dependency on external "teacher" models by learning its own alignments through a novel Monotonic Alignment Search (MAS). By combining flow-based generative modeling with dynamic programming, Glow-TTS achieves an order-of-magnitude speedup over established AR models like Tacotron 2, while maintaining comparable audio quality and demonstrating significantly better robustness on long utterances.

The Challenge: Autoregressive vs. Parallel Models

Historically, TTS architectures have faced a trade-off between quality, speed, and training complexity:

  1. Autoregressive (AR) models (e.g., Tacotron 2) generate speech frame-by-frame. While they produce high-quality and natural-sounding audio, their sequential nature makes them slow. Furthermore, they are prone to "attention failures"—such as skipping or repeating words—especially as the input text length increases.
  2. Parallel models (e.g., FastSpeech) generate all audio frames simultaneously, making inference vastly faster. However, they typically cannot learn the alignment between text and audio on their own. They require a pre-trained AR model to act as an "external aligner" to provide duration labels during training. This two-stage process makes the training pipeline complex and tethers the parallel model's ultimate performance to the quality of its AR teacher.

Glow-TTS was designed to overcome these limitations by creating a standalone parallel TTS model that is fast, robust, and capable of learning alignments internally.

Glow-TTS Architecture and Methods

To achieve self-reliance without sacrificing parallel generation speeds, Glow-TTS introduces several key architectural innovations.

Glow-TTS architecture showing both the training phase with Monotonic Alignment Search (left) and the inference phase with Alignment Generation (right).

Flow-based Decoder

Unlike standard decoders, Glow-TTS utilizes Normalizing Flows—specifically, a stack of invertible $1 \times 1$ convolutions and affine coupling layers inspired by WaveGlow. Because normalizing flows are mathematically invertible, the model can map a target mel-spectrogram back into a latent space $z$. This invertibility allows the model to calculate the exact log-likelihood of the data during training, providing a stable and principled optimization objective.

Monotonic Alignment Search (MAS)

The core innovation of Glow-TTS is the Monotonic Alignment Search. During training, the model projects the speech into the latent space. It then uses a dynamic programming algorithm, conceptually similar to the Viterbi algorithm, to find the most probable monotonic path between the text tokens (prior statistics) and the latent speech representations.

Illustration of the Monotonic Alignment Search (MAS) finding the most probable path between latent representations and prior statistics.

This enforces a "hard" alignment, ensuring the model learns exactly which part of the text corresponds to which part of the audio. By treating alignment as a latent variable search within a flow-based framework, the authors proved that parallel models do not strictly need a teacher network.

Duration Predictor

To synthesize speech at inference time—when the target audio does not yet exist to guide the alignment—the model relies on a small sub-network called the Duration Predictor. Trained alongside the main network using the durations discovered by MAS, this predictor estimates how many audio frames each text token should occupy based solely on the text encoding.

Experimental Setup and Key Results

The authors evaluated Glow-TTS on standard benchmarks, including LJSpeech (a single-speaker dataset of ~24 hours) and the train-clean-100 subset of LibriTTS for multi-speaker settings. To test robustness, they also extracted exceptionally long utterances (up to 800+ characters) from Harry Potter and the Philosopher’s Stone.

Key findings include:

  • Speed: Glow-TTS generates mel-spectrograms 15.7 times faster than Tacotron 2 at inference time.
  • Quality: In Mean Opinion Score (MOS) tests on the LJSpeech dataset, Glow-TTS achieved a score of 4.01, outperforming Tacotron 2 (3.88) and approaching the quality of ground truth mel-spectrograms (4.19).
  • Robustness: Most AR models use "soft" attention, which can lose track of its place in long texts. By enforcing a hard monotonic constraint via MAS, Glow-TTS is physically constrained from skipping or repeating words. While Tacotron 2’s Character Error Rate (CER) skyrocketed for inputs exceeding 260 characters, Glow-TTS maintained a near-zero error rate even for extremely long sentences.
  • Controllability: Because the latent space is modeled as a standard Gaussian, users can control the "energy" and "pitch" of the speech by adjusting the temperature ($T$) of the distribution during sampling. Lowering $T$ reduces variance, yielding more stable but less diverse speech. Additionally, speaking rate can be easily controlled by scaling the outputs of the duration predictor.

Limitations and Future Directions

While Glow-TTS represents a significant step forward for parallel speech synthesis, it has a few limitations. First, it generates mel-spectrograms rather than raw audio waveforms, meaning it still requires a separate vocoder (like WaveGlow or HiFi-GAN) to produce the final sound.

Furthermore, while the model supports multiple speakers via explicit speaker embeddings, future work could explore more sophisticated prosody transfer or zero-shot speaker adaptation. Finally, while highly controllable, the inherent "naturalness" of the prosody is bound by the strict monotonic search, which may occasionally struggle to capture the highly complex emotional nuances found in specialized, expressive TTS models.

Summary updated

BibTeX
@inproceedings{kim2020glow,
  author = {Jaehyeon Kim and Sungwon Kim and Jungil Kong and Sungroh Yoon},
  title = {{Glow-TTS: A Generative Flow for Text-to-Speech via Monotonic Alignment Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=xBvR7ujSzhg},
}
Figure