Time-Frequency-Based Attention Cache Memory Model for Real-Time Speech Separation

Guo Chen, Kai Li, Runxuan Yang, Xiaolin HuarXiv 2025 · DOI

Abstract

Real-time speech separation remains a significant challenge due to the strict causality and low-latency requirements of edge devices. This paper introduces the Time-Frequency-Based Attention Cache Memory (TFACM) model, a lightweight, strictly causal architecture. TFACM utilizes a novel Cache Memory (CM) module to retain long-term historical context and a Causal Attention Refinement (CAR) module to enhance feature precision. Experimental results on WHAM!, WHAMR!, and LibriMix datasets demonstrate that TFACM achieves performance comparable to state-of-the-art (SOTA) models like TF-GridNet-Causal while requiring only ~9% of the parameters and ~20% of the computational complexity, making it highly suitable for real-time deployment.

Introduction

Speech separation, often referred to as the "cocktail party problem," involves isolating a target voice from a mixture of overlapping speakers and background noise. While non-causal models have achieved remarkable success by processing audio in batches with access to future information, real-time applications—such as live captioning, hearing aids, and telecommunications—demand causal processing.

Causal models face a fundamental trade-off: they must retain long-term historical context to maintain separation quality without the benefit of "looking ahead," all while staying within the strict computational budgets of edge hardware. High-performing causal models like TF-GridNet-Causal exist but are often too resource-intensive for practical deployment. TFACM addresses this gap by decoupling high performance from high complexity through efficient memory caching and refinement mechanisms.

Proposed Architecture

TFACM is built on a dual-path framework that independently models the frequency and time dimensions of the input signal. The architecture is composed of three primary modules designed to ensure strict causality and efficiency.

The detailed architecture of the TFACM separator, illustrating the F-Local, T-Local (with Cache Memory), and CAR modules.

F-Local Module

The F-Local module focuses on frequency modeling. It employs unidirectional Long Short-Term Memory (LSTM) networks to capture the relationships between different frequency bands within a single time frame. By processing frequency information locally, the model establishes a robust spectral foundation for subsequent temporal processing.

T-Local Module & Cache Memory (CM)

The core innovation of TFACM lies in the T-Local module and its integrated Cache Memory. To model the time dimension, the signal is segmented into local chunks. The Cache Memory module acts as a "shared repeater" across the model's blocks. It uses LSTMs to encode and store hidden states from previous time segments, ensuring that historical context is preserved and propagated to future segments. This mechanism allows the model to maintain a long-term "memory" with a minimal parameter footprint, effectively recycling hidden states rather than increasing network depth.

Causal Attention Refinement (CAR)

Following the frequency and time processing stages, the CAR module fine-tunes the feature representations. It utilizes a gated attention mechanism with a diagonal mask to maintain strict causality, ensuring the attention mechanism only attends to past events. By integrating the "time-frame memory," the CAR module creates more precise audio features, allowing the model to better isolate the target speaker in the present based on relevant past context.

Experimental Evaluation

Datasets

The researchers evaluated TFACM on three standard benchmarks:

  • WHAM!: Adds real-world background noise to the WSJ0-2mix dataset.
  • WHAMR!: A more complex version of WHAM! that includes both noise and room reverberation.
  • LibriMix: A large-scale dataset based on LibriSpeech, used to evaluate generalization across diverse speakers.

Performance and Efficiency

TFACM was compared against several SOTA causal models, including DPRNN, SkiM, and TF-GridNet-Causal. As shown in the table below, TFACM (Large) achieves competitive separation quality with significantly fewer resources.

Performance comparison of TFACM against state-of-the-art causal models across multiple benchmarks and efficiency metrics.

On the WHAM! dataset, TFACM (Large) achieved an SI-SNRi of 13.0 dB, approaching the 13.5 dB of TF-GridNet-Causal while using only 1.0 million parameters (vs. 11.4 million). Furthermore, TFACM (Small) demonstrates an inference time of just 45.17 ms for one second of audio, confirming its viability for real-time use.

Key Insights

  • Efficiency via Caching: The ablation study confirmed the importance of the CM module; removing it led to a significant performance drop (from 13.3 dB to 11.8 dB SDRi). This proves that the historical "cache" is vital for effective causal separation.
  • Refined Attention: The CAR module demonstrates that attention mechanisms can be effectively adapted for causal tasks, providing a significant boost in feature precision without violating causality.
  • Hardware Readiness: By replacing all standard components with causal versions (e.g., unidirectional LSTMs and causal convolutions), TFACM ensures zero look-ahead, making it ready for edge device integration.

Conclusion

TFACM successfully bridges the gap between performance and efficiency in causal speech separation. By utilizing a novel cache memory and attention refinement strategy, it matches the quality of models ten times its size. Future work will explore adaptive windowing strategies to further improve performance in rapidly changing acoustic environments and testing on more diverse, "in-the-wild" recording conditions.

Summary updated

BibTeX
@misc{chen2025time,
  author = {Guo Chen and Kai Li and Runxuan Yang and Xiaolin Hu},
  title = {{Time-Frequency-Based Attention Cache Memory Model for Real-Time Speech Separation}},
  year = {2025},
  eprint = {2505.13094},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.13094},
}
Figure