NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Production federated keyword spotting via distillation, filtering, and joint federated-centralized training

Andrew Hard, Kurt Partridge, Neng Chen, Sean Augenstein, Aishanee Shah, Hyun Jin Park, Alex Park, Sara Ng, Jessica Nguyen, Ignacio Lopez-Moreno, Rajiv Mathews, Francoise Beaufays

TL;DR

This paper tackles the challenge of training accurate keyword spotting (KWS) models for virtual assistants in a privacy-preserving, federated learning (FL) setting. They introduce a novel approach combining federated training with centralized data, a confidence filtering mechanism for noisy on-device data, and a distillation strategy, leading to significant improvements in real-world user experience.

What Problem Does This Paper Address?

Keyword spotting (KWS) models are the backbone of voice assistants like Alexa, Hey Google, and Hey Siri, enabling them to wake up on command. Training these models effectively is crucial, but it faces several hurdles, especially when aiming for privacy-preserving, on-device learning. Traditional supervised learning requires vast amounts of labeled data, which is difficult and privacy-invasive to collect from user devices. Federated learning (FL) offers a solution by training models on decentralized user data without transmitting raw information. However, FL often suffers from data domain mismatches between on-device caches and real-world inference scenarios, and the "no-peek" nature of on-device data makes direct labeling impossible. This paper addresses these limitations by proposing a robust training pipeline that leverages both federated and centralized data, filters noisy on-device examples, and uses distillation to transfer knowledge effectively.

Methods

The authors propose a multi-pronged approach to enhance federated KWS training:

  • Joint Federated-Centralized Training: To bridge the gap between on-device training data and the broader inference distribution (e.g., including smart speaker data not present on phones), they combine federated learning with traditional centralized training. This is achieved through a "parallel training" strategy where central and federated training steps run concurrently, and their resulting models are combined via a weighted average.
  • Confidence Filtering for Distillation: Since on-device data lacks explicit labels, they employ a distillation approach where a powerful server-trained "teacher" model generates soft labels for the "student" model trained on-device. To improve the quality of these soft labels, they introduce a filtering mechanism. This mechanism uses "feedback features" (e.g., whether the user re-attempted a command after a rejection) to identify and discard low-confidence examples from the on-device training cache, thereby reducing noise.
  • Two-Stage Model Architecture: They utilize a proven two-stage KWS model architecture consisting of factored convolutional layers (SVDF) for both the teacher and student networks, comprising encoder and decoder sub-modules.

Datasets

The paper describes training and evaluation using:

  • On-device user data: Collected from Android devices with user opt-in for improving speech technologies. This data is stored in local encrypted caches and is "no-peek" by design.
  • Centralized server-hosted data: This includes vendor-collected utterances, audio from YouTube videos, and utterances from logs.
  • Offline evaluation sets: These cover diverse domains like different device types (phones, speakers), noise conditions (in-car, background music), and language locales (US English, British English).
  • Production Android phones: Used for live A/B experiments to assess real-world user experience.

Key Insights and Ideas

  • The power of "no-peek" data: Federated learning can effectively leverage the vast, privacy-sensitive data residing on user devices, which would otherwise be inaccessible for training.
  • Domain mismatch is a real problem: On-device data, while valuable, doesn't fully represent all inference scenarios. Combining it with centralized data is crucial for robust performance across different device types and conditions.
  • User feedback is a goldmine for noisy labels: Even without explicit labels, implicit user interactions (like re-attempts) provide valuable signals to filter out incorrect predictions from the teacher model, significantly improving the quality of distilled labels.
  • Filtering is more effective than adjustment: While adjusting teacher model logits was considered, filtering out low-confidence examples proved to be a more effective strategy for improving training.

Key Results

  • Offline Evaluation: Jointly-trained models achieved the lowest Area Under the Curve (AUC) metric, indicating better performance in distinguishing keywords from noise. FL-only training and filtering alone resulted in worse AUC compared to the joint approach.
  • Online A/B Experiments: This is where the proposed methods truly shine. Federated and jointly-trained models significantly improved the Proxy False Accept (APFA) rate (reducing mis-triggers) by up to 23% compared to a centrally-trained control model, while minimizing negative impacts on Proxy True Accept (APTA). The filtered FL approach also showed substantial improvements in APFA.

Limitations and Future Work

  • Limitations:
    • The "central" experiment arm in the A/B tests was stopped early, leading to larger statistical uncertainty.
  • The "Joint, averaged, filtered" experiment was conducted later, requiring adjustments to confidence intervals due to control model changes.
  • Offline AUC metrics were potentially biased in favor of centrally-trained models due to domain overlap.
  • Future Work: The paper highlights this work as the first user-facing launch of an FL-trained KWS model, the first FL model to use contextual user-feedback for label correction, and the first production use of joint federated-centralized training. This opens avenues for further exploration in these areas.

Summary updated

BibTeX
@inproceedings{hard2022production,
  author = {Andrew Hard and Kurt Partridge and Neng Chen and Sean Augenstein and Aishanee Shah and Hyun Jin Park and Alex Park and Sara Ng and Jessica Nguyen and Ignacio Lopez-Moreno and Rajiv Mathews and Francoise Beaufays},
  title = {{Production federated keyword spotting via distillation, filtering, and joint federated-centralized training}},
  booktitle = {Interspeech},
  year = {2022},
}
Figure