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.
Federated Learning with Gramian Angular Fields for Privacy-Preserving ECG Classification on Heterogeneous IoT Devices
Laboratoire LITAN(LITAN实验室);École supérieure en Sciences et Technologies de l’Informatique et du Numérique(信息与数字技术高级学院);College of Engineering and IT(工程与信息技术学院);University of Dubai(迪拜大学);Department of Computer Science(计算机科学系);University of Sharjah(沙迦大学)
Freezing of Gait Detection Using Gramian Angular Fields and Federated Learning from Wearable Sensors
College of Health Solutions, Arizona State University(亚利桑那州立大学健康解决方案学院);Bangladesh University of Engineering and Technology(孟加拉国工程与技术大学);Khulna University of Engineering and Technology(库尔纳工程与技术大学);School of Computing and Augmented Intelligence, Arizona State University(亚利桑那州立大学计算与增强智能学院)
Can LLMs Help Create Grammar?: Automating Grammar Creation for Endangered Languages with In-Context Learning
Language and Information Technology Programme, Faculty of Arts, CU(朱拉隆功大学文学院语言与信息技术项目);Center for Information and Language Processing (CIS), LMU Munich(慕尼黑大学信息与语言处理中心)
$N$-gram Is Back: Residual Learning of Neural Text Generation with $n$-gram Language Model
Nara Institute of Science and Technology(奈良先端科学技术大学院大学);Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);The Chinese University of Hong Kong(香港中文大学)
Character n-gram Embeddings to Improve RNN Language Models
Tokyo Institute of Technology(东京工业大学);NTT Communication Science Laboratories(NTT通信科学实验室);Tohoku University(东北大学)
提出了一种利用字符信息的递归神经网络(RNN)语言模型。我们专注于基于词嵌入构造领域研究的字符n-gram(Wieting et al. 2016)。我们提出的方法构造词嵌入字符n-gram嵌入,并将它们与普通的词嵌入。我们证明了所提出的方法在语言建模数据集上实现了最佳的困惑:Penn Treebank,WikiText-2和WikiText-103。此外,我们进行了实验的应用任务:机器翻译和标题生成。实验结果表明,我们提出的方法也积极影响这些任务。
GRAM: Fast Fine-tuning of Pre-trained Language Models for Content-based Collaborative Filtering
Riiid AI Research(Riiid人工智能研究院)
基于内容的协同过滤(CCF)根据用户的交互历史和项目的内容信息来预测用户与项目的交互。最近,预训练的语言模型(PLM)已被用来提取高质量的项目编码的CCF。然而,以端到端(E2 E)方式训练基于PLM的CCF模型是资源密集型的,因为优化涉及通过给定用户交互序列内的每个内容编码的反向传播。为了解决这个问题,我们提出了一个新的概念,即CCF中多模态的梯度累积(Gradient Accumulation for Multi-modality in CCF),它利用了一个给定的项目经常在一批交互历史中出现多次的事实。具体来说,单步训练聚合每个项目编码的梯度进行反向传播,理论上等同于标准的E2 E训练。作为单步迭代的扩展,我们提出了多步迭代,它增加了梯度更新延迟,以更少的GPU内存实现了进一步的加速。在来自知识追踪和新闻推荐两个任务领域的五个数据集上,该算法显著提高了训练效率(高达146倍)。我们的代码可在https://github.com/yoonseok312/GRAM上获得。