Noise in the latent space#

The attribution shows which audio each word used. The latent view measures what the degraded audio does to the model’s internal representation, layer by layer (ways/latent.py, ways aud-cam). It has two parts. Spill-over erases the degraded stretch with the same operator, runs the encoder on both signals, and measures how far each layer’s representation of each clean frame moves. A layer that kept clean speech separate from the noise would not move. Grad-CAM per layer is the gradient of the transcript’s summed surprisal with respect to every encoder layer, pooled as in Grad-CAM. Every layer is shown, as in AADD’s own analysis of a Whisper encoder, and the figure labels it a hint next to the spill-over.

whisper-base on the partly degraded clip: damage rows, spectrogram with the degraded band and the loudness line, Grad-CAM per encoder layer, the spill-over per layer under erasure of the degraded stretch, and the per-layer summary
whisper-base on the partly degraded clip. Inside the noise (the boxed stretch) every layer moves when the noise is erased. Outside it, the clean frames move more the deeper the layer, which shows the noise affecting the representation of clean speech. The Moonshine twin is figures/latent__moonshine-base__id10274_89UnsytX6Y8_00006.png.

Over the 60 controlled clips the spill-over outside the window grows with depth in every model: whisper-tiny from 0.00 at the input to 0.19 at its top layer, whisper-base from 0.00 to 0.20, moonshine-base from 0.12 to 0.29. Moonshine’s input embedding already moves outside the window because its encoder applies a GroupNorm with a single group right after its convolutions, which normalises over the whole clip. The Grad-CAM focus on the degraded stretch stays between 0.8 and 1.2 in every layer of every model but one, and its correlation with loudness is weak. The gradients therefore do not single out loud or degraded frames, whereas the representation shift does. The spill-over is the encoder’s doing and not the feature extractor’s: with Whisper’s log-mel floor held at the original clip’s value, it changes by at most 0.002 at any layer (experiments/check_spillover_frontend.py).

Stats for nerds (whisper-base per layer on the controlled set)

layer

spill-over outside

shift inside

CAM focus on degraded

rho(CAM, loudness)

0

0.00 [0.00, 0.01]

0.35 [0.34, 0.35]

0.98 [0.81, 1.17]

-0.05 [-0.11, 0.01]

1

0.04 [0.04, 0.05]

0.49 [0.48, 0.50]

0.89 [0.78, 1.00]

0.00 [-0.06, 0.07]

2

0.06 [0.05, 0.06]

0.51 [0.50, 0.52]

0.82 [0.73, 0.90]

-0.03 [-0.09, 0.02]

3

0.09 [0.08, 0.09]

0.66 [0.66, 0.67]

0.85 [0.76, 0.95]

-0.12 [-0.18, -0.07]

4

0.13 [0.12, 0.14]

1.42 [1.35, 1.49]

0.99 [0.87, 1.13]

-0.02 [-0.07, 0.03]

5

0.15 [0.14, 0.16]

1.29 [1.25, 1.34]

0.85 [0.76, 0.94]

-0.03 [-0.09, 0.02]

6

0.20 [0.19, 0.22]

1.01 [1.00, 1.02]

1.08 [0.97, 1.19]

-0.02 [-0.07, 0.02]

The one exception on CAM focus is Moonshine’s layer 3 on the VoxCeleb clips (1.6, interval 0.9 to 2.2), and no loudness correlation has an interval edge beyond 0.35. Tables for every model, on the VoxCeleb clips and the controlled set: experiments/results/latent/<model>/summary.md.