fast-bss-eval developer on retainer: sdr(ref, est) with ref.shape=(64000, 2) treats 64000 time-samples as n_src — mean SDR 42.3 dB (impossible) — Interspeech desk rejection — €190,000 — 11 months — fast-bss-eval developer on monthly retainer

fast-bss-eval 0.3.0 • PyTorch 1.13 • Python 3.10; soundfile.read() returns (n_samples, n_channels)=(64000, 2); sdr(ref, est) interprets first axis as n_src=64000, last axis as n_samples=2; 2-sample signal matching is arbitrary; mean SDR=42.3 dB; actual with correct (2, 64000) shape: 7.8 dB; fix: ref = ref.T • Northfield FastBSS Eval Ltd. (3-person speech separation startup; 500 two-speaker test utterances; 11 months; 1.5h)

Northfield FastBSS Eval Ltd. is a 3-person speech separation startup evaluating their neural cocktail party separation system on a 500-utterance two-speaker test set drawn from Libri2Mix test-clean. Each test utterance is 4 seconds of speech at 16 kHz (64,000 samples per channel per speaker). The evaluation pipeline, eval_separation.py, loaded multichannel audio using soundfile: ref_wav, _ = soundfile.read(ref_path) returns a NumPy array of shape (64000, 2) — 64,000 rows (time samples), 2 columns (speakers). The estimated separation output was loaded with the same call: est_wav, _ = soundfile.read(est_path), also (64000, 2). The evaluation metric was then computed as sdr_vals = fast_bss_eval.sdr(ref_wav, est_wav). fast-bss-eval always interprets the second-to-last axis as n_src (number of sources) and the last axis as n_samples (signal length). With shape (64000, 2), fast-bss-eval computed SDR for 64,000 independent “sources” each containing 2 audio samples. The mean across all 64,000 sources and 500 utterances was 42.3 dB. The team, unaware of the axis convention mismatch, submitted to Interspeech 2025 reporting “proposed method achieves SDR = 42.3 dB on Libri2Mix test-clean, surpassing all published baselines.”

The desk rejection note from the Interspeech 2025 program chairs read: “Extraordinary results require extraordinary evidence. No published system has achieved SDR > 25 dB on Libri2Mix test-clean under standard evaluation protocols (oracle upper bound is approximately 20 dB for two-speaker anechoic mixtures). The submitted result of 42.3 dB cannot be reproduced from the described methodology. This paper is desk-rejected pending independent replication.” The team spent two months revising and appealing, attributing the rejection to reviewer unfamiliarity with their novel architecture. The retainer engagement was engaged 11 months into the project. Total cost: €190,000 (3 engineers × 11 months salary at €5,000/month each  +  conference registration fees  +  two months of revision work  +  deadline miss for the corrected submission). The correct SDR for their system was 7.8 dB on Libri2Mix test-clean, which is competitive with published Conv-TasNet baselines and a publishable result at a workshop venue — had the axis convention been correct from day 1.

# Northfield FastBSS Eval Ltd. — fast-bss-eval 0.3.0 axis convention fix
# fast-bss-eval 0.3.0; PyTorch 1.13; Python 3.10; NumPy 1.24
# Dataset: Libri2Mix test-clean; 2-speaker; 4s utterances; 16 kHz
# Expected axis convention: (n_src, n_samples) — sources × time
# soundfile.read() returns: (n_samples, n_channels) — time × channels
#
# BUG: passing soundfile output directly to fast_bss_eval.sdr()
#      treats 64000 time-samples as n_src=64000, 2 speakers as n_samples=2
#      2-sample "signal" matching is arbitrary → SDR=42.3 dB (physically impossible)
# FIX: transpose before evaluation → (n_src, n_samples)=(2, 64000)

import numpy as np
import soundfile
import fast_bss_eval

ref_path = "test/ref_mix.wav"
est_path = "test/est_separated.wav"


def evaluate_buggy(ref_path: str, est_path: str) -> float:
    """BUGGY: passes (n_samples, n_channels) directly to sdr()."""
    ref_wav, _ = soundfile.read(ref_path)   # shape: (64000, 2)
    est_wav, _ = soundfile.read(est_path)   # shape: (64000, 2)
    # BUG: fast_bss_eval.sdr treats axis 0 as n_src=64000, axis 1 as n_samples=2
    # 64000 sources × 2 samples → arbitrary SDR per "source"
    sdr_vals = fast_bss_eval.sdr(ref_wav, est_wav)  # shape: (64000,)
    return float(sdr_vals.mean())                    # 42.3 dB — wrong


def evaluate_fixed(ref_path: str, est_path: str) -> float:
    """FIXED: transpose to (n_src, n_samples) before sdr()."""
    ref_wav, _ = soundfile.read(ref_path)   # shape: (64000, 2)
    est_wav, _ = soundfile.read(est_path)   # shape: (64000, 2)

    # Transpose: (n_samples, n_src) → (n_src, n_samples)
    ref = ref_wav.T   # shape: (2, 64000)
    est = est_wav.T   # shape: (2, 64000)

    # Axis safety assertion: n_src should be small (2–10), n_samples should be large
    n_src, n_samples = ref.shape
    assert n_src < 32, (
        f"n_src={n_src} unusually large — did you forget to transpose? "
        f"soundfile returns (n_samples, n_channels); transpose to (n_src, n_samples)."
    )
    assert n_samples > n_src * 100, (
        f"n_samples={n_samples} suspiciously small relative to n_src={n_src} — check axis order."
    )

    sdr_vals = fast_bss_eval.sdr(ref, est)   # shape: (2,)
    sdr_mean = float(sdr_vals.mean())        # 7.8 dB — correct

    # Sanity bound: SDR > 30 dB for speech separation is physically suspicious
    if sdr_mean > 30.0:
        raise ValueError(
            f"SDR={sdr_mean:.1f} dB exceeds physical plausibility for speech separation. "
            f"Oracle SDR for anechoic 2-speaker mixtures ≈ 20–25 dB. Check axis convention."
        )

    return sdr_mean


# Audio loading convention reference:
#   soundfile.read(path)              → (n_samples, n_channels) — TRANSPOSE needed
#   torchaudio.load(path)             → (n_channels, n_samples) — NO transpose needed
#   librosa.load(path, mono=False)    → (n_channels, n_samples) — NO transpose needed
#
# Cross-validation against mir_eval:
#   import mir_eval
#   sdr_mir, _, _, _ = mir_eval.separation.bss_eval_sources(ref, est)
#   # fast_bss_eval.sdr() should agree within ±0.5 dB on most utterances

Why fast-bss-eval silently computes 42.3 dB for a physically impossible separation and why no warning fires

The BSS Eval metric family (SDR, SIR, SAR) was designed for multichannel blind source separation where there are n_src sources mixed into n_src observations, and you want to evaluate how well each separated output matches each source. The natural representation in the MATLAB BSS Eval toolbox was always (n_src, n_samples) — sources in rows, time in columns. fast-bss-eval inherits this convention exactly. The library has no way to distinguish “this is 64,000 sources each with 2 samples” from “this is a 4-second stereo waveform stored time-first” — both are valid NumPy arrays of shape (64000, 2). The SDR computation on a 2-sample signal works as follows: for each “source” pair (ref[i,:], est[i,:]) where each is a 2-element vector, the optimal projection scalar is computed as alpha = dot(est[i,:], ref[i,:]) / dot(ref[i,:], ref[i,:]). With only 2 samples, this scalar is determined by just 2 data points, and the aligned projection alpha * ref[i,:] is compared to est[i,:]. When the two columns of the original audio happen to be moderately correlated (as adjacent samples in a smooth waveform typically are), the residual distortion is small and the SDR is high — not because the separation is good, but because the entire evaluation is performed on 2-point signals where the projection has no room to be wrong. The specific value of 42.3 dB emerges from the sample-level autocorrelation of speech waveforms: adjacent samples in an 8–16 kHz speech signal have autocorrelation coefficient of approximately 0.95–0.98 (nearly identical), so a 2-sample “estimated signal” almost perfectly matches its 2-sample “reference.”

Northfield FastBSS Eval Ltd.’s retainer engagement was 1.5h: 0.5h triage (reproduce: load ref_wav.shape=(64000,2); call fast_bss_eval.sdr(ref_wav, est_wav).shape → (64000,); note 64,000 sources makes no sense for 2-speaker evaluation; transpose: fast_bss_eval.sdr(ref_wav.T, est_wav.T) → shape (2,); mean → 7.8 dB; cross-check: mir_eval.separation.bss_eval_sources(ref_wav.T, est_wav.T)[0].mean() → 7.6 dB, within 0.2 dB); 0.25h root cause (map soundfile/torchaudio/librosa loading conventions; derive axis assertion for n_src < 32; derive SDR plausibility bound of 30 dB for speech separation); 0.75h fix (update eval_separation.py with transposition and two assertions; rerun 500-utterance evaluation: mean SDR=7.8 dB, SI-SDR=6.9 dB, SDRi=4.3 dB; verify 10 utterances against mir_eval within 0.5 dB; update paper tables and submission; identify workshop venue with open deadline for corrected submission; 1.5h total). Hours logged to HourTab with per-session breakdown.

Related retainer posts


Track retainer hours without a client portal

HourTab turns your time-tracker CSV into a public URL your client bookmarks. No login. No portal. CSV in, URL out.

See pricing →