Federated Learning of N-Gram Language Models

By Mingqing Chen, Ananda Theertha Suresh, Rajiv Mathews, Adeline Wong, Cyril Allauzen, Franccoise Beaufays, Michael D. Riley. 2019

80 citations recorded by the source corpus.

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 a 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.

Subfields: Artificial Intelligence, Large Language Models, Natural Language Processing, Federated & Distributed Learning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Peter Richtárik
  2. Qiang Yang
  3. Jakub Konecný
  4. Martin Jaggi
  5. Sai Praneeth Karimireddy
  6. Sebastian U. Stich
  7. Ananda Theertha Suresh
  8. Chaoyang He

In Large Language Models

  1. S. Avestimehr
  2. Rajiv Mathews
  3. Qiang Yang
  4. Sashank J. Reddi
  5. Kangwook Lee
  6. Sebastian U. Stich
  7. Chaoyang He
  8. Jakub Konecný

In Natural Language Processing

  1. Rajiv Mathews
  2. Andrew Straiton Hard
  3. Mehryar Mohri
  4. Ananda Theertha Suresh
  5. Ignacio Lopez-Moreno
  6. Zachary B. Charles
  7. Satyen Kale
  8. Jinhyun So

In Federated & Distributed Learning

  1. Qiang Yang
  2. Sai Praneeth Karimireddy
  3. Chaoyang He
  4. Murali Annavaram
  5. Yang Liu
  6. Zachary B. Charles
  7. Jakub Konecný
  8. Sebastian U. Stich

Citations in the corpus