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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wu, Shanshan, Xu, Zheng, Zhang, Yanxiang, Zhang, Yuanbo, Ramage, Daniel
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911979907579904
author Wu, Shanshan
Xu, Zheng
Zhang, Yanxiang
Zhang, Yuanbo
Ramage, Daniel
author_facet Wu, Shanshan
Xu, Zheng
Zhang, Yanxiang
Zhang, Yuanbo
Ramage, Daniel
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_04360
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Prompt Public Large Language Models to Synthesize Data for Private On-device Applications
Wu, Shanshan
Xu, Zheng
Zhang, Yanxiang
Zhang, Yuanbo
Ramage, Daniel
Machine Learning
Computation and Language
Cryptography and Security
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.
title Prompt Public Large Language Models to Synthesize Data for Private On-device Applications
topic Machine Learning
Computation and Language
Cryptography and Security
url https://arxiv.org/abs/2404.04360