Interpreting SSL Representations in Deception Detection: A WavLM StudyInterpreting SSL Representations for Spoof Detection: a WavLM Study
Frozen WavLM Base probed layer by layer on ASVspoof 5: L11's eval EER is 6.07%; the authors state that a five-layer subset outperforms full-layer pooling.
- Self-supervised models such as WavLM are strong at spoofing detection, but which layers encode bona fide/spoof cues and which acoustic properties they correspond to remains unclear. The authors perform layer-wise analysis on ASVspoof 5.
- Frozen WavLM Base, mean+std pooling over L0–L12 and training a linear classifier, then PWCCA alignment with 17 handcrafted acoustic features, and exhaustive search over 8191 layer combinations.
- L11's dev and eval EER are 3.33% and 6.07%. The five-layer subset has eval EER 6.1%, and all-layer pooling 8.08% (Table I). Spectral features peak at L7, and voice quality features rise with depth. Adversarial attacks have EER >20% at all layers.
- The authors state that the linear probe captures only linearly accessible information, CCA assumes a linear relationship, the feature set is not exhaustive, and only WavLM Base and ASVspoof 5 are analyzed. Future work should test other corpora, real recordings, and unseen attacks.
- Evaluated models
- WavLM Base
- Benchmarks
- ASVspoof 5 Track 1
- Metrics
- EERPWCCA
A layer-wise interpretability study of WavLM based on ASVspoof 5 shows that pooling representations from 5 layers outperforms using all 13 layers. The study uses layer-wise linear probing to conduct attack-level evaluation on speech synthesis, voice conversion, and adversarial attacks, and uses CCA to correlate layer representations with deception-related acoustic features. Results show that the correlations of jitter, shimmer, and harmonic-to-noise ratio increase with layer depth, while most acoustic features peak at middle layers; embedding visualizations show that deeper layers encode continuous acoustic similarity between attacks rather than discrete categories.
Paper analysis
What problem does this paper attempt to solve?
Which WavLM layers encode bona fide/spoof cues, and which acoustic properties they correspond to, remains opaque.
Which WavLM layers best distinguish bona fide from spoofed speech, and which interpretable acoustic properties those layers align with, remains opaque.
- Setting: the authors state that SSL front ends are the backbone of spoofing detection and reach state-of-the-art on ASVspoof, but which layers encode spoofing information and how layer behavior varies with attack remains unclear.
- Gaps: the authors point out that models learn shortcuts such as non-speech duration. Existing layer-wise work is mostly used to optimize detection; the authors state that PWCCA has not yet been used to explain what a single layer encodes by attack. Handcrafted voice quality and spectral features are interpretable, but the authors state that detection with them alone falls short of SSL.
- Questions: which layer has the most bona fide/spoof information; whether TTS, voice conversion (VC), and adversarial attacks rely on different depths; which known spoofing markers each layer encodes.
- Approach: freeze WavLM on ASVspoof 5 and perform layer-wise linear probing, PWCCA with handcrafted acoustic features, and exhaustive layer-subset search.
- Model: the authors choose WavLM because its denoising pretraining exposes it to noise and overlapping speech; they use Base rather than Large for efficiency and because 13 layers facilitate layer-wise analysis.
What related research exists?
Related work is divided into countermeasure backends, SSL layer-wise analysis, and handcrafted acoustic cues; the authors state that PWCCA has not yet been used to interpret layers by attack.
The authors divide related work into spoofing countermeasures, layer-wise analysis of SSL, and directly interpretable handcrafted acoustic cues.
Spoofing countermeasures and SSL front ends
- Backends: neural countermeasures include AASIST (Jung et al., 2022), conformer anti-spoofing classifiers (Rosello et al., 2023), and fusion or ensemble systems.
- Front-end pairing: the authors state that recent ASVspoof 5 submissions often pair these backends with wav2vec 2.0 and WavLM, and use augmentation such as RawBoost and score or model fusion.
- Shortcuts: Müller et al. (2021) report that models trained on ASVspoof exploit spurious cues. The introduction uses non-speech duration as an example, illustrating the need to connect behavior to acoustic properties.
Layer-wise analysis of SSL representations
- Layer division of labor: Pasad et al. (2021; 2023) report that early layers capture local acoustic features and later layers encode more abstract content and speaker information.
- Detection-oriented use: the authors state that research on SSL front ends in spoofing detection is mainly aimed at optimizing detection. Xiao and Vu (2025) perform layer-wise decision fusion and report that layer-wise decisions outperform feature-level fusion.
- Similarity tools: SVCCA (Raghu et al., 2017) and PWCCA (Morcos et al., 2018) measure representation similarity. The authors state that they have not yet been used to explain a single layer's spoofing information by attack.
Interpretable acoustic cues
- Voice quality: jitter, shimmer, and harmonic-to-noise ratio (HNR) are treated as known markers of spoofed speech. Warren et al. (2025) discuss unnatural smoothness or irregular voice quality introduced by TTS vocoders.
- Formants and spectra: formant trajectories are used to expose voice conversion artifacts (Cuccovillo et al., 2024; Borrelli et al., 2025). Sahidullah et al. (2015) compare spectral features for synthetic speech detection.
- Gap with SSL: the authors state that these features used alone do not reach the detection performance of modern SSL, but are directly interpretable; whether SSL internally encodes the same kinds of properties had not previously been tested.
Baseline: the control in this paper is all-13-layer pooling plus a linear backend on ASVspoof 5 Track 1, with 19968-dimensional input. Systems such as AASIST were not run as experimental controls.
The authors position this paper as attack-oriented layer-wise characterization, compact layer-subset search, and connecting layer representations to the above acoustic cues using PWCCA.
How does the paper address this problem?
Frozen WavLM Base, using linear probing, PWCCA, and exhaustive layer subsets to analyze bona fide/spoof cues at each layer.
Overall, a frozen WavLM Base is used for three analyses: layer-wise linear probing, PWCCA with handcrafted acoustic features, and exhaustive layer-subset search. Figure 1 first pools each layer's frame representations into a 1536-dimensional utterance vector. The evidence is linear separability and correlation, not causal intervention.
Data and attack split
- Protocol: Track 1 of ASVspoof 5, using the standard train, dev, and eval splits.
- Attacks: train is A01–A08, dev is A09–A16, eval is A17–A32, 32 attacks in total. For analysis they are divided into TTS, VC, and ADV augmented by adversarial attacks.
- Adversarial setting: the authors state that adversarial attacks are added to spoofed utterances already generated by TTS or VC, and no adversarial attacks are performed on bona fide utterances.
- Acoustic conditions: utterances pass through multiple codecs and recording conditions. The authors state that crowdsourcing and condition diversity make it suitable for interpretability analysis.
Representations and linear probing
- Layers: L0–L12 are extracted. In Figure 1, L0 is the convolutional layer and L1–L12 are Transformer layers. Each layer's frame representation is 768-dimensional.
- Pooling: mean and standard deviation pooling along time, concatenated into a 1536-dimensional utterance vector, to allow layer-wise comparison.
- Classifier: using only training data, a linear classifier is learned separately for each layer to distinguish bona fide from spoof. The model is selected by lowest equal error rate (EER) on dev, then dev and eval EER are reported.
- Why a linear head: the authors state that this measures layer-wise separability and avoids a complex backend masking the interpretation. Unlike wav2vec 2.0, which uses contrastive learning only on clean speech, WavLM also has a denoising objective.
PWCCA acoustic alignment
17 features in four categories. Voice quality: jitter, shimmer, HNR. Prosody: mean F0, standard deviation of F0, mean energy, onset strength. Spectral: mean MFCC, spectral centroid, spectral roll-off, ZCR, spectral entropy, spectral flux. Harmonic/formant: harmonic ratio, mean F1, mean F2, mean F3.
The authors use PWCCA because standard CCA is sensitive to low-variance directions. PWCCA is a weighted average of canonical correlations, with weights equal to the sum of absolute projection weights of each canonical direction, so directions with larger variance receive larger weights. The 1536 dimensions are first reduced to 50 dimensions by principal component analysis. The per-feature numbers in Figure 3 are the squared correlation of that feature with the first canonical variable of the layer representation, averaged in both directions. The analysis uses only train+dev, sampling at most 5000 speaker-balanced utterances per attack group; eval is held out for final reporting.
Layer-subset search
- Search: exhaustive search over all layer combinations for k=1 to 13, 8191 in total.
- Concatenation: the 1536-dimensional vectors of the selected layers are concatenated into a k×1536-dimensional vector, then a linear probe is trained.
- Selection: subsets are selected only on dev, and eval is used only for a single final report. The control is concatenation of all 13 layers, for which the authors give an input dimension of 19968.
What experiments did the paper conduct?
L11's eval EER is 6.07%; the five-layer subset has eval 6.1%, and all-layer pooling 8.08%.
Linear probing on frozen WavLM Base reaches its lowest eval EER of 6.07% at L11. The authors state that the five-layer subset's eval EER of 6.1% is lower than the 8.08% of full-layer pooling. The comparison targets are all linear backends.
Experimental Setup
- Model: Frozen WavLM Base, with layers L0–L12. The paper states that Large was not used. wav2vec 2.0 served only as a design reference and was not run.
- Data: The standard train, dev, and eval of ASVspoof 5 Track 1. Attacks A01–A32, grouped into TTS, VC, and ADV for analysis. The paper does not report the number of utterances per split.
- Probing: One linear classifier per layer, learned only on the training set, selected by dev EER. Metrics are whole-layer EER and per-attack EER. The paper does not report the optimizer, learning rate, or number of repetitions.
- CCA: train+dev, up to 5000 speaker-balanced utterances per attack group; after PCA to 50 dimensions, correlations are computed with 17 acoustic features.
- Subsets: 8191 combinations, selected on dev, with eval reported only once. The comparison is 19968-dimensional full-layer pooling plus the same kind of linear backend.
- Visualization: t-SNE on L1, L6, and L11 on eval. The authors state that they checked multiple random seeds and perplexity 20, 30, and 50. There was no human review and no LLM judge.
Main Results
Swipe horizontally to read the table
Layer subset k Dev EER Eval EER 7–9–10–11–12 5 2.06% 6.1% 6–8–9–10–12 5 2.16% 7.16% 6–9–10–11–12 5 2.02% 7.25% All layers 0–12 13 4.59% 8.08% According to Table I.
- Single layer: The main text states that performance generally improves with depth, reaching its lowest at L11, with dev EER 3.33% and eval EER 6.07%. L12's eval EER is 7.3%, higher than L11.
- Subsets: The authors state that L7–9–10–11–12 outperforms full-layer pooling. The row with the lowest dev EER in the table is the 2.02% row, not the 2.06% row that the authors call best; the paper does not explain how the two correspond.
- Authors' statements: The contributions section states that middle-to-deep layers provide the most reliable cues under most conditions; the conclusion writes the most discriminative layers as L9–L11. The lowest EER given in the main text is at L11.
Per-Attack EER
- dev: The authors state that A09, A10, A14, and A16 have EER close to 0 from the middle layers onward. A12 (unit selection) is highest at about 80% in early layers and drops to about 5% after L6.
- eval exceptions: For most attacks, EER decreases with depth. A22, A24, and A28 have EER above about 30% in later layers, higher than their respective middle layers.
- Adversarial: A18, A20, A23 (Malafide) and A27, A30–32 (Malacopula) have EER above 20% at all layers, with flat or inverted trends. The authors believe filtering suppresses detectable artifacts.
PWCCA
- Middle-layer peak: Most features peak around L7 and then decay toward L12. At L7, spectral centroid is 0.96, MFCC mean is 0.92, and spectral roll-off is 0.91.
- Voice-quality reversal: jitter goes from 0.52 at L0 to 0.89 at L12, shimmer from 0.53 to 0.90, and HNR from 0.55 to 0.94. The formant peak is only 0.70–0.78.
- Authors' interpretation: The authors believe the EER decrease from early to middle layers coincides with enhanced spectral and prosodic encoding, and that the later-layer gain comes from voice-quality sensitivity. L12 has the highest voice-quality correlation, but its eval EER of 7.3% is higher than L11's 6.07%.
t-SNE
- Three layers: The authors state that on eval, L1 attack clusters overlap; L6 shows clusters separated by attack, with colored attack points separated from black bona fide points; L11 shows a continuous horseshoe arc, with bona fide at one end.
- Stability: The authors state that this pattern is consistent across multiple random seeds and perplexity 20, 30, and 50.
- Interpretation: The authors believe later layers organize attacks along a continuous gradient of voice naturalness rather than by attack category. This is the authors' interpretation of the figures.
Other Ablations and Analyses
- Prosodic features show the same trend as spectral features, with slightly lower peaks; the paper does not give specific numbers for the prosodic peaks.
- The authors state that under linear pooling, early layers provide no complementary information (IV-C); the EER of early-layer subsets is not listed separately.
- Of the 8191 combinations, the main text lists only the three five-layer subsets in Table I and the full-layer baseline.
- The per-feature numbers in Figure 3 are squared correlations with the first canonical variate, labeled PWCCA in the caption.
- The authors believe the rise in voice-quality correlation with depth may reflect denoising pretraining (Discussion); the paper does not report causal interventions.
- The full-layer concatenated input is 19968-dimensional; the five-layer subset is a concatenation of 5 1536-dimensional vectors. The paper does not report runtime.
What are some points that can be further explored?
The authors state the linear probe and linear CCA assumptions, and that experiments are conducted only on WavLM Base and ASVspoof 5.
The authors state the limitations in the Discussion's Limitations and Conclusion; the experiments themselves cover frozen WavLM Base and ASVspoof 5 Track 1.
Limitations and future directions noted by the authors
- Linear probe: captures only linearly accessible information (Discussion, Limitations).
- Model: only WavLM Base is studied; layer-wise behavior of other architectures may differ (Discussion, Limitations).
- Linearity assumption: CCA assumes a linear relationship between representations and acoustic features (Discussion, Limitations).
- Transfer: the reported trends may not transfer as-is to other corpora, real recordings, or unseen attack families (Discussion). The Conclusion calls for future work to test these conditions.
- Feature set: the acoustic feature set used is not exhaustive (Discussion, Limitations).
- Adversarial: the authors consider the consistent failure of Malafide and Malacopula across all layers to be a fundamental limitation of artifact-based detection, and that robustness may require defenses beyond representation learning (Discussion).
Scope of the experiments
- Model and layers: the experiments use L0–L12 of frozen WavLM Base. The paper states that Base rather than Large was chosen for computational efficiency and because 13 layers facilitate layer-wise analysis (III-B).
- Data: train, dev, eval of ASVspoof 5 Track 1. The 32 attacks are divided in the analysis into TTS, VC, ADV; ADV is added only to existing TTS or VC spoofed utterances (III-A).
- Probing and search: linear classifiers are learned on the training set and selected by dev EER. There are 8191 layer combinations, selected on dev and reported once on eval. The control is 19968-dimensional all-layer pooling (III-B, IV-C, Table I).
- CCA: computed on train+dev, at most 5000 speaker-balanced utterances per attack group, PCA to 50 dimensions, over 17 acoustic features (III-C).
- Not reported: the paper does not report the total number of utterances per split, the optimizer, learning rate, or number of repetitions for linear probing, nor a comparison with backends such as AASIST. For t-SNE, multiple seeds and perplexity 20, 30, 50 are stated (IV-D).
Summarize the main content of the paper
Linear separability is highest in the middle-to-late layers; voice-quality-related correlation rises with depth, and spectral features peak in the middle layers then decline.
This is a layer-wise interpretability analysis of frozen WavLM Base on ASVspoof 5, concerned with which layer holds bona fide/spoof cues, whether different attacks rely on different depths, and which acoustic markers these layers align with.
- Approach: 768-dimensional frame representations from L0–L12 are turned into 1536 dimensions by mean and standard deviation pooling. A linear classifier is learned for each layer on the training set and selected by dev EER. Separately, layer representations are reduced to 50 dimensions, PWCCA is performed with 17 handcrafted features, and 8191 layer combinations are exhaustively searched.
- Whole-layer EER: L11's dev EER is 3.33% and eval EER is 6.07%. L12's eval EER is 7.3%, higher than L11. The Conclusion states the most discriminative range as L9–L11.
- Layer subsets: the five-layer subset the authors call best is L7–9–10–11–12, with eval EER 6.1%; all-13-layer pooling has eval EER 8.08% (Table I). These numbers all come from the linear backend.
- Acoustic alignment: most features peak around L7 and then decline, with spectral centroid at L7 of 0.96. jitter, shimmer, and HNR rise with depth to 0.89, 0.90, and 0.94 at L12. The authors suggest the later-layer gain is related to voice quality sensitivity.
- Attack differences: the authors state that some TTS attacks on dev are near 0 EER from the middle layers onward; A22, A24, and A28 exceed about 30% EER in later layers. Malafide and Malacopula have EER above 20% at all layers.
- Authors' conclusion: the authors state that later layers arrange attacks along a continuous gradient of voice naturalness rather than discrete attack categories; adversarial attacks pose a challenge to detection relying only on acoustic artifacts. Future work is to test whether these trends hold on other corpora, real conditions, and unseen attacks.