Introduction
In the field of speech processing, the "cocktail party problem"—the ability to isolate a single voice amidst a background of competing speakers—remains a significant challenge. Traditional supervised models for speaker verification (SV) and diarization often require vast amounts of labeled data and can be brittle when encountering overlapping speech or noisy "in-the-wild" environments.
Researchers from Tencent AI Lab have introduced Contrastive Separative Coding (CSC), a novel self-supervised learning (SSL) framework. Unlike previous SSL methods that focus on temporal prediction, CSC learns robust speaker representations by performing a "separative" pretext task: isolating a target signal from interfering noise.
From Predicting the Future to Separating the Present
Existing SSL approaches, such as Contrastive Predictive Coding (CPC), typically attempt to predict future audio frames based on past context. While effective for capturing temporal dependencies, the authors argue that for speech identity, a more powerful pretext task is predicting the interfered version of a signal. By forcing the model to understand how a voice is altered when mixed with others, it learns deeper, more invariant features of a speaker's identity.
The CSC Framework
The CSC model architecture consists of three primary components designed to extract discriminative and separable features:
- Multi-task Separative Encoder: A shared encoder ($g_{enc}$) maps raw audio into a latent space. The model then branches into two task-specific encoders: one for speaker embedding ($g_{spk}$) and another for speech separation ($g_{ss}$). This joint learning ensures that the resulting features are optimized for both identity recognition and signal cleaning.
- Bottom-up Cross-Attention: A cross-attention mechanism ($g_{att}$) operates across different interfering conditions. It uses bottom-up embeddings as queries to aggregate critical information from the latent space while suppressing irrelevant noise.
- Probabilistic Contrastive Loss: To avoid the need for explicit negative sampling, CSC employs a symmetric loss function. It treats the global speaker vector as a cluster centroid in a Gaussian space, maximizing the mutual information between local representations and the global identity.
Experimental Results and Auditory Attention
The model was evaluated on the WSJ0-2mix and a custom Libri-2mix dataset designed to simulate low-resource industrial environments.
Performance Metrics
CSC demonstrated significant improvements in both speech separation and speaker verification. On the WSJ0-2mix task, it achieved a 2.8dB improvement in Signal-to-Distortion Ratio (SDR) over standard CPC. In speaker verification tests, CSC (trained on mixtures) outperformed supervised baselines like SincNet, approaching the performance of systems trained on perfectly clean data.
Auditory Selective Attention
A key insight from the study is the emergence of "auditory selective attention." As shown in the attention curves, the model automatically "locks on" to the most salient speaker and ignores interference, mimicking the biological cocktail party effect. This property was observed across various scenarios, including male-female and same-gender interference, without explicit programming for such behavior.
Conclusion
Contrastive Separative Coding represents a shift in self-supervised speech representation learning. By moving from temporal prediction to signal separation, the framework achieves state-of-the-art performance in adverse conditions. The inherent selective attention property suggests that CSC is a strong candidate for future work in speaker diarization and other complex multi-speaker tasks.
Reference: Wang, J., Lam, M. W. Y., Su, D., & Yu, D. (2021). Contrastive Separative Coding for Self-supervised Representation Learning. arXiv:2103.00816v1 [eess.AS].
Summary updated