Comparing normalizing flows and diffusion models for prosody and acoustic modelling in text-to-speech

Guangyan Zhang, Thomas Merritt, Manuel Sam Ribeiro, Biel Tura Vecino, Kayoko Yanagisawa, Kamil Pokora, Abdelhamid Ezzerg, Sebastian Cygert, Ammar Abbas, Piotr Bilinski, Roberto Barra-Chicote, Daniel Korzekwa, Jaime Lorenzo-Trueba · DOI

Introduction

In the field of Text-to-Speech (TTS), researchers have long grappled with the "one-to-many" mapping problem. A single written sentence can be articulated in an infinite variety of ways, with differing pitches, rhythms, and emotional nuances. Traditional TTS architectures typically rely on point-based estimation using L1 or L2 loss functions. Mathematically, these objectives encourage the model to predict the statistical mean of all possible variations. This results in "over-smoothed" speech—output that sounds flat, robotic, and lacks the expressive vitality of human speech.

To overcome this limitation, recent research has shifted toward probabilistic density estimation. This paper evaluates two prominent generative frameworks—Normalizing Flows (NF) and Diffusion Models (DM)—to determine their efficacy in capturing the full distribution of human speech across prosody and acoustic modelling tasks.

Methodology

The study compares three distinct architectural approaches:

  1. L1/L2 Baselines: Standard non-autoregressive decoders that serve as a control for traditional point-estimation methods.
  2. Normalizing Flows (NF): Utilizing the Flow-TTS topology, these models learn to transform a complex data distribution into a simple latent space (such as a Gaussian) through a series of invertible, differentiable steps.
  3. Diffusion Models (DM): Based on the Grad-TTS framework, these models learn to iteratively "denoise" a signal. During training, noise is added to the data, and a U-Net-based score function learns to predict and remove that noise to recover the original signal.
Architectural comparison of the evaluated models, including (a) the baseline decoder, (b) the Normalizing Flow steps, and (c) the Diffusion Model score function training and inference.

A critical component of the methodology involves tuning the sampling temperature ($τ$). By adjusting the variance of the prior distribution during inference, researchers can navigate the trade-off between stable, "safe" speech and more diverse, expressive output.

Experimental Setup

The models were trained on a large-scale internal Amazon TTS dataset comprising 200 hours of high-quality speech from 116 native English speakers. The dataset includes a wide variety of expressive styles, such as happiness, sadness, and anger, recorded at a 24kHz sampling rate. The evaluation focused on two primary tasks: Prosody Modelling (predicting $f0$ pitch and phoneme duration) and Acoustic Modelling (generating 80-dimensional mel-spectrograms).

Prosody Modelling and the Over-Smoothing Problem

Generative models (Flow-PM and Diff-PM) significantly outperformed the L2 baseline in prosody tasks. Objective metrics, including Standard Deviation (STD) and Jensen-Shannon Divergence (JSD), demonstrated that both NF and DM produce a much wider, more human-like distribution of pitch compared to L2 models, which cluster tightly around a narrow mean.

Density distribution of mean normalized log-f0, comparing generative models (Diff-PP, Flow-PP) against the L2 baseline and ground truth (ORA-P).

As shown in the density plots, the generative models closely track the ground truth (Oracle) distribution, whereas the L2-based model fails to capture the variance necessary for natural-sounding speech. Surprisingly, both generative models performed on par with human-level prosody in terms of naturalness during subjective testing.

Acoustic Modelling Results

In subjective MUSHRA (Multiple Stimuli with Hidden Reference and Anchor) tests for acoustic modelling, the Flow-based acoustic model (Flow-AM) emerged as the top performer. While the Diffusion model (Diff-AM) achieved the highest scores for "Expressiveness" (79.49), it suffered in "Style Similarity," suggesting that it introduced variations that did not always align with the intended speaker style.

The researchers also noted differing sensitivities to sampling temperature. Normalizing Flows were highly sensitive to temperature adjustments, requiring precise tuning to maintain quality. In contrast, Diffusion Models proved more robust, maintaining high quality even at higher temperatures that encouraged greater expressiveness.

Discussion and Conclusion

The study provides key insights into the suitability of different architectures for specific TTS tasks. The authors hypothesize that Diffusion Models, particularly those utilizing U-Nets, are excellent at capturing the long-term dependencies required for prosody. However, for acoustic modelling—which requires a focus on the fine-grained quality of individual spectrogram frames—Normalizing Flows currently hold the advantage.

Future work will explore optimizing U-Net architectures for the short-term frame-level requirements of mel-spectrograms and improving style disentanglement to allow for more precise control in generative speech synthesis.

Summary updated

BibTeX
@inproceedings{zhang2023comparing,
  author = {Guangyan Zhang and Thomas Merritt and Manuel Sam Ribeiro and Biel Tura Vecino and Kayoko Yanagisawa and Kamil Pokora and Abdelhamid Ezzerg and Sebastian Cygert and Ammar Abbas and Piotr Bilinski and Roberto Barra-Chicote and Daniel Korzekwa and Jaime Lorenzo-Trueba},
  title = {{Comparing normalizing flows and diffusion models for prosody and acoustic modelling in text-to-speech}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-834},
}
Figure