FlowDec: A flow-based full-band general audio codec with high perceptual quality

Simon Welker, Matthew Le, Ricky T. Q. Chen, Wei-Ning Hsu, Timo Gerkmann, Alexander Richard, Yi-chiao Wu

Introduction

Traditional audio codecs face a significant challenge at ultra-low bitrates: they often produce audio that sounds muffled, buzzy, or lacks high-frequency detail. To combat this, the field has shifted toward neural audio codecs. Current state-of-the-art models typically rely on Generative Adversarial Networks (GANs), such as the Descript Audio Codec (DAC). While GANs improve perceptual quality, they are difficult to train, prone to mode collapse, and often introduce artificial artifacts that smear harmonic structures in music.

More recently, diffusion-based "score-matching" models like ScoreDec have emerged, offering superior perceptual quality. However, diffusion models are computationally expensive, often requiring over 60 neural network evaluations per sample, making them too slow for real-time applications. FlowDec addresses these limitations by utilizing Conditional Flow Matching (CFM) as a stochastic postfilter. This approach achieves a 10x speedup over diffusion models while outperforming established GAN-based models in perceptual metrics at bitrates as low as 4–7.5 kbit/s.

Methodology

FlowDec employs a two-stage framework designed to balance stability and generative power.

1. Non-Adversarial Base Codec (NDAC)

The process begins with a standard DAC architecture, but with a critical modification: the GAN discriminators are removed. This Non-Adversarial Descript Audio Codec (NDAC) is trained solely using reconstruction losses, including STFT, L1 waveform, and a multi-scale Constant-Q Transform (CQT) loss. While this produces a stable reconstruction, the output is often "blurry" or lacks the fine-grained detail of the original signal.

2. Conditional Flow Matching (CFM) Postfilter

To restore the missing details, FlowDec introduces a CFM-based postfilter. Unlike diffusion processes that follow complex, curved paths from pure noise, CFM learns a "flow" that transforms the initial NDAC estimate into clean audio.

Architectural comparison between the standard GAN-based DAC and the proposed FlowDec framework.

Key innovations in this stage include:

  • Joint Flow Matching: FlowDec uses the initial estimate from the base codec to guide the flow. This "shifted" probability path results in straighter trajectories, which are significantly easier for the model to learn and solve.
  • Frequency-Dependent Noise: Recognizing that audio power follows an inverse power law (higher energy in lower frequencies), FlowDec applies different noise levels across frequency bands. This prevents the over-smoothing of high-frequency details that often plagues general generative models.
  • Efficient Inference: By using a Midpoint ODE solver, FlowDec requires only 6 evaluations to produce high-quality audio, compared to the 60+ required by previous score-matching methods.

Geometric Intuition and Stability

A core advantage of FlowDec is the geometric properties of its probability path. The authors demonstrate that their linear path is "contractive," meaning the Ordinary Differential Equation (ODE) is numerically stable and naturally converges toward the clean signal. This is visualized by comparing an unconditional path to the shifted path used in FlowDec, which focuses the distribution around the conditional estimate.

Geometric intuition of the shifted probability path in Conditional Flow Matching, showing how the distribution is focused by the conditional signal.

Key Results and Performance

FlowDec was evaluated using a massive dataset of 2,778 hours of speech, music, and environmental sounds.

  • Perceptual Quality: In MUSHRA listening tests, FlowDec performed on par with GAN-based DACs. However, it achieved significantly better Fréchet Audio Distance (FAD) scores, indicating that its generated audio distribution is much closer to real-world audio than its competitors.
  • Harmonic Integrity: Qualitatively, FlowDec excels at preserving the horizontal lines in spectrograms (harmonics). GAN-based codecs often smear these structures into vertical blocks of noise, whereas FlowDec maintains the clear spectral structure necessary for high-fidelity music.
  • Efficiency: FlowDec achieves a Real-Time Factor (RTF) of approximately 0.22 on an NVIDIA A100 GPU. This makes it roughly 10x faster than ScoreDec (RTF 1.7), moving generative codecs into the realm of practical utility.

Conclusion and Future Work

FlowDec demonstrates that a powerful stochastic postfilter can replace complex GAN training while providing better perceptual results and faster inference than diffusion models. While the current model is non-causal due to its image-inspired NCSN++ backbone, future iterations could utilize transformer-based architectures to enable low-latency streaming. Additionally, joint training of the base codec and the postfilter may further optimize the system's efficiency and audio fidelity.

Summary updated

BibTeX
@inproceedings{welker2025flowdec,
  author = {Simon Welker and Matthew Le and Ricky T. Q. Chen and Wei-Ning Hsu and Timo Gerkmann and Alexander Richard and YI-CHIAO WU},
  title = {{FlowDec: A flow-based full-band general audio codec with high perceptual quality}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=uxDFlPGRLX},
}
Figure