Federated Learning of N-gram Language Models
arXiv:1910.03432
Abstract
We propose algorithms to train production-quality n-gram language models using federated learning. Federated learning is a distributed computation platform that can be used to train global models for portable devices such as smart phones. Federated learning is especially relevant for applications handling privacy-sensitive data, such as virtual keyboards, because training is performed without the users' data ever leaving their devices. While the principles of federated learning are fairly generic, its methodology assumes that the underlying models are neural networks. However, virtual keyboards are typically powered by n-gram language models for latency reasons. We propose to train a recurrent neural network language model using the decentralized FederatedAveraging algorithm and to approximate this federated model server-side with an n-gram model that can be deployed to devices for fast inference. Our technical contributions include ways of handling large vocabularies, algorithms to correct capitalization errors in user data, and efficient finite state transducer algorithms to convert word language models to word-piece language models and vice versa. The n-gram language models trained with federated learning are compared to n-grams trained with traditional server-based algorithms using A/B tests on tens of millions of users of virtual keyboard. Results are presented for two languages, American English and Brazilian Portuguese. This work demonstrates that high-quality n-gram language models can be trained directly on client mobile devices without sensitive training data ever leaving the devices.
10 pages
References in corpus (5)
- Sequence to Sequence Learning with Neural Networks
- Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling
- Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
- Federated Optimization: Distributed Machine Learning for On-Device Intelligence
- Testing Closeness With Unequal Sized Samples
Cited by in corpus (7)
- FLASHE: Additively Symmetric Homomorphic Encryption for Cross-Silo Federated Learning
- On the Outsized Importance of Learning Rates in Local Update Methods
- Incentives for Federated Learning: a Hypothesis Elicitation Approach
- Writing Across the World's Languages: Deep Internationalization for Gboard, the Google Keyboard
- Federated Natural Language Generation for Personalized Dialogue System
- Federated Marginal Personalization for ASR Rescoring
- Bristle: Decentralized Federated Learning in Byzantine, Non-i.i.d. Environments