SE/BN Adapter: Parametric Efficient Domain Adaptation for Speaker Recognition

Tianhao Wang, Lantian Li, Dong Wang

TL;DR

This paper introduces a novel, lightweight "SE/BN adapter" for speaker recognition that significantly improves performance when adapting a pre-trained model to a new domain with limited data. By selectively fine-tuning only 1% of the model's parameters, this approach achieves comparable or even superior results to full model fine-tuning, making speaker recognition more practical for real-world, low-resource scenarios.

What Problem Does This Paper Address?

Deploying speaker recognition models in new environments or with different types of audio (e.g., noisy vs. clean, different accents, various recording devices) often leads to a sharp drop in performance. This is known as the domain mismatch problem. While fine-tuning the entire model on data from the new domain can help, it requires a substantial amount of labeled data, which is often unavailable in real-world applications. Furthermore, fine-tuning is parameter-inefficient, as it requires a separate set of parameters for each new domain. This paper aims to solve this by proposing a highly parameter-efficient adaptation method that works well even with very limited domain-specific data.

Methods

The core idea is to leverage "adapters," which are small, trainable modules inserted into a pre-trained model while keeping the main model frozen. Inspired by the success of adapters in natural language processing and self-supervised speech models, the authors propose a novel SE/BN adapter. This adapter combines two key components:

  • Squeeze-and-Excitation (SE) blocks: These blocks learn to re-weight feature maps based on their importance, allowing the model to focus on relevant features and suppress irrelevant ones. The authors hypothesize that domain mismatch can be partly addressed by adjusting the emphasis on different feature patterns.
  • Batch Normalization (BN) layers: BN layers help normalize feature distributions. The authors leverage the insight that domain shifts can often be compensated for by adjusting the mean and variance of feature activations.

The SE/BN adapter integrates these components into a pre-trained speaker recognition network (specifically, a ResNet34SE architecture). By freezing the majority of the network and only training the parameters within the SE and BN layers, the adapter achieves parametric efficiency. The authors also explore using SE or BN adapters individually before combining them.

Datasets

  • Pre-training: VoxCeleb2 (development set) was used to train the initial speaker recognition model.
  • Adaptation and Evaluation: CN-Celeb (development and evaluation sets) was used for domain adaptation. Specifically, four genres from CN-Celeb were used: entertainment, interview, live_broadcast, and singing. These genres represent diverse acoustic environments and speaking styles.
  • Low-Resource Scenario: For evaluating performance with limited data, the authors created custom development and test sets from the CN-Celeb data, varying the number of speakers (50, 100, 200, 400) and utterances per speaker.

Key Insights and Ideas

  • Domain Mismatch is About Feature Weighting and Normalization: The paper's central hypothesis is that domain mismatch isn't about fundamentally different speaker patterns, but rather how these patterns are weighted, combined, and normalized across different domains. This insight directly motivates the use of SE (for weighting) and BN (for normalization) components.
  • SE Blocks Can Hurt Generalization if Not Adapted: Experiments showed that simply adding SE blocks to a model improved in-domain performance but decreased performance on out-of-domain data. This strongly suggests that SE blocks are domain-specific and need to be adapted when moving to a new domain.
  • SE and BN Complement Each Other: Combining SE and BN adapters yielded better results than using either individually, indicating that addressing feature weighting and distribution normalization together is more effective.
  • Extreme Parameter Efficiency: The SE/BN adapter requires training only about 1% of the total model parameters, making it highly efficient for deployment and adaptation to many new domains.
  • Low-Resource Performance: The adapter significantly outperforms full fine-tuning in low-resource settings, where fine-tuning is prone to overfitting.

Key Results

  • Significant Performance Improvement: The SE/BN adapter consistently outperformed the pre-trained model across all tested domains.
  • Competitive with Fine-Tuning: In scenarios with ample data, the SE/BN adapter achieved performance comparable to full model fine-tuning.
  • Superior in Low-Resource Settings: With limited adaptation data (e.g., 50 or 100 speakers), the SE/BN adapter significantly outperformed full fine-tuning, achieving an EER of 11.72% compared to 12.08% for fine-tuning on the CNC.s domain with 50 speakers.
  • Parameter Efficiency: The SE/BN adapter uses only ~88.3K parameters, which is about 1% of the full model's 8.0M parameters. This means a single machine capable of fine-tuning one model could potentially adapt to 100 new domains using this adapter approach.

Limitations and Future Work

  • Limitations:
    • While the SE/BN adapter performs comparably to fine-tuning with ample data, it doesn't always surpass it.
  • The optimal location for SE adaptation within the network varied across domains, suggesting that a more sophisticated method for selecting adapter locations might be beneficial.
  • The paper notes that fine-tuning, while showing reasonable performance gains in low-resource conditions, requires careful tuning to avoid issues like loss oscillation, whereas adapter training is more stable.
  • Future Work:
    • Testing the SE/BN adapter on more diverse datasets and different network architectures.
  • Further exploring and elucidating the phenomenon of distributional drift when transitioning between domains.
  • Investigating more advanced methods for determining the optimal placement of adapters within the network.

Summary updated

Abstract

Deploying a well-optimized pre-trained speaker recognition model in a new domain often leads to a significant decline in performance. While fine-tuning is a commonly employed solution, it demands ample adaptation data and suffers from parameter inefficiency, rendering it impractical for real-world applications with limited data available for model adaptation. Drawing inspiration from the success of adapters in self-supervised pre-trained models, this paper introduces a SE/BN adapter to address this challenge. By freezing the core speaker encoder and adjusting the feature maps' weights and activation distributions, we introduce a novel adapter utilizing trainable squeeze-and-excitation (SE) blocks and batch normalization (BN) layers, termed SE/BN adapter. Our experiments, conducted using VoxCeleb for pre-training and 4 genres from CN-Celeb for adaptation, demonstrate that the SE/BN adapter offers significant performance improvement over the baseline and competes with the vanilla fine-tuning approach by tuning just 1% of the parameters.
BibTeX
@misc{wang2024se,
  author = {Tianhao Wang and Lantian Li and Dong Wang},
  title = {{SE/BN Adapter: Parametric Efficient Domain Adaptation for Speaker Recognition}},
  year = {2024},
  eprint = {2406.07832},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.07832},
}
Figure