Resource-Efficient Separation Transformer

Cem Subakan, Mirco Ravanelli, Samuele Cornell, Frédéric Lepoutre, François Grondin

TL;DR

This paper introduces the RE-SepFormer, a novel Transformer-based architecture for speech separation that significantly reduces computational cost and memory usage compared to existing models. By employing non-overlapping latent blocks and processing chunk summaries, it achieves competitive separation performance while enabling real-time, on-device applications.

What Problem Does This Paper Address?

State-of-the-art speech separation models, particularly those based on the Transformer architecture, are notoriously computationally expensive and parameter-heavy. This high demand limits their deployment in resource-constrained environments like mobile devices, raises privacy concerns due to cloud processing, and contributes to significant energy consumption. While previous work has explored efficient Transformers, they often don't address the specific needs of real-time, low-latency applications. This paper aims to bridge this gap by developing a Transformer model that is both performant and highly efficient.

Methods

The core innovation lies in the Resource-Efficient Separation Transformer (RE-SepFormer). It builds upon the SkiM framework and introduces two key modifications to reduce computational burden:

  1. Non-overlapping Latent Blocks: Instead of overlapping chunks in the latent space, RE-SepFormer uses non-overlapping ones. This effectively halves the number of chunks to process, directly reducing computation.
  2. Memory Transformer with Chunk Summaries: The model processes compact latent summaries derived from entire chunks, rather than attending to every element within each chunk. This is achieved through a "Memory Transformer" module that operates on these averaged representations. This drastically cuts down on parameters and computations while still capturing long-term dependencies across chunks.

The overall architecture involves an encoder to create a latent representation, a masking network (which includes the RE-SepFormer block) to estimate source masks, and a decoder to reconstruct the separated signals. The RE-SepFormer block itself comprises an "IntraTransformer" for short-term temporal information, the "Memory Transformer" for long-term inter-chunk dependencies, and another "IntraTransformer" to refine the output.

Datasets

The paper evaluates the RE-SepFormer on two standard datasets:

  • WSJ0-2Mix: A widely used benchmark for speech separation, consisting of 30 hours of training, 10 hours of validation, and 5 hours of test data. Mixtures are created by randomly mixing utterances with varying gains.
  • WHAM!: This dataset extends WSJ0-2Mix by incorporating mixtures corrupted with non-stationary environmental noises (e.g., from restaurants, bars, parks) across different Signal-to-Noise Ratios (SNRs).

Key Insights and Ideas

  • Chunk Summaries are Powerful: The idea of averaging latent representations within chunks to create a summary is surprisingly effective. It significantly reduces computation without a substantial performance hit, suggesting that high-level contextual information can be captured efficiently.
  • Scalability is Key: The RE-SepFormer's architecture, particularly its reliance on feed-forward layers within self-attention blocks and the summary mechanism, makes it highly parallelizable. This leads to dramatically better scaling in memory and inference time for longer audio sequences compared to other Transformer models.
  • Trade-offs are Manageable: While using non-overlapping chunks initially leads to a performance drop, the RE-SepFormer still achieves competitive results, demonstrating that efficiency gains can be realized without sacrificing too much accuracy.

Key Results

  • Significant Efficiency Gains: The RE-SepFormer achieves a 3x reduction in parameters and an 11x reduction in Multiply-Accumulate Operations (MACs) per second compared to the standard SepFormer.
  • Competitive Performance: It achieves competitive performance on WSJ0-2Mix (SDRi up to 18.9 dB) and WHAM! (SDRi up to 14.4 dB) in both causal and non-causal settings.
  • Superior Scalability: For long input sequences (e.g., 256 seconds), the RE-SepFormer is 7x faster than a reduced-parameter SepFormer (SepFormer-Light) and offers up to a 28% memory reduction.
  • Outperforms SkiM: In most tested conditions, RE-SepFormer outperforms SkiM, an RNN-based efficient separation model, in terms of separation quality, while offering comparable memory and inference speed.
  • Ablation Studies: Modifications to the "IntraTransformer" modules had the most significant impact on performance and parameter reduction, while changes to the "Memory Transformer" had a more moderate effect.

Limitations and Future Work

  • Performance Drop with Non-Overlapping Chunks: The paper acknowledges a performance drop when moving from overlapping to non-overlapping chunks. While the RE-SepFormer still performs well, this is a noted trade-off for efficiency.
  • Future Work: The authors highlight the RE-SepFormer's suitability for real-time, low-latency speech separation on small-footprint devices like smartphones. Further exploration into optimizing for specific hardware or exploring even more aggressive parameter reduction techniques could be future directions.

Summary updated

BibTeX
@inproceedings{subakan2022resource,
  author = {Cem Subakan and Mirco Ravanelli and Samuele Cornell and Frédéric Lepoutre and François Grondin},
  title = {{Resource-Efficient Separation Transformer}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=yRAb0Gh5B3m},
}
Figure