Diffusion Buffer: Online Diffusion-based Speech Enhancement with Sub-Second Latency

Bunlong Lay, Rostilav Makarov, Timo Gerkmann

Introduction

Speech Enhancement (SE) is a critical component in modern communication systems, aimed at isolating clean speech from noisy environmental backgrounds. While discriminative deep learning models have traditionally dominated this field due to their speed, generative diffusion models have recently established a new state-of-the-art in terms of perceptual quality and robustness. However, the iterative nature of diffusion models—requiring dozens or hundreds of sequential neural network passes—has historically relegated them to offline processing. This paper introduces the Diffusion Buffer (DB), a novel framework that enables online, streaming speech enhancement with sub-second latency by aligning the diffusion process with the temporal flow of audio.

The Latency Bottleneck in Diffusion Models

Standard diffusion models operate by progressively removing noise from a signal over a series of discrete time steps. In a typical offline SE application, the entire audio segment must be available before the denoising process begins. For a user in a live video call or VoIP session, this creates an unacceptable delay; the first cleaned sample cannot be heard until the final iteration of the entire block is complete. To make diffusion practical for real-time use, the computational cost must be amortized across the incoming audio stream without sacrificing the generative quality that makes these models desirable.

Methodology: The Diffusion Buffer

The core innovation of this work is the Diffusion Buffer (DB), a sliding-window framework that treats the "age" of an audio frame as its progress in the diffusion process.

1. Temporal Denoising

The system maintains a buffer of the most recent $B$ frames of noisy audio. When a new noisy frame enters the buffer, it is assigned a high diffusion time-step, representing a "very noisy" state. As subsequent frames arrive, this specific frame shifts toward the front of the buffer.

2. Amortized Computation

Instead of performing multiple iterations on a single block, the Diffusion Buffer performs exactly one reverse diffusion step on the entire buffer every time a new frame arrives. This creates a pipeline effect:

  • The newest frame undergoes its 1st denoising step.
  • The second-newest frame undergoes its 2nd denoising step.
  • The oldest frame in the buffer undergoes its $B$-th (and final) denoising step.

By the time a frame reaches the front of the buffer, it has been processed $B$ times. This "Aha!" moment allows the model to produce clean audio continuously, with the neural network (a score model) being called only once per input frame hop. This keeps the computational load constant and manageable for real-time hardware.

3. Model Architecture

To ensure the system could run within the strict 16ms "hop" window of a standard audio stream, the authors utilized a modified NCSN++ (Noise Conditional Score Network). The architecture was optimized and compressed from 65 million parameters to 18 million, specifically tailored to run on consumer-grade GPU hardware without losing the expressive power of the generative prior.

Experimental Evaluation

Datasets and Training

The model was trained using the EARS-WHAM dataset, featuring high-quality 48 kHz speech (downsampled to 16 kHz) mixed with diverse environmental noises. The training set comprised 54 hours of audio, with Signal-to-Noise Ratios (SNR) ranging from 0 to 15 dB. To ensure the model focused on standard communication profiles, the authors filtered out non-standard vocalizations such as whispers or extreme pitch variations.

Performance Metrics

The system was evaluated on two primary fronts: perceptual quality (PESQ) and computational efficiency (Real-Time Factor).

  • Latency: The framework achieved algorithmic latencies between 320 ms and 960 ms, depending on the chosen buffer size $B$.
  • Quality: In PESQ evaluations, the Diffusion Buffer outperformed vanilla offline diffusion models when configured with 60 steps. Furthermore, it surpassed DEMUCS, a popular real-time discriminative model, in quality once the buffer size exceeded 30 steps, while maintaining comparable intelligibility (ESTOI).
  • Efficiency: On an NVIDIA RTX 4080 laptop GPU, the Real-Time Factor (RTF) remained below 1.0, confirming that the system can process audio faster than it is received in a live stream.

Discussion and Limitations

While the Diffusion Buffer successfully bridges the gap between generative modeling and real-time processing, certain constraints remain. The latency of the system is inherently tied to the number of diffusion steps; higher quality (more steps) requires a longer buffer and thus higher latency. Additionally, while the 18M parameter model is efficient, it still requires a relatively powerful consumer GPU. Future work will likely focus on more efficient Stochastic Differential Equation (SDE) solvers to reduce the number of steps required for high-fidelity reconstruction, which would simultaneously lower the latency and the hardware requirements for mobile or edge deployment.

Conclusion

The Diffusion Buffer represents a significant step forward for generative AI in signal processing. By elegantly mapping diffusion time to physical time, the framework enables the high-quality, robust denoising capabilities of diffusion models to be used in live, sub-second latency applications for the first time.

Summary updated

BibTeX
@inproceedings{lay2025diffusion,
  author = {Bunlong Lay and Rostilav Makarov and Timo Gerkmann},
  title = {{Diffusion Buffer: Online Diffusion-based Speech Enhancement with Sub-Second Latency}},
  booktitle = {Interspeech},
  year = {2025},
  doi = {10.21437/interspeech.2025-1317},
}
Figure