A Good Stem Can Still Collapse the Room
Source separation is usually graded on signal distortion. For binaural audio, that misses whether the instrument stayed on the listener's left or snapped to the center.
binauralbench synthesizes a lateralized source with a known interaural level difference, mixes in an interferer, and grades separated output on whether that spatial cue survives.
Grade the Spatial Cue
The benchmark measures ILD before and after separation. A mono mask can sound clean and delete the cue entirely. A linked mask applies one shared decision to both ears without flattening the energy difference between them. The outputs are stereo WAV files, so a pair of headphones makes the metric audible.
The Number
The target ILD is 8.20 dB. As published, naive separation lands at 0.00 dB and linked separation at 8.22 dB, removing 99.8% of the spatial error. The next section is why that number describes a lookup, not a separator.
Both Methods Were Handed the Answer
Each ear's gain was estimated by projecting the mixture onto the clean target waveform, and both methods rendered their output as that gain times the clean target. Neither separated anything. The 99.8% measured how well least squares recovers a gain when you already hold the source, and the naive 0.00 dB was guaranteed, because both of its channels were the same array. An earlier version of this page stress-tested 70 configurations and called it "not a hidden oracle read." It was one.
So I built the version a real pipeline would face. binauralbench_v2 sees only the two-channel mixture. It finds the two source frequencies from the mixture's own spectrum, places a crossover between them, and builds one STFT mask. Then it renders the target three ways: mono (separate the mid channel and play it in both ears), per-ear (mask each ear, then normalize each to a common level), and linked (the same mask on each ear's own spectrum, channel energies untouched).
Mono and per-ear output both flatten the cue, with a mean ILD error of 8.0 to 9.0 dB. The linked mask's mean error is 1.24 dB on 40 tuning scenes, 1.51 dB on a 30-scene holdout, and 1.53 dB on 30 hard scenes where the sources sit close in frequency and the interferer is louder. That's about 81 to 85% less spatial error, not 99.8%. It's a smaller number, and it's the first one on this page that describes separation. 11 tests pass on GitHub Actions across Python 3.9 through 3.13.
Research Basis
Inspired by the 2025 binaural source-separation study, which evaluates on MUSDB18-HQ and open HRTFs. Every number on this page comes from this repository's own controlled benchmark, not from the paper.
Try It
Standard library only, FFT included:
git clone https://github.com/ahmeddoghri/binauralbench && cd binauralbench
python binauralbench.py # the published 99.8%, oracle reference included
python binauralbench_v2.py # mixture only: linked ILD error 0.01 dB, mono 8.2 dB
python eval_v3.py # 100 scenes: linked cuts spatial error ~81-85%