Abstract
Recent advances in self-supervised learning (SSL) on Transformers have significantly improved speaker verification (SV) by providing domain-general speech representations. However, existing approaches have underutilized the multi-layered nature of SSL encoders. To address this limitation, we propose the layer-aware time-delay neural network (L-TDNN), which directly performs layer/frame-wise processing on the layer-wise hidden state outputs from pre-trained models, extracting fixed-size speaker vectors. L-TDNN comprises a layer-aware convolutional network, a frame-adaptive layer aggregation, and attentive statistic pooling, explicitly modeling of the recognition and processing of previously overlooked layer dimension. We evaluated L-TDNN across multiple speech SSL Transformers and diverse speech-speaker corpora against other approaches for leveraging pre-trained encoders. L-TDNN consistently demonstrated robust verification performance, achieving the lowest error rates throughout the experiments. Concurrently, it stood out in terms of model compactness and exhibited inference efficiency comparable to the existing systems. These results highlight the advantages derived from the proposed layer-aware processing approach.
Introduction
Self-supervised learning (SSL) Transformers have revolutionized speech processing, yet the optimal method for integrating them into specific tasks like Speaker Verification (SV) remains an active area of research. Current methodologies typically follow one of two paths:
- Fine-tuning the final layer: This approach often overlooks the fact that speaker-specific information is frequently concentrated in the lower or middle layers of a Transformer stack, rather than just the output.
- Static Weighted Sum (SUPERB approach): This method assigns a single learnable weight to each layer. While an improvement, it assumes a layer's importance remains constant across an entire utterance, failing to account for the dynamic nature of speech where different layers may capture distinct phonetic or acoustic cues at different moments.
The proposed Layer-aware TDNN (L-TDNN) addresses these limitations by treating the "layer dimension" as a primary feature axis, enabling more comprehensive utilization of the rich, hierarchical information within SSL encoder hidden states.
Methodology
The L-TDNN architecture is a dedicated backend designed to process the 3D input tensor (Channels × Time × Layers) generated by SSL models.
Core Components
- Layer-aware Convolutional Network: Instead of immediate layer compression, the model employs a modified ECAPA-TDNN architecture. It uses SE-Res2Blocks adapted to process features across both temporal frames and encoder layers simultaneously.
- Frame-adaptive Layer Aggregation: This core innovation replaces static weighting with a multi-head attention mechanism. It calculates layer weights for every individual frame, allowing the model to dynamically focus on the most relevant layers as the speech signal evolves.
- Attentive Statistic Pooling: The model utilizes channel-dependent self-attention to aggregate frame-level features into a fixed-size speaker embedding, ensuring robust representation for verification.
Experimental Setup
The L-TDNN was evaluated across four major benchmarks to ensure robustness: VCTK (clean recordings), LibriSpeech (large-scale read speech), and VoxCeleb1 & 2 (noisy, real-world "in-the-wild" audio). The backend was tested using three distinct frozen SSL frontends: Wav2vec 2.0, HuBERT, and WavLM.
Key Results and Discussion
L-TDNN consistently achieved the lowest Equal Error Rate (EER) across all datasets. On average, it demonstrated a 45% improvement over traditional x-vector baselines and a 14% improvement over the strong ECAPA-TDNN baseline. Notably, the performance gap widened when paired with larger SSL models (e.g., WavLM Large), indicating that L-TDNN is particularly effective at extracting value from high-capacity models.
Beyond accuracy, the architecture proved highly efficient. L-TDNN is more compact than the standard ECAPA-TDNN; by reducing the hidden channel size while incorporating the layer dimension, the model is approximately two-thirds the size of the baseline (~5.7M parameters vs ~8.7M). Furthermore, it maintains competitive inference latency on GPU hardware, often outperforming ECAPA-TDNN in speed.
Conclusion
The L-TDNN demonstrates that speaker cues are distributed throughout the Transformer stack and that their importance varies dynamically over time. By explicitly modeling the layer dimension, L-TDNN achieves state-of-the-art performance with superior parameter efficiency. Future work will explore joint fine-tuning of the SSL frontend and the L-TDNN backend, alongside the integration of score calibration to further enhance verification accuracy.
Summary updated