Sound-Triggered Smoothing for Audio-Visual Event Detection

Models that label video moment by moment tend to flicker: the predicted label jumps between classes from one frame to the next because of lighting changes, camera shake or brief occlusions, even though the real event changes slowly. The standard fix is to smooth the output over time, for example with a moving average. Smoothing has a cost. It blurs and delays the sharp moments where an event actually starts or stops, and in sound those moments are often only milliseconds long (a click, a crack, a door snapping shut). Vision and audio fail in opposite ways here. Visual evidence changes gradually but jitters. Audio evidence is noisy too, but its onsets are sharp and precisely timed. This proposal uses each modality to decide when the other should stop smoothing. Visual predictions are smoothed heavily, except at moments when the audio stream signals that something has just begun or ended. At those moments the visual smoother is reset and responds immediately.

Concretely, we would build a multi-rate CRNN, meaning a convolutional recurrent network: convolutional layers extract local patterns from each input frame, and a recurrent layer carries memory across time. Audio runs at roughly 20 ms per frame and video at its native frame rate. Each modality keeps a running smoothed state, and the rate at which that state forgets the past is set by onset and confidence signals from the other modality. The whole system is trained end to end. It does not need to win on the 1-second benchmarks where flicker is invisible. The question is whether this explicit, cross-modal structure beats a recurrent network that is free to learn any smoothing it likes, measured on benchmarks with fine-grained boundaries and under deliberate corruption of one modality.

Core Claim

The claim is that the right amount of temporal smoothing for one modality is best decided by the other modality's evidence of change, not by a fixed window or by the modality's own history. We write each modality's smoothed state as an input-dependent leaky integrator, a running average whose forgetting rate changes over time. For the visual stream,

$$s^v_t = (1-\alpha^v_t)\, s^v_{t-1} + \alpha^v_t\, f^v_t, \qquad \alpha^v_t = \sigma\!\left(w_o\, o^a_t + w_c\, c^v_t + b\right),$$

where $f^v_t$ is the visual convolutional feature at time $t$, $s^v_t$ the smoothed visual state, $o^a_t$ a learned audio onset/offset strength, $c^v_t$ a learned visual reliability score that drops under occlusion or darkness, $\sigma$ the logistic function, and $w_o, w_c, b$ learned scalars. The audio stream is updated symmetrically. Its forgetting rate $\alpha^a_t$ depends on visual motion evidence and on audio reliability, so that a loud noise burst with no visual counterpart is damped rather than allowed to switch the label.

A plain gated recurrent unit already contains an update gate with this algebraic form. The difference here is that our gates are restricted to take a small number of interpretable cross-modal signals. We will test whether that restriction helps where theory suggests it should: when training data is limited, when one modality is corrupted at test time, and when a deployment needs a single knob to trade jitter against latency.

Relation to Prior Work

Several papers motivate the gap. Real-Time Online Video Detection with Temporal Smoothing Transformers (TeSTra) rewrites streaming attention as box or exponential smoothing kernels that can be updated in constant time and memory. Its decay rate is fixed and it uses only visual features. Our forgetting rate is the same exponential kernel, but it varies over time and is driven by the other modality. QueryStream keeps a running average of visual features so that genuine scene changes can be told apart from camera wobble, again within a single modality. Output filters such as the five-point posterior average in Real Time Detection of Soft Voice for Speech Enhancement, the exponential decay in Eyemotion and the mode filter in LERMO are applied after training and see one stream. Our post-hoc baselines take their form from these papers.

Other work supplies the architecture. R-CRNN shows that a convolutional front-end plus a bidirectional GRU, trained end to end to output event intervals, halves the event error rate of a purely convolutional detector on DCASE 2017. That result is the main argument for keeping recurrence. R-CRNN uses audio only, and the file notes that its recurrent states remain vulnerable to noise bursts. Convolutional Recurrent Neural Networks for Small-Footprint Keyword Spotting supports the cheap audio front-end design.

Audio-visual work both motivates and constrains the design. Audio-Visual Event Localization in Unconstrained Videos finds that late fusion after per-modality LSTMs beats early fusion. That pushes us toward keeping a separate state per modality and coupling the modalities only through the gates. However, that paper works on 1-second segments and applies no output smoothing. EPIC-Fusion shows that sound and sight are naturally offset in time and handles this with a random sampling window during training. Our onset signal must therefore be allowed to lead or lag. We give the gate a short learned temporal kernel over $o^a$ rather than an instantaneous value. Epic-Sounds annotates sound boundaries independently of vision. That gives us the fine-grained ground truth our claim needs.

Unified Multisensory Perception (the Hybrid Attention Network, HAN) uses label smoothing as a static regularizer for weak labels, and Temporal Label Smoothing for Early Event Prediction smooths training targets before an event onset. Both act on the loss, not on inference dynamics. The second also assumes that certainty rises steadily toward an event, which fails for offsets. We do not adopt that assumption.

Research Program

The model has three parts. The first is an audio CRNN on log-mel spectrograms at about 20 ms resolution, with a small head that outputs $o^a_t$ (onset/offset strength) and $c^a_t$ (audio reliability). The second is a visual branch on frozen per-frame features at native frame rate, with heads for $c^v_t$ and a motion-change score. The third is the pair of cross-gated leaky integrators. They are evaluated on a shared 40 ms clock, and visual states are held between video frames, which handles the frame-rate mismatch without resampling the video. A small fusion recurrent layer and a frame-wise classifier sit on top. All three parts are trained jointly with frame-level cross-entropy plus an auxiliary onset loss on $o^a$, supervised from boundary annotations where they exist.

The system runs causally, in streaming mode, with constant memory. For deployment it exposes one scalar, an offset added to $b$, which moves the operating point between stability and responsiveness without retraining.

The analysis tests three things. First, whether learned $\alpha^v_t$ actually spikes at annotated sound onsets. Second, whether $c^v_t$ falls under synthetic occlusion. Third, whether the gains concentrate near event boundaries rather than in event interiors. If none of these hold, the structure is not doing what we claim, whatever the headline metric says.

Baselines

The naive reference point is the same CRNN backbone with fusion but no smoothing, predicting frame by frame. It sets the floor for flicker and for boundary error.

The strongest post-hoc competitor is per-class tuned output filtering on that same model. We try a moving average, a median filter, and an exponential filter as in Eyemotion. Window length or decay is tuned separately per class on the validation split, with a search budget equal to the proposal's total hyperparameter budget. We also add decoding with a two-state hidden Markov model and the Viterbi algorithm, which finds the most likely on/off sequence given a penalty for switching state, with transition penalties tuned per class. Beating these means lower event-based error at equal or lower onset latency.

The strongest learned competitor, and the real threat, is an unconstrained GRU or bidirectional GRU back-end in the style of R-CRNN. It receives the same audio and visual features, has a matched parameter count, uses the same training schedule and tuning budget, and has the same causal constraint in streaming runs. On DCASE 2017 R-CRNN reports an event-based error rate of 0.09 against 0.18 for R-FCN, and we expect our audio branch alone to reproduce that regime as a sanity check.

For a temporal-model competitor we adapt TeSTra's fixed exponential kernel to both streams, with its decay tuned. This isolates "adaptive versus fixed" smoothing.

Two ablations isolate the key ingredient. One drives each modality's gate by its own onset signal only (self-gated). The other removes the reliability inputs $c$.

On the benchmarks, the strongest reported numbers in the file are the following. On EPIC-SOUNDS, sound detection mAP of 11–14% with audio-visual models above audio-only (Epic-Sounds). On AVE, supervised accuracy of 83.1% for AVSGN (Audio-Visual Semantic Graph Network), which uses CLIP and CLAP features. On LLP, joint audio-visual segment accuracy of 48.9% for HAN (Unified Multisensory Perception). I found no reported result on Lacuna for TeSTra's EPIC-Kitchens-100 detection metrics, so we will rerun it. On AVE we will compare at matched features: we swap our encoders for AVSGN's where possible rather than claiming to beat 83.1% with weaker encoders.

Why not just…?

Why not just tune a median filter or HMM decoding on the fused output? Fixed filters must pick one window for both sharp audio onsets and slow visual changes. The file's evidence against post-hoc smoothing is indirect: R-CRNN's halving of error over a convolutional detector with heuristic post-processing, and Temporal Label Smoothing's gains over heuristic targets. Neither tests a well-tuned per-class filter on audio-visual data, so this is a genuine open comparison. The experiment that settles it is boundary-stratified error. If tuned filters match us within a few frames of boundaries and also under single-modality corruption, the learned gating is not worth its complexity.

Why not just let a GRU on concatenated audio-visual features learn its own smoothing? This is the most serious threat, because a GRU's update gate can represent our integrator exactly. Our bet is about sample efficiency and robustness, not expressiveness. We therefore run the comparison across training-set fractions (10%, 30%, 100%) and under test-time corruption the model never saw in training: occlusion masks, darkening, and added background noise. If the free GRU matches us everywhere, we report that the cross-modal structure is unnecessary. The interpretable gate and the single control knob would then be the only remaining contributions.

Why not just use cross-attention as in HAN or a graph network as in AVSGN? These models have produced the best AVE and LLP numbers, but they operate on 1-second segments, where sub-second flicker and onset latency are invisible. They are also not streaming at constant memory. We run HAN at its native resolution and with frame-level upsampled outputs on EPIC-SOUNDS. If it matches our boundary metrics, the case for recurrence plus gating weakens to an efficiency argument only.

Proposed Experiments

The primary benchmark is EPIC-SOUNDS sound detection, using mAP and event-based error with onset/offset collars of 100 ms and 250 ms. It has fine, vision-independent boundaries and current detection mAP is low. EPIC-Kitchens-100 action boundaries give the visual-onset analogue. AVE and LLP serve as secondary checks that coarse accuracy is not hurt. DCASE 2017 Task 2 validates the audio branch alone.

Beyond accuracy, we report spurious label switches per minute, median onset latency in streaming mode, and the full stability–latency curve traced by the deployment knob. Comparisons are made at matched latency.

The decisive checks are three. The cross-gated model must beat the self-gated ablation specifically within the boundary collar, which tests whether the cross-modal signal matters. It must beat the matched free GRU at low data fractions or under unseen corruption, which tests whether the structure matters. And the learned audio-driven gate must align with annotated sound onsets above chance, which tests whether the mechanism is what we claim. Failing the first check kills the core claim. Failing only the second reduces the contribution to interpretability and control.