Flowtron: an Autoregressive Flow-based Generative Network for Text-to-Speech Synthesis

Rafael Valle, Kevin J. Shih, Ryan Prenger, Bryan Catanzaro

Introduction

Traditional Text-to-Speech (TTS) systems are highly capable of converting text into intelligible audio, but they frequently struggle with the "how" of speech—the prosody, emotion, and subtle nuances that make human speech expressive. Most current models, such as Tacotron 2, provide limited control over these non-textual characteristics.

Existing attempts to add "style" usually rely on fixed-length embeddings or complex architectures like VAEs and GANs. These approaches often suffer from a "dimensionality paradox" (assuming the size of the style embedding before training), are difficult to optimize, or fail to provide time-varying control.

Flowtron addresses these limitations as an autoregressive, flow-based generative network that brings a new level of control to TTS synthesis. By learning an invertible mapping between mel-spectrograms and a latent Gaussian space, Flowtron enables high-quality speech generation with fine-grained, unsupervised control over expressivity, style transfer, and speaker variation.

Methodology

Flowtron’s core innovation is the application of autoregressive normalizing flows to the TTS task.

  1. Invertible Mapping: The model learns a series of invertible transformations that map a complex distribution (mel-spectrograms) to a simple one (a latent $z$-space parameterized by a spherical Gaussian). Because it is invertible, you can take a real speech sample, find its "location" in the latent space, and use that to guide new synthesis.
  2. Architecture: Flowtron revamps the Tacotron 2 architecture by removing the Prenet and Postnet layers, which were previously thought essential for high-quality synthesis. Instead, it uses an LSTM-Conv decoder and a recurrent attention mechanism to generate the affine parameters (scale and bias) for the flow.
Flowtron Architecture
  1. Maximum Likelihood Estimation (MLE): Unlike GANs, which can be unstable to train, Flowtron is optimized by directly maximizing the log-likelihood of the training data. This makes training simpler and more stable.
  2. Control Mechanisms: At inference time, users can sample from the latent space. By adjusting the variance ($\sigma^2$) of the Gaussian prior, they can control the amount of variation in the output—from very stable and monotone to highly expressive and animated.

Datasets

The authors evaluated Flowtron using several datasets to test its versatility:

  • LSH Dataset: A combination of the public LJSpeech dataset and two proprietary single-speaker datasets ("Sally" and "Helen") totaling over 30 hours of audio.
  • LibriTTS: Specifically the train-clean-100 subset, featuring 123 speakers with roughly 25 minutes of audio each.
  • RAVDESS: Used for evaluating "unseen" emotional styles (e.g., "surprised").

Key Insights

  • The Power of Invertibility: Because the model is a flow, it can perform "posterior inference." You can take a reference clip of someone speaking excitedly, map it to the $z$-space, and then apply that specific "latent signature" to a different sentence or even a different speaker.
  • Simplification through Flows: The authors found that the complex "Postnet" used in Tacotron 2 to "fix" spectrograms isn't necessary when using a flow-based approach. Flowtron produces sharp harmonics and well-resolved formants naturally.
  • Unsupervised Style Discovery: The model automatically clusters acoustic characteristics. For example, the latent space naturally partitions itself by speaker, gender, and pitch without the model ever being explicitly provided with those labels.
Latent Space Clustering
  • Overcoming the Embedding Paradox: Unlike models that use a small, fixed-size vector for style, Flowtron’s latent space has the same dimensionality as the output. This ensures the model has enough "room" to capture all the non-textual information required to reconstruct the speech perfectly.

Key Results

  • Speech Quality: In Mean Opinion Score (MOS) tests, Flowtron achieved a score of 3.66 ± 0.16, outperforming Tacotron 2 (3.52 ± 0.17) and approaching the quality of real human speech (4.27).
  • Expressive Control: The paper demonstrates that increasing the latent variance ($\sigma^2$) directly increases the variation in pitch contours and sentence duration, allowing for more dynamic speech.
  • Style Transfer & Interpolation: Flowtron successfully transferred styles (like the somber tone of a specific novel reading) to new speakers, including those not seen during training. Quantitative pitch metrics showed Flowtron's style transfer was significantly closer to the reference samples than previous state-of-the-art methods like Tacotron 2 GST. Furthermore, the model can smoothly interpolate between two different speakers or styles in the latent space, effectively "morphing" one voice into another mid-sentence.

Limitations and Future Work

While Flowtron offers unprecedented control and high quality, it is an autoregressive flow, meaning it generates mel-spectrogram frames sequentially. This makes inference slower than "parallel" flow models (like Glow-TTS) that can generate all frames simultaneously. Additionally, like most TTS front-ends, Flowtron produces mel-spectrograms and requires a separate vocoder (like WaveGlow) to produce the final waveform.

Future directions suggested by the authors include exploring normalizing flows for few-shot speech synthesis (learning a new voice from very little data) and semi-supervised settings to better exploit datasets with limited labels.

Summary updated

BibTeX
@inproceedings{valle2021flowtron,
  author = {Rafael Valle and Kevin J. Shih and Ryan Prenger and Bryan Catanzaro},
  title = {{Flowtron: an Autoregressive Flow-based Generative Network for Text-to-Speech Synthesis}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure