Abstract
Speech separation is a computationally intensive task, often requiring cloud-based processing for high-quality results. This paper introduces Codecformer, a novel speech separation model that operates directly within the compressed embedding space of a neural audio codec. By processing audio at a 50Hz frame rate, Codecformer achieves a 52x reduction in computational complexity (GMACs) and 2.7x faster training compared to state-of-the-art models, while maintaining comparable separation quality.
Introduction
The "cocktail party problem"—isolating individual voices from a mixture—remains a significant challenge for resource-constrained edge devices. Traditional high-performance models like Sepformer are typically too large for local execution on smartphones or hearing aids. Current solutions often involve sending compressed audio to the cloud, which introduces latency and privacy concerns. Furthermore, standard separation models often struggle with the artifacts introduced by audio compression.
Codecformer addresses these issues by performing separation inside the compressed space of the Descript Audio Codec (DAC). This approach leverages the codec's inherent temporal compression to drastically reduce the computational load.
Methodology
Codecformer is built upon the Sepformer architecture but is specifically optimized for the DAC embedding space.
Temporal Compression and Architecture
DAC compresses 8kHz audio into a 50Hz embedding sequence, a 160x reduction in time steps. This allows Codecformer to utilize a standard Transformer architecture without the complex "dual-path" chunking mechanisms required for raw waveform processing.
Technical Innovations
- Activation Matching: Codecformer employs the Snake activation function ($x + \sin^2(x)$), matching the internal mechanics of the DAC to better represent periodic audio features.
- Codec SI-SDR (cSI-SDR) Loss: To avoid penalizing the model for inherent codec distortions, the authors introduced a new loss function that compares the output against a codec-processed version of the ground truth. This "clean gradient" approach prevents the model from trying to reconstruct details already discarded by the codec.
Experimental Results
The model was evaluated on the WSJ0-2mix dataset, a standard benchmark consisting of 30 hours of speech mixtures.
Computational Efficiency
Codecformer demonstrates a massive leap in efficiency. It requires only 1.5 GMACs, a 52x reduction from Sepformer's 77.3 GMACs. Additionally, training time was reduced from 2.7 hours per epoch to just 1.0 hour on a V100 GPU.
Separation Performance
In terms of separation quality, Codecformer achieved a 9.9 dB cSI-SDRi, slightly outperforming the Cloud Sepformer baseline (9.6 dB). While objective metrics were strong, the perceptual quality (PESQ) was slightly lower (2.58 vs 2.75), likely due to specific distortions from the Snake activation at the output layer.
Conclusion and Future Work
Codecformer proves that performing speech separation within a compressed codec space is not only feasible but highly efficient for edge deployment. Future research will focus on pre-training codecs specifically for mixture data, exploring generative token-level separation, and integrating these separated embeddings directly into downstream tasks like Automatic Speech Recognition (ASR).
Summary updated