WaveNODE: A Continuous Normalizing Flow for Speech Synthesis

Hyeongju Kim, Hyeon Seung Lee, Woo Hyun Kang, Sung Jun Cheon, Byoung Jin Choi, Nam Soo KimarXiv 2020

Abstract

WaveNODE is a novel speech synthesis vocoder based on Continuous Normalizing Flows (CNF), also known as Neural ODEs. By modeling audio generation as a continuous-time transformation, WaveNODE achieves high-fidelity results with significantly fewer parameters and greater architectural flexibility than traditional discrete flow-based models. Experimental results on the LJ Speech dataset demonstrate that WaveNODE achieves a Mean Opinion Score (MOS) of 3.53 with only 16.2M parameters, outperforming compact versions of WaveGlow and FloWaveNet of similar size. This architecture allows for a flexible trade-off between inference speed and audio quality through the use of tunable ODE solvers.

Introduction

In modern text-to-speech (TTS) systems, the vocoder is responsible for converting acoustic features, such as mel-spectrograms, into time-domain audio waveforms. While autoregressive models like WaveNet produce high-quality audio, their sequential nature leads to slow inference. To address this, parallel generative models based on Normalizing Flows, such as WaveGlow and FloWaveNet, were developed. However, these models require strictly invertible layers with tractable Jacobians (e.g., affine coupling layers), which limits their representational power and necessitates a large number of parameters to achieve high fidelity.

WaveNODE addresses these limitations by utilizing Continuous Normalizing Flows (CNF). By defining the transformation through an Ordinary Differential Equation (ODE), WaveNODE removes the architectural constraints of discrete flows, allowing for more compact and powerful models.

Methods

WaveNODE replaces discrete flow steps with a continuous-time transformation. The model defines the rate of change of a hidden state using a neural network, essentially solving an ODE to transform simple noise into complex speech signals.

Architecture

The WaveNODE architecture consists of a series of $N$ NODE Blocks. Each block includes a Squeeze Layer to manage temporal resolution, a Norm Layer (Actnorm), and the core CNF Layer. The model is conditioned on upsampled mel-spectrograms, which guide the ODE solver to produce the correct speech sounds.

The overall architecture of WaveNODE, showing the hierarchical structure of NODE blocks and the conditioning on mel-spectrograms.

Jacobian Flexibility and Efficiency

A key advantage of CNFs is the lack of structural constraints on the internal neural network. Unlike discrete flows like Real NVP or Inverse Autoregressive Flows (IAF), which require triangular or sparse Jacobian matrices to ensure tractability, CNFs can utilize dense Jacobians. This allows every dimension of the hidden state to interact with every other dimension, significantly increasing the model's efficiency per parameter.

Comparison of Jacobian matrices: (a) Real NVP, (b) IAF, and (c) CNF. The dense Jacobian of the CNF (c) illustrates its superior architectural flexibility compared to the sparse patterns required by discrete flows.

To maintain training efficiency despite the dense Jacobian, WaveNODE employs Hutchinson’s Trace Estimator to stochastically approximate the log-density change, avoiding the expensive $O(D^2)$ cost of computing a full Jacobian trace.

Experimental Results

The model was evaluated on the LJ Speech dataset, consisting of 13,100 audio clips from a single speaker.

Audio Quality and Parameter Efficiency

WaveNODE demonstrated superior performance compared to "compact" versions of existing flow-based models. With approximately 16.2M parameters, WaveNODE achieved a Mean Opinion Score (MOS) of 3.53. In contrast, versions of WaveGlow and FloWaveNet scaled down to similar parameter counts achieved MOS scores of only 1.75 and 1.22, respectively. Furthermore, WaveNODE's performance is comparable to the full-sized 87.9M parameter WaveGlow, representing a 5.4x reduction in model size.

Inference Speed

WaveNODE generates approximately 51,000 samples per second on a single GPU. While slower than the highly parallelized WaveGlow (~328k samples/sec), it is nearly 1,000 times faster than the original autoregressive WaveNet (56 samples/sec). A unique feature of WaveNODE is the ability to trade off synthesis quality for speed by adjusting the tolerance of the ODE solver during inference.

Conclusion

WaveNODE introduces a powerful alternative to discrete normalizing flows for speech synthesis. By leveraging the flexibility of Neural ODEs, it achieves high-quality audio generation with a significantly smaller memory footprint. While inference is computationally more intensive than simple forward passes in discrete flows, the ability to tune the ODE solver provides a flexible framework for real-time applications. Future research will focus on optimizing the Number of Function Evaluations (NFE) to maintain high inference speeds throughout the training process.

Summary updated

BibTeX
@misc{kim2020wavenode,
  author = {Hyeongju Kim and Hyeon Seung Lee and Woo Hyun Kang and Sung Jun Cheon and Byoung Jin Choi and Nam Soo Kim},
  title = {{WaveNODE: A Continuous Normalizing Flow for Speech Synthesis}},
  year = {2020},
  eprint = {2006.04598},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.04598},
}
Figure