用大模型生成数据微调,反而可能泄露隐私。
Generated Data with Fake Privacy: Hidden Dangers of Fine-tuning Large Language Models on Generated Data
- 用大模型生成数据进行微调,数据结构与真实数据趋同。
- 微调后隐私信息泄露率提升超20%,成员推断攻击准确率升超40%。
- 警示开发者:生成数据未必安全,需警惕隐私风险。
大型语言模型(LLMs)在特定领域任务中表现优异,微调可显著提升性能。但使用真实数据微调存在隐私风险,因此开发者越来越多地依赖合成数据替代真实数据。然而,随着大模型能力增强,其生成数据与真实数据的差异几乎消失。本研究考察了以大模型生成数据微调时是否真正提升了隐私安全性,重点关注两种方法:监督微调(SFT)使用非结构化生成数据,以及自指导微调。实验基于Pythia模型系列和OPT模型,采用个人身份信息(PII)泄露检测与成员推断攻击(MIA)评估隐私风险。结果表明,在使用非结构化生成数据进行SFT后,Pythia模型的PII提取成功率提升超过20%;在自指导微调后,Pythia-6.9b模型的MIA ROC-AUC分数提升超过40%。这些结果揭示,使用生成数据微调可能带来与真实数据相似甚至更高的隐私风险,凸显了在该流程中必须加强隐私保护措施。
原文摘要 · Abstract (English)
Large language models (LLMs) have demonstrated significant success in various domain-specific tasks, with their performance often improving substantially after fine-tuning. However, fine-tuning with real-world data introduces privacy risks. To mitigate these risks, developers increasingly rely on synthetic data generation as an alternative to using real data, as data generated by traditional models is believed to be different from real-world data. However, with the advanced capabilities of LLMs, the distinction between real data and data generated by these models has become nearly indistinguishable. This convergence introduces similar privacy risks for generated data to those associated with real data. Our study investigates whether fine-tuning with LLM-generated data truly enhances privacy or introduces additional privacy risks by examining the structural characteristics of data generated by LLMs, focusing on two primary fine-tuning approaches: supervised fine-tuning (SFT) with unstructured (plain-text) generated data and self-instruct tuning. In the scenario of SFT, the data is put into a particular instruction tuning format used by previous studies. We use Personal Information Identifier (PII) leakage and Membership Inference Attacks (MIAs) on the Pythia Model Suite and Open Pre-trained Transformer (OPT) to measure privacy risks. Notably, after fine-tuning with unstructured generated data, the rate of successful PII extractions for Pythia increased by over 20%, highlighting the potential privacy implications of such approaches. Furthermore, the ROC-AUC score of MIAs for Pythia-6.9b, the second biggest model of the suite, increases over 40% after self-instruct tuning. Our results indicate the potential privacy risks associated with fine-tuning LLMs using generated data, underscoring the need for careful consideration of privacy safeguards in such approaches.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。