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 speech synthesis, the "vocoder" is the critical component responsible for converting abstract acoustic features, such as mel-spectrograms, into audible waveforms. Historically, developing a high-performance vocoder has involved navigating a "trilemma" between audio quality, sampling speed, and training stability.

Generative Adversarial Networks (GANs) are fast but often unstable to train and prone to metallic artifacts. Conversely, Diffusion Models offer exceptional quality and stability but are computationally expensive due to their iterative denoising process. Flow Matching has emerged as a promising alternative, offering straighter trajectories and stable training; however, its direct application to vocoding has previously yielded mediocre results. WaveFM addresses these challenges by combining the stability of flow matching with the speed of consistency distillation, achieving state-of-the-art fidelity with single-step generation.

Methodology

WaveFM introduces several architectural and objective-based innovations to optimize flow matching for high-fidelity audio synthesis.

Mel-Conditioned Prior

Unlike standard diffusion models that initialize from pure Gaussian noise, WaveFM utilizes a mel-conditioned prior. By leveraging the energy distribution already present in the mel-spectrogram to shape the initial noise, the model significantly reduces the "transportation cost"—the mathematical distance required to transform the initial state into the final waveform. This effectively gives the generation process a "head start."

Reparameterized Objective and Architecture

Standard flow matching typically predicts a velocity vector. WaveFM reparameterizes this objective to predict the clean audio directly. This shift is vital as it allows the integration of auxiliary losses commonly used in GAN training, such as Multi-resolution STFT and Mel-L1 losses, which are otherwise difficult to apply in a standard flow matching framework.

The WaveFM architecture, featuring the time embedding, mel-spectrogram conditioning, and the detailed ResLayer/ResBlock components.

Refined Multi-Resolution STFT Loss

To capture fine-grained acoustic details, WaveFM incorporates a refined loss function that includes:

  • Phase Angle Loss: Enhances the supervision of wave alignment.
  • Spectral Operators: Applies Gradient and Laplacian operators to spectrograms. By treating audio like an image, these operators help the model identify and preserve sharp frequency boundaries and structural patterns.

Consistency Distillation

To achieve real-time performance, a tailored consistency distillation method is employed. This process trains a "student" model to map the initial noise directly to the final waveform in a single step, bypassing the iterative steps of the "teacher" flow matching model.

Experimental Setup

The model was trained and evaluated on two primary datasets:

  1. LibriTTS: A 1,000-hour English speech corpus used for primary performance benchmarking.
  2. MUSDB18-HQ: A multi-track music dataset used to evaluate out-of-distribution generalization, testing the model's ability to handle complex signals beyond human speech.

Results and Analysis

WaveFM was compared against established baselines including HiFi-GAN, BigVGAN, and DiffWave.

Visual comparison of spectrograms showing the reconstruction fidelity of the model.

Quality and Fidelity

On the LibriTTS dataset, the 6-step WaveFM configuration achieved a PESQ score of 3.882, significantly outperforming BigVGAN (3.503) and HiFi-GAN (2.943). In music synthesis tests (MUSDB18-HQ), WaveFM achieved superior Similarity Mean Opinion Scores (SMOS), demonstrating a robust understanding of complex audio reconstruction.

Inference Efficiency

The single-step distilled version, WaveFM-1 Step, achieved a Real-Time Factor (RTF) of 303x on an NVIDIA RTX 4090. This performance is comparable to the fastest GAN-based models (HiFi-GAN at 325x) and approximately 18 times faster than standard diffusion-based vocoders like DiffWave.

Conclusion

WaveFM successfully bridges the gap between the stability of flow matching and the efficiency of GANs. By reparameterizing the training objective and utilizing a mel-conditioned prior, the model enables the use of advanced spectral losses that drive high-fidelity results. While a small quality gap remains between the 6-step and 1-step versions, WaveFM represents a significant step forward in efficient, high-quality neural vocoding without the inherent instabilities of adversarial training.

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