Stem separation

Stem separation is the use of AI to split a mixed music recording into its component parts, such as vocals, drums, bass and other instruments, each of which is called a stem.

A finished song is a mixture: every instrument and voice summed into one stereo file. Getting the parts back out used to be close to impossible without the original multitrack recordings. A separation model is trained on songs for which the separate tracks are available, learning what vocals, drums or bass look like in the sound signal, and then estimates each part from a new mixture. Researchers call the task music source separation.

Training data shapes what is possible. The MUSDB18 dataset, released in 2017, contains 150 full songs, about 10 hours of music, each split into four stems: drums, bass, vocals and everything else, with 100 songs for training and 50 for testing. Meta's Demucs models separate the same four stems, and an experimental version adds guitar and piano, though its developers note noticeable bleed between parts, especially piano. In a November 2022 paper, the Hybrid Transformer version of Demucs reached a signal-to-distortion ratio of 9.20 dB on the MUSDB test set using 800 extra training songs, sparse attention and per-stem fine-tuning; trained on MUSDB alone it performed poorly.

The most famous use is the Beatles' "Now and Then", released on November 2, 2023. John Lennon's voice was separated from the piano on his old home demo, using machine learning tools that Peter Jackson's company WingNut Films developed for the 2021 documentary The Beatles: Get Back. The finished song won Best Rock Performance at the Grammy Awards in 2025.

Typical uses include remixing and sampling, practising along with a song minus one part, removing vocals for karaoke, and restoring and remixing old recordings. It also makes it easy to pull an isolated vocal or riff out of a commercial track without the original tapes, which is why it comes up in disputes over sampling and AI music.

In practice, separation is good but not perfect. Faint traces of other instruments, known as bleed, and other artefacts can remain. Results are judged by ear and by measures such as signal-to-distortion ratio, and separating a recording does not change who owns the rights to it.

Common questions

What is a stem in music?

A stem is one component of a mixed song, such as the vocals, the drums or the bass, usually delivered as its own audio file. Stems can be exported from the original recording session or, with AI, estimated from the finished mix.

How does AI stem separation work?

A neural network is trained on songs where the separate parts are known, learning to recognise the patterns of each instrument and voice in the mixed signal. Given a new song, it estimates each part and outputs it as a separate file. The open-source Demucs models, for example, produce vocals, drums, bass and other.

Is it legal to use separated stems?

Separating stems from a song does not give you any rights to it. Using them privately for practice is one thing, but releasing a remix or sample built from someone else's recording generally needs permission from the rights holders.

How did the Beatles use AI on Now and Then?

The song was built on a home demo by John Lennon in which his voice and piano were recorded together. Machine learning tools developed by Peter Jackson's team for <em>Get Back</em> separated the voice from the piano, and the surviving Beatles completed the track, released in November 2023.

Finding more

Search for "music source separation", "stem separation AI" or "Demucs" to compare methods and tools. Reliable sources include research papers on arXiv, the documentation of open-source separation models, and benchmark datasets such as MUSDB18. Treat marketing claims of perfectly clean stems with care, and listen to separated tracks on their own, where bleed and artefacts are easiest to hear.

  • MUSDB18ReferenceThe standard music separation dataset, with its four-stem split and train and test sizes.
  • Hybrid Transformers for Music Source SeparationPaperThe 2022 Hybrid Transformer Demucs paper and its MUSDB results.
  • DemucsOfficialThe Demucs code and models, the stems they separate and known limits of the six-stem model.
  • Now and Then (Beatles song)ReferenceHow machine learning separated Lennon's vocal for the 2023 release, and the song's Grammy win.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.