Federated Learning for Mobile Keyboard Prediction

Andrew Hard

arXiv (Cornell University) · 2018 · 1.1K citations · 23 references

DOIFull text

Open access

Concepts

TL;DR

Federated learning gives users greater control over their data and simplifies privacy‑by‑default training across many client devices. The study trains a recurrent neural network language model for next‑word prediction in smartphone keyboards using federated learning. The authors compare server‑based stochastic gradient descent with client‑side Federated Averaging to train the model. The federated approach yields higher prediction recall and shows that training on client devices is feasible while protecting user data.

Abstract

We train a recurrent neural network language model using a distributed, on-device learning framework called federated learning for the purpose of next-word prediction in a virtual keyboard for smartphones. Server-based training using stochastic gradient descent is compared with training on client devices using the Federated Averaging algorithm. The federated algorithm, which enables training on a higher-quality dataset for this use case, is shown to achieve better prediction recall. This work demonstrates the feasibility and benefit of training language models on client devices without exporting sensitive user data to servers. The federated learning environment gives users greater control over the use of their data and simplifies the task of incorporating privacy by default with distributed training and aggregation across a population of client devices.

References

23