Stem-JEPA: A Joint-Embedding Predictive Architecture for Musical Stem Compatibility Estimation
Alain Riou, Stefan Lattner, Gaëtan Hadjeres, Michael Anslow, Geoffroy Peeters
TL;DR
We address automatic stem compatibility estimation by learning to predict embeddings of a missing stem from a context mix using Stem-JEPA, a joint-embedding predictive architecture. Stem-JEPA comprises an encoder and a predictor trained in a self-supervised fashion on a 20k-track multi-track dataset, operating on 8-second Log Mel spectrogram chunks with instrument-label conditioning. Embeddings capture timbre, rhythm, and harmony and support stem retrieval, temporal alignment analysis, and several downstream MIR tasks; optimization minimizes the mean-squared error between normalized predicted and target embeddings, $\mathcal{L}(\tilde{\boldsymbol{z}}, \boldsymbol{\bar{z}})$, with the target encoder updated by EMA. Results on MUSDB18 and a user study demonstrate competitive retrieval performance and meaningful musical structure in the learned representations, suggesting potential applications in stem generation and automatic arrangement.
Abstract
This paper explores the automated process of determining stem compatibility by identifying audio recordings of single instruments that blend well with a given musical context. To tackle this challenge, we present Stem-JEPA, a novel Joint-Embedding Predictive Architecture (JEPA) trained on a multi-track dataset using a self-supervised learning approach. Our model comprises two networks: an encoder and a predictor, which are jointly trained to predict the embeddings of compatible stems from the embeddings of a given context, typically a mix of several instruments. Training a model in this manner allows its use in estimating stem compatibility - retrieving, aligning, or generating a stem to match a given mix - or for downstream tasks such as genre or key estimation, as the training paradigm requires the model to learn information related to timbre, harmony, and rhythm. We evaluate our model's performance on a retrieval task on the MUSDB18 dataset, testing its ability to find the missing stem from a mix and through a subjective user study. We also show that the learned embeddings capture temporal alignment information and, finally, evaluate the representations learned by our model on several downstream tasks, highlighting that they effectively capture meaningful musical features.
