Source separation takes a finished stereo mix and estimates the individual sources inside it: vocals, drums, bass and everything else. Modern neural models do this far better than anything available a decade ago, but the result is still an estimate. Understanding how the models arrive at it explains the artifacts they leave and sets realistic limits on what cleanup can achieve.
The short version
- Every stem contains some of the others. Separation is an estimate, and no model or setting makes the leftovers disappear entirely.
- A perfect null test proves less than it seems. Stems that add back up to the original can each be full of bleed. The null test section shows a stem with bleed at −20 dB that still nulls completely.
- How much you change the balance decides how much you hear. Raising a stem by 1 dB exposes almost nothing; soloing it exposes everything. The arithmetic is below.
- Try a second model before a cleanup plugin. Models of different families fail in different ways, and the better stem is usually a better starting point than a repaired one.
- One symptom has its own page. If the complaint is a metallic or watery vocal, start with the listening exercise that finds out where it comes from.
The rest of this guide is the reference behind those five points: how the models work, where each artifact comes from, how quality is measured and what cleanup can and cannot do.
Why separation is an estimation problem
A mix is the sum of its sources. Given only the sum, there are infinitely many sets of signals that add up to it, so the sources cannot be calculated; they have to be inferred. A separation model is trained on large collections of songs for which the individual stems are known, and it learns what vocals, drums and bass typically look like. Faced with a new mix, it outputs the stems it judges most plausible.
Two consequences follow. A model performs best on material that resembles its training data, and anything it has rarely seen, such as an unusual instrument or heavy effects, is more likely to be assigned to the wrong stem. And where two sources occupy the same frequencies at the same moment, the information needed to separate them exactly is not present in the mix.
Two families of model
Separation models are often described as if they all apply a mask to a spectrogram. They do not, and the differences matter for the artifacts each produces.
| Family | Published examples | Where it works | Typical weak points |
|---|---|---|---|
| Spectrogram-domain | The spectrogram branch of KUIELab-MDX-Net; Band-Split RoFormer | On a short-time Fourier transform of the mix. Band-split models divide the spectrum into sub-bands and estimate a complex-valued mask for each, so phase is estimated along with magnitude. | Time resolution is tied to the analysis window, which can soften transients; errors appear as shifting, “watery” residue. |
| Waveform-domain | Earlier Demucs versions | Directly on the samples, with a convolutional encoder and decoder. | Good transients; residual errors tend to sound like noise or distortion. |
| Hybrid | Hybrid Demucs; Hybrid Transformer Demucs | A waveform branch and a spectrogram branch run in parallel and their outputs are added. The transformer version shares information between the two domains in its inner layers. | Combines the behaviours of both; which artifacts dominate depends on the material. |
The practical lesson is that different models fail differently on the same passage. Comparing two or three on the most difficult section of a song is more informative than any general ranking.
How separation quality is measured
Published results are usually reported as signal-to-distortion ratio (SDR) on a benchmark such as MUSDB18, the dataset used in the 2018 Signal Separation Evaluation Campaign. For a true source s and an estimate ŝ:
SDR = 10 · log10( ‖s‖² ÷ ‖s − ŝ‖² ) dB
Everything that differs from the true source counts as distortion: residue of other instruments, missing parts of the wanted source and added artifacts. A stem with an SDR of 10 dB contains error energy 10 dB below the source. SDR is an average over whole tracks, and it does not distinguish between kinds of error that sound very different, so it is a guide to a model's general ability and not a prediction for a given song.
The artifacts, and where they come from
- Bleed (interference): residue of other sources in a stem, such as hi-hats in a vocal. It is strongest where sources overlap in frequency and time.
- Missing content: parts of the wanted source assigned elsewhere. Breaths, consonants, reverb tails and vocal doubles are common casualties.
- Shifting residue: an unstable, underwater quality caused by mask errors that change from frame to frame.
- Softened transients and pre-echo: spectrogram processing spreads a sharp event across the length of its analysis window.
- Phase inconsistency: when magnitudes are altered and the phase of the mixture is reused, the result does not correspond exactly to any real signal. It is heard as hollowness or roughness.
- Band limits: some models are trained with a restricted bandwidth. A spectrum analyzer on the stem shows whether the top of the spectrum is missing.
Reproducible synthetic demonstration
How far magnitude masking can go, even with perfect knowledge
Pairs of synthetic noise signals were mixed and then separated with an oracle ratio mask: a mask computed from the true sources, which no real model has access to. The mask scales each time-frequency cell of the mixture by the share of energy belonging to the target and reuses the phase of the mixture (STFT with a 2,048-sample window and 512-sample hop at 44.1 kHz).
| Pair of sources | SDR of the separated target |
|---|---|
| Two white noises, complete overlap in frequency | 4.8 dB |
| Noise band 200 Hz–4 kHz against noise band 60 Hz–12 kHz, partial overlap | 7.1 dB |
| Noise band 100–800 Hz against noise band 2.5–9 kHz, no overlap | 47.9 dB |
For reference, simply halving the mixture of two equal-power sources gives 3.01 dB. Where the sources do not overlap, masking is nearly perfect. Where they overlap completely, even an ideal magnitude mask gains less than 2 dB over that trivial estimate.
What this shows: a limit of magnitude masking with mixture phase on stationary noise. Music is sparser in time and frequency than noise, which is why real separation works much better than the first row suggests, and models that estimate phase or work on the waveform are not bound by this limit. It is a computation on synthetic signals, not an evaluation of any model.
What a null test proves
A null test adds the separated stems together, subtracts the original mix and measures what is left. It is frequently presented as proof of quality. It is a test of something narrower.
Reproducible synthetic demonstration
Stems that null perfectly and are still contaminated
Two band-limited noise signals stood in for a vocal and an accompaniment. In the first two cases a fraction of the accompaniment was moved into the vocal stem and removed from the accompaniment stem. In the third, each stem was given its own independent error. SDR of the vocal stem and the level of the null residual relative to the mix were computed.
| Case | Vocal-stem SDR | Null residual |
|---|---|---|
| Bleed at −20 dB, moved from one stem to the other | 20.0 dB | −323 dB (numerical zero) |
| Bleed at −10 dB, moved from one stem to the other | 10.0 dB | −321 dB (numerical zero) |
| Independent error at −40 dB in each stem | 40.0 dB | −40.0 dB |
The heavily contaminated stems null to the limits of floating-point arithmetic. The much cleaner stems in the third row do not. The null test rewards stems that add up to the mix, which any model that outputs “mix minus vocal” as its second stem achieves automatically.
What this shows: a null test measures additive consistency, not the absence of bleed. It remains useful for one purpose: confirming that the stems are complete and time-aligned with the original.
Why remixing exposes bleed
As long as stems are played back at their original balance, material that leaked from one stem into another still adds up correctly, and the errors are largely inaudible. They become audible in proportion to how far the balance is changed.
Worked engineering example
Raising a vocal stem that carries bleed at −20 dB
Assume the vocal stem contains accompaniment at −20 dB relative to the accompaniment's own level, and that the accompaniment stem is missing exactly that amount. When the vocal stem is raised by a gain g, the part of the bleed that no longer cancels has amplitude (g − 1) times the bleed.
| Change to the vocal stem | Uncancelled bleed, relative to the accompaniment |
|---|---|
| +1 dB | −38.3 dB |
| +3 dB | −27.7 dB |
| +6 dB | −20.0 dB |
| Vocal stem soloed | −20.0 dB, fully exposed |
Small rebalancing moves are forgiving. Large ones, and above all using a stem alone, reveal everything.
Assumptions: bleed that is an exact scaled copy and perfectly complementary between the stems. Real bleed is filtered and time-varying, so cancellation is less complete than this. This is arithmetic, not a measurement.
Practical remediation
Cleanup works when it is aimed at a specific, located problem. A fixed recipe applied to every stem removes wanted signal and often makes things worse.
Choose and combine models first
The largest gains come before any processing. Run two or three models on the hardest passage and keep the stem with the least objectionable residue for each source. Some tools average the outputs of several models, which tends to reduce the errors that the models do not share. Keep a note of the model name, version and settings used for each stem so that the result can be reproduced.
Locate before treating
Solo the stem and move a band-pass filter slowly through the spectrum. Residue that is vague in full range usually sits in an identifiable band and at identifiable moments. There is no universal “artifact band”, so the frequency has to be found on each stem, with a spectrum analyzer as a second opinion.
Bleed between phrases
A gate or downward expander lowers the stem when the wanted source is silent, which removes bleed in the gaps. It does nothing for bleed that sits underneath the wanted signal, and no expander or dynamic EQ can bring back parts of the source that the model assigned elsewhere. These processors change level; they do not recover information.
Isolated events
A stray snare hit in a vocal stem, or a single smeared consonant, is best handled by editing: a clip-gain dip, a short spectral repair in an audio editor, or replacing the syllable from another repetition of the phrase.
Sibilance and high-frequency residue
Where band-solo listening locates residue in a specific high band, a de-esser or dynamic EQ centred there, working only when the residue is present, is the proportionate tool. A broad static high-frequency cut also dulls the source and should be the last resort.
Masking by context
Many separation errors are inaudible once the stem is back in a full arrangement. Judge every cleanup decision in context, at the balance that will be used, and stop when the problem is no longer audible there.
Keep stems aligned
Processed stems must stay sample-aligned with each other and with any material taken from the original mix. Plugins with latency, time-stretching and file padding can all shift a stem. This is the legitimate use of the null test: add the unprocessed stems, subtract the original, and confirm that the residual is as low as it was when the stems were first made.
When separation is the wrong tool
If the original multitrack or stems exist, obtain them. If a part can be re-recorded or reprogrammed, that will sound better than any cleaned stem. Separation is the right choice when neither is possible, and for jobs that tolerate imperfection: creating a guide track, lowering a vocal by a few decibels, practice and transcription. Rights matter as well: separating a recording does not grant any right to use its parts.
Checklist
- Start from the highest-quality copy of the mix.
- Compare two or three models on the hardest passage; record model names and settings.
- Null-test the raw stems against the mix to confirm completeness and alignment.
- Locate each problem by band-solo listening before choosing a tool.
- Use gates or expanders for gaps, editing for isolated events and narrow dynamic processing for located residue.
- Judge in context at the intended balance, and keep rebalancing moves modest.
- Re-check alignment after processing.
Primary technical references
- A. Défossez, “Hybrid Spectrogram and Waveform Source Separation”, arXiv:2111.03600. Hybrid Demucs.
- S. Rouard, F. Massa and A. Défossez, “Hybrid Transformers for Music Source Separation”, arXiv:2211.08553. Hybrid Transformer Demucs.
- M. Kim, W. Choi, J. Chung, D. Lee and S. Jung, “KUIELab-MDX-Net: A Two-Stream Neural Network for Music Demixing”, arXiv:2111.12203.
- W.-T. Lu, J.-C. Wang, Q. Kong and Y.-N. Hung, “Music Source Separation with Band-Split RoPE Transformer”, arXiv:2309.02612.
- F.-R. Stöter, A. Liutkus and N. Ito, “The 2018 Signal Separation Evaluation Campaign”, arXiv:1804.06267. The MUSDB18 benchmark and evaluation.
- E. Vincent, R. Gribonval and C. Févotte, “Performance measurement in blind audio source separation”, IEEE Transactions on Audio, Speech, and Language Processing, vol. 14, no. 4, 2006, pp. 1462–1469. Definition of SDR and related measures.
- Julius O. Smith III, Spectral Audio Signal Processing, CCRMA, Stanford University. The short-time Fourier transform and overlap-add resynthesis.