Closing the Loop Between Separator and Detector in Streaming Sound Event Detection

Many audio recognizers now run as two stages. A separation network first pulls the sound of interest out of a noisy mixture, and a small detector then decides when that sound occurs. The detector is usually a convolutional recurrent neural network (CRNN): convolutions read local time–frequency patterns, and a recurrent layer tracks how they unfold over time. This arrangement has a familiar weakness. When the separator suppresses a quiet or overlapped event, or smears it with artifacts, the detector never sees the event and cannot bring it back. Every published fix in the file keeps information flowing one way, from separator to detector. We propose adding a return path. The detector's recurrent state holds its current belief about which events are active, and in a streaming system that belief can be fed back to condition the separator on the next chunk of audio. An error the separator makes at one moment then becomes something the detector's context can correct a moment later.

The detector already carries the temporal context the separator lacks, and it is the component that pays for the separator's mistakes. Letting it steer the separator turns a one-way cascade into a feedback loop. A feedback loop has a failure mode of its own, where a wrong belief makes the separator hide exactly the evidence that would correct it. The proposal therefore treats the stability of this loop as a central object of study rather than a footnote.

Core Claim

In a streaming system built from a text-queried separator and a CRNN detector, conditioning the separator on the detector's previous recurrent state will reduce "unrecoverable deletions" on polyphonic benchmarks. Unrecoverable deletions are events whose energy the separator removed. The loop only helps if it is trained on the detector's own imperfect beliefs, much as sequence models are trained on their own predictions to avoid compounding errors. If it is trained on ground-truth beliefs, we expect it to amplify errors at test time. Fine-tuning the pipeline end to end, adding soft confidence hints, or learning the fusion weights should not produce the same gain, because none of these gives the separator access to context from before the current chunk.

Where This Sits

Two strands of prior work motivate the proposal by documenting the one-way cascade. Exploring Text-Queried Sound Event Detection with Audio Source Separation (TQ-SED) freezes a recurrent separator, AudioSep-DP, and runs 0.25M-parameter CRNN detectors on its separated waveforms. Its authors leave joint training to future work, and the detector remains exposed to separator deletions. Improving Sound Event Detection in Domestic Environments using Sound Separation compares three ways of combining a frozen separator with a CRNN: concatenating inputs early, concatenating features in the middle, and averaging output probabilities late. Late averaging wins because the raw mixture serves as a backup path. Guided multi-branch learning systems for sound event detection with sound separation finds that models trained on separated audio are individually worse and add almost nothing to an ensemble. All three are strictly feed-forward.

Two other papers supply mechanisms we reuse and at the same time constrain the design. Robust Keyword Spotting for Noisy Environments by Leveraging Speech Enhancement and Speech Presence Probability passes a soft speech-presence map, a per-pixel estimate of whether speech is present, from the enhancer to the classifier. That work covers isolated 1-second words with non-recurrent networks, so its hint carries no history. SNRi Target Training for Joint Speech Enhancement and Recognition shows that a downstream recognizer benefits from telling the enhancer how aggressive to be. SNRi here means the signal-to-noise-ratio improvement the enhancer aims for. That paper supports our intuition that downstream needs should steer the upstream stage. Its control signal, however, is a single scalar predicted from the noisy input, it needs clean paired speech, and it is applied to speech recognition. Our control signal is a time-varying, multi-class belief taken from the detector's own recurrent state.

The file also contains a warning. Sound Event Detection and Separation: A Benchmark on Desed Synthetic Soundscapes shows that CRNN detectors trained on 10-second clips break on 60-second clips and fail near clip edges. A streaming loop has to be built so that it does not inherit those failures. The benchmark also gives us a controllable testbed for them.

Research Program

The system processes audio in chunks of about one second. For chunk $t$, the separator takes the mixture chunk, the text query embedding, and a conditioning vector $c_t$. It outputs one separated track per queried class. The CRNN detector reads the separated tracks together with the raw mixture, keeping the backup path that Improving Sound Event Detection in Domestic Environments using Sound Separation found essential. The detector updates its recurrent state $h_t$ and emits frame-level event probabilities. The conditioning for the next chunk is

$$c_{t+1} = g_\phi(h_t),$$

where $g_\phi$ is a small learned projection. The vector $c_{t+1}$ modulates the separator's intermediate features through a per-channel scale and shift, and it is inserted only at the separator's bottleneck.

The separator backbone, AudioSep-DP as in TQ-SED, stays frozen. Only the modulation adapters, $g_\phi$, and the detector are trained. This keeps the compute modest, isolates the effect of the loop from simply having more trainable separator capacity, and avoids needing clean references for the separator.

Training uses truncated backpropagation over windows of $K$ consecutive chunks. The key design choice is where the fed-back belief comes from. We compare three sources:

  • beliefs computed from ground-truth labels;
  • the detector's own states;
  • a scheduled mix that starts from ground truth and moves to the detector's own states.

Our prediction is that training on ground-truth beliefs will produce a loop that locks in its own mistakes at test time. This is the cascade problem reappearing inside the loop.

Two analysis tools come with the model. The first is a deletion-recovery measure. For each reference event, we use the known isolated source in the synthetic data to check whether the chunk-wise separator output retains the event's energy, and then ask whether the detector still fires. The second is an error-persistence probe. We inject a false belief into $c_t$ and count the chunks until the detector's output returns to its unperturbed trajectory. These two measures separate "the loop helps" from "the loop is merely stable."

Baselines

The do-nothing reference is a CRNN detector trained on the raw mixture alone, with the same architecture and training data as our detector. The published DCASE 2020 baseline of this type reports 37.8% event-based F1 on the DESED evaluation set, according to Improving Sound Event Detection in Domestic Environments using Sound Separation.

The strongest existing coupling on DESED is that paper's late-integration system, a frozen separator with a CRNN and power-mean fusion. It reports 40.7% F1 and a Polyphonic Sound Detection Score (PSDS) of 0.570 on the evaluation set. We will rerun it with our separator so that the backbone is shared. We will also include a variant with learned fusion weights, so the comparison is not against a hand-tuned heuristic.

On MAESTRO-Real, the strongest baseline is feed-forward TQ-SED. Exploring Text-Queried Sound Event Detection with Audio Source Separation reports a 7.22% F1 improvement over the conventional framework, but gives no absolute F1 in the file. We will therefore reproduce it ourselves and report both the conventional framework and TQ-SED under our own evaluation.

Every system receives the same training data, the same frozen separator, and the same number of trainable parameters. The feed-forward baselines get the modulation adapters too, driven by the current chunk's own features instead of $h_{t-1}$. All systems get an equal hyperparameter search budget and are streamed over the same one-second chunks.

Two ablations isolate the key ingredient. The first, "feedback without history," feeds the adapter a belief computed only from the current chunk. The second, "shuffled feedback," supplies $h$ from a different clip, which tests whether the gain is just added capacity or noise. Ground-truth feedback at test time serves as an upper bound.

We count the proposal as beating the baselines if the self-trained loop improves PSDS and event F1 on the DESED evaluation set over learned-weight late integration beyond seed variance. It must also improve deletion recovery specifically on overlapped events, and it must beat both ablations.

Why not just…?

Why not just fine-tune the separator and detector end to end, as TQ-SED suggests? This is the most serious threat, so we will run it at equal trainable-parameter count. Joint fine-tuning can teach the separator to keep what the detector needs, but only from within the current chunk. It cannot use the fact that an event began two seconds earlier. The evidence in SNRi Target Training for Joint Speech Enhancement and Recognition cuts against naive joint training: it reports WER 1.5% (dry) and 5.7% (reverb) worse than steered training. That result comes from speech recognition, though, not from event detection. The deciding measure is deletion recovery on long, overlapped events. If end-to-end fine-tuning closes that gap, the loop is unnecessary, and we will report that outcome.

Why not just pass a soft confidence map from separator to detector? The speech-presence hint in Robust Keyword Spotting for Noisy Environments by Leveraging Speech Enhancement and Speech Presence Probability added about 3% accuracy across noise levels. We include it as a baseline, fed to the same CRNN. A hint can tell the detector where the separator was unsure, but it cannot restore energy the separator already discarded. Our deletion-recovery measure is designed to show whether that distinction matters in practice.

Why not just keep the raw mixture path and learn the fusion? Late integration already buffers the detector against artifacts, and the learned-weight version is a baseline here. Its limitation is that the separated tracks are only as informative as the separator's context-free output. If learned fusion matches the loop on overlapped events, the extra machinery is not justified.

Why not just train one big CRNN on heavily augmented mixtures? Sound Event Detection and Separation: A Benchmark on Desed Synthetic Soundscapes reports that reverberation cuts F-scores by about 15% across all tested systems. It also reports that heavy noise costs 19% without separation versus 12.5% with it. Separation therefore carries value that augmentation alone does not. We still train the mixture-only baseline with the same augmentation.

Proposed Experiments

The primary testbed is DESED synthetic soundscapes, generated with controlled overlap, reverberation, and noise. The controlled generation gives access to isolated sources, which the deletion-recovery measure needs. Headline numbers are reported on the DESED real evaluation set, using event-based F1 and PSDS. MAESTRO-Real serves as the real-world polyphonic check, using segment- and event-based F1, and we examine classes that never occur in isolation. The file notes that "brakes squeaking" gained 26.71% under TQ-SED, which makes it a natural probe for whether feedback helps further on masked classes.

Three decisive checks follow. First, on 60-second clips with systems trained on 10-second clips, the loop should degrade less than feed-forward baselines, because the belief is carried across chunks instead of reset at each clip. Second, for events whose onset falls near chunk boundaries, the loop should narrow the edge blind spot. Third, the error-persistence probe should show that the self-trained loop recovers from injected false beliefs within a few chunks, while the loop trained on ground-truth beliefs does not. The third check confirms or refutes the claim that the feedback path must be trained on the detector's own errors.

A negative result on any of these checks would still be informative. It would show whether pipeline error in audio is dominated by missing temporal context or by artifacts the detector simply has to tolerate.