Tiny-Sepformer: A Tiny Time-Domain Transformer Network For Speech Separation

Jian Luo, Jianzong Wang, Ning Cheng, Edward Xiao, Xulong Zhang, Jing Xiao

Introduction

Speech separation, often referred to as the "cocktail party problem," involves isolating individual speakers from a multi-talker acoustic environment. While recent advancements in Transformer-based architectures, such as the Sepformer, have set new benchmarks in performance, they are characterized by high parameter density and significant memory overhead. These "parameter-hungry" models often lead to GPU memory exhaustion during training and present challenges for deployment on resource-constrained edge devices.

In the paper "Tiny-Sepformer: A Tiny Time-Domain Transformer Network for Speech Separation," researchers from Ping An Technology propose a lightweight alternative. By integrating parallel convolution-attention mechanisms and cross-layer parameter sharing, Tiny-Sepformer reduces the model footprint by nearly 90% while maintaining performance parity with state-of-the-art models.

Architectural Framework

Tiny-Sepformer builds upon the "dual-path" processing framework common in modern speech separation. This approach handles audio in two distinct stages:

  1. Intra-chunk Processing: Modeling local features within short segments of the audio.
  2. Inter-chunk Processing: Modeling long-term dependencies across the entire recording.

While effective, the standard Transformer layers used in these paths are computationally expensive. Tiny-Sepformer replaces these vanilla Transformer blocks with a more efficient structure designed to balance global context and local feature extraction.

The Convolution-Attention (CA) Block

The core innovation of Tiny-Sepformer is the Convolution-Attention (CA) block. In a standard Transformer, Multi-Head Attention (MHA) processes the entire feature dimension. In contrast, the CA block splits the input into two parallel paths:

  • The Attention Path: Employs MHA on a subset of features to capture global context.
  • The Convolution Path: Utilizes 1D Depthwise Separable Convolutions to process the remaining features.

Unlike the "Conformer" architecture, which typically arranges attention and convolution in a serial sequence, Tiny-Sepformer runs them in parallel. This allows the model to aggressively reduce the number of channels assigned to the computationally expensive attention mechanism without sacrificing the ability to model local and global information simultaneously.

Cross-Layer Parameter Sharing

To further minimize the model's size, the researchers implemented cross-layer parameter sharing, a technique popularized by models like ALBERT. Instead of utilizing $N$ unique layers within the masking network, the architecture "loops" through the same layer weights multiple times. This strategy drastically reduces the number of parameters stored in memory without a proportional loss in modeling capacity.

Experimental Results

The model was evaluated on the industry-standard WSJ0-2mix and WSJ0-3mix datasets, which consist of two- and three-speaker mixtures from the Wall Street Journal corpus. Performance was measured using Scale-Invariant Source-to-Noise Ratio improvement (SI-SNRi) and Signal-to-Distortion Ratio improvement (SDRi).

Efficiency and Performance

The results demonstrate that Tiny-Sepformer achieves a massive compression ratio with negligible performance degradation:

  • Tiny-SepformerS-32: Utilizing parameter sharing, this variant achieved an SI-SNRi of 15.16 dB on WSJ0-2mix with only 5.3M parameters. For comparison, the original Sepformer achieves 15.07 dB but requires 25.7M parameters.
  • Tiny-SepformerS-16: An ultra-lightweight version functioning with just 2.9M parameters still delivered a respectable 13.51 dB SI-SNRi.
  • Memory Footprint: The architectural efficiencies allowed the 32-layer model to be trained on a 16GB GPU, whereas the original Sepformer often necessitates 32GB or more.

Key Insights

  1. Local Context Efficiency: Analysis of attention weights revealed that for intra-chunk (local) processing, attention mechanisms often focus on the diagonal. This suggests that convolution can replicate these patterns more efficiently than attention.
  2. Strategic Channel Allocation: The researchers found that the optimal split between convolution and attention is not 50/50. Assigning more channels to convolution for local processing and more to attention for global processing yielded the best results.
  3. The Power of Weight Reuse: The study confirmed that parameter sharing is highly effective for speech separation. In some configurations, a shared-parameter model with 5.3M parameters actually outperformed a non-shared version with 25.7M parameters.

Conclusion and Future Work

Tiny-Sepformer represents a significant step toward making high-quality speech separation viable for real-world applications. By rethinking the necessity of full attention mechanisms and leveraging parameter sharing, the authors have created a model that is both powerful and efficient.

However, some challenges remain. While parameter sharing reduces the model's storage size, it does not inherently reduce the number of mathematical operations (FLOPs), meaning inference speed may not see a linear improvement. Future research will likely focus on adapting this architecture for low-latency streaming applications and testing its robustness in more complex, reverberant environments.

Summary updated

BibTeX
@inproceedings{luo2022tiny,
  author = {Jian Luo and Jianzong Wang and Ning Cheng and Edward Xiao and Xulong Zhang and Jing Xiao},
  title = {{Tiny-Sepformer: A Tiny Time-Domain Transformer Network For Speech Separation}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-66},
}
Figure