arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.03432cs.CLcs.LG
收藏

N-gram语言模型的联邦学习

Federated Learning of N-gram Language Models

Google, Inc.(谷歌公司)

Mingqing Chen, Ananda Theertha Suresh, Rajiv Mathews, Adeline Wong, Cyril Allauzen, Françoise Beaufays, Michael Riley

摘要:

我们提出了使用联邦学习来训练生产质量的n-gram语言模型的算法。联邦学习是一种分布式计算平台,可用于训练便携式设备(如智能手机)的全局模型。联邦学习与处理隐私敏感数据(如虚拟键盘)的应用程序特别相关,因为训练是在用户数据从未离开其设备的情况下执行的。虽然联邦学习的原理相当通用,但其方法论假设底层模型是神经网络。然而,由于等待时间的原因,虚拟键盘通常由n-gram语言模型驱动。我们建议训练一个递归神经网络语言模型使用分散的FederatedAveraging算法,并近似这个联邦模型服务器端的n元模型,可以部署到设备进行快速推理。我们的技术贡献包括处理大型词汇表的方法,纠正用户数据中大写错误的算法,以及将单词语言模型转换为单词段语言模型的有效有限状态转换器算法,反之亦然。使用联邦学习训练的n-gram语言模型与使用传统的基于服务器的算法训练的n-gram进行了比较,这些算法使用了数千万虚拟键盘用户的A/B测试。结果是两种语言,美国英语和巴西葡萄牙语。这项工作表明,高质量的n-gram语言模型可以直接在客户端移动设备上训练,而无需敏感的训练数据离开设备。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑