Dropout Regularization for Self-Supervised Learning of Transformer Encoder Speech Representation

Jian Luo, Jianzong Wang, Ning Cheng, Jing Xiao

Introduction

Self-supervised learning (SSL) has become a cornerstone of modern speech processing, enabling models to extract meaningful representations from vast quantities of unlabeled data. A prevalent paradigm involves masking portions of an acoustic signal and training a Transformer encoder to reconstruct the missing segments. However, speech signals exhibit high local smoothness, meaning adjacent frames are often nearly identical. This characteristic frequently leads models to adopt a "trivial solution": simply copying features from neighboring unmasked frames rather than learning deeper phonetic or speaker-specific structures. This paper addresses this "local copying" shortcut by introducing two targeted regularization techniques: attention dropout and layer dropout.

Methodology

The proposed approach builds upon the TERA (Transformer Encoder Representations from Alteration) framework. The core innovation lies in replacing standard random dropout with targeted masking of the most "active" components of the network during pretraining.

The proposed architecture integrates targeted Attention Dropout and Layer Dropout within the Transformer Encoder blocks of the TERA framework.
  1. Attention Dropout ($\theta_{attn}$): Instead of random masking, this method identifies the highest values in the attention weight matrix. If a weight exceeds a predefined threshold ($\lambda_{attn}$), it is set to zero, and the remaining weights are renormalized. This prevents the model from over-relying on local "easy" features and forces it to attend to distant frames to reconstruct the signal.
  2. Layer Dropout ($\theta_{layer}$): Applied to the output of feed-forward layers, this technique masks the most discriminative (highest magnitude) activation regions based on a threshold ($\lambda_{layer}$). By discarding the most obvious patterns, the model is compelled to utilize more subtle but potentially more robust features.

The authors evaluated different fusion strategies, finding that a staged approach—applying attention dropout followed by layer dropout—yielded the best results.

Experimental Setup

Models were pretrained on the 100-hour train-clean-100 subset of the LibriSpeech corpus. Evaluation focused on two primary downstream tasks:

  • Phoneme Classification: Assessing both linear separability (PhonemeLinear) and non-linear complexity (Phoneme1Hidden).
  • Speaker Recognition: Measuring performance at both the frame level (SpeakerFrame) and utterance level (SpeakerUtterance).

Results and Analysis

The targeted dropout methods consistently outperformed the baseline TERA model and other established SSL techniques like CPC and Mockingjay. Specifically, the "Attention then Layer" configuration achieved a 71.64% accuracy on linear phoneme classification (a 1.40% absolute improvement over TERA) and matched state-of-the-art performance in speaker recognition with 99.50% frame-level accuracy.

Visualization of the attention weight matrix before and after targeted dropout. The difference map (c) shows how the model is forced to redistribute focus away from the local diagonal toward more distant temporal context.

Visualization of the attention matrices confirms that the proposed dropout successfully redistributes focus to "far distant locations," capturing global speech information that was previously ignored. Furthermore, layer dropout resulted in smoother feature maps, suggesting the model moved away from relying on a few hyper-active neurons toward a more distributed and robust representation. Optimal performance was found at thresholds of $\lambda_{attn} = 0.8$ and $\lambda_{layer} = 0.6$.

Conclusion

By strategically masking the most active parts of the Transformer encoder, this work demonstrates that models can be steered away from local shortcuts toward more generalized speech representations. While the study was conducted on a 3-layer architecture with 100 hours of data, the results provide a compelling case for targeted regularization in SSL. Future work will explore the scalability of these methods to larger "foundation" models and a broader variety of downstream tasks such as emotion recognition and keyword spotting.

Summary updated

BibTeX
@inproceedings{luo2021dropout,
  author = {Jian Luo and Jianzong Wang and Ning Cheng and Jing Xiao},
  title = {{Dropout Regularization for Self-Supervised Learning of Transformer Encoder Speech Representation}},
  booktitle = {Interspeech},
  year = {2021},
  doi = {10.21437/interspeech.2021-1066},
}
Figure