Federated Learning for Emoji Prediction in a Mobile Keyboard

Françoise Beaufays, K. Praveen Kumar Rao, Rajiv Mathews, Swaroop Ramaswamy

arXiv (Cornell University) · 2019 · 112 citations · 16 references

Full text

Open access

Concepts

TL;DR

The study aims to predict emoji from typed text using a word‑level recurrent neural network, leveraging transfer learning and proposing methods to trigger emoji and adjust candidate diversity. The authors train a word‑level RNN via federated learning on-device, pretraining it on a language modeling task and incorporating trigger and diversity‑tuning mechanisms. The federated model outperforms a server‑trained counterpart and proves that federated learning can train production‑quality NLU models while preserving user data privacy.

Abstract

We show that a word-level recurrent neural network can predict emoji from text typed on a mobile keyboard. We demonstrate the usefulness of transfer learning for predicting emoji by pretraining the model using a language modeling task. We also propose mechanisms to trigger emoji and tune the diversity of candidates. The model is trained using a distributed on-device learning framework called federated learning. The federated model is shown to achieve better performance than a server-trained model. This work demonstrates the feasibility of using federated learning to train production-quality models for natural language understanding tasks while keeping users' data on their devices.

References

16