Do Layer Rankings Survive Silence Trimming? The Silence Shortcut in Frozen WavLM Representations for Audio Deepfake Detection
Authors: Nur Elabid, Mahmud Esad Arar
Organizations: Department of Biomedical Engineering, Fatih Sultan Mehmet Vakif University, Istanbul, Türkiye. · Department of Electrical and Electronics Engineering, Fatih Sultan Mehmet Vakif University, Istanbul, Türkiye.
Layer-wise analyses of frozen self-supervised encoders are used to locate spoofing information in audio deepfake detection. On the ASVspoof 2019 logical access (LA) benchmark, bonafide recordings carry longer leading and trailing silence than spoofed ones, and detectors exploit this cue, the silence shortcut. This paper examines whether layer rankings for a frozen WavLM Base encoder survive the trimming of this silence. A small classifier is trained on each of the 12 layers with and without trimming and evaluated on ASVspoof 2019 LA and, zero-shot, on In-the-Wild, in all four train/test combinations, with speaker-level bootstrap intervals. Trimming at 40 dB raises the in-domain error at every layer and preserves the layer ranking only partly (Kendall's tau of 0.58 in domain, 0.73-0.76 on In-the-Wild). The best layer is unchanged at 40 dB, but on the evaluation set it moves from layer 5 to layer 6 at 15 dB and, with mean pooling, at 20 dB, thresholds at which trimming may also remove low-energy speech. At 40 dB, the equal error rate of a model trained with silence rises by 6.3-19.9 percentage points at every layer when only its test audio is trimmed. On In-the-Wild, the effect depends on the layer: at layers 3-5, trimming the test audio lowers the error only for models trained on trimmed audio, whereas at layers 6, 8, and 9 training on trimmed audio lowers it also on clean test audio. We quantify how zero padding alters WavLM features through group normalization, an effect that an attention mask does not fully undo.
Figures & tables
Müller Müller et al. (2021)
Wang Wang et al. (2024)
Shim Shim et al. (2024)
Xiao Xiao and Vu (2025)
Ours
Encoder
CQT CMs, RawNet2
10 CMs
AASIST-L
XLS-R
WavLM Base
Frozen encoder
—
—
—
✓
✓
Per-layer EER
—
—
—
figure only
✓
Train/test cells
3 of 4 a
3 of 4
4 of 4
2 of 4
4 of 4 (all layers)
Layer-ranking test
—
—
—
—
✓
In-the-Wild
—
—
—
✓
✓
Table 1: Studies that train and test countermeasures with and without silence. Cells are the train/test combinations of clean and trimmed audio
Figure 1: Detection pipeline. Silence trimming (dashed) is applied only in the trimmed condition. Each file enters the encoder at its own length, up to 4 s, without zero padding. The encoder is frozen; only the classifier is trained
Set
Bonafide
Spoof
Total
Attacks
Use
Train
2,580
22,800
25,380
A01–A06
Classifier training
Development
2,548
22,296
24,844
A01–A06
Checkpoint and layer selection
Evaluation
7,355
63,882
71,237
A07–A19
In-domain test
In-the-Wild
19,963
11,816
31,779
—
Out-of-domain test
Table 2: Datasets. Training, development and evaluation partitions are from ASVspoof 2019 LA; In-the-Wild is used only for zero-shot testing
Figure 2: Empirical cumulative distribution of leading silence over the whole file (40 dB threshold) in the ASVspoof 2019 LA training, development, and evaluation sets and in In-the-Wild, for bonafide (teal, solid, circles) and spoofed (red, dashed, squares) files
Features
Threshold
Development
Evaluation
In-the-Wild
sil
30 dB
31.90
18.82
49.20
sil
40 dB
30.22
23.40
58.39
sil+dur
30 dB
31.12
18.75
49.24
sil+dur
40 dB
34.50
23.25
58.48
Table 3: EER (%) of a logistic-regression classifier trained on the ASVspoof 2019 LA training partition with silence features only (sil: leading and trailing silence over the whole file and within the 4-second window) or with these features plus number of samples and amount of padding (sil+dur)
Figure 3: Relative deviation of padded from unpadded WavLM Base features at each layer, for 500 randomly sampled training files, on clean and trimmed audio (teal: clean; red: trimmed), without (solid) and with (dotted) an attention mask. The vertical line marks layer 4
Figure 4: EER of each WavLM Base layer on (a) the ASVspoof 2019 LA evaluation set and (b) In-the-Wild, for the clean and trimmed conditions (mean over five seeds). Teal: clean; red: trimmed. Solid: statistics pooling; dashed: mean pooling. The shaded band marks layers 3–5 and the vertical line layer 4. Markers indicate the layer selected on the development set (filled: statistics; open: mean)
Dev
ASVspoof 2019 LA evaluation
In-the-Wild
Configuration
Sel.
EER
EER
95% CI
min t-DCF
EER
95% CI
clean/mean/L3
dev
0.44 ± 0.02
1.73 ± 0.01
[1.36, 2.11]
0.0528 ± 0.0002
19.28 ± 0.28
[14.34, 24.47]
clean/stats/L3
dev
0.43 ± 0.00
1.61 ± 0.01
[1.27, 1.95]
0.0478 ± 0.0007
20.99 ± 0.38
[15.60, 26.97]
clean/stats/L4
ref
0.54 ± 0.01
1.48 ± 0.02
[1.15, 1.85]
0.0416 ± 0.0003
18.26 ± 0.48
[13.64, 23.27]
trimmed/mean/L4
ref
1.89 ± 0.01
6.44 ± 0.01
[5.47, 7.47]
0.1667 ± 0.0007
15.12 ± 0.18
[10.80, 19.99]
trimmed/mean/L5
dev
1.60 ± 0.02
5.18 ± 0.02
[4.52, 5.92]
0.1390 ± 0.0008
16.54 ± 0.07
[12.45, 21.15]
Table 4: Dev-selected and reference configurations: EER (%) and minimum tandem t-DCF as mean ± sample standard deviation over five seeds, with 95% speaker-level bootstrap intervals for EER. Sel.: dev = dev-selected, ref = reference configuration
Figure 5: EER in the four train/test cells for layers 3–5, which contain the dev-selected (3 and 5) and reference (4) layers, with mean and statistics pooling (mean over five seeds); the effects for all layers are shown in Fig. 6 and Table 5 . The horizontal axis is the test condition; each line is one training condition (teal: trained on clean; red: trained on trimmed). Solid: statistics pooling; dashed: mean pooling
Figure 6: Effects of trimming by layer on the ASVspoof 2019 LA evaluation set (a, top row) and on In-the-Wild (b, bottom row): trimming the test audio of the model trained on clean audio ( Δtest , Eq. ( 4 ); left column) and the interaction I (Eq. ( 9 ); right column). Statistics pooling: solid lines, filled circles; mean pooling: dashed lines, open squares, shifted slightly to the right. Error bars are 95% speaker-level paired bootstrap intervals; the vertical axis is shared within each row. EER per seed, averaged over five seeds
Set
L
Δtest
Δtrain
Δtotal
I
Eval
1
+17.58 [15.44, 19.98]
− 4.76 [ − 6.67, − 3.20]
+12.82 [10.97, 14.58]
− 13.66 [ − 15.60, − 12.04]
2
+12.71 [11.05, 14.39]
− 3.60 [ − 5.08, − 2.11]
+9.12 [7.96, 10.38]
− 11.11 [ − 12.56, − 9.64]
3
+9.94 [8.53, 11.39]
− 2.88 [ − 4.09, − 1.75]
+7.06 [5.98, 8.18]
− 8.37 [ − 9.62, − 7.19]
4
+6.27 [5.33, 7.28]
− 1.76 [ − 2.56, − 0.95]
+4.51 [3.73, 5.38]
− 5.65 [ − 6.55, − 4.78]
5
+6.90 [5.80, 7.94]
− 3.24 [ − 4.10, − 2.35]
+3.67 [3.06, 4.26]
− 6.73 [ − 7.68, − 5.86]
6
+7.87 [6.35, 9.53]
− 4.98 [ − 6.19, − 3.80]
+2.90 [2.18, 3.62]
− 7.08 [ − 8.36, − 5.87]
Table 5: Effects of trimming (EER percentage points, statistics pooling) with 95% speaker-level paired bootstrap intervals. Intervals that exclude zero are in bold. Eval: ASVspoof 2019 LA evaluation set; ITW: In-the-Wild. Definitions in Eqs. ( 4 )–( 9 )
Set
Pooling
Kendall’s τ
p (exact)
Spearman’s ρ
Best layer (clean / trimmed)
Evaluation
stats
0.58 [0.39, 0.64]
0.009
0.66 [0.52, 0.76]
L5 (82%) / L5 (82%)
Evaluation
mean
0.58 [0.42, 0.64]
0.009
0.66 [0.51, 0.76]
L5 (99%) / L5 (55%)
In-the-Wild
stats
0.73 [0.42, 0.85]
0.0005
0.90 [0.57, 0.94]
L4 (90%) / L4 (82%)
In-the-Wild
mean
0.76 [0.39, 0.82]
0.0002
0.87 [0.51, 0.94]
L4 (91%) / L4 (69%)
Table 6: Agreement between the layer rankings in the clean-to-clean and trimmed-to-trimmed cells, with 95% speaker-level bootstrap intervals. The best layer is given with the proportion of resamples in which it is best
Layer
Clean
Trimmed
Ratio
Rank (clean → trimmed)
1
3.15
15.97
× 5.1
6 → 12
2
2.78
11.90
× 4.3
5 → 10
3
1.61
8.67
× 5.4
3 → 5
4
1.48
5.99
× 4.0
2 → 3
5
1.37
5.03
× 3.7
1 → 1
6
2.37
5.26
× 2.2
4 → 2
Table 7: EER (%) per layer on the evaluation set, statistics pooling, in the clean-to-clean and trimmed-to-trimmed cells (mean over five seeds)
≤ 4 s (19,387 files)
> 4 s (12,392 files)
E(C,C)
20.34
16.65
E(C,T)
19.44
16.57
E(T,C)
19.65
12.81
E(T,T)
17.43
12.70
Δtest
− 0.90 ± 0.08
− 0.08 ± 0.09
Δtrain
− 2.01 ± 0.30
− 3.88 ± 0.26
Table 8: In-the-Wild split by original duration, statistics pooling, layer 4. EER (%) per cell and effects in percentage points (mean ± sample standard deviation over five seeds)
Figure 7: Change in EER after trimming (trimmed minus clean) for each evaluation attack and the six configurations, with 95% speaker-level bootstrap intervals. Colors indicate the layer (sky teal: L3; deep teal: L4; teal: L5); filled circles: statistics pooling; open squares: mean pooling
Group
Attacks
Change
Most affected
A10
+16.7 to +24.3
Large
A11, A15
+4.1 to +14.4; +4.5 to +10.9
Moderate
A07, A08, A09, A12, A14, A16
+0.6 to +6.3
Small
A13; A18; A19
+0.04 to +0.12; +0.2 to +1.0; +0.1 to +0.5
Decrease
A17
− 0.76 to − 1.27
Table 9: Change in EER after trimming (trimmed minus clean, percentage points) by attack; ranges over the six configurations
40 dB
20 dB
15 dB
Fallback files, eval / ITW
21 / 49
158 / 708
279 / 1,147
Median removed (s), eval, bona / spoof
1.17 / 0.29
1.56 / 0.45
1.64 / 0.51
Median removed (s), ITW, bona / spoof
0.01 / 0.35
0.71 / 0.63
0.78 / 0.71
Dev-selected layer, trimmed
L5
L5
L5
Eval EER, stats, L5 (%)
5.03
5.80
6.20
ITW EER, stats, L5 (%)
16.46
16.42
16.67
Table 10: Main results at the three trimming thresholds. Effects are in percentage points with 95% speaker-level bootstrap intervals (statistics pooling, layer 4); Kendall’s τ compares the clean and trimmed layer rankings. Fallback files are those kept untrimmed because less than 0.5 s would remain. Median removed is the median duration removed from a file by trimming, with fallback files counted as zero. The best layer is given with the proportion of resamples in which it is best (statistics pooling). Cross-condition cells, and hence Δtest and I , are available for layers 3–5 only at 20 and 15 dB
Figure 8: Probe R2 per layer on clean audio. Left: acoustic targets; right: silence and length targets. Lines show the mean cross-validated R2 of ridge probes on mean-pooled features; thick lines with markers: speaker-grouped 5-fold CV, with shaded bands of ± 1 SD across the five folds; thin lines: random 5-fold CV; grey dotted lines: shuffled-target control. Because padding equals the 4 s window minus the length, the padding and length targets in the right panel have identical R2
Table 12: Effects of trimming (EER percentage points, mean pooling) with 95% speaker-level paired bootstrap intervals. Intervals that exclude zero are in bold. Eval: ASVspoof 2019 LA evaluation set; ITW: In-the-Wild
ΔtrainC
ΔtestT
Set
L
stats
mean
stats
mean
Eval
1
+8.90 [7.43, 10.43]
+8.91 [7.56, 10.56]
+3.92 [2.80, 5.00]
+4.13 [3.09, 5.34]
2
+7.51 [6.36, 8.87]
+7.92 [6.69, 9.31]
+1.60 [0.83, 2.40]
+1.53 [0.78, 2.42]
3
+5.49 [4.55, 6.54]
+5.87 [4.93, 7.02]
+1.56 [0.97, 2.14]
+1.37 [0.73, 1.98]
4
+3.89 [3.14, 4.70]
+4.35 [3.52, 5.18]
+0.62 [0.18, 1.08]
+0.52 [0.03, 1.03]
5
+3.49 [2.85, 4.15]
+3.72 [3.03, 4.48]
+0.17 [ − 0.36, 0.61]
+0.11 [ − 0.45, 0.72]
Appendix
Table 13: The two remaining effects of the 2 × 2 design (EER percentage points) with 95% speaker-level paired bootstrap intervals, from the same resamples as Table 5 : training on trimmed audio when the test audio is clean, ΔtrainC , and trimming the test audio of the model trained on trimmed audio, ΔtestT (Eqs. ( 7 )–( 8 )). Intervals that exclude zero are in bold
Figure 9: Effects of trimming for the six configurations (layers 3–5, mean and statistics pooling) on the evaluation set (left) and on In-the-Wild (right): (a) trimmed minus clean ( Δtotal ), (b) trimming the test audio of the model trained on clean audio ( Δtest ), (c) trimming the test audio of the model trained on trimmed audio ( ΔtestT ), and (d) the interaction I . Circles: statistics pooling; squares: mean pooling; the red dashed line marks zero. All intervals are paired, class-stratified percentile bootstrap CIs (1,000 resamples) of the seed-mean EER (EER per seed, averaged over five seeds); light: file level, dark: speaker level
Threshold
Set
Pooling
τ
Percentile
BCa
z0
a
Ties
p
40 dB
Eval
stats
0.58
[0.39, 0.64]
[0.52, 0.70]
0.86
0.019
18%
0.009
Eval
mean
0.58
[0.42, 0.64]
[0.52, 0.67]
0.89
− 0.007
15%
0.009
ITW
stats
0.73
[0.42, 0.85]
[0.58, 0.93]
0.49
0.017
10%
0.0005
ITW
mean
0.76
[0.39, 0.82]
[0.67, 0.91]
0.99
0.027
8%
0.0002
20 dB
Eval
stats
0.48
[0.27, 0.52]
[0.45, 0.55]
1.21
0.010
10%
0.031
Eval
mean
0.39
[0.27, 0.48]
[0.27, 0.48]
− 0.09
− 0.015
23%
0.086
Appendix
Table 1: Kendall’s τ between the clean and trimmed layer rankings with 95% speaker-level percentile and BCa intervals from the same 1,000 resamples; z0 : bias-correction constant (ties counted one half); a : acceleration (leave-one-speaker-out jackknife within class); ties: share of resamples equal to the observed τ ; p : exact two-sided p -value for n=12
Department of Artificial Intelligence, Czestochowa University of Technology, Poland · Department of Computer Science, Czestochowa University of Technology, Poland · School of Convergence, Sungkyunkwan University, Seoul 03063, Republic of Korea +1