Source-linked AI summary

FloWaveNet : A Generative Flow for Raw Audio

Sungwon Kim, Sang-gil Lee, Jongyoon Song, Jaehyeon Kim, Sungroh Yoon

arXiv:1811.02155v3cs.SDeess.AS

TL;DR

WaveNet-based vocoders offer high-fidelity audio but suffer from slow autoregressive inference, while prior parallel methods require teacher-based distillation and auxiliary losses. FloWaveNet introduces a flow-based, end-to-end alternative trained with one maximum likelihood loss, achieving real-time parallel synthesis with fidelity comparable to two-stage approaches. Its audio quality involves a documented trade-off between fidelity and harmonic structure.

  • Problem

    Autoregressive WaveNet inference is a major real-time bottleneck, and prior parallel vocoders require pretrained teachers and auxiliary losses to produce realistic audio.

  • Method

    FloWaveNet is a flow-based waveform synthesizer trained end-to-end in a single stage with one maximum likelihood loss, without a teacher network or auxiliary terms.

  • Results

    FloWaveNet achieves real-time parallel audio synthesis with fidelity comparable to two-stage approaches.

  • Takeaways & Limitations

    Flow-based generation provides a promising practical direction for speech synthesis by simplifying training while maintaining stable, high-fidelity parallel audio generation.

  • Takeaways & Limitations

    Audio quality involves a trade-off between high fidelity and harmonic structure, addressed here through empirical temperature optimization.

Abstract

from arXiv · show

Most modern text-to-speech architectures use a WaveNet vocoder for synthesizing high-fidelity waveform audio, but there have been limitations, such as high inference time, in its practical application due to its ancestral sampling scheme. The recently suggested Parallel WaveNet and ClariNet have achieved real-time audio synthesis capability by incorporating inverse autoregressive flow for parallel sampling. However, these approaches require a two-stage training pipeline with a well-trained teacher network and can only produce natural sound by using probability distillation along with auxiliary loss terms. We propose FloWaveNet, a flow-based generative model for raw audio synthesis. FloWaveNet requires only a single-stage training procedure and a single maximum likelihood loss, without any additional auxiliary terms, and it is inherently parallel due to the characteristics of generative flow. The model can efficiently sample raw audio in real-time, with clarity comparable to previous two-stage parallel models. The code and samples for all models, including our FloWaveNet, are publicly available.

1. Introduction

FloWaveNet addresses WaveNet’s inference bottleneck and the training complexity of prior parallel vocoders with a flow-based, single-stage model. It uses one maximum likelihood loss without auxiliary terms or a teacher network while targeting real-time synthesis and comparable fidelity.

  • Limitations of Prior Work: Parallel WaveNet and ClariNet achieve real-time synthesis but require two-stage training with a pretrained teacher and auxiliary losses for realistic audio.Using only probability density distillation can cause Parallel WaveNet to collapse to a single teacher-distribution mode.
  • FloWaveNet: FloWaveNet is a flow-based parallel waveform synthesizer trained end-to-end with a single maximum likelihood loss and no auxiliary loss terms.Because it does not require a teacher network, its training scheme is simplified to one stage.
  • Results: FloWaveNet maintains stable training while producing sample quality and fidelity comparable to two-stage models.The paper also presents an open-source Gaussian IAF implementation and comparative study on a publicly available speech dataset.
  • Resources: The paper releases code and samples for FloWaveNet and the compared models.This supports the paper’s comparative evaluation using publicly accessible implementations and data.

2. Related Work

Prior work seeks parallel, high-fidelity audio synthesis by using inverse autoregressive flow, but its training requires distillation and engineered auxiliary losses. FloWaveNet’s flow operations provide parallel sampling while its affine-coupling architecture supports efficient inversion.

  • WaveNet: WaveNet estimates raw-audio probabilities with causal dilated convolutions, but ancestral sampling requires a full forward pass for every time step.The official implementation produces 172 samples per second, about 140 times slower than real-time at 24kHz.
  • Parallel Speech Synthesis: Inverse autoregressive flow transforms simple-distribution noise into complex audio distributions while enabling parallel latent-variable sampling.Parallel speech synthesis models use IAF to pursue parallel inference with fidelity comparable to autoregressive WaveNet.
  • Training Strategies: Probability density distillation avoids the sequential computation required by maximum-likelihood training of IAF parameters by training a student against a pretrained WaveNet teacher.Parallel WaveNet estimates the KL divergence with Monte Carlo sampling, creating a stability–speed trade-off.
  • ClariNet: ClariNet uses a closed-form Gaussian KL divergence, while its regularized objective addresses numerical instability when teacher and student standard deviations differ substantially.The regularized objective adds λ|log σ_T − log σ_S|^2 to the KL divergence.
  • Limitations: Both prior approaches require auxiliary losses because probability density distillation alone can collapse the student to one mode of the teacher distribution.Both use spectral distance loss, while Parallel WaveNet also uses perceptual and contrastive losses.

3. FloWaveNet

FloWaveNet uses invertible flow transformations to model conditional raw audio likelihood while preserving efficient parallel sampling. Its architecture combines affine coupling, activation normalization, context blocks, and multi-scale factorization to support tractable density estimation and synthesis.

  • Flow-based generative model: FloWaveNet maximizes exact data likelihood while retaining real-time parallel sampling through a hierarchical flow architecture.The model uses context blocks as its highest-level modules and reversible transformations within each block.
  • Flow-based generative model: The change-of-variables formulation maps waveform audio x invertibly to a known prior z, enabling explicit calculation of log p(x).The transformation must have a tractable Jacobian determinant and an efficient inverse for sampling.
  • Conditional modeling: FloWaveNet estimates conditional p(x|c) by incorporating mel spectrograms as local conditioning information.The same conditioning framework is used for raw-audio vocoding, with WaveNet architectures supplying the coupling functions.
  • Design rationale: Typical density estimators may provide tractable likelihoods but fail the efficient-inverse requirement needed for parallel audio sampling.FloWaveNet instead uses affine coupling because its forward and inverse transformations share the same architecture and remain computationally tractable.
  • Affine coupling layer: Affine coupling layers satisfy both tractable Jacobian computation and efficient parallel inversion by transforming only part of the channel dimension.Stacked flow operations and channel-order changes allow all channels to influence subsequent transformations.
  • Context block and architecture: Context blocks squeeze time into channels, doubling the effective receptive field, while multi-scale factorization models half the channels as a Gaussian after selected blocks.Activation normalization stabilizes the composition of multiple flow operations through data-dependent parameter initialization.

4. Experiments

The experiments train and compare autoregressive WaveNet, Gaussian IAF, and FloWaveNet models under mel-spectrogram conditioning. They evaluate audio quality, likelihood, training behavior, and inference speed using LJSpeech and related baselines.

  • Dataset and preprocessing: LJSpeech provides 13,100 clips from a single female speaker, sampled at 22kHz, for conditional waveform modeling.The experiments use randomly extracted 16,000-sample chunks normalized to [−1, 1] and 80-band mel spectrograms.
  • Compared models: The study compares autoregressive WaveNet, Gaussian IAF, and FloWaveNet baselines under the same mel-spectrogram condition.Training uses Adam with learning rate 10^-3, scheduled decay, batch size 8, and NVIDIA Tesla V100 GPUs.
  • Autoregressive baselines: The autoregressive baselines use either mixture-of-logistics or single-Gaussian output distributions with configurations matching prior systems.The mixture-of-logistics model uses 24 layers, while the single-Gaussian model uses the ClariNet configuration.
  • Gaussian IAF: Gaussian IAF uses a pretrained single-Gaussian autoregressive WaveNet as its teacher for probability density distillation.Its student contains 60 layers arranged as six IAF stacks, each with a 10-layer dilation cycle, and is trained for 500K iterations.
  • FloWaveNet training: FloWaveNet is trained with a single maximum likelihood loss for 700K iterations without auxiliary terms.Its architecture uses 256 residual, skip, and gate channels, while zero-initialized final coupling convolutions simulate identity mappings early in training.

5. Results and Analysis

FloWaveNet produced clear, real-time waveform audio with performance comparable to prior parallel approaches, while its temperature exposed a trade-off between audio fidelity and harmonic structure. Comparisons also showed why auxiliary losses matter for Gaussian IAF training.

  • Model Comparisons: FloWaveNet showed better evaluation results and clearer sound than the reproduced Gaussian IAF, which exhibited audible white noise.
  • Model Comparisons: FloWaveNet generated 22,050Hz audio approximately 20 times faster than real-time, similar in magnitude to reported Parallel WaveNet speeds.
  • Model Comparisons: 11.3 GPU days were required to train FloWaveNet, compared with 17.8 GPU days combined for Gaussian WaveNet and Gaussian IAF convergence.
  • Temperature Effect on Audio Quality Trade-off: Lower temperatures reduced trembling, while higher temperatures avoided constant-noise artifacts but made speech harmonics harder to capture.
  • Analysis of ClariNet Loss Terms: Gaussian IAF trained only with KL divergence achieved the best reported test metric but produced low-volume, distorted audio and was prone to mode collapse.
  • Analysis of ClariNet Loss Terms: Training with only spectrogram frame loss estimated acoustic content quickly but left substantial noise that did not diminish during later iterations.
  • Analysis of ClariNet Loss Terms: Combining KL divergence and spectrogram frame losses enabled Gaussian IAF to track speech harmonics and estimate the original amplitude for realistic-sounding synthesis.

6. Conclusion

FloWaveNet is a flow-based generative model for real-time parallel audio synthesis, with fidelity comparable to two-stage approaches. Its single loss and single-stage training simplify optimization while maintaining training stability.

  • FloWaveNet achieves real-time parallel audio synthesis with fidelity comparable to two-stage approaches.
  • A simplified single loss and single-stage training reduce reliance on highly tuned auxiliary loss terms while maintaining training stability.
  • The results position flow-based generation as a promising approach for speech synthesis and motivate new research directions.
Loading 1811.02155v3…