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

Introduction

Keyword Spotting (KWS) is the foundational technology enabling voice-activated assistants to respond to specific wake words like "Hey Siri" or "Alexa." While deep learning has significantly advanced KWS accuracy, traditional training requires centralizing vast amounts of user audio data, which presents substantial privacy risks.

Federated Learning (FL) has emerged as a privacy-preserving alternative, allowing models to be trained locally on-device while only sharing mathematical updates with a central server. However, FL faces a significant hurdle: Non-IID (not independent and identically distributed) data. In the context of KWS, this manifests as quantity skew (varying usage levels), label skew (different vocabulary preferences), and feature skew (unique accents, pitches, and acoustic environments). Standard FL algorithms, such as FedAvg, often cause the global model to overfit to these user-specific "nuisances," resulting in poor generalization across a diverse population. This paper introduces FedKWS-UI (User-Invariant), a framework designed to mitigate this overfitting and improve decentralized wake-word detection.

The FedKWS-UI Framework

To address the challenges of non-IID data, the authors propose two primary strategies: Adversarial Learning against Overfitted models (ALO) and Adaptive Local Training (ALT).

Adversarial Learning against Overfitted models (ALO)

The ALO strategy aims to prevent the global model from "memorizing" the specific quirks of individual users. In this approach, each client maintains a private model specifically trained to overfit its local data. During the local update phase of the global model, a "negative distillation" loss is applied. This loss function explicitly pushes the global model's predictions away from the overfitted private model's predictions. By regularizing the model in the functional space (what it predicts) rather than just the parameter space (the raw weights), ALO forces the global model to focus on universal, user-invariant features that are consistent across the entire population.

Adaptive Local Training (ALT)

In standard FL, every participating device typically performs the same number of local training steps. FedKWS-UI introduces ALT to re-allocate training effort based on data quality. The system calculates a utility score for each client using the harmonic mean of their sample count and their class distribution entropy (a measure of vocabulary diversity).

Clients with high-quality data—characterized by a sufficient volume of samples and a balanced variety of words—perform more local update steps. Conversely, "low-quality" clients with sparse data or highly biased vocabularies contribute fewer updates. This prevents the global model from being disproportionately pulled toward the specific biases of users with limited or repetitive data.

Experimental Setup

The researchers evaluated FedKWS-UI using the Google Speech Commands benchmark across two tasks:

  • 12-class task: 10 specific words plus silence and unknown categories (2,234 simulated users).
  • 35-class task: All words available in the dataset (2,434 simulated users).

Audio was preprocessed into 40-dimensional Mel-frequency cepstral coefficients (MFCC). The framework was tested across four distinct neural architectures: DSCNN, MHAttRNN, ResNet, and Transformer.

Key Insights and Results

FedKWS-UI demonstrated consistent improvements over standard baselines such as FedAvg, FedProx, and FedOpt.

  • Architecture Sensitivity: The study revealed that Transformer-based architectures are particularly vulnerable to non-IID data in federated settings. FedKWS-UI provided a significant boost here, raising accuracy on the 12-class task from 72.71% (using FedMMD) to 79.06%.
  • Peak Performance: On the MHAttRNN architecture, the proposed method achieved a high global accuracy of 86.57%.
  • User Experience Metrics: Beyond raw accuracy, the method achieved lower False Accept (FA) rates (0.23) and False Reject (FR) rates (2.78). These metrics are critical for real-world usability, as they represent fewer accidental activations and fewer ignored commands.
  • The Importance of Entropy: The results underscore that data volume alone is an insufficient metric for client utility. A user who repeats the same word 1,000 times provides less value to the global model than a user with a diverse vocabulary. The ALT strategy successfully captures this nuance through entropy-based weighting.

Conclusion and Future Work

FedKWS-UI effectively addresses the problem of user-specific overfitting in federated keyword spotting by combining functional regularization with data-quality-aware training schedules. While the framework shows great promise, the authors identify several areas for future research. These include adapting the system for streaming KWS (handling continuous audio rather than static clips), integrating Differential Privacy (DP) for stronger mathematical privacy guarantees, and refining the ALT strategy to account for hardware constraints like battery life and processing power in mobile deployments.

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