arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.04360cs.LGcs.CLcs.CR
收藏

提示公共大语言模型为私有端侧应用合成数据

Prompt Public Large Language Models to Synthesize Data for Private On-device Applications

Google(谷歌公司)

Shanshan Wu, Zheng Xu, Yanxiang Zhang, Yuanbo Zhang, Daniel Ramage

AI总结:

本文提出利用公共数据训练的大语言模型通过精心设计的提示来过滤、转换和生成接近真实用户分布的合成数据,用于差分隐私联邦学习下端侧语言模型的预训练,在Gboard真实数据上显著提升预测准确率并在生产A/B测试中优于基线。

摘要:

在公共数据上进行预训练是提升带差分隐私(DP)的联邦学习(FL)性能的有效方法。本文研究在公共数据上训练的大语言模型(LLMs)如何提高用于DP和FL训练的端侧语言模型预训练数据的质量。我们精心设计LLM提示,以过滤和转换现有公共数据,并生成与真实用户数据分布相似的新数据。在Gboard(谷歌键盘,一款生产级移动键盘应用)的真实用户数据上评估时,与在标准公共数据集上预训练的基线模型相比,在我们的合成数据集上预训练的模型在下一个词预测准确率上分别取得了19.0%和22.8%的相对提升。此外,在数百万台移动设备上进行DP FL微调期间,我们的方法取得的评估准确率优于或可比于基线,并且我们的最终模型在生产A/B测试中优于基线。我们的实验证明了LLM在无需访问私有数据的情况下合成接近私有分布的数据方面的优势,同时也为未来进一步缩小分布差距的研究指明了方向。

英文摘要:

Pre-training on public data is an effective method to improve the performance for federated learning (FL) with differential privacy (DP). This paper investigates how large language models (LLMs) trained on public data can improve the quality of pre-training data for the on-device language models trained with DP and FL. We carefully design LLM prompts to filter and transform existing public data, and generate new data to resemble the real user data distribution. The model pre-trained on our synthetic dataset achieves relative improvement of 19.0% and 22.8% in next word prediction accuracy compared to the baseline model pre-trained on a standard public dataset, when evaluated over the real user data in Gboard (Google Keyboard, a production mobile keyboard application). Furthermore, our method achieves evaluation accuracy better than or comparable to the baseline during the DP FL fine-tuning over millions of mobile devices, and our final model outperforms the baseline in production A/B testing. Our experiments demonstrate the strengths of LLMs in synthesizing data close to the private distribution even without accessing the private data, and also suggest future research directions to further reduce the distribution gap.

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

↑