Stem separation, also called music source separation, is the process of splitting a mixed audio recording into its individual component tracks, known as stems, such as vocals, drums, bass and the remaining instruments. Modern tools perform it with deep neural networks trained on multitrack recordings, which is why an AI stem splitter now sits beside generators and voice tools in the field of Generative media.
Unlike a mixing desk, which combines sources, stem separation solves the inverse problem: it estimates the original sources from a single stereo mixture in which they overlap in time and frequency. The task has no exact solution, so every result is an estimate, and its quality depends on the model, the genre and how densely the original mix was produced.
How AI models separate a mix into stems
AI stem separation works by training a network to predict, for each target source, either a mask over a spectrogram or the source waveform directly. Training uses datasets where both the isolated stems and their sum are known, so the model learns which acoustic patterns belong to a voice, a snare drum or a bass line.
Spectrogram-domain models convert audio with a short-time Fourier transform, estimate a soft mask for each source and apply it to the mixture spectrogram. Waveform-domain models process raw samples and can recover phase information that masks ignore. Hybrid models combine both branches, and current leading systems use transformer layers to capture long-range musical context.
The following table compares the main architectural families used in stem separation.
| Approach | Input representation | Strength | Weakness |
|---|---|---|---|
| Spectrogram masking | Magnitude spectrogram | Fast, stable training | Reuses mixture phase |
| Waveform models | Raw audio samples | Models phase directly | Heavier computation |
| Hybrid models | Spectrogram and waveform | Best of both domains | Large and complex |
| Band-split transformers | Frequency bands as sequences | High vocal quality | Slow on long files |
Well-known open models include Spleeter, an early U-Net masking tool, Open-Unmix, and the Demucs family, whose hybrid transformer version became a common baseline. Band-split RoFormer models later set higher scores on public benchmarks.
Stem configurations and quality measures
Stem separation tools offer fixed stem layouts, and the chosen layout determines what can be isolated. The most common research layout follows the MUSDB18 dataset, which defines four targets: vocals, drums, bass and other.
| Layout | Stems produced | Typical use |
|---|---|---|
| Two stems | Vocals and accompaniment | Karaoke, a cappella extraction |
| Four stems | Vocals, drums, bass, other | Remixing, practice tracks |
| Five or six stems | Adds piano and guitar | Transcription, arrangement study |
| Dialog separation | Speech, music, effects | Film and broadcast restoration |
Quality is usually measured with the signal-to-distortion ratio (SDR), expressed in decibels, where higher values mean a closer match to the true stem. Leading models reach roughly 9 to 12 dB on average across MUSDB18 stems, with vocals and drums usually scoring higher than the catch-all other stem. SDR does not capture every perceptual artifact, so engineers still judge results by ear.
Processing time also varies widely. A four-stem hybrid model on a modern consumer GPU usually separates a three-minute song in well under a minute, while CPU-only processing of the same file can take several minutes. Large transformer models and ensemble runs multiply that cost, which is why hosted services often offer a fast mode and a high-quality mode with different models behind them.
Stem separation compared with related audio techniques
Stem separation recovers existing content from a recording, whereas neighboring generative tools create new content. This distinction matters for quality expectations and for rights questions.
| Technique | Input | Output | Creates new audio |
|---|---|---|---|
| Stem separation | Mixed recording | Isolated source estimates | No |
| Phase cancellation | Mix and instrumental version | Rough vocal residue | No |
| Speech enhancement | Noisy speech | Cleaned voice | No |
| Text-to-audio | Text prompt | New sound or music | Yes |
| AI cover song | Song and voice model | Vocal in another voice | Yes |
In practice, the techniques are chained. An AI cover song workflow typically starts with stem separation to isolate the vocal, converts it with a voice model such as RVC, and then remixes it with the separated instrumental.
Practical uses and how to choose a tool
Stem separation is used wherever original multitracks are missing or inaccessible. Producers build remixes and samples, musicians create practice tracks with one instrument removed, and archivists remaster old mono or stereo recordings. Broadcasters separate dialog from music to localize films when the original effects stems are lost.
- Choose a vocal-specialized model when clean a cappella output matters most.
- Choose a multi-stem model when drums, bass and other parts are needed separately.
- Process lossless source files where possible, because compression artifacts reduce quality.
- Use ensemble processing of several models when time allows, since averaging often reduces artifacts.
Limitations, artifacts and rights
Even strong models leave bleed and artifacts, especially when instruments share frequency ranges or when heavy reverb and distortion blur the sources. Typical problems are predictable, so the table below links them to causes and mitigations.
| Artifact | Cause | Mitigation |
|---|---|---|
| Vocal bleed in instrumental | Overlapping harmonics | Use a vocal-specialized model |
| Watery or phasey sound | Mask applied with mixture phase | Use waveform or hybrid models |
| Lost reverb tails | Ambience assigned to wrong stem | Add artificial reverb after separation |
| Smeared transients | Coarse time resolution | Choose models with drum-focused training |
Separation does not change copyright status. An isolated vocal remains part of the original recording and composition, so commercial use of extracted stems generally requires a license from the rights holders, regardless of the technical method used.
A further misconception is that separation can restore what masking destroyed. When a loud guitar completely covers a quiet piano in the same register, the piano information is largely absent from the mixture, and a model can only guess or synthesize a plausible replacement rather than recover the original performance.
Understanding it simply
A finished song is like a smoothie. All the fruits are blended together. Stem separation tries to pull the fruits back apart after blending. An AI model has heard thousands of songs with their separate parts. It learns what a voice sounds like and what a drum sounds like.
The result is never perfect. Some traces of other instruments remain. Still, the parts are often clean enough to remix, practice or restore an old recording.
Applied in practice
A small public radio station wants to rebroadcast a 1970s live concert recording that exists only as a stereo tape transfer. The vocals sound buried under loud brass, and the original multitrack tapes no longer exist. The audio engineer runs the recording through a four-stem hybrid model at 44.1 kHz, using a lossless WAV file as input.
The engineer raises the vocal stem by about 3 dB, applies gentle equalization to the brass stem and adds back a short room reverb to hide the thinner ambience. Listener feedback after the broadcast praises the clearer singing, and the station documents that it holds the broadcast license for the original recording before reusing the stems.