arXiv:2610.23526cs.SDOct 2026

Manuscript Offprint

arXiv:2610.23526

Interpreting SSL Representations for Spoof Detection: a WavLM Study

Mohamed Mallat, Michele Panariello, Massimiliano Todisco, Nicholas Evans, Anthony Larcher

Mohamed Mallat

EURECOM

Sophia Antipolis, France

Mohamed.Mallat@eurecom.fr

Michele Panariello

EURECOM

Sophia Antipolis, France

Michele.Panariello@eurecom.fr

Massimiliano Todisco

EURECOM

Sophia Antipolis, France

Massimiliano.Todisco@eurecom.fr

Nicholas Evans

EURECOM

Sophia Antipolis, France

Nicholas.Evans@eurecom.fr

Anthony Larcher

Université du Mans

Le Mans, France

Anthony.Larcher@univ-lemans.fr

Abstract—Self-supervised speech models such as WavLM achieve strong spoofing detection performance, yet which layers encode the most spoof-relevant information and what acoustic properties they capture remain opaque. We present a layer-wise interpretability study of WavLM using the ASVspoof 5 database, combining three complementary analyses: (i) per-layer linear probing with attack-level evaluation across speech synthesis, voice conversion, and adversarial attacks; (ii) a canonical correlation analysis (CCA) linking layer representations to spoofing-relevant acoustic features; (iii) an exhaustive grid search over layer subsets showing that use of five layers outperforms full thirteen-layer pooling. CCA analysis reveals that, while most acoustic features peak in alignment with mid-layers and then decay, voice quality measures jitter, shimmer, and the harmonics-to-noise ratio show the opposite trend, with correlation increasing toward later layers. Embedding visualisations reveal that deeper layers capture a continuous acoustic similarity among attacks rather than discrete categories, suggesting these layers encode fundamental synthesis artifacts rather than attack-specific signatures.

I. INTRODUCTION

Self-supervised learning (SSL) front-ends have become the backbone of modern spoofing countermeasures (CMs) and presentation attack detection (PAD) solutions, achieving state-of-the-art performance for ASVspoof benchmarks [1], [2]. However, these models remain opaque; it is unclear which layers encode spoof-relevant information, how layer behaviour varies across attack types, and whether the learned representations can be linked to interpretable acoustic properties. Herein lie the goals of our work reported in this paper. Recent work shows that spoofing countermeasures can exploit spurious cues and learning shortcuts [3], e.g. those linked to non-speech duration. This further motivates analyses that ground model behaviour in meaningful acoustic properties.

Among a plethora of available and popular alternative SSL models, we focus on WavLM [4] which incorporates a denoising pre-training objective that exposes the model to noisy and overlapped speech. Because WavLM is trained to recover masked targets for a designated main speaker in noisy/overlapped mixtures, its denoising objective encourages representations that preserve speaker-related information and remain stable under acoustic distortions.

We report an investigation performed using the most recent ASVspoof 5 database [5]. It provides a diverse set of bona fide speech utterances together with a set of spoofed/deepfake attacks generated using text-to-speech (TTS), voice conversion (VC), and adversarial perturbation methods, all treated with varied codecs and recording conditions [1]. Its crowdsourced nature and the diversity of the data and acoustic conditions make it an ideal test bed for interpretability-driven analysis. We address three research questions:

  1. Which WavLM layers carry the most discriminative bona fide-spoof information?

  2. Does the detection of different attack families (TTS, VC, adversarial) depend upon the capture of information at different layer depths?

  3. What interpretable acoustic properties do WavLM layers encode, and how do these relate to known spoofing markers?

The contributions of the work reported in this paper include: Attack-aware layer characterisation - We provide a comprehensive analysis of how spoofing discriminability varies with representation depth and attack types, revealing strong layer-attack interactions and showing that mid-to-deep layers carry the most reliable bonafide/spoof cues under most conditions. Layer subset search - We show that an optimally chosen compact layer subset can outperform standard all-layer pooling with a linear backend, providing a practical efficiency gain. CCA-based acoustic grounding - We link layer representations to interpretable spoofing-relevant acoustic cues by computing projection-weighted canonical correlation analysis (PWCCA) showing a shift in representation geometry helping explain why certain layers behave differently and when they fail. t-SNE visualisation corroborates this: representations transition from discrete attack clusters (mid-layers) to a continuous horseshoe manifold (deep layers).

References (25)