[Paper Review] Federated Learning for Keyword Spotting
This paper proposes a federated learning approach using adaptive averaging inspired by Adam to train a lightweight wake word detector on decentralized, user-generated speech data, achieving 95% recall at 5 FAH in just 100 communication rounds with only 8 MB of upstream communication per user, significantly reducing training time and preserving privacy.
We propose a practical approach based on federated learning to solve out-of-domain issues with continuously running embedded speech-based models such as wake word detectors. We conduct an extensive empirical study of the federated averaging algorithm for the "Hey Snips" wake word based on a crowdsourced dataset that mimics a federation of wake word users. We empirically demonstrate that using an adaptive averaging strategy inspired from Adam in place of standard weighted model averaging highly reduces the number of communication rounds required to reach our target performance. The associated upstream communication costs per user are estimated at 8 MB, which is a reasonable in the context of smart home voice assistants. Additionally, the dataset used for these experiments is being open sourced with the aim of fostering further transparent research in the application of federated learning to speech data.
Motivation & Objective
- To address out-of-domain performance issues in embedded wake word detectors due to speaker and recording variability.
- To enable training of a wake word detector on decentralized, user-owned speech data without centralizing raw audio, preserving user privacy.
- To reduce communication costs and convergence time in federated learning for speech applications.
- To demonstrate the effectiveness of adaptive per-parameter averaging (inspired by Adam) over standard FedAvg in non-iid, speech-based federated learning.
Proposed method
- The authors use a federated averaging framework where local models are trained on user devices using a medium-sized neural network with 200k parameters and 20 MFLOPS compute constraints.
- They replace standard global model averaging with an adaptive per-parameter averaging rule inspired by the Adam optimizer, using per-coordinate learning rates to improve convergence.
- The system employs a centralized parameter server that aggregates client updates every communication round, with clients selected at random (10% participation rate) to reduce load.
- Local training is performed with a fixed local learning rate of 0.01, and the number of local epochs (E) and batch size (B) are tuned to balance convergence and communication efficiency.
- The dataset is crowdsourced and publicly released to support reproducible research in federated speech learning.
- Model evaluation is performed on dev and test sets with metrics including recall and false alarm rate per hour (FAH).

Experimental results
Research questions
- RQ1Can adaptive averaging based on Adam improve convergence speed in federated keyword spotting compared to standard FedAvg?
- RQ2What is the communication cost of federated training for a wake word detector when using adaptive averaging and realistic user participation?
- RQ3How does model performance vary across different data distributions and user-specific speech characteristics in a non-iid federated setting?
- RQ4To what extent can local training depth (epochs and batch size) affect convergence and communication efficiency in this setup?
- RQ5Can a privacy-preserving federated learning approach achieve high recall and low false alarm rates in real-world speech detection tasks?
Key findings
- Using Adam-inspired adaptive averaging reduced the number of communication rounds to reach 95% recall at 5 FAH from over 400 rounds (with standard FedAvg) to just 100 rounds.
- The best model achieved 95% recall with only 3.2 FAH on negative test data, 3.9 FAH on Librispeech, and 0.2–0.6 FAH on internal news and TV datasets.
- The upstream communication cost per user was estimated at 8 MB when training converged in 100 rounds, and 32 MB when training extended to 400 rounds.
- The optimal configuration used E=1 local epoch and B=20 batch size, achieving a 80% speedup compared to FedSGD with similar convergence.
- Standard global averaging with a learning rate of 1.0 yielded only 67.3% recall after 400 rounds, while adaptive averaging with η_global=0.001 reached 98.29% recall.
- The study found that increasing local training steps had limited impact on convergence speed, while local and global learning rate tuning were critical for performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.