NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Class-conditional Embeddings for Music Source Separation

Prem Seetharaman, Gordon Wichern, Shrikant Venkataramani, Jonathan Le Roux

TL;DR

This paper introduces a novel approach to music source separation by mapping audio into a shared, class-conditional embedding space. Instead of training separate models for every instrument, the authors use a single network and an auxiliary "class-conditional" network to generate Gaussian Mixture Model (GMM) parameters that act as anchors for separation, enabling both high-performance instrument isolation and intuitive query-by-example functionality.

What Problem Does This Paper Address?

Traditional audio source separation often relies on training independent deep learning models for each specific instrument (e.g., one for vocals, one for drums). While effective, this approach is computationally expensive and doesn't scale well as the number of possible instruments increases.

In speech separation, "deep clustering" is often used to handle the "permutation problem" (where the model doesn't know which output should correspond to which speaker). However, music separation is different: we usually know the classes (vocals, bass, etc.) beforehand. The challenge is creating a unified framework that can handle these distinct classes within a single, interpretable embedding space while maintaining the high performance of specialized mask-inference models.

Methods

The authors propose a Class-Conditional Embedding Network. The architecture consists of two main parts:

  1. Embedding Network: A stack of Bidirectional Long Short-Term Memory (BLSTM) layers that takes a log-magnitude spectrogram as input and maps every time-frequency (T-F) bin to a 15-dimensional embedding.
  2. Auxiliary Class-Conditional Network: This network takes a one-hot vector representing an instrument class and generates the parameters ($\mu, \Sigma, \pi$) of a Gaussian distribution in the embedding space for that specific class.
The class-conditional embedding network architecture. An auxiliary network generates GMM parameters, which are used to create masks from the embedding space.

To separate a source, the model calculates the posterior probability of each T-F bin belonging to a specific class's Gaussian. This probability acts as a soft mask. The system is trained using a multi-task "Chimera-like" loss: a signal reconstruction loss ($L_1$) to ensure audio quality and a deep clustering loss ($L_{DC}$) to regularize the embedding space.

Datasets

  • MUSDB-18: A standard dataset for music source separation containing 150 full-length tracks with isolated stems for vocals, drums, bass, and "other."
  • Scaper: The authors used the Scaper library to augment the training data, creating 20,000 synthetic mixtures from the MUSDB stems to improve model robustness.

Key Insights and Ideas

  • Separation Space vs. Similarity Space: Interestingly, the learned embedding space behaves differently than traditional embeddings like word2vec. In word2vec, similar items are close together. Here, the network learns a "separation space" where sources with similar acoustic characteristics (like vocals and "other" melodic instruments) are often pushed far apart to make them easier to distinguish and separate.
  • Covariance Matters: The authors experimented with different Gaussian covariance structures. They found that tied spherical covariance (where all classes share the same variance value, which is learned) performed best. This prevents the model from becoming "overly confident" about certain classes and collapsing into a simple mask-inference network.
  • Interpretability: Because the embeddings are tied to specific classes via the auxiliary network, the space is visually interpretable. Using PCA, one can see how different instruments cluster in distinct regions of the embedding space.
Visualization of the embedding space using PCA. Different colors represent different instrument classes.

Key Results

The proposed model was evaluated using the Source-to-Distortion Ratio (SDR). The class-conditional models significantly outperformed a standard BLSTM mask-inference baseline, particularly for vocals and "other" sources.

Approach Vocals (SDR) Drums (SDR) Bass (SDR) Other (SDR)
BLSTM Baseline 3.82 4.14 2.48 2.35
Proposed (Tied Spherical) 4.49 4.23 2.73 2.51

Additionally, the model enables Query-by-Example. By passing a short snippet of an isolated instrument (like a snare drum) through the network, one can "fit" a Gaussian to its embeddings and use that Gaussian to extract similar sounds from a completely different mixture without any additional training.

Example of query-by-example: using a snare drum query to extract similar sounds from a complex mixture.

Limitations and Future Work

  • Class Constraints: The current formulation assumes each mixture contains at most one source per class label.
  • Scaling: While the model handles four classes well, future work is needed to see how it scales to dozens or hundreds of different instrument types or general audio events.
  • Dynamics: The authors suggest further investigation into the dynamics of how these embedding spaces form during training to better understand the "separation objective" they observed.

Summary updated

BibTeX
@inproceedings{seetharaman2019class,
  author = {Prem Seetharaman and Gordon Wichern and Shrikant Venkataramani and Jonathan Le Roux},
  title = {{Class-conditional Embeddings for Music Source Separation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2019},
  doi = {10.1109/icassp.2019.8683007},
}
Figure