WaveFM: A High-Fidelity and Efficient Vocoder Based on Flow Matching

Tianze Luo, Xingchen Miao, Wenbo Duan

Abstract

Flow matching offers a robust and stable approach to training diffusion models. However, directly applying flow matching to neural vocoders can result in subpar audio quality. In this work, we present WaveFM, a reparameterized flow matching model for mel-spectrogram conditioned speech synthesis, designed to enhance both sample quality and generation speed for diffusion vocoders. Since mel-spectrograms represent the energy distribution of waveforms, WaveFM adopts a mel-conditioned prior distribution instead of a standard Gaussian prior to minimize unnecessary transportation costs during synthesis. Moreover, while most diffusion vocoders rely on a single loss function, we argue that incorporating auxiliary losses, including a refined multi-resolution STFT loss, can further improve audio quality. To speed up inference without degrading sample quality significantly, we introduce a tailored consistency distillation method for WaveFM. Experiment results demonstrate that our model achieves superior performance in both quality and efficiency compared to previous diffusion vocoders, while enabling waveform generation in a single inference step.

Introduction

In the field of neural vocoders—models that transform mel-spectrograms into audible waveforms—researchers have traditionally faced a trade-off between speed and quality. Generative Adversarial Networks (GANs) offer high efficiency but can suffer from training instability or audible artifacts. Conversely, diffusion models produce high-fidelity audio but are computationally expensive due to their iterative denoising process.

WaveFM addresses these challenges by leveraging flow matching, a technique that provides a more stable training objective than traditional diffusion. By introducing reparameterization and a mel-conditioned prior, WaveFM bridges the gap between the high-fidelity output of diffusion models and the real-time performance of GANs.

Methodology

Reparameterized Flow Matching

Standard flow matching typically predicts a "velocity field" to guide the transformation from noise to data. WaveFM reparameterizes this process to predict the clean audio signal ($x_1$) directly. This shift is critical as it enables the use of standard audio auxiliary losses, such as Short-Time Fourier Transform (STFT) loss, which are difficult to apply when predicting only derivatives.

Mel-Conditioned Prior

Rather than starting from standard high-variance Gaussian noise, WaveFM utilizes a prior distribution derived from the mel-spectrogram itself. This ensures the initial state is already aligned with the energy distribution of the target audio, significantly reducing the transportation cost and complexity of the generation task.

Overall architecture of WaveFM, illustrating the integration of time embeddings, mel-spectrogram conditioning, and the U-Net-like structure with ResLayers.

Refined Multi-Resolution STFT Loss

To capture fine spectral details, WaveFM employs a refined loss function that examines STFTs at multiple scales. This includes a phase angle loss and the application of gradient and Laplacian operators to the spectrograms. These techniques, borrowed from computer vision, help the model learn structural patterns and the "sharpness" of harmonics and transients.

Inference Acceleration via Consistency Distillation

To achieve real-time performance, WaveFM employs a tailored consistency distillation process. A "student" model is trained to map the initial noise directly to the output of a multi-step Ordinary Differential Equation (ODE) solver used by a "teacher" model. This allows WaveFM to generate high-quality audio in as little as a single inference step.

Experiments and Results

Quality and Efficiency

Evaluated on the LibriTTS dataset, WaveFM-6 steps achieved a Subjective Mean Opinion Score (SMOS) of 4.19, surpassing BigVGAN (4.17) and other diffusion baselines like PriorGrad. In terms of speed, the WaveFM-1 step model achieved a Real-Time Factor (RTF) of 303x on an RTX 4090, rivaling the speed of HiFi-GAN while maintaining superior objective metrics (PESQ, MCD).

Comparison of generated mel-spectrograms, demonstrating WaveFM's ability to reconstruct clear harmonic structures and transients.

Out-of-Distribution Generalization

When tested on the MUSDB18-HQ music dataset, WaveFM demonstrated robust generalization. It outperformed competing models in handling non-speech elements like singing and instruments, suggesting that the flow-matching approach captures the underlying physics of sound more effectively than purely adversarial methods.

Conclusion

WaveFM represents a significant advancement in vocoder technology, combining the stability of flow matching with architectural innovations that enable high-fidelity, single-step generation. While a small quality gap remains between 1-step and multi-step models, WaveFM sets a new benchmark for efficient, high-quality speech synthesis. Future work will continue to explore closing the performance gap in single-step models without increasing computational overhead.

Summary updated

BibTeX
@inproceedings{luo2025wavefm,
  author = {Tianze Luo and Xingchen Miao and Wenbo Duan},
  title = {{WaveFM: A High-Fidelity and Efficient Vocoder Based on Flow Matching}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=YKx9fviJfk},
}
Figure