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 López-Moreno, Rajiv Mathews, Françoise Beaufays · DOI

Abstract

This paper presents the first production-scale deployment of a Keyword Spotting (KWS) model trained using Federated Learning (FL). By integrating on-device training with centralized server-side learning and a novel confidence filtering mechanism based on user behavior, the researchers significantly reduced false triggers for virtual assistants without compromising user privacy. The approach addresses the challenges of unlabeled on-device data and domain mismatch through federated distillation and joint training strategies.

Introduction

Keyword spotting (KWS) is the "always-on" technology that listens for trigger phrases like "Hey Google." These models must be highly efficient and accurate, as false positives are intrusive and false negatives are frustrating. While Federated Learning (FL) is an ideal solution for learning from real-world audio on-device without compromising privacy, it faces significant production hurdles, including the lack of ground-truth labels on-device and potential domain mismatch between local and server data.

Methodology

The researchers implemented a three-pronged strategy to transition FL from simulation to a production environment:

Federated Distillation with Confidence Filtering

To address the labeling gap, the system uses "feedback features" rather than blindly trusting a teacher model. For instance, if the on-device KWS model triggers but a subsequent server-side model rejects the utterance, or if the user does not follow up with a command, the example is flagged as a likely "false accept" and filtered out of the training set.

Joint Federated-Centralized Training

To prevent "catastrophic forgetting" and maintain robustness, a parallel training strategy was employed. The model undergoes 500,000 steps of centralized training on curated server data in parallel with FL rounds on real-world device data. The weights are then averaged to create a composite model that benefits from both clean, labeled data and diverse, in-situ data.

Model Architecture

The architecture consists of a two-stage model with seven factored convolution layers (SVDF) and bottleneck projection layers, totaling approximately 320,000 parameters. This compact size ensures efficient on-device inference.

The two-stage SVDF architecture used for on-device keyword spotting.

Datasets and Validation

Training utilized both centralized data (vendor-collected utterances, YouTube audio, and anonymized logs) and federated data (local encrypted caches on opted-in Android devices). To validate filtering heuristics, an annotation study was conducted where 117 participants annotated nearly 12,000 of their own cached examples to confirm the presence of keywords.

Key Insights

  • User Behavior as a Label: User re-attempts serve as a powerful "ground truth" signal. A re-attempt shortly after a failed trigger likely indicates a False Reject, providing a signal usually unavailable in unsupervised learning.
  • The Offline-Online Paradox: Offline evaluations using standard AUC metrics often underestimated federated model performance. While centrally-trained models appeared superior offline due to domain alignment with test sets, federated models significantly outperformed them in live A/B tests on real devices.
  • The Importance of Filtering: Removing approximately 60% of "noisy" examples through filtering was found to be more effective than training on the full, unfiltered dataset.

Key Results

In live A/B experiments on production phones, the "Joint, averaged, filtered" model demonstrated superior performance. Specifically, it reduced the proxy False Accept rate ($\Delta P_{FA}$) by 19% to 23% compared to a centrally-trained control model.

Performance improvements in false accept and true accept rates across different training methods.

The system successfully scaled to handle nearly 300,000 unique client devices daily, completing up to 6,000 rounds of federated training per day. Models typically reached convergence within one week of training from random initialization.

Conclusion

While the current deployment primarily learns from "near-misses" due to data collection policies, the success of this joint federated-centralized approach marks a significant milestone for production-scale FL. Future work will focus on expanding on-device data types and further refining feedback signals to enhance distillation accuracy.

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 López-Moreno and Rajiv Mathews and Françoise Beaufays},
  title = {{Production federated keyword spotting via distillation, filtering, and joint federated-centralized training}},
  booktitle = {Interspeech},
  year = {2022},
}
Figure