FROM AGPEDIA — AGENCY THROUGH KNOWLEDGE

Demucs

Demucs is a family of open-source music source separation models, developed by Alexandre Défossez and colleagues at Facebook AI Research (later Meta), that split a recorded song into stems: drums, bass, vocals and everything else.[1:1][2:1] The first version (2019) separated audio directly in the waveform domain, at a time when the best systems worked by masking a spectrogram.[1:2][1:1] Its successor, Hybrid Demucs, works in both domains and won the Music Demixing Challenge of 2021.[3:1] The current version, Hybrid Transformer Demucs, reaches 9.00 dB signal-to-distortion ratio on the MUSDB18-HQ test set, or 9.20 dB with further refinements.[2:1] Its code is under the MIT license; the license of its trained weights is unclear.[2:2]

Versions

Demucs (2019)

Défossez, Nicolas Usunier, Léon Bottou and Francis Bach began by adapting Conv-Tasnet, a waveform model built for speech separation, to music. It scored well, but listening to its output they heard a constant broadband noise, hollow instrument attacks and missing parts, especially on drums and bass.[1:3] Demucs, like Conv-Tasnet, takes the raw waveform and produces a waveform for each source, but was inspired by models for music synthesis rather than by masking: a U-Net with a convolutional encoder, a decoder of wide transposed convolutions, and a bidirectional LSTM between them.[1:3]

At the 2018 evaluation campaign the best waveform model had averaged 3.2 dB SDR against 5.3 dB for the best spectrogram-masking system.[1:2] Trained with suitable data augmentation, Demucs averaged 6.3 dB on MUSDB18, beating all existing architectures, and 6.8 dB with 150 extra training songs, when it surpassed the ideal-ratio-mask oracle on bass. Listeners rated its audio considerably more natural, though it let some sound bleed between sources, especially between vocals and the "other" stem.[1:1] Pitch and tempo shifting of the training data gained 0.4 dB; training also made new mixtures by shuffling stems between songs, swapping stereo channels, scaling stems at random and flipping their sign.[1:4]

Hybrid Demucs (2021)

Hybrid Demucs lets the model decide, for each source, whether to work on the waveform or the spectrogram, or to combine them.[3:1][3:2] It has a temporal branch that processes the waveform as the original Demucs did, a spectral branch that processes a short-time Fourier transform, and shared layers between them; the spectral output is converted back to a waveform and added to the temporal one.[3:3] It won Sony's Music Demixing Challenge 2021, placing first among systems trained only on MUSDB18 with 7.32 dB.[3:1][3:4] Compared with the original Demucs it gained 1.4 dB, and listeners rated its quality 2.83 out of 5 against 2.36, and its freedom from other sources' contamination 3.04 against 2.37.[3:1] Défossez notes that each domain leaves its own artifacts: spectrogram methods can make drum and bass attacks sound hollow, while waveform separation of vocals can add "crunchy static noise".[3:5]

Hybrid Transformer Demucs (2022)

Simon Rouard, Francisco Massa and Défossez replaced the innermost layers of Hybrid Demucs with a Transformer encoder that uses self-attention within each domain and cross-attention between them.[4:1] The model can draw on up to ten seconds of context.[4:2] Transformers need much data, and the model performed poorly when trained on MUSDB18 alone; with 800 extra songs it beat Hybrid Demucs by 0.45 dB, and reached 9.20 dB with sparse attention and fine-tuning for each source.[4:3] The 800 songs came from an internal dataset, kept only where measurements showed that each stem was present and leaked little into the others.[4:1] This version became the default in Demucs 4.[2:1]

An experimental six-source model adds guitar and piano stems. Its author found the guitar stem of okay quality but the piano stem full of bleeding and artifacts.[2:1]

Use and maintenance

Demucs runs on a CPU at roughly 1.5 times the length of the track. An optional "shift trick" averages predictions over randomly shifted copies of the input, multiplying the computation by the number of shifts.[2:3] Since leaving Meta, Défossez has maintained the project himself but no longer works on it actively; version 4.1.0, released in July 2026, modernized its packaging and moved the pretrained models to Hugging Face.[2:4]

The trained weights carry the restrictions of their training data. MUSDB18 contains material usable only for research, and the six-source model was trained only on a Meta internal dataset, so the README cannot say under what license the weights may be used.[2:2][5:1]

Limitations

Like most separation systems of its period, Demucs separates the four stems of MUSDB18, so every instrument other than drums, bass and voice ends up in "other".[4:4] On the MoisesDB dataset, Hybrid Transformer Demucs outperformed oracle methods for bass and drums but was slightly worse than them for the other, piano and guitar stems.[6:1] Its scores are signal-to-distortion ratios, which do not always agree with listeners: in the 2023 Sound Demixing Challenge, the system ranked third by SDR came first with music producers and musicians.[7:1]

  1. ^a ^b ^c ↗ dm-abstract ^a ^b ↗ spectrogram-masking-ahead ^a ^b ↗ dm-design ^ ↗ dm-augmentation Défossez, Alexandre; Usunier, Nicolas; Bottou, Léon; Bach, Francis (2019). Music Source Separation in the Waveform Domain. arXiv. https://arxiv.org/abs/1911.13254.
  2. ^a ^b ^c ^d ↗ rm-v4 ^a ^b ↗ rm-license ^ ↗ rm-cpu ^ ↗ rm-maintenance Défossez, Alexandre. Demucs Music Source Separation (README). GitHub. https://github.com/adefossez/demucs.
  3. ^a ^b ^c ^d ↗ hd-abstract ^ ↗ two-domains ^ ↗ hd-branches ^ ↗ mdx ^ ↗ artifacts Défossez, Alexandre (2021). Hybrid Spectrogram and Waveform Source Separation. Proceedings of the MDX Workshop. https://arxiv.org/abs/2111.03600.
  4. ^a ^b ↗ ht-architecture ^ ↗ context ^ ↗ transformer-data ^ ↗ four-stem-focus Rouard, Simon; Massa, Francisco; Défossez, Alexandre (2023). Hybrid Transformers for Music Source Separation. ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing. https://doi.org/10.1109/ICASSP49357.2023.10096956 https://arxiv.org/abs/2211.08553.
  5. ^ ↗ sg-sources SigSep. MUSDB18. SigSep: open resources for music source separation. https://sigsep.github.io/datasets/musdb.html.
  6. ^ ↗ htdemucs-stems Pereira, Igor; Araújo, Felipe; Korzeniowski, Filip; Vogl, Richard (2023). MoisesDB: A Dataset for Source Separation beyond 4-Stems. Proceedings of the 24th International Society for Music Information Retrieval Conference. Milan. https://arxiv.org/abs/2307.15913.
  7. ^ ↗ listening-test Fabbro, Giorgio; Uhlich, Stefan; Lai, Chieh-Hsin; Choi, Woosung; et al. (2024). The Sound Demixing Challenge 2023 – Music Demixing Track. Transactions of the International Society for Music Information Retrieval. https://doi.org/10.5334/tismir.171 https://arxiv.org/abs/2308.06979.
Available in