Avoid Overfitting User Specific Information in Federated Keyword Spotting

Xin-Chun Li, Jin-Lin Tang, Shaoming Song, Bingshuai Li, Yinchuan Li, Yunfeng Shao, Le Gan, De-Chuan Zhan

TL;DR

Training keyword spotting (KWS) models via Federated Learning often fails because local models overfit to specific user accents and habits rather than learning general speech patterns. This paper introduces FedKWS-UI, a framework that uses adversarial "negative distillation" to push the global model away from overfitted local features and an adaptive scheduling strategy that prioritizes updates from users with higher-quality, more diverse data.

What Problem Does This Paper Address?

Keyword spotting is the technology that lets your phone wake up when you say "Hey Siri" or "OK Google." While deep learning has made KWS highly accurate, training these models usually requires centralizing massive amounts of user voice data, raising significant privacy concerns.

Federated Learning (FL) offers a solution by training models locally on user devices and only sharing model updates. However, KWS data is notoriously "Non-I.I.D." (not independent and identically distributed). As shown in the figure below, different users have different accents (feature skew), use different words (label skew), and provide vastly different amounts of data (quantity skew).

Figure 1: Left: data heterogeneity in federated Google Speech Commands. We only plot 20 clients (users) in task 35. Right: number of samples and class distribution entropy of each client (user) in task 12 and 35 (each point shows a client).

Standard FL algorithms like FedAvg struggle here because the global model ends up "memorizing" the quirks of individual users instead of learning universal acoustic features, leading to poor generalization.

Methods

The authors propose two main strategies to force the model to learn user-invariant information:

  1. Adversarial Learning against Overfitted models (ALO): In this approach, each client maintains a "private" model trained to intentionally overfit their local data. When training the "shared" global model, the authors use a loss function that includes negative distillation. Essentially, they penalize the global model if its predictions are too similar to the overfitted private model's predictions. This "pushes" the global model away from user-specific overfitted regions of the feature space.

  2. Adaptive Local Training (ALT): Standard FL gives every participating device the same number of local training steps. FedKWS-UI instead calculates a "utility" score for each client based on their sample count and the entropy (diversity) of their labels. Clients with more data and more balanced word usage are allowed to perform more local update steps, ensuring the global model is shaped primarily by high-quality, representative data.

Datasets

The researchers evaluated their method using the Google Speech Commands benchmark, a standard for KWS. They split the data into two tasks:

  • Task 12: Identifying 10 specific words, plus "silence" and "unknown."
  • Task 35: Identifying all 35 words in the dataset. The data was partitioned by user ID to simulate a real-world federated environment with over 2,200 unique "clients."

Key Insights and Ideas

  • Functional Regularization: Unlike previous methods (like FedProx) that regularize models based on raw parameter weights, ALO regularizes at the functional level. It cares about what the model predicts, not just what its weights look like, which is more effective for capturing invariant speech features.
  • The "Negative Distillation" Intuition: While standard distillation tries to make a student model mimic a teacher, ALO uses the overfitted local model as a "what not to do" guide for the global model.
  • Quality over Equality: The success of ALT suggests that in highly heterogeneous environments, treating all clients equally is counterproductive. Prioritizing diverse data sources significantly stabilizes the global aggregation process.

Key Results

FedKWS-UI was tested across four different neural architectures: DSCNN, MHAttRNN, ResNet, and Transformers.

Figure 2: Comparison results on federated Google Speech Commands. Rows show the results on task 12 and 35, and columns show results of four utilized networks. The legends also show the average accuracy of the final 5 communication rounds.
  • Accuracy Gains: On Task 12 using a Transformer architecture, FedKWS-UI boosted accuracy from 72.71% (FedMMD) to 79.06%.
  • Reliability: The method significantly reduced both False Accept (FA) and False Reject (FR) rates compared to standard federated baselines like FedAvg and FedOpt.
  • Visualization: The authors used loss landscape interpolation to show that ALO creates a "smoother" optimization path, preventing the model from falling into the sharp, poorly-generalizing minima created by overfitted local data.
Figure 4: Visualization of the plausibility and advantage of the proposed strategies.

Limitations and Future Work

The authors acknowledge a few areas for improvement:

  • Client Computation: The current ALT strategy focuses on data quality but doesn't account for the varying processing power of mobile devices. A device with great data might be too slow to perform the extra training steps requested.
  • Streaming KWS: The experiments were conducted on isolated 1-second clips. Real-world KWS needs to operate on continuous audio streams.
  • Privacy Hardening: While FL provides basic privacy, the authors suggest integrating Differential Privacy in future iterations to provide stronger mathematical guarantees against data leakage.

Summary updated

BibTeX
@inproceedings{li2022avoid,
  author = {Xin-Chun Li and Jin-Lin Tang and Shaoming Song and Bingshuai Li and Yinchuan Li and Yunfeng Shao and Le Gan and De-Chuan Zhan},
  title = {{Avoid Overfitting User Specific Information in Federated Keyword Spotting}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-558},
}
Figure