arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.13193cs.CL
收藏

通过为大型语言模型提示播种进行私有文本生成

Private Text Generation by Seeding Large Language Model Prompts

Amazon(亚马逊公司);MIT(麻省理工学院);Tel-Aviv University(特拉维夫大学)

Supriya Nagesh, Justin Y. Chen, Nina Mishra, Tal Wagner

AI总结:

针对敏感文本无法直接用于训练或共享给LLM的问题,本文提出DP-KPS,用差分私有的关键短语嵌入提示LLM生成合成语料,并在文本分类任务上验证其效用。

摘要:

我们探索如何通过适当地提示大型语言模型(LLM)来生成私有合成文本。这解决了医院等机构面临的一项挑战:这些机构持有患者病历等敏感文本数据,并希望共享这些数据以训练用于医疗任务的机器学习模型,同时保护患者隐私。依赖训练或微调模型的方法可能无法实现,原因可能是第三方LLM的API限制,也可能是出于伦理和法律禁止将私有数据共享给LLM本身。我们提出了差分私有关键短语提示播种(Differentially Private Keyphrase Prompt Seeding,DP-KPS),该方法仅通过私有化提示访问LLM,从敏感输入语料库生成私有合成文本语料库。它基于利用来自短语嵌入分布的私有样本为提示播种,从而捕捉输入语料库,同时实现必要的输出多样性并维持差分隐私。我们在下游机器学习文本分类任务上评估DP-KPS,结果表明其生成的语料库保留了原始语料库的大部分预测能力。我们的发现为机构带来了希望:它们可以通过简单提示和少量计算,以私有方式共享数据并获得机器学习洞见。

英文摘要:

We explore how private synthetic text can be generated by suitably prompting a large language model (LLM). This addresses a challenge for organizations like hospitals, which hold sensitive text data like patient medical records, and wish to share it in order to train machine learning models for medical tasks, while preserving patient privacy. Methods that rely on training or finetuning a model may be out of reach, either due to API limits of third-party LLMs, or due to ethical and legal prohibitions on sharing the private data with the LLM itself. We propose Differentially Private Keyphrase Prompt Seeding (DP-KPS), a method that generates a private synthetic text corpus from a sensitive input corpus, by accessing an LLM only through privatized prompts. It is based on seeding the prompts with private samples from a distribution over phrase embeddings, thus capturing the input corpus while achieving requisite output diversity and maintaining differential privacy. We evaluate DP-KPS on downstream ML text classification tasks, and show that the corpora it generates preserve much of the predictive power of the original ones. Our findings offer hope that institutions can reap ML insights by privately sharing data with simple prompts and little compute.

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

↑