Efficient Vocal Source Separation Through Windowed Sink Attention

Christodoulos Benetatos, Yongyi Zang, Randal J. LeistikowarXiv 2025 · DOI

Introduction

Vocal source separation—the task of isolating a singer's voice from a musical track—is a cornerstone of modern music technology. Currently, state-of-the-art architectures like Mel-Band-Roformer and BandSplit-Roformer rely heavily on Transformers to achieve high-quality results. However, the standard self-attention mechanism in these models presents a significant computational bottleneck. Because every temporal frame of audio must attend to every other frame, the computational cost scales quadratically ($O(N^2)$) with the length of the audio. This makes processing full-length songs or running models on resource-constrained edge devices, such as smartphones, extremely difficult.

Researchers from Smule Labs investigated whether this global computation is strictly necessary for high-quality audio separation. Their findings suggest that temporal dependencies in audio are largely local, allowing for a more efficient attention mechanism that significantly reduces computational overhead.

Methodology

Analyzing Attention Locality

The researchers began by analyzing the attention patterns of top-performing pre-trained models. They discovered a striking dichotomy: while frequency-axis attention is distributed globally across the spectrum (capturing harmonics), temporal attention is almost entirely localized along the diagonal.

Figure 1: Visualization of attention patterns across layers. Temporal attention (top) is highly localized along the diagonal, while frequency attention (bottom) is more distributed.

Windowed Sink Attention (WSA)

Based on this observation, the team introduced Windowed Sink Attention (WSA). This mechanism replaces full self-attention with two components:

  1. Local Window: Each audio token only attends to its immediate neighbors within a window of approximately 100ms. This captures the tight local dependencies inherent in speech and music.
  2. Sink Tokens: A small number of "sink" tokens (8 in this study) are appended to the sequence. These tokens have full bidirectional attention with every other token, acting as global "information hubs" to capture and redistribute diffuse global context.

To implement this efficiently, the authors utilized PyTorch’s flex_attention to create optimized CUDA kernels. This approach avoids materializing the massive $N \times N$ attention matrix in memory, shifting the complexity from $O(N^2)$ to $O(N)$.

Model Architecture

The WSA mechanism was integrated into a standard vocal separation pipeline consisting of a Band-Split module, followed by repeated Transformer blocks, and a Multi-Band Mask Estimation module.

Figure 2: Overall architecture of the vocal source separation model, featuring Band-Split and Multi-Band Mask Estimation modules.

Experimental Results

The model was fine-tuned using an internal Smule dataset and evaluated on MUSDB18HQ, the industry-standard benchmark for music source separation. The transition to WSA yielded massive efficiency gains with minimal quality trade-offs:

  • Computational Speedup: A 44.5x reduction in attention FLOPs for standard 8-second segments.
  • Performance Retention: The model achieved a median Signal-to-Distortion Ratio (SDR) of 11.17 dB, compared to the original full-attention model's 12.12 dB—retaining 92% of the original performance.
  • Memory Efficiency: The linear scaling allows the model to process full 3-5 minute songs without the memory crashes or "chunking" artifacts common in quadratic models.

Discussion and Limitations

While the overall SDR remains high, the researchers noted a drop in the "Bleedless" score (30.14 vs 41.00), indicating that the WSA model struggles more in silent segments where residual noise from other instruments may persist. This suggests that while local attention is sufficient for active vocal segments, global context may play a larger role in identifying and suppressing background noise during vocal pauses.

Future work will explore optimizing the number and placement of sink tokens to further bridge the performance gap and investigating real-world "wall-clock" speedups on various hardware configurations.

Summary updated

BibTeX
@misc{benetatos2025efficient,
  author = {Christodoulos Benetatos and Yongyi Zang and Randal J. Leistikow},
  title = {{Efficient Vocal Source Separation Through Windowed Sink Attention}},
  year = {2025},
  eprint = {2510.25745},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.25745},
}
Figure